This TS file can't be decoded with VT on macOS

This forum is about all development around libVLC.
oviano
Cone that earned his stripes
Cone that earned his stripes
Posts: 120
Joined: 12 Jan 2012 11:12

This TS file can't be decoded with VT on macOS

Postby oviano » 11 Nov 2018 16:20

I would have logged this as a bug on your system but the login page isn't responding for me.

This TS file was produced by FFmpeg, and encoded using NVENC HEVC with yadif_cufa used to deinterlace the source file which was a directshow capture in ASF format.

https://www.dropbox.com/s/yekpa39j0vpxb01/test.ts?dl=0

When this is loaded by VLC 3.0.4 it initially tries to use VT but this then gives an error and it falls back to wanting YUV 444, which itself seems a bit weird as the file is in yuv420p, although it plays ok.

Here is the VLC messages:
main debug: VLC media player - 3.0.4 Vetinari
main debug: Copyright © 1996-2018 the VideoLAN team
main debug: revision 3.0.4-0-gf615db6332
main debug: configured with /Users/d-fu/vlc-3.0/extras/package/macosx/../../../configure '--prefix=/Users/d-fu/vlc-3.0/build/vlc_install_dir' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-osx-notifications' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-realrtsp' '--enable-libass' '--enable-macosx-qtkit' '--enable-macosx-avfoundation' '--disable-skins2' '--disable-xcb' '--disable-caca' '--disable-pulse' '--disable-sdl-image' '--disable-vnc' '--build=x86_64-apple-darwin17' '--host=x86_64-apple-darwin17' '--with-macosx-version-min=10.7' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk' '--with-breakpad=https://mac.crashes.videolan.org' 'build_alias=x86_64-apple-darwin17' 'host_alias=x86_64-apple-darwin17' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-g' 'LDFLAGS=' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-g' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-g'
main debug: processing request item: test.ts, node: Playlist, skip: 0
main debug: resyncing on test.ts
main debug: test.ts is at 0
main debug: starting playback of new item
main debug: resyncing on test.ts
main debug: test.ts is at 0
main debug: creating new input thread
main debug: Creating an input for 'test.ts'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `file:///Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application%20Support/Emu/Player/videos/test.ts' gives access `file' demux `any' path `/Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application%20Support/Emu/Player/videos/test.ts'
main debug: creating demux: access='file' demux='any' location='/Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application%20Support/Emu/Player/videos/test.ts' file='/Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application Support/Emu/Player/videos/test.ts'
main debug: looking for access_demux module matching "file": 14 candidates
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in /Users/oliver/Library/Application Support/org.videolan.vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/lua/meta/fetcher
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
main debug: no access_demux modules matched
main debug: creating access: file:///Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application%20Support/Emu/Player/videos/test.ts
main debug: (path: /Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application Support/Emu/Player/videos/test.ts)
main debug: looking for access module matching "file": 23 candidates
lua debug: Trying Lua scripts in /Users/oliver/Library/Application Support/org.videolan.vlc/lua/meta/art
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/lua/meta/art
main debug: using access module "filesystem"
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/lua/meta/art
main debug: looking for stream_filter module matching "prefetch,cache_read": 26 candidates
cache_read debug: Using stream method for AStream*
cache_read debug: starting pre-buffering
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/00_musicbrainz.luac
cache_read debug: received first data after 0 ms
cache_read debug: pre-buffering done 1024 bytes in 0s - 15625 KiB/s
main debug: using stream_filter module "cache_read"
main debug: looking for stream_filter module matching "any": 26 candidates
lua debug: Trying Lua scripts in /Users/oliver/Library/Application Support/org.videolan.vlc/lua/playlist
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/lua/playlist
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/lua/playlist
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/anevia_streams.luac
lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/anevia_xml.luac
lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/appletrailers.luac
lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/03_lastfm.luac
main debug: no art finder modules matched
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/bbc_co_uk.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/cue.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/dailymotion.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/jamendo.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/koreus.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/liveleak.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/newgrounds.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/rockbox_fm_presets.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/soundcloud.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/twitch.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/vimeo.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/vocaroo.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/playlist/youtube.luac
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching "any": 1 candidates
main debug: no stream_directory modules matched
main debug: attachment of directory-extractor failed for file:///Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application%20Support/Emu/Player/videos/test.ts
main debug: looking for stream_filter module matching "record": 26 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='file' demux='any' location='/Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application%20Support/Emu/Player/videos/test.ts' file='/Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application Support/Emu/Player/videos/test.ts'
main debug: looking for demux module matching "any": 55 candidates
main debug: looking for xml reader module matching "any": 1 candidates
main debug: using xml reader module "xml"
ts debug: Standard set to Auto
ts debug: pid[17] unknown
ts debug: PATCallBack called
ts debug: new PAT ts_id=1 version=0 current_next=1
ts debug: * number=1 pid=4096
ts debug: temporary receiving program 1
ts debug: PMTCallBack called for program 1
ts debug: new PMT program number=1 version=0 pid_pcr=256
ts debug: * pid=256 type=0x24 ISO/IEC Reserved
ts debug: => pid 256 has now es fcc=hevc
ts debug: * pid=257 type=0xf ISO/IEC 13818-7 Audio with ADTS transport
ts debug: - SL/FMC descriptor not found/matched
ts debug: => pid 257 has now es fcc=mp4a
ts debug: * pid=17 listening for SDT
ts debug: enabling pid 256 from program 1
ts debug: enabling pid 257 from program 1
ts debug: enabling pcr pid 256 from program 1
ts debug: EOF at 30108952
main debug: using demux module "ts"
main debug: looking for a subtitle file in /Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application Support/Emu/Player/videos/
ts debug: DEMUX_SET_GROUP 0 0x0
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in /Users/oliver/Library/Application Support/org.videolan.vlc/lua/meta/reader
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/lua/meta/reader
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/lua/meta/reader
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/reader/filename.luac
main debug: no meta reader modules matched
main debug: `file:///Users/oliver/Library/Containers/com.beardcatbabybat.emu-player.macos/Data/Library/Application%20Support/Emu/Player/videos/test.ts' successfully opened
ts debug: Creating delayed ES
main debug: selecting program id=1
main debug: looking for packetizer module matching "any": 24 candidates
main debug: using packetizer module "hevc"
main debug: looking for video decoder module matching "videotoolbox": 14 candidates
videotoolbox info: Using Video Toolbox to decode 'hevc'
main debug: using video decoder module "videotoolbox"
ts debug: Default program is 1
main debug: looking for packetizer module matching "any": 24 candidates
mpeg4audio debug: running MPEG4 audio packetizer
mpeg4audio debug: ADTS Mode
main debug: using packetizer module "mpeg4audio"
main debug: looking for audio decoder module matching "videotoolbox": 21 candidates
main debug: using audio decoder module "faad"
ts debug: enabling pid 256 from program 1
ts debug: enabling pid 257 from program 1
ts debug: enabling pcr pid 256 from program 1
ts debug: first packet for pid=17 cc=0x1
ts debug: SDTCallBack called
ts debug: * pid=18 listening for EIT
ts debug: * pid=20 listening for TDT
ts debug: new SDT ts_id=1 version=0 current_next=1 network_id=65281
ts debug: * service id=1 eit schedule=0 present=0 running=4 free_ca=0
ts debug: - type=1 provider=FFmpeg name=Service01
main debug: EsOutProgramMeta: number=1
main debug: Buffering 0%
main debug: restarting module due to input format change
main debug: removing module "videotoolbox"
main debug: looking for video decoder module matching "videotoolbox": 14 candidates
videotoolbox debug: new VPS parsed: 0
videotoolbox debug: new SPS parsed: 0
videotoolbox debug: new PPS parsed: 0
main debug: Buffering 10%
mpeg4audio info: AAC channels: 2 samplerate: 44100
main debug: restarting module due to input format change
main debug: removing module "faad"
main debug: looking for audio decoder module matching "videotoolbox": 21 candidates
main debug: Buffering 20%
main debug: using audio decoder module "faad"
faad warning: decoded zero sample
main debug: reusing audio output
main debug: VLC is looking for: 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes
auhal debug: attempting to use device 0
auhal debug: using default audio device 192
main debug: Buffering 30%
main debug: Buffering 40%
main debug: Buffering 50%
main debug: Buffering 60%
main debug: Buffering 70%
main debug: Buffering 80%
main debug: Buffering 90%
main debug: Buffering 100%
main debug: Stream buffering done (1100 ms in 3 ms)
auhal debug: output layout of AUHAL is Stereo
auhal debug: selected 2 physical channels for device output
auhal debug: VLC will output: Stereo
auhal debug: Current AU format: [44100.000000][mcpl][9][8][1][8][2][32]
auhal debug: Current device has a latency of 7437 us
auhal debug: analog output successfully opened
main debug: output 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes
main debug: looking for audio volume module matching "any": 2 candidates
main debug: using audio volume module "float_mixer"
main debug: input 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes
main debug: looking for audio filter module matching "scaletempo": 16 candidates
scaletempo debug: format: 44100 rate, 2 nch, 4 bps, fl32
scaletempo debug: params: 30 stride, 0.200 overlap, 14 search
scaletempo debug: 1.000 scale, 1323.000 stride_in, 1323 stride_out, 1059 standing, 264 overlap, 617 search, 2204 queue, fl32 mode
main debug: using audio filter module "scaletempo"
main debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo
main debug: conversion pipeline complete
main debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo
main debug: conversion pipeline complete
main debug: looking for audio resampler module matching "any": 3 candidates
main debug: using audio resampler module "samplerate"
macosx debug: Activated assertion NoIdleSleepAssertion through IOKit (36401)
videotoolbox warning: vt session error: 'kVTInvalidSessionErr'
avcodec debug: using ffmpeg Lavc58.6.103
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: allowing 9 thread(s) for decoding
avcodec debug: codec (hevc) started
avcodec debug: using frame thread mode with 9 threads
main debug: using video decoder module "avcodec"
avcodec debug: available software decoder output format 5 (yuv444p)
main debug: looking for text renderer module matching "any": 3 candidates
main debug: using text renderer module "freetype"
main debug: looking for video converter module matching "any": 22 candidates
swscale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality)
main debug: using video converter module "swscale"
main debug: looking for video converter module matching "any": 22 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video converter module "yuvp"
main debug: Deinterlacing available
main debug: deinterlace -1, mode auto, is_needed 0
main debug: looking for vout window module matching "any": 1 candidates
macosx debug: Opening video window
macosx debug: Releasing old IOKit other assertion (36401)
macosx debug: Activated assertion NoDisplaySleepAssertion through IOKit (36402)
macosx debug: toggle playlist from state: removed splitview 0, minimized view 0. Event 2
macosx debug: toggle playlist to state: removed splitview 0, minimized view 0
macosx debug: returning videoview with proposed position x=0, y=0, width=1920, height=1080
main debug: using vout window module "macosx"
main debug: Opening vout display wrapper
main debug: looking for vout display module matching "any": 7 candidates
main debug: VoutDisplayEvent 'resize' 1920x1080
main debug: VoutDisplayEvent 'resize' 1920x1080
main debug: using vout display module "macosx"
main debug: original format sz 1920x1088, of (0,0), vsz 1920x1080, 4cc I444, sar 1:1, msk r0x0 g0x0 b0x0
main debug: removing module "freetype"
main debug: looking for text renderer module matching "any": 3 candidates
main debug: using text renderer module "freetype"
main debug: Received first picture
main debug: Decoder wait done in 269 ms
main debug: inserting 24565 zeroes
auhal warning: underrun of 94208 bytes
main debug: VoutDisplayEvent 'resize' 2644x1356
main debug: VoutDisplayEvent 'resize' 2644x1356
main debug: VoutDisplayEvent 'resize' 2644x1356
main debug: VoutDisplayEvent 'resize' 2700x1396
main debug: VoutDisplayEvent 'resize' 2700x1396
main debug: VoutDisplayEvent 'resize' 2700x1396
main debug: VoutDisplayEvent 'resize' 2700x1396
main debug: VoutDisplayEvent 'resize' 2700x1396
main debug: VoutDisplayEvent 'resize' 3156x1710
main debug: VoutDisplayEvent 'resize' 3156x1710
main debug: VoutDisplayEvent 'resize' 3156x1710
main debug: VoutDisplayEvent 'resize' 3156x1710
main debug: VoutDisplayEvent 'resize' 3156x1710
main debug: VoutDisplayEvent 'resize' 3256x1780
main debug: VoutDisplayEvent 'resize' 3256x1780
main debug: VoutDisplayEvent 'resize' 3256x1780
main debug: VoutDisplayEvent 'resize' 3256x1780
main debug: VoutDisplayEvent 'resize' 3256x1780
main debug: VoutDisplayEvent 'resize' 3356x1850
main debug: VoutDisplayEvent 'resize' 3356x1850
main debug: VoutDisplayEvent 'resize' 3356x1850
main debug: VoutDisplayEvent 'resize' 3356x1850
main debug: VoutDisplayEvent 'resize' 3356x1850
main debug: VoutDisplayEvent 'resize' 3360x1852
main debug: VoutDisplayEvent 'resize' 3360x1852
main debug: VoutDisplayEvent 'resize' 3360x1852
main debug: VoutDisplayEvent 'resize' 3360x1852
main debug: auto hiding mouse cursor
main debug: incoming request - stopping current input
main debug: killing decoder fourcc `hevc'
main debug: removing module "avcodec"
main debug: saving a free vout
main debug: reusing provided vout
main debug: removing module "hevc"
main debug: killing decoder fourcc `mp4a'
main debug: removing module "faad"
main debug: removing module "samplerate"
main debug: removing module "scaletempo"
auhal debug: Stopping the auhal module
main debug: removing module "float_mixer"
main debug: keeping audio output
main debug: removing module "mpeg4audio"
main debug: removing module "ts"
main debug: Program doesn't contain anymore ES
main debug: removing module "record"
main debug: removing module "cache_read"
main debug: removing module "filesystem"
main debug: dead input
main debug: nothing to play
main debug: destroying useless vout
main debug: removing module "macosx"
main debug: removing module "freetype"
main debug: removing module "yuvp"
main debug: removing module "swscale"
macosx debug: toggle playlist from state: removed splitview 0, minimized view 0. Event 2
macosx debug: toggle playlist to state: removed splitview 0, minimized view 0
macosx debug: Playback has been ended
macosx debug: Releasing IOKit monitor sleep blocker (36402)

Strangely, when the file is produced in the same way except CPU yadif is used for the deinterlacing, the issue does not occur. It might not be the deinterlacing specifically, but the fact that one encode is done with the FFmpeg pixel format CUDA and the other with NV12. ffprobe reports both as yuv420 however.

It seems that VT doesn't have this issue on iOS/tvOS.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: This TS file can't be decoded with VT on macOS

Postby mfkl » 13 Nov 2018 03:58

I would have logged this as a bug on your system but the login page isn't responding for me.
I get that you may have issues with the ticketing system, but this is not the place for bug reports.
https://mfkl.github.io

oviano
Cone that earned his stripes
Cone that earned his stripes
Posts: 120
Joined: 12 Jan 2012 11:12

Re: This TS file can't be decoded with VT on macOS

Postby oviano » 13 Nov 2018 05:19

Ok I saw lots of other bug reports in this forum but nevermind I’ve now managed to log a bug report, so feel free to delete this thread.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests