News:

--

Main Menu

h265

Started by Jan Gruuthuse, February 06, 2017, 01:51:51 PM

Previous topic - Next topic

mean

I've commited a quick patch to add hw probe
Not sure how well it works

Jan Gruuthuse

#16
both libva selected display & hw accel:
HEVC-HLG teststream20170101.ts, size: 132500708
found 1 files
Done
[TsPacket] Detecting TS/TS2...
[TsPacket] Score : 188:20, 192:1 out of 20
[TsPacket] Probably TS1 (188)...
[tsDemuxer] Loaded 1
[ADM_PP] 07:42:05-282  Initializing postproc
  [cleanup] 07:42:05-282  Deleting post proc
  [update] 07:42:05-282  updating post proc
  [update] 07:42:05-282  Disabled
  [addFile] 07:42:05-282  Clearing video filters
  [ADM_vf_clearFilters] 07:42:05-282  clear filters
[Editor] *** NO AUDIO ***
[Editor] Decoder FCC: H265 (35363248) [ADM_getDecoder] 07:42:05-282 
Searching decoder in plugins
  [tryCreatingVideoDecoder] 07:42:05-282  No decoder found in plugin
  [ADM_getDecoder] 07:42:05-282  Searching decoder in coreVideoCodec(3840 x 2160, extradataSize:0)...
  [ADM_coreCodecGetDecoder] 07:42:05-282  Searching decoder in coreVideoCodec(3840 x 2160, extradataSize:0)...
[lavc] Build: 3741798
[decoderFFH265] 07:42:05-282  [lavc] Initializing H265 decoder with 0 extradata
  [adm_lavLogCallback] 07:42:05-282  [lavc] The 'vismv' option is deprecated, see the codecview filter instead.
  [decoderFFH265] 07:42:05-282  [lavc] Decoder init: AV_CODEC_ID_HEVC video decoder initialized! (HEVC (High Efficiency Video Coding))
  [addReferenceVideo] 07:42:05-282  [editor] Original frame increment 00:00:00,016
  [addReferenceVideo] 07:42:05-282  [Editor] min increment 00:00:00,002
  [addReferenceVideo] 07:42:05-282  [Editor] max increment 00:00:01,084
  [addReferenceVideo] 07:42:05-282  [Editor] About 16683 microseconds per frame
  [getVideoDuration] 07:42:05-282  Found maxPts =00:01:06,485, 0 frames from the end
  [getVideoDuration] 07:42:05-282  Found maxDts =00:01:06,318, 0 frames from the end
  [getVideoDuration] 07:42:05-282  Using PTS..
  [getVideoDuration] 07:42:05-282  Using duration of 00:01:06,485


suppose you're after this info?
without the previously diff or should it be included into build?

Jan Gruuthuse

both libvdpau selected display & hw accel:
[TsPacket] Detecting TS/TS2...
[TsPacket] Score : 188:20, 192:1 out of 20
[TsPacket] Probably TS1 (188)...
[tsDemuxer] Loaded 1
[ADM_PP] 07:48:32-656  Initializing postproc
  [cleanup] 07:48:32-656  Deleting post proc
  [update] 07:48:32-656  updating post proc
  [update] 07:48:32-656  Disabled
  [addFile] 07:48:32-656  Clearing video filters
  [ADM_vf_clearFilters] 07:48:32-656  clear filters
[Editor] *** NO AUDIO ***
[Editor] Decoder FCC: H265 (35363248) [ADM_getDecoder] 07:48:32-656 
Searching decoder in plugins
  [tryCreatingVideoDecoder] 07:48:32-656  No decoder found in plugin
  [ADM_getDecoder] 07:48:32-656  Searching decoder in coreVideoCodec(3840 x 2160, extradataSize:0)...
  [ADM_coreCodecGetDecoder] 07:48:32-656  Searching decoder in coreVideoCodec(3840 x 2160, extradataSize:0)...
