
Basically if it makes sense as a time code then FFmpeg will interpret it correctly.

The timestamp AMOUNT_OF_DELAY_TO_ADD can be specified as a floating-point number of seconds, or also as MM:SS or HH:MM:SS. To add a fixed amount of subtitle delay to a subtitle file so the timestamps are all shifted, you can abuse ffmpeg's timestamp manipulation.įfmpeg -itsoffset AMOUNT_OF_DELAY_TO_ADD -i input.ass output.ass It counts upward from 0 (not 1) and only counts subtitle streams (not video or audio). Here, X is not to be taken literally but rather is the ID of the subtitle stream you wish to extract. Extracting Subtitle Streamsįfmpeg -i input.mkv -map s:X -c copy output.ass It counts upward from 0 (not 1) and only counts audio streams (not video or subtitle).

Here, X is not to be taken literally but rather is the ID of the audio stream you wish to extract. Extracting Audio Streamsįfmpeg -i input.mkv -map a:X -c copy output.mka The -y -v quiet is not necessary but it prevents spam output if you script this, and automatically overwrites existing files. Dumping Attachments from Matroska Filesįfmpeg -y -v quiet -dump_attachment:t "" -i input.mkv.More will be added periodically as I remember to add them.
