Log in

View Full Version : MPEG-2 decoding issues


FLX90
27th May 2020, 16:14
I'm trying to decode a MPEG2 video to AVC with those two lines:
x264-r3000-33f9e14.exe --fps 24000/1001 --force-cfr --bitrate 20669 --preset veryslow --tune film --bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 24 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 --pass 1 -o outputx.264 input.mkv
x264-r3000-33f9e14.exe --fps 24000/1001 --force-cfr --bitrate 20669 --preset veryslow --tune film --bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 24 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 --pass 2 -o output.264 input.mkv

input video:
Video
ID : 1
Format : MPEG Video
Format version : Version 2
Format profile : Main@High
Format settings : CustomMatrix / BVOP
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=15
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Duration : 1 h 50 min
Bit rate mode : Variable
Bit rate : 20.7 Mb/s
Maximum bit rate : 35.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.416
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Open
GOP, Open/Closed of first frame : Closed
Stream size : 15.9 GiB (91%)
Default : Yes
Forced : No

I get the following error message:
[mpeg2video @ 00000000004eed00] ignoring pic cod ext after 0
[mpeg2video @ 0000000002296d00] ignoring pic cod ext after 0

What does that mean and how does it affect the output?

LoRd_MuldeR
27th May 2020, 20:45
This message almost certainly is not from x264 itself, but from libavcodec (ffmpeg) MPEG-2 decoder.

Could be the result of a broken MPEG-2 bitstream, but does not necessarily mean you will see any "corruptions" in decoded output. Did you check the output for any noticeable issues?

(I'd probably do an encode with ultra-fast settings and check the output for broken frames, just to be sure)