[lavc] Build: 3741798
[decoderFFH265] 07:48:32-656  [lavc] Initializing H265 decoder with 0 extradata
  [adm_lavLogCallback] 07:48:32-656  [lavc] The 'vismv' option is deprecated, see the codecview filter instead.
  [decoderFFH265] 07:48:32-656  [lavc] Decoder init: AV_CODEC_ID_HEVC video decoder initialized! (HEVC (High Efficiency Video Coding))


suppose you're after this info?
without the previously diff or should it be included into build?

eumagga0x2a

Quote from: Jan Gruuthuse on February 09, 2017, 07:50:28 AM
suppose you're after this info?

Not exactly. Thanks to [vdpau] Probe hw capabilities (experimental), Avidemux correctly refuses to try to decode a h265 video via VDPAU on my hardware:

  [vdpauGetFormat] 09:14:34-620  HEVC:Not supported by HW

Now you should load an 8 bit h265 video and test if Avidemux tries to decode it via VDPAU in hardware.

Quotewithout the previously diff or should it be included into build?

Without.

Jan Gruuthuse

h265 in mkv container, don't have original h265 8-bit in mpeg-ts:
[ADM_PP] 14:32:42-409  Initializing postproc
  [cleanup] 14:32:42-409  Deleting post proc
  [update] 14:32:42-409  updating post proc
  [update] 14:32:42-409  Disabled
  [addFile] 14:32:42-409  Clearing video filters
  [ADM_vf_clearFilters] 14:32:42-409  clear filters
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_Mad.so score 0
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_ima_adpcm.so score 0
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_ms_adpcm.so score 0
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_a52.so score 100
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_opencore_amrwb.so score 0
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_dca.so score 0
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_opencore_amrnb.so score 0
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_lav.so score 50
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_opus.so score 0
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_vorbis.so score 0
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_faad.so score 0
  [ADM_ad_searchCodec] 14:32:42-409  [ADM_ad_plugin]Format 0x2000 : probing libADM_ad_ulaw.so score 0
No accelerated IMDCT transform found
  [ADM_edAudioTrackFromVideo] 14:32:42-410  Creating edAudio from video track 0 at 3d04910
[Editor] Decoder FCC: HEVC (43564548) [ADM_getDecoder] 14:32:42-410 
Searching decoder in plugins
  [tryCreatingVideoDecoder] 14:32:42-410  No decoder found in plugin
  [ADM_getDecoder] 14:32:42-410  Searching decoder in coreVideoCodec(4096 x 1720, extradataSize:131)...
  [ADM_coreCodecGetDecoder] 14:32:42-410  Searching decoder in coreVideoCodec(4096 x 1720, extradataSize:131)...
[lavc] Build: 3741798
[decoderFFH265] 14:32:42-410  [lavc] Initializing H265 decoder with 131 extradata
  [adm_lavLogCallback] 14:32:42-410  [lavc] The 'vismv' option is deprecated, see the codecview filter instead.
  [decoderFFH265] 14:32:42-410  [lavc] Decoder init: AV_CODEC_ID_HEVC video decoder initialized! (HEVC (High Efficiency Video Coding))
  [addReferenceVideo] 14:32:42-410  [editor] Original frame increment 00:00:00,041
  [addReferenceVideo] 14:32:42-410  [Editor] min increment 00:00:00,041
  [addReferenceVideo] 14:32:42-410  [Editor] max increment 00:00:00,042
  [addReferenceVideo] 14:32:42-410  [Editor] About 41666 microseconds per frame
  [addReferenceVideo] 14:32:42-410  The first frame has a PTS >0, adjusting to 417 ms
  [updateStartTime] 14:32:42-410  Using pts2=00:00:00,417 to get dts, as this video does not start at zero
  [ADM_verifyDts] 14:32:42-410  Verifying DTS....
  [ADM_verifyDts] 14:32:42-410  Checking from 1 to 17620
  [ADM_verifyDts] 14:32:42-410  Pass 2..
  [ADM_verifyDts] 14:32:42-410  DTS verified
