VideoHelp Forum

+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. 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
    Quote Quote  
  2. Banned
    Join Date
    Oct 2004
    Location
    Freedonia
    Search Comp PM
    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.
    Quote Quote  
  3. Thanks for the tip!
    I took a quick look and i doubt that it would fit my purposes. Have to look closer.
    I am using ffmpeg for command line scripting. I prefer to use ffmpeg.

    Thanks!
    Quote Quote  
  4. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    Originally Posted by rullbandspelare View Post
    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?
    You can try the -profile:v 4 command for which MediaInfo gives main@main.
    Quote Quote  
  5. Member
    Join Date
    Dec 2013
    Location
    United States
    Search PM
    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
    MPEG-2 level codes in ffmpeg (from mpeg12enc.c):
    4:2:2 profile
    Code:
    avctx->level = 5; /* Main */
    avctx->level = 2; /* High */
    All other profiles
    Code:
    avctx->level = 8; /* Main */
    avctx->level = 6; /* High 1440 */
    avctx->level = 4; /* High */
    MP@ML would be -profile:v 4 -level:v 8

    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.
    Quote Quote  



Similar Threads