Opened 4 years ago

Closed 4 years ago

#4215 closed enhancement (fixed)

hevc bitstream filter

Reported by: Selur Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: hevc
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:

How to reproduce:
Call

ffmpeg -y -i "H:\Output\hevc.mkv" -map 0:0 -vcodec copy -an -sn -f rawvideo "H:\Temp\test_00_48_19_0010_02.hevc"

(hevc.mkv can be downloaded from: https://drive.google.com/folderview?id=0B_WxUS1XGCPASUZibG5XZkRfeTg&usp=sharing
produces a broken hevc file:

ffmpeg version git-2014-12-30-e405a8a Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec 30 2014 09:45:43 with gcc 4.9.2 (Rev2, Built by MSYS2 project)
  configuration: --arch=x86_64 --disable-debug --disable-shared --disable-doc --disable-w32threads --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-avfilter --enable-bzlib --enable-zlib --enable-decklink --enable-librtmp --enable-gnutls --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-libbluray --enable-libcaca --enable-libopenjpeg --enable-fontconfig --enable-libfreetype --enable-libass --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libsoxr --enable-libtwolame --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvorbis --enable-libvo-aacenc --enable-libopus --enable-libvidstab --enable-libvpx --enable-libwavpack --enable-libxavs --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 19.100 / 56. 19.100
  libavformat    56. 16.102 / 56. 16.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  6.100 /  5.  6.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from 'H:\Output\hevc.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.1
    creation_time   : 2014-12-28 22:57:01
    Encoding Gui    : Hybrid 2014.12.27.1
  Duration: 00:00:17.18, start: 0.000000, bitrate: 228 kb/s
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 640x352, SAR 1:1 DAR 20:11, 25
 fps, 25 tbr, 1k tbn, 1k tbc (default) (forced)
    Stream #0:1: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s (default)
Output #0, rawvideo, to 'H:\Temp\test_00_48_19_0010_02.hevc':
  Metadata:
    Encoding Gui    : Hybrid 2014.12.27.1
    encoder         : Lavf56.16.102
    Stream #0:0: Video: hevc, yuv420p, 640x352 [SAR 1:1 DAR 20:11], q=2-31, 25 fps, 25 tbr, 1k tbn, 1k tbc (default) (forced)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[rawvideo @ 000000000018a5e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 80 >= 40
[rawvideo @ 000000000018a5e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 80 >= 80
frame=  429 fps=0.0 q=-1.0 Lsize=     216kB time=00:00:17.04 bitrate= 103.8kbits/s
video:216kB audio:0kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 0.000000%

Raw file can be extracted using mkvextract without a problem.
ffplay enters a skipping loop when playing the mkv file.

Cu Selur

Change History (2)

comment:1 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords extract raw removed
  • Priority changed from normal to wish
  • Reproduced by developer set
  • Status changed from new to open
  • Summary changed from non monotonically dts when extraction hevc to raw (-> broken output) to hevc bitstream filter
  • Type changed from defect to enhancement
  • Version changed from unspecified to git-master

comment:2 Changed 4 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

The filter was implemented by Anton Khirnov

Note: See TracTickets for help on using tickets.