[Editor] B- frame possible with that codec
[addFile] 14:32:42-410  [Editor] Not H264
  [checkForDoubledFps] 14:32:42-410  Checking for doubled FPS.., time increment ceiling = 74998
  [checkForDoubledFps] 14:32:42-411  Checking DTS...
  [checkTiming] 14:32:42-411  Good : 1
  [checkTiming] 14:32:42-411  Bad  : 17618
  [checkForDoubledFps] 14:32:42-411  Checking PTS...
  [checkTiming] 14:32:42-411  Good : 0
  [checkTiming] 14:32:42-411  Bad  : 17619
  [checkForDoubledFps] 14:32:42-411  Cannot halve fps
  [renderDisplayResize] 14:32:42-411  Render to 4096x1720 zoom=1, old one =0 x 0, zoom=2, render=(nil)
  [init] 14:32:42-411  [Vdpau]Init
  [init] 14:32:42-411  [VDpau] Allocating surfaces 4096 x1720 , 4096 x 1728, 2048 x x860
  [mixerCreate] 14:32:42-417  Creating vdpauMixer with width=4096, height=1728 color=0
  [mixerCreate] 14:32:42-417  Vdpau Mixer : Enabling 0 features
  [spawnRenderer] 14:32:42-417  VDPAU init ok

eumagga0x2a

#20
Quote from: Jan Gruuthuse on February 09, 2017, 02:35:56 PM
h265 in mkv container, don't have original h265 8-bit in mpeg-ts:
It doesn't matter where the video comes from. Please provide the output of ffprobe for this video.

Quote
[Editor] Decoder FCC: HEVC (43564548) [ADM_getDecoder] 14:32:42-410 
Searching decoder in plugins
  [tryCreatingVideoDecoder] 14:32:42-410  No decoder found in plugin
  [ADM_getDecoder] 14:32:42-410  Searching decoder in coreVideoCodec(4096 x 1720, extradataSize:131)...
  [ADM_coreCodecGetDecoder] 14:32:42-410  Searching decoder in coreVideoCodec(4096 x 1720, extradataSize:131)...
[lavc] Build: 3741798
[decoderFFH265] 14:32:42-410  [lavc] Initializing H265 decoder with 131 extradata
  [adm_lavLogCallback] 14:32:42-410  [lavc] The 'vismv' option is deprecated, see the codecview filter instead.
  [decoderFFH265] 14:32:42-410  [lavc] Decoder init: AV_CODEC_ID_HEVC video decoder initialized! (HEVC (High Efficiency Video Coding))
  [addReferenceVideo] 14:32:42-410  [editor] Original frame increment 00:00:00,041
  [addReferenceVideo] 14:32:42-410  [Editor] min increment 00:00:00,041
  [addReferenceVideo] 14:32:42-410  [Editor] max increment 00:00:00,042
  [addReferenceVideo] 14:32:42-410  [Editor] About 41666 microseconds per frame
  [addReferenceVideo] 14:32:42-410  The first frame has a PTS >0, adjusting to 417 ms
  [updateStartTime] 14:32:42-410  Using pts2=00:00:00,417 to get dts, as this video does not start at zero
  [ADM_verifyDts] 14:32:42-410  Verifying DTS....
  [ADM_verifyDts] 14:32:42-410  Checking from 1 to 17620
  [ADM_verifyDts] 14:32:42-410  Pass 2..
  [ADM_verifyDts] 14:32:42-410  DTS verified
[Editor] B- frame possible with that codec
[addFile] 14:32:42-410  [Editor] Not H264
  [checkForDoubledFps] 14:32:42-410  Checking for doubled FPS.., time increment ceiling = 74998
  [checkForDoubledFps] 14:32:42-411  Checking DTS...
  [checkTiming] 14:32:42-411  Good : 1
  [checkTiming] 14:32:42-411  Bad  : 17618
  [checkForDoubledFps] 14:32:42-411  Checking PTS...
  [checkTiming] 14:32:42-411  Good : 0
  [checkTiming] 14:32:42-411  Bad  : 17619
  [checkForDoubledFps] 14:32:42-411  Cannot halve fps
  [renderDisplayResize] 14:32:42-411  Render to 4096x1720 zoom=1, old one =0 x 0, zoom=2, render=(nil)
  [init] 14:32:42-411  [Vdpau]Init
  [init] 14:32:42-411  [VDpau] Allocating surfaces 4096 x1720 , 4096 x 1728, 2048 x x860
  [mixerCreate] 14:32:42-417  Creating vdpauMixer with width=4096, height=1728 color=0
  [mixerCreate] 14:32:42-417  Vdpau Mixer : Enabling 0 features
  [spawnRenderer] 14:32:42-417  VDPAU init ok


