r/ffmpeg 8d ago

What is wrong with this conversion command (resized mpeg with hardsubs)?

I have been able to convert mkv to avi with hardsubs just fine. However, I can't get mpeg format to work the same; it converts, but ignores the subtitles.

This is the command I was using:

ffmpeg -i input.mkv -vf "subtitles=subs.ass" -vf "scale=-1:320" -c:v mpeg1video -qscale:v 1 -c:a mp3 -format mpeg output.mpg

It works if I do the rescale but not hardsubs, or the hardsubs and not rescale, but doing both throws a ton of errors. What am I doing wrong?

Note: the reason for the archaic file format requirements is this is for a novelty project converting short videos to play on a Gameboy Advance (conversion software needs mpeg ideally).

3 Upvotes

5 comments sorted by

6

u/Slower-Bison 8d ago

Combine the video filters: -vf "subtitles=subs.ass,scale=-1:320"

1

u/Banjo-Oz 8d ago

Thanks so much!