Log in

View Full Version : Encoding video for my car stereo... not sure about FFmpeg command-line.


sofakng
5th June 2013, 13:21
I'm trying to transcode some H.264 (.MKV) videos into MPEG-2 (.MPG) so I can play them using my car stereo but I'm having problems.

Here is my car stereo file format requirements:

MPEG-2: 352x240 to 720x480 or 352x280 to 720x576 (4.0Mbps)and


Playing MPEG1/MPEG2 files This unit can play back MPEG1/MPEG2 files with the extension code <.mpg>,<.mpeg>, or <.mod>.
The stream format should conform to MPEG system/program stream. The file format should be MP@ML (Main Profile at Main Level)/SP@ML (Simple Profile
at Main Level)/MP@LL (Main Profile at Low Level).
Audio streams should conform to MPEG1 Audio Layer-2 or Dolby Digital.



I've been trying to read about command-line options for FFmpeg and I can't seem to get it right.

Here is what I think is right:
ffmpeg -i MyVideo.mkv -s 720x480 -vcodec mpeg2video -acodec ac3 -maxrate 4000000 output.mpg

...but it's asking for BUFSIZE to be set which I'm not sure what to use.

Can anybody help me out with a command-line that I can use to convert almost any video?

Ghitulescu
5th June 2013, 15:53
Use the DVD preset

sofakng
5th June 2013, 16:13
Use the DVD preset

Thanks...

However, I think that will go up to 6 Mbps and I need to limit it to 4 Mbps (max).

osgZach
5th June 2013, 17:56
If it works at all like x264, I would think calling a preset, then manually specifying your own values after it will override those specific values?

Worth a try at any rate.