You've cut the log just short of the lines where it starts to become interesting  :(

edit: Relevant entries are prepended with [vdpauGetFormat] and [canSupportThis].

Jan Gruuthuse

Paint event
[refresh] 16:14:01-925  [Vdpau]Rrefresh
[RDR] Resizing to 2048 x 860
[renderCompleteRedrawRequest] 16:14:01-933  RedrawRequest
Paint event
[refresh] 16:14:01-951  [Vdpau]Rrefresh
Paint event
[refresh] 16:14:01-951  [Vdpau]Rrefresh
Paint event
[refresh] 16:14:01-951  [Vdpau]Rrefresh
  [paintGL] 16:14:01-957  Painting dummy openGl widget
  [A_ResetMarkers] 16:14:01-971  Video Total duration : 00:12:14,583 ms
  [rewind] 16:14:01-971  Rewinding
  [switchToSegment] 16:14:01-971  Trying to switch to seg 0 with startTime in reference pic= 0 ms
  [seektoTime] 16:14:01-971  First frame of the new segment is a keyframe at 417ms
  [DecodePictureUpToIntra] 16:14:01-971   DecodeUpToInta 0 ref:0
[edCache] Flush
[vdpauGetFormat] 16:14:01-973  [vdpau]: GetFormat
  [vdpauGetFormat] 16:14:01-973  [vdpau]: Evaluating 53
  [vdpauGetFormat] 16:14:01-973  [vdpau]: Evaluating 109
  [parseHwAccel] 16:14:01-973  Trying h263_vaapi, hwPixFmt=53, wantedPixFmt 109, hwCodecId =5 : wantedCodecID=174
  [parseHwAccel] 16:14:01-973  Trying h264_vaapi, hwPixFmt=53, wantedPixFmt 109, hwCodecId =28 : wantedCodecID=174
  [parseHwAccel] 16:14:01-973  Trying h264_vdpau, hwPixFmt=109, wantedPixFmt 109, hwCodecId =28 : wantedCodecID=174
  [parseHwAccel] 16:14:01-973  Trying hevc_vaapi, hwPixFmt=53, wantedPixFmt 109, hwCodecId =174 : wantedCodecID=174
  [parseHwAccel] 16:14:01-973  Trying hevc_vdpau, hwPixFmt=109, wantedPixFmt 109, hwCodecId =174 : wantedCodecID=174
  [vdpauGetFormat] 16:14:01-973  Found matching hw accelerator : hevc_vdpau
  [vdpauGetFormat] 16:14:01-973  Successfully setup hw accel
  [canSupportThis] 16:14:01-973  This is supported by VDPAU
  [lookup] 16:14:01-973  Matching hw accel : vdpau
  [initVdpContext] 16:14:01-973  Init VDP context ok
  [decoderFFVDPAU] 16:14:01-973  Successfully setup hw accel
  [ADM_FFgetFormat] 16:14:01-973  Using vdpau as hw accel (ctx=0x3822460, accel=0x37cc940)


