Closed sergiou87 closed 5 years ago
It looks very similar to https://github.com/mpv-player/mpv/issues/5052#issuecomment-340893210
@tmm1 any idea what could it be? 😅
Ok, seems to be a ffmpeg bug. My friend @rcombs has a patch that seems to fix the issue (🙇🙇🙇🙇🙇🙇🙇🙇🙇), we're going to test it a bit more and submit it to ffmpeg 😄
yeah, definitely an ffmpeg bug.
ffmpeg -hwaccel videotoolbox -i /Users/Akemi/Downloads/hevc_crash_mpv.mkv -f null -
ffmpeg version git-2018-11-14-752659327d Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-7526593 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=/usr/bin/clang --host-cflags='-Os -w -pipe -march=native -mmacosx-version-min=10.14 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/' --host-ldflags='-L/usr/local/opt/openssl/lib -L/usr/local/opt/libxml2/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libgsm --enable-librsvg --enable-libsoxr --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libxml2 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 --enable-openssl --enable-libopus --enable-librtmp --enable-librubberband --enable-ffplay --enable-libsnappy --enable-libspeex --enable-libtesseract --enable-libtheora --enable-libwavpack --enable-libwebp --enable-libx265 --enable-lzma --enable-libzmq --enable-libzimg --enable-videotoolbox --enable-opencl
libavutil 56. 23.101 / 56. 23.101
libavcodec 58. 39.100 / 58. 39.100
libavformat 58. 22.100 / 58. 22.100
libavdevice 58. 6.100 / 58. 6.100
libavfilter 7. 43.100 / 7. 43.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, matroska,webm, from '/Users/Akemi/Downloads/hevc_crash_mpv.mkv':
Metadata:
title : Fringe.S03E01.1080p.BluRay.X265-D3FiL3R
encoder : libebml v0.7.8 + libmatroska v0.8.1
creation_time : 2016-07-28T21:25:59.000000Z
Duration: 00:43:58.82, start: 0.000000, bitrate: 9 kb/s
Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
Stream #0:1 -> #0:1 (ac3 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Segmentation fault: 11
Was the patch submitted to ffmpeg-devel?
No idea, tbh, I have to check with @rcombs
Yes! That's the one 😄
Ping @tmm1 . Looks like this patch wasn't merged into ffmpeg master yet.
mpv version and platform
mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects built on Tue Nov 6 17:30:25 GMT 2018 ffmpeg library versions: libavutil 56.22.100 libavcodec 58.35.100 libavformat 58.20.100 libswscale 5.3.100 libavfilter 7.40.101 libswresample 3.3.100 ffmpeg version: 4.1
macOS 10.14.2 (18C54)
Reproduction steps
Play this file in macOS or iOS using videotoolbox hwdec: hevc_crash_mpv.mkv.zip
mpv hevc_crash_mpv.mkv --hwdec=yes
Expected behavior
It should play.
Actual behavior
It crashes.
Other HEVC files work with videotoolbox hwdec. And it plays fine without hwdec.
Log file
mpv-crash-log.txt
Stack trace on iOS:
Sample files
hevc_crash_mpv.mkv.zip