[FFmpeg-user] Copying ARIB captions does not work
Jakub Vojáček
jakub at jacon.cz
Mon May 13 14:00:20 EEST 2019
Hello,
we're trying to copy the arib subtitles via the scodec copy option. By my
understanding, that should be possible thanks to
http://git.videolan.org/?p=ffmpeg.git;a=commit;h=100bfac6d6ecb3447dc3ac4b9d2c41085da59a8b.
The captions are recognized on the input but no longer recognized on the
output. Should that be supported? We have been doing the same thing with
dvb_subtitles and it worked as expected but doesn't work with arib.
root at jones:~# ffmpeg -y -i test.ts -map 0: -vcodec copy -acodec copy
-scodec copy -f mpegts test_copy.ts
ffmpeg version git-2019-05-12-367108d80a-hd Copyright (c) 2000-2019 the
FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --extra-cflags=-I/usr/local/cuda-10.1/include
--extra-ldflags=-L/usr/local/cuda-10.1/lib64 --cpu=native --enable-pthreads
--extra-version=hd --enable-vaapi --enable-vdpau --enable-nonfree
--enable-gpl --enable-swscale --enable-libx264 --enable-version3
--enable-nvenc --enable-libnpp --enable-cuvid --enable-filter=scale_cuda
--enable-filter=thumbnail_cuda --enable-libx264 --enable-libx265
--enable-libxvid --enable-libass --enable-libwavpack --enable-libsoxr
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-librtmp --enable-libnpp --enable-opengl --enable-version3
--enable-avisynth --enable-openal --enable-opencl --enable-libzvbi
--enable-cuda-nvcc --enable-cuda --enable-cuvid --enable-nvenc
--enable-nonfree --enable-libnpp --enable-openssl --enable-libaribb24
libavutil 56. 27.100 / 56. 27.100
libavcodec 58. 52.101 / 58. 52.101
libavformat 58. 27.103 / 58. 27.103
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 51.100 / 7. 51.100
libswscale 5. 4.101 / 5. 4.101
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[libaribb24 @ 0x563471d7da00] arib parser was created
[libaribb24 @ 0x563471d7da00] arib decoder was created
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: SPS unavailable in
decode_picture_timing
[h264 @ 0x563471d7a4c0] [@1557745024]: non-existing PPS 0 referenced
[h264 @ 0x563471d7a4c0] [@1557745024]: decode_slice_header error
[h264 @ 0x563471d7a4c0] [@1557745024]: no frame!
[mpegts @ 0x563471d758c0] [@1557745024]: PES packet size mismatch
[libaribb24 @ 0x563471d7da00] arib decoder destroyed
[libaribb24 @ 0x563471d7da00] arib parser was destroyed
Input #0, mpegts, from 'test.ts':
Duration: 00:05:00.70, start: 68062.412044, bitrate: 15361 kb/s
Program 124
Metadata:
service_name : NSC CHAPECÓ
service_provider: NSC
Stream #0:0[0x111]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps,
29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x112](por): Audio: aac_latm (HE-AAC) ([17][0][0][0] /
0x0011), 48000 Hz, stereo, fltp
Stream #0:2[0x113](eng): Audio: aac_latm (HE-AAC) ([17][0][0][0] /
0x0011), 48000 Hz, 5.1, fltp
Stream #0:3[0x116]: Subtitle: arib_caption (Profile A) ([6][0][0][0] /
0x0006)
Output #0, mpegts, to 'test_copy.ts':
Metadata:
encoder : Lavf58.27.103
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv,
bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97
tbr, 90k tbn, 90k tbc
Stream #0:1(por): Audio: aac_latm (HE-AAC) ([17][0][0][0] / 0x0011),
48000 Hz, stereo, fltp
Stream #0:2(eng): Audio: aac_latm (HE-AAC) ([17][0][0][0] / 0x0011),
48000 Hz, 5.1, fltp
Stream #0:3: Subtitle: arib_caption (Profile A) ([6][0][0][0] / 0x0006)
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x563471d758c0] [@1557745024]: PES packet size mismatch
[mpegts @ 0x563471d758c0] [@1557745024]: PES packet size
mismatchte=16048.2kbits/s speed= 429x
Last message repeated 2 times
frame= 8944 fps=0.0 q=-1.0 Lsize= 592000kB time=00:05:00.49
bitrate=16138.8kbits/s speed= 429x
video:534411kB audio:12821kB subtitle:70kB other streams:0kB global
headers:0kB muxing overhead: 8.166834%
The ffprobe of test_copy.ts no longer recognizes the subtitle PID as ARIB
captions
root at jones:~# ffprobe test_copy.ts
ffprobe version git-2019-05-12-367108d80a-hd Copyright (c) 2007-2019 the
FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --extra-cflags=-I/usr/local/cuda-10.1/include
--extra-ldflags=-L/usr/local/cuda-10.1/lib64 --cpu=native --enable-pthreads
--extra-version=hd --enable-vaapi --enable-vdpau --enable-nonfree
--enable-gpl --enable-swscale --enable-libx264 --enable-version3
--enable-nvenc --enable-libnpp --enable-cuvid --enable-filter=scale_cuda
--enable-filter=thumbnail_cuda --enable-libx264 --enable-libx265
--enable-libxvid --enable-libass --enable-libwavpack --enable-libsoxr
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-librtmp --enable-libnpp --enable-opengl --enable-version3
--enable-avisynth --enable-openal --enable-opencl --enable-libzvbi
--enable-cuda-nvcc --enable-cuda --enable-cuvid --enable-nvenc
--enable-nonfree --enable-libnpp --enable-openssl --enable-libaribb24
libavutil 56. 27.100 / 56. 27.100
libavcodec 58. 52.101 / 58. 52.101
libavformat 58. 27.103 / 58. 27.103
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 51.100 / 7. 51.100
libswscale 5. 4.101 / 5. 4.101
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, mpegts, from 'test_copy.ts':
Duration: 00:05:00.70, start: 1.400000, bitrate: 16128 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps,
29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x101](por): Audio: aac_latm (HE-AAC) ([17][0][0][0] /
0x0011), 48000 Hz, stereo, fltp
Stream #0:2[0x102](eng): Audio: aac_latm (HE-AAC) ([17][0][0][0] /
0x0011), 48000 Hz, 5.1, fltp
Stream #0:3[0x103]: Data: bin_data ([6][0][0][0] / 0x0006)
[@1557745032]: Unsupported codec with id 100359 for input stream 3
Thank you
Jakub
More information about the ffmpeg-user
mailing list