I want to convert videos to mpeg2 Main Profile Main Layer, (mp@ml) , with the use of ffmpeg.
What arguments would i need to use?
Is this adequate:
ffmpeg -i video.avi -r 25 -vcodec mpeg2video -acodec mp3 -r 4000k -s 720x576 video.mp2
OR is there a predefined argument for this, something like "-target mp@ml".
Thanks for any input!
+ Reply to Thread
Results 1 to 6 of 6
If you can write even a very simple AviSynth script you could easily do this in HCenc. In fact I really do not understand why you would prefer the ffmpeg method to using HCenc unless you are not on Windows. I just finished an encode yesterday to MEPG-2 MP@HL using HCenc that I intend to use on a BluRay disc I am burning.
HCEnc is probably highest quality MPEG-2 encoder avaiable as freeware - ffmpeg encoding quality is much lower.
I know it's an old post - but it was a current issue to me, so here's what I found.
MPEG-2 profile codes in ffmpeg (from avcodec.h):
#define FF_PROFILE_MPEG2_422 0 #define FF_PROFILE_MPEG2_HIGH 1 #define FF_PROFILE_MPEG2_SS 2 #define FF_PROFILE_MPEG2_SNR_SCALABLE 3 #define FF_PROFILE_MPEG2_MAIN 4 #define FF_PROFILE_MPEG2_SIMPLE 5
avctx->level = 5; /* Main */ avctx->level = 2; /* High */
avctx->level = 8; /* Main */ avctx->level = 6; /* High 1440 */ avctx->level = 4; /* High */
Verify with mediainfo (Main@Main) or ffprobe (lists profile Main, but level only as number again).
This is fragile info as I couldn't find any documentation - just the (undocumented) source code.
Last edited by 1kg2; 8th Dec 2013 at 22:17.