Hi!
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!
/Tomas
+ 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.
-
https://forum.videohelp.com/threads/277807-Useful-FFmpeg-Syntax-Examples
http://ffmpeg.org/faq.html#Which-are-good-parameters-for-encoding-high-quality-MPEG_00...PEG_002d2_003f
https://wiki.archlinux.org/index.php/FFmpeg#Single-pass_MPEG-2_.28near_lossless.29
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):
Code:#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
4:2:2 profile
Code:avctx->level = 5; /* Main */ avctx->level = 2; /* High */
Code: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 23:17.
Similar Threads
-
FFMpeg - Mpeg2 to MP4 conversion
By gomer_3333 in forum Video ConversionReplies: 2Last Post: 1st Mar 2010, 14:10 -
ffmpeg cut mpeg2 video issue
By santhoshv in forum EditingReplies: 2Last Post: 28th Oct 2009, 02:11 -
ffmpeg cut mpeg2 video issue
By santhoshv in forum Newbie / General discussionsReplies: 2Last Post: 27th Oct 2009, 04:50 -
Mux mpeg2 using ffmpeg
By juhani in forum EditingReplies: 9Last Post: 30th Sep 2008, 08:24 -
ffmpeg avi to mpeg2 lag
By jonaskarlsson in forum LinuxReplies: 8Last Post: 8th Jul 2008, 14:21