VLC 3.0.1 BlackScreen on H264 - kVTVideoDecoderBadDataErr

macOS specific usage questions
daniel_lahoz
New Cone
New Cone
Posts: 3
Joined: 19 Apr 2018 23:06

VLC 3.0.1 BlackScreen on H264 - kVTVideoDecoderBadDataErr

Postby daniel_lahoz » 19 Apr 2018 23:23

I have a 27" Late 2012 iMac, with the last version of OSX.
I just start having issues with some H264 videos after updating to 3.0
For example this:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 52 min 25 s
Bit rate mode : Variable
Bit rate : 2 780 kb/s
Maximum bit rate : 15.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
Bits/(Pixel*Frame) : 0.056
Stream size : 1.02 GiB (80%)
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : E-AC-3
Format/Info : Enhanced Audio Coding 3
Format settings, Endianness : Big
Codec ID : A_EAC3
Duration : 52 min 25 s
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 187.500 FPS (256 SPF)
Compression mode : Lossy
Stream size : 240 MiB (18%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Audio plays ok, but no video, in some cases, the video start playing, but freeze after 1-2 seconds.

In the log window i get this warnigns:
main
/Users/d-fu/vlc-3.0/extras/package/macosx/../../../src/misc/messages.c:419
configured with /Users/d-fu/vlc-3.0/extras/package/macosx/../../../configure '--prefix=/Users/d-fu/vlc-3.0/release-3.0.1/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'

videotoolbox
/Users/d-fu/vlc-3.0/extras/package/macosx/../../../modules/codec/videotoolbox.m:1685
vt session error: 'kVTVideoDecoderBadDataErr'

videotoolbox
/Users/d-fu/vlc-3.0/extras/package/macosx/../../../modules/codec/videotoolbox.m:1818
restarting vt session (dec callback failed)
The video plays OK on Kodi or Plex... Any suggestions??

Thanks in advance

daniel_lahoz
New Cone
New Cone
Posts: 3
Joined: 19 Apr 2018 23:06

Re: VLC 3.0.1 BlackScreen on H264 - kVTVideoDecoderBadDataErr

Postby daniel_lahoz » 20 Apr 2018 08:26

Hi, I just try with the last nightly build vlc-4.0.0-20180420-0405 and I get a green screen, with some corrupt pixels that changes.

Also I get new log info:
main debug: VLC media player - 4.0.0-dev Otto Chriek
main debug: Copyright © 1996-2018 the VideoLAN team
main debug: revision 4.0.0-dev-2451-ga8ac11fe30
main debug: configured with /Users/jenkins/workspace/vlc-nightly/vlc-nightly-macOS-contrib/extras/package/macosx/../../../configure '--prefix=/Users/jenkins/workspace/vlc-nightly/vlc-nightly-macOS-contrib/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-darwin16' '--host=x86_64-apple-darwin16' '--with-macosx-version-min=10.10' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk' 'build_alias=x86_64-apple-darwin16' 'host_alias=x86_64-apple-darwin16' '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'
videotoolbox warning: vt session error: 'kVTVideoDecoderBadDataErr'
videotoolbox warning: restarting vt session (dec callback failed)
videotoolbox warning: forcing CVPX format: 420v
videotoolbox info: vt cvpx chroma: 420v
videotoolbox warning: pic_holder_wait timed out
videotoolbox warning: pic_holder_wait timed out
videotoolbox warning: vt session error: 'kVTVideoDecoderBadDataErr'
videotoolbox warning: restarting vt session (dec callback failed)
videotoolbox warning: forcing CVPX format: 420v
videotoolbox info: vt cvpx chroma: 420v
videotoolbox warning: pic_holder_wait timed out
videotoolbox warning: pic_holder_wait timed out
main debug: resampling stopped (drift: 4121 us)
videotoolbox warning: vt session error: 'kVTVideoDecoderBadDataErr'
videotoolbox warning: restarting vt session (dec callback failed)
videotoolbox warning: forcing CVPX format: 420v
videotoolbox info: vt cvpx chroma: 420v
videotoolbox warning: pic_holder_wait timed out
videotoolbox warning: pic_holder_wait timed out
main debug: toggling resume
macosx debug: Releasing IOKit monitor sleep blocker (33426)
main debug: toggling resume
videotoolbox warning: pic_holder_wait timed out
videotoolbox warning: pic_holder_wait timed out
videotoolbox warning: pic_holder_wait timed out
videotoolbox warning: pic_holder_wait timed out
videotoolbox warning: pic_holder_wait timed out

tguillem
Developer
Developer
Posts: 87
Joined: 04 May 2015 16:38
VLC version: ALL
Operating System: Linux/WIndows/Mac OS

Re: VLC 3.0.1 BlackScreen on H264 - kVTVideoDecoderBadDataErr

Postby tguillem » 20 Apr 2018 10:40

Hello daniel_lahoz,

Could you give us the h264 video you are testing ? Either via https://streams.videolan.org/upload/ or with something of your choice (or via private message).

daniel_lahoz
New Cone
New Cone
Posts: 3
Joined: 19 Apr 2018 23:06

Re: VLC 3.0.1 BlackScreen on H264 - kVTVideoDecoderBadDataErr

Postby daniel_lahoz » 20 Apr 2018 11:05

I will send you a private message :)

Thanks for the fast reply

tguillem
Developer
Developer
Posts: 87
Joined: 04 May 2015 16:38
VLC version: ALL
Operating System: Linux/WIndows/Mac OS

Re: VLC 3.0.1 BlackScreen on H264 - kVTVideoDecoderBadDataErr

Postby tguillem » 20 Apr 2018 18:08

The issue has been fixed, you could check the next nightly.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 27 guests