-1
import ffmpeg
input= "input.mkv"
output = "output.mkv"
title = "Clinton Abraham"

try:
    datas = 'title=' + title
    mains = ffmpeg.input(input)
    nemos = mains.output(output, map="0", metadata=datas, c="copy")
    nemos.run(quiet=True)
    print("METADATA MODIFIED ✅")
except ffmpeg.Error as e:
    print(e.stderr.decode('utf-8'))

Now how to edit -metadata:s:v, -metadata:s:a , -metadata:s:s 🤔

1

1 Answer 1

1
import time
import ffmpeg

inputs = "Sample video.mkv"

output = str(round(time.time())) + ".mkv"

datas = {"metadata":"title=Clinton Abraham"}
datas.update({"metadata:s:a":"description="})
datas.update({"metadata:":"comment=TELEGRAM > @DC4_WARRIOR"})

try:
    main = ffmpeg.input(inputs)
    nemo = main.output(output, map="0", **datas, c="copy")
    nemo.run(quiet=True)
    print("PROCESSED SUCCESSFULLY ⚡")
except ffmpeg.Error as e:
    print(e.stderr.decode('utf-8'))
1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Nov 25, 2023 at 21:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.