ffprobe 'Tears of Steel.mkv'
ffprobe version 2.8.10-0ubuntu0.16.04.1 Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from '/media/jan/Houden/Demo/hevc x264 4K & SD/hevc/hevc 4K 08-bit 4096x1720 24fps (2.40:1) Tears of Steel.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.1
    creation_time   : 2014-03-24 10:14:59
  Duration: 00:12:14.17, start: 0.000000, bitrate: 2657 kb/s
    Stream #0:0(eng): Video: hevc (Main), yuv420p(tv), 4096x1714, SAR 1:1 DAR 2048:857, 24 fps, 24 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Stream #0:2(hrv): Subtitle: subrip
    Stream #0:3(cze): Subtitle: subrip
    Stream #0:4(dan): Subtitle: subrip
    Stream #0:5(ger): Subtitle: subrip
    Stream #0:6(eng): Subtitle: subrip (default)
    Stream #0:7(spa): Subtitle: subrip
    Stream #0:8(fre): Subtitle: subrip
    Stream #0:9(gre): Subtitle: subrip
    Stream #0:10(heb): Subtitle: subrip
    Stream #0:11(hun): Subtitle: subrip
    Stream #0:12(ind): Subtitle: subrip
    Stream #0:13(ita): Subtitle: subrip
    Stream #0:14(jpn): Subtitle: subrip
    Stream #0:15(dut): Subtitle: subrip
    Stream #0:16(nor): Subtitle: subrip
    Stream #0:17(per): Subtitle: subrip
    Stream #0:18(pol): Subtitle: subrip
    Stream #0:19(por): Subtitle: subrip
    Stream #0:20(rus): Subtitle: subrip
    Stream #0:21(chi): Subtitle: subrip

eumagga0x2a

Quote from: Jan Gruuthuse on February 09, 2017, 04:19:33 PM

[vdpauGetFormat] 16:14:01-973  [vdpau]: GetFormat
  [vdpauGetFormat] 16:14:01-973  [vdpau]: Evaluating 53
  [vdpauGetFormat] 16:14:01-973  [vdpau]: Evaluating 109
  [parseHwAccel] 16:14:01-973  Trying h263_vaapi, hwPixFmt=53, wantedPixFmt 109, hwCodecId =5 : wantedCodecID=174
  [parseHwAccel] 16:14:01-973  Trying h264_vaapi, hwPixFmt=53, wantedPixFmt 109, hwCodecId =28 : wantedCodecID=174
  [parseHwAccel] 16:14:01-973  Trying h264_vdpau, hwPixFmt=109, wantedPixFmt 109, hwCodecId =28 : wantedCodecID=174
  [parseHwAccel] 16:14:01-973  Trying hevc_vaapi, hwPixFmt=53, wantedPixFmt 109, hwCodecId =174 : wantedCodecID=174
  [parseHwAccel] 16:14:01-973  Trying hevc_vdpau, hwPixFmt=109, wantedPixFmt 109, hwCodecId =174 : wantedCodecID=174
  [vdpauGetFormat] 16:14:01-973  Found matching hw accelerator : hevc_vdpau
  [vdpauGetFormat] 16:14:01-973  Successfully setup hw accel
  [canSupportThis] 16:14:01-973  This is supported by VDPAU
  [lookup] 16:14:01-973  Matching hw accel : vdpau
  [initVdpContext] 16:14:01-973  Init VDP context ok
  [decoderFFVDPAU] 16:14:01-973  Successfully setup hw accel
  [ADM_FFgetFormat] 16:14:01-973  Using vdpau as hw accel (ctx=0x3822460, accel=0x37cc940)


ffprobe 'Tears of Steel.mkv'
ffprobe version 2.8.10-0ubuntu0.16.04.1 Copyright (c) 2007-2016 the FFmpeg developers
[...]
Input #0, matroska,webm, from '/media/jan/Houden/Demo/hevc x264 4K & SD/hevc/hevc 4K 08-bit 4096x1720 24fps (2.40:1) Tears of Steel.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.1
    creation_time   : 2014-03-24 10:14:59
  Duration: 00:12:14.17, start: 0.000000, bitrate: 2657 kb/s
    Stream #0:0(eng): Video: hevc (Main), yuv420p(tv), 4096x1714, SAR 1:1 DAR 2048:857, 24 fps, 24 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)


Excellent, thanks. Decoding 8 bit h265 via VDPAU works  :)

The last remaining wish would be support for VDP_DECODER_PROFILE_HEVC_MAIN_10 when supported both by drivers and hardware.

mean


Jan Gruuthuse

