VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. I want to convert videos to mpeg2 422P Profile H-14 Layer, (422P@H-14) , with the use of ffmpeg. What arguments would i need to use?

    I followed this queation https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg to slove it. As comment 6: 422P@H-14 would be -profile:v 0 -level:v 6

    But it is not worked.
    Quote Quote  
  2. To address your problem it will be good to see complete ffmpeg command line.
    Not sure about pixel format used by you - for 4:2:2 you should use 'yuv422p' pixel format.
    Also based on mpeg2enc source perhaps you are trying to use incorrect level as seem for 422 profile only level 2 (high) and 5 (main) are allowed.

    Code:
     215     if (avctx->level == FF_LEVEL_UNKNOWN) {
     216         if (avctx->profile == FF_PROFILE_MPEG2_422) {   /* 4:2:2 */
     217             if (avctx->width <= 720 && avctx->height <= 608)
     218                 avctx->level = 5;                   /* Main */
     219             else
     220                 avctx->level = 2;                   /* High */
     221         } else {
     222             if (avctx->profile != FF_PROFILE_MPEG2_HIGH &&
     223                 avctx->pix_fmt != AV_PIX_FMT_YUV420P) {
     224                 av_log(avctx, AV_LOG_ERROR,
     225                        "Only High(1) and 4:2:2(0) profiles support 4:2:2 color sampling\n");
     226                 return AVERROR(EINVAL);
     227             }
     228             if (avctx->width <= 720 && avctx->height <= 576)
     229                 avctx->level = 8;                   /* Main */
     230             else if (avctx->width <= 1440)
     231                 avctx->level = 6;                   /* High 1440 */
     232             else
     233                 avctx->level = 4;                   /* High */
     234         }
     235     }
     236
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!