Skip to content

x265 encoder generate wrong PTS/DTS and incorrect result

On git master, with the following sout configuration

./vlc ~/Desktop/\[PuyaSubs\!\]\ Uchuu\ Patrol\ Luluco\ -\ 10\ \[720p\]\[967D0521\].mkv \
    --dec-dev=none -I dummy -vv \
     --run-time=10 --play-and-exit \
     --sout="#transcode{vcodec=h265}:std{access=file,dst=foo.mkv}"

the muxer generate error message

[matroska @ 0x61b00007fc80] pts (4423) < dts (4444) in stream 1
[000060d00002a510] avformat mux error: could not write frame (pts: 4423305, dts: 4444581) (pkt pts: 4423, dts: 4444)
[matroska @ 0x61b00007fc80] pts (4636) < dts (4657) in stream 1
[000060d00002a510] avformat mux error: could not write frame (pts: 4636065, dts: 4657341) (pkt pts: 4636, dts: 4657)

and the video is much faster than the original.

There is no issue when subsituting h264 to h265 in the command line.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information