Discussion:
[FFmpeg-user] Problems with concat demuxer
Gabriele Greco
2018-10-31 10:53:01 UTC
Permalink
I have some problems with concat demuxer when the input files has audio
encoded as "pcm_bluray", the output file ends up with a "bin_data" stream
that ffmpeg itself does not recognise.

(I used master version updated just before writing this e-mail)

Here is what I get when I clone this MTS file (that can be recognised
without problems by ffmpeg and played by VLC and by my avcodec based
player):

~/projects/ffmpeg-head/ffprobe 00003.MTS
ffprobe version N-92313-g4a6d5f3cad Copyright (c) 2007-2018 the FFmpeg
developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --disable-videotoolbox --disable-audiotoolbox
--enable-libx264 --enable-libfdk-aac --enable-nonfree --enable-gpl
libavutil 56. 21.100 / 56. 21.100
libavcodec 58. 34.100 / 58. 34.100
libavformat 58. 19.102 / 58. 19.102
libavdevice 58. 4.106 / 58. 4.106
libavfilter 7. 38.100 / 7. 38.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Input #0, mpegts, from '00003.MTS':
Duration: 00:00:31.24, start: 2857.885000, bitrate: 23766 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448),
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn,
50 tbc
Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz,
stereo, s16, 1536 kb/s

cp 00003.MTS 00004.MTS

cat inputs.txt
file '00003.MTS'
file '00004.MTS'

~/projects/ffmpeg-head/ffmpeg -y -f concat -i inputs.txt -c copy test.mts
ffmpeg version N-92313-g4a6d5f3cad Copyright (c) 2000-2018 the FFmpeg
developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --disable-videotoolbox --disable-audiotoolbox
--enable-libx264 --enable-libfdk-aac --enable-nonfree --enable-gpl
libavutil 56. 21.100 / 56. 21.100
libavcodec 58. 34.100 / 58. 34.100
libavformat 58. 19.102 / 58. 19.102
libavdevice 58. 4.106 / 58. 4.106
libavfilter 7. 38.100 / 7. 38.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Input #0, concat, from 'inputs.txt':
Duration: N/A, start: 0.000000, bitrate: 1536 kb/s
Stream #0:0: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(top
first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo,
s16, 1536 kb/s
Output #0, mpegts, to 'test.mts':
Metadata:
encoder : Lavf58.19.102
Stream #0:0: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(top
first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 50 tbr, 90k tbn, 90k
tbc
Stream #0:1: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo,
s16, 1536 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 3120 fps=0.0 q=-1.0 Lsize= 185228kB time=00:01:02.46
bitrate=24291.8kbits/s speed= 69x
video:159515kB audio:11762kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 8.144928%

~/projects/ffmpeg-head/ffprobe test.mts
ffprobe version N-92313-g4a6d5f3cad Copyright (c) 2007-2018 the FFmpeg
developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --disable-videotoolbox --disable-audiotoolbox
--enable-libx264 --enable-libfdk-aac --enable-nonfree --enable-gpl
libavutil 56. 21.100 / 56. 21.100
libavcodec 58. 34.100 / 58. 34.100
libavformat 58. 19.102 / 58. 19.102
libavdevice 58. 4.106 / 58. 4.106
libavfilter 7. 38.100 / 7. 38.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Input #0, mpegts, from 'test.mts':
Duration: 00:01:02.47, start: 1.405000, bitrate: 24289 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn,
50 tbc
Stream #0:1[0x101]: Data: bin_data ([6][0][0][0] / 0x0006)
Unsupported codec with id 100359 for input stream 1
--
Bye,
Gabry
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-
Carl Eugen Hoyos
2018-10-31 11:35:46 UTC
Permalink
Post by Gabriele Greco
I have some problems with concat demuxer when the input files has audio
encoded as "pcm_bluray", the output file ends up with a "bin_data" stream
that ffmpeg itself does not recognise.
The fact that FFmpeg is unable to write bluray streams is known and in no
way related to the concat demuxer.

It is also known that FFmpeg doesn't warn when writing unreadable streams
into ts files.

Sorry, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-reque

Loading...