Avidemux 2.6.18 commit 821a60b fflibs 3.0.6
Simple loading:
file: /media/jan/Houden/Demo/hevc x264 4K & SD/hevc/hevc 4K 08-bit 3840x2160 Mpeg-h part2-Hevc LG_4K_View-the-Feeling.mp4, size: 363741648
found 1 files
Done
[TsDemuxerer] Reading Video
[indexFile] Cannot find section Video,[Video]
*
[tsDemux] Cannot read Video section of /media/jan/Houden/Demo/hevc x264 4K & SD/hevc/hevc 4K 08-bit 3840x2160 Mpeg-h part2-Hevc LG_4K_View-the-Feeling.mp4.idx2
[tsDemuxer] Loaded 0


ffprobe LG_4K_View-the-Feeling.mp4
  Duration: 00:01:56.84, start: 4200.000000, bitrate: 24904 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: hevc (Main) (HEVC / 0x43564548), yuv420p(tv), 3840x2160 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
    Stream #0:1[0x1100](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 176 kb/s


download 346 MB @ demo-uhd3d.com: LG 4K - View the Feeling

eumagga0x2a

This is not really related to the topic (support for hw-accelerated decoding of HEVC via VDPAU), the MpegTS demuxer has difficulties to analyse this transport stream (this is not a mp4 file). FFmpeg complains about invalid timestamps in the video stream, but mpv manages to play the sample nevertheless (like a slide show due to slow CPU, of course).

Avidemux succeeds loading another Ultra-HD HEVC demo: http://demo-uhd3d.com/fiche.php?cat=uhd&id=45, but crashes with a floating point exception (division by zero in avidemux_core/ADM_coreUtils/src/ADM_infoExtractorH265.cpp:224) loading a real-life DVB-T2 sample ("Das Erste HD" from http://forum.kodi.tv/showthread.php?tid=228769&pid=2333904#pid2333904).

mean

The HEVC/TS parser is incomplete
Additionnaly, the decoder in ffmpeg is not as robust as usual

eumagga0x2a

Quote from: mean on February 09, 2017, 05:44:18 PM
and ffmpeg

This boils down to the question: does 3.0.6 support hevc 10 bit decoding via VDPAU or not?

Thank you very much for the hard work you put into h265 TS demuxing and hw decoding support! With terrestrial TV broadcasting in Germany switching to h265 by the end of March, this work is highly appreciated.

Jan Gruuthuse

#28
Probably not:
QuoteDXVA2-accelerated HEVC Main10 decoding
Quote10-bit depth support in native utvideo decoder
QuoteCUDA CUVID H264/HEVC decoder
source: June 27th, 2016, FFmpeg 3.1 "Laplace"

QuoteCUVID, which is also called nvdec by Nvidia now, can be used for decoding on Windows and Linux. In combination with nvenc it offers full hardware transcoding.
QuoteThe full set of codecs being available only on Pascal hardware, which adds VP9 and 10 bit support.

source: wiki: HWAccelIntro: CUDA/CUVID/NvDecode

eumagga0x2a

Jan, I just saw

static int vdpau_hevc_init(AVCodecContext *avctx)
{
    VdpDecoderProfile profile;
    uint32_t level = avctx->level;

    switch (avctx->profile) {
    case FF_PROFILE_HEVC_MAIN:
        profile = VDP_DECODER_PROFILE_HEVC_MAIN;
        break;
    case FF_PROFILE_HEVC_MAIN_10:
        profile = VDP_DECODER_PROFILE_HEVC_MAIN_10;
        break;
    case FF_PROFILE_HEVC_MAIN_STILL_PICTURE:
        profile = VDP_DECODER_PROFILE_HEVC_MAIN_STILL;
        break;
    default:
        return AVERROR(ENOTSUP);
    }

    return ff_vdpau_common_init(avctx, profile, level);
}


in buildCore/ffmpeg/source/libavcodec/vdpau_hevc.c:403 with the bundled ffmpeg-3.0.6, which I interpreted as an indication that given driver and hardware support the ffmpeg in Avidemux would be capable of using VDPAU to decode 10 bit HEVC videos. CUDA CUVID decoding added in 3.2 is another matter alltogether IMVHO.