Open guiyongdong opened 3 years ago
Because FFMpeg don't support subset_seq_parameter_set.
I have the same problem, could you tell me how to solve it?
you can first filter the outputted 264 file and drop what you do not want (like subset sps, etc) then do following ffmpeg decoding.
➜ Desktop ffmpeg -i OUTPUT_layer0.264 1.yuv ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers built with Apple LLVM version 9.0.0 (clang-900.0.37) configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-ffplay --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 [h264 @ 0x7fd31481aa00] sps_id 1 out of range Last message repeated 1 times Input #0, h264, from 'OUTPUT_layer0.264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(progressive), 180x320, 25 fps, 25 tbr, 1200k tbn, 50 tbc [h264 @ 0x7fd315009400] sps_id 1 out of range Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native)) Error while opening decoder for input stream #0:0 : Invalid data found when processing input