I exported some XDCAM HD-MXF files with Adobe Premiere and Edius,both exported files are the same, I was surprised to see the order of their frames because they are like this : BBIBBPBBPBBPBBI... But based on all the documents I have seen on the internet, they should start with I-Frame.

Also I converted the same source with the FFmpeg :

ffmpeg -i e:\sample.avi -vcodec mpeg2video -dc 10 -vtag xd5e -s 1920x1080 -b:v 50M -minrate 50M 
-maxrate 50M -bufsize 17825792 -rc_init_occupancy 17825792 -r 25 -bf 2 -g 12 -flags +ildct+ilme+cgop
-sc_threshold 1000000000 -top 1 -color_primaries 1 -color_trc 1 -colorspace 1 -color_range tv 
-video_format component -pix_fmt yuv422p -aspect 16:9 -acodec pcm_s24le -ac 2 -ar 48000 -intra_vlc 1 ByFFmpeg.mxf

, Please look at these weird frame orders :

 Premiere / Edius  =>     BBIBBPBBPBBPBBIBBP...
        FFmpeg     =>     IBBPBBPBBPIBBPBBPB...

this is media info of both FFmpeg output and Edius output : enter image description here

As you can see in the above picture I set -bf 2 -g 12 in my FFmpeg command , but N GOP is 10 yet!.

Q : How can I convert to XDCAM HD-422 correctly? (or how to force frame order to BBIBBPBBPBBPBBI like XDCAM HD 422)

  • Can you share a short Premiere/Edius generated file? – Gyan Sep 26 '20 at 19:34
  • @Gyan , Please use this link to download it, I used the last trial version of Edius to generate the sample file. – Mitra M Sep 27 '20 at 6:17
  • @Gyan , FFmpeg can start GOP with B-Frame? – Mitra M Sep 28 '20 at 6:11
  • Yes, but not the first GOP. – Gyan Sep 28 '20 at 8:09
  • This is encoder-related, not container-related. You need to set -cgop flag to see this frame cadence after the first GOP. – Gyan Sep 28 '20 at 10:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.