Opened 7 years ago
Last modified 11 months ago
#7762 new defect
extracting subtitle stream fails
| Reported by: | Bastian Bittorf | Owned by: | |
|---|---|---|---|
| Priority: | important | Component: | avformat |
| Version: | git-master | Keywords: | mov aac mov_text regression |
| Cc: | MasterQuestionable | Blocked By: | |
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | no |
Description
Summary of the bug:
while trying to extract 1 stream of subtitles (tx3g), I get:
[srt @ 0x60ce180] SRT supports only a single subtitles stream. Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
How to reproduce:
% wget -O file.m4a https://freakshow.fm/podlove/file/5664/s/webplayer/c/episode/fs232-wurstkatastrophe-im-baellebad.m4a % ffmpeg -i file.m4a -map 0:1 -c copy out.srt
i tried these versions:
ffmpeg version 3.2.12-1~deb9u1 ffmpeg version N-48266-g97f47fd601-static
when quering with ffprobe it shows an interesting last line:
% ffprobe file.m4a
[...]
Stream #0:0(und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 47 kb/s (default)
Metadata:
creation_time : 2019-02-20T23:54:27.000000Z
Stream #0:1(eng): Data: bin_data (tx3g / 0x67337874)
Metadata:
creation_time : 2019-02-20T23:58:55.000000Z
handler_name : "Chapter Titles"
Stream #0:2(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 300x300 [SAR 1:1 DAR 1:1], 0.0001 fps, 0.0001 tbr, 1k tbn, 1k tbc (default)
Metadata:
creation_time : 2019-02-20T23:58:55.000000Z
handler_name : "Chapter Images"
Unsupported codec with id 100359 for input stream 1
Attachments (1)
Change History (9)
follow-up: 2 comment:1 by , 7 years ago
comment:2 by , 7 years ago
Replying to cehoyos:
Please test current FFmpeg git head and provide the command line you tested together with the complete, uncut console output to make this a valid ticket.
this *is* with git head: 97f47fd601d0e380109f501e4aabff71ffbad052
sorry for not mention it explicit.
comment:3 by , 7 years ago
| Component: | undetermined → avformat |
|---|---|
| Keywords: | mov mov_text regression added |
| Priority: | normal → important |
| Reproduced by developer: | set |
| Version: | unspecified → git-master |
Regression since 697400eac07c0614f6b9f2e7615563982dbcbe4a
comment:4 by , 6 years ago
| Keywords: | aac added |
|---|
Sample with aac audio uploaded: http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket7762/
by , 6 years ago
| Attachment: | fs232-wurstkatastrophe-im-baellebad_cut.m4a added |
|---|
comment:5 by , 11 months ago
It's the same problem with a recent version:
ffmpeg version 7.0.2-static https://johnvansickle.com/ffmpeg/
Reproced with:
user@box:~$ ffmpeg -i file.m4a -map 0:1 -c copy out.srt
ffmpeg version 7.0.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
libpostproc 58. 1.100 / 58. 1.100
[mjpeg @ 0xd50ab40] EOI missing, emulating
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.m4a':
Metadata:
major_brand : M4V
minor_version : 1
compatible_brands: M4A mp42isom
creation_time : 2019-02-20T23:54:27.000000Z
title : FS232 Wurstkatastrophe im Bällebad
artist : Metaebene Personal Media
album : Freak Show
track : 232
date : 2019
encoder : auphonic.com
iTunSMPB : 00000000 00000800 000005E0 00000000125EC620 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
description :
comment :
album_artist : Freak Show
Duration: 03:52:57.53, start: 0.000000, bitrate: 49 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 65.487000
Metadata:
title : Intro
Chapter #0:1: start 65.487000, end 169.929000
Metadata:
title : Begrüßung
Chapter #0:2: start 169.929000, end 397.296000
Metadata:
title : Niklas Roy
Chapter #0:3: start 397.296000, end 1603.783000
Metadata:
title : Heimcomputer und Spielekonsolen
Chapter #0:4: start 1603.783000, end 3173.700000
Metadata:
title : Grafiksoftware
Chapter #0:5: start 3173.700000, end 4836.552000
Metadata:
title : Kunst
Chapter #0:6: start 4836.552000, end 6757.380000
Metadata:
title : Niklas' Projekte
Chapter #0:7: start 6757.380000, end 8316.623000
Metadata:
title : Steuerung und Workshops
Chapter #0:8: start 8316.623000, end 10261.220000
Metadata:
title : Dokumentation und freie Lizenzen
Chapter #0:9: start 10261.220000, end 13145.059000
Metadata:
title : Neues aus Barcelona
Chapter #0:10: start 13145.059000, end 13661.674000
Metadata:
title : E-Roller Security
Chapter #0:11: start 13661.674000, end 13857.677000
Metadata:
title : Free Wifi an Flughäfen
Chapter #0:12: start 13857.677000, end 13977.530000
Metadata:
title : Ausklang
Stream #0:0[0x1](und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 47 kb/s (default)
Metadata:
creation_time : 2019-02-20T23:54:27.000000Z
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Data: bin_data (tx3g / 0x67337874)
Metadata:
creation_time : 2019-02-20T23:58:55.000000Z
handler_name : "Chapter Titles"
Stream #0:2[0x3](eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 300x300 [SAR 1:1 DAR 1:1], 0.0001 fps, 0.0001 tbr, 1k tbn (default) (attached pic) (timed thumbnails)
Metadata:
creation_time : 2019-02-20T23:58:55.000000Z
handler_name : "Chapter Images"
vendor_id : ....
Stream mapping:
Stream #0:1 -> #0:0 (copy)
[srt @ 0xd5ab280] srt muxer does not support any stream of type data
[out#0/srt @ 0xd5aa900] Could not write header (incorrect codec parameters ?): Invalid argument
Conversion failed!
user@box:~$ echo $?
234
Or is my commandline wrong?
comment:6 by , 11 months ago
| Cc: | added |
|---|
͏ Maybe you had to guess the correct "-f" type to output..?
͏ (feels like an insensible restriction)
͏ Alike:
͏ https://trac.ffmpeg.org/ticket/10891#comment:5
͏ https://trac.ffmpeg.org/ticket/11200#comment:8
comment:7 by , 11 months ago
I tried a lot of stuff (see below), but it seems the underlying reason for my problem is:
Unsupported codec with id 98314 for input stream 1
If you google for that, i'am not alone and it maybe has
to do with the non-text-encoded 'tx3g' subtitles stream "Data: bin_data (tx3g...":
user@box:~$ ffmpeg-7.0.2-amd64-static/ffmpeg -i file.m4a 2>&1 | grep 'Stream #[0-9]' Stream #0:0[0x1](und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 47 kb/s (default) Stream #0:1[0x2](eng): Data: bin_data (tx3g / 0x67337874) Stream #0:2[0x3](eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 300x300 [SAR 1:1 DAR 1:1], 0.0001 fps, 0.0001 tbr, 1k tbn (default) (attached pic) (timed thumbnails)
full output is:
user@box:~$ ffmpeg-7.0.2-amd64-static/ffprobe -i file.m4a
ffprobe version 7.0.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2024 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
libpostproc 58. 1.100 / 58. 1.100
[mjpeg @ 0x40588780] EOI missing, emulating
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.m4a':
Metadata:
major_brand : M4V
minor_version : 1
compatible_brands: M4A mp42isom
creation_time : 2019-02-20T23:54:27.000000Z
title : FS232 Wurstkatastrophe im Bällebad
artist : Metaebene Personal Media
album : Freak Show
track : 232
date : 2019
encoder : auphonic.com
iTunSMPB : 00000000 00000800 000005E0 00000000125EC620 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
description :
comment :
album_artist : Freak Show
Duration: 03:52:57.53, start: 0.000000, bitrate: 49 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 65.487000
Metadata:
title : Intro
Chapter #0:1: start 65.487000, end 169.929000
Metadata:
title : Begrüßung
Chapter #0:2: start 169.929000, end 397.296000
Metadata:
title : Niklas Roy
Chapter #0:3: start 397.296000, end 1603.783000
Metadata:
title : Heimcomputer und Spielekonsolen
Chapter #0:4: start 1603.783000, end 3173.700000
Metadata:
title : Grafiksoftware
Chapter #0:5: start 3173.700000, end 4836.552000
Metadata:
title : Kunst
Chapter #0:6: start 4836.552000, end 6757.380000
Metadata:
title : Niklas' Projekte
Chapter #0:7: start 6757.380000, end 8316.623000
Metadata:
title : Steuerung und Workshops
Chapter #0:8: start 8316.623000, end 10261.220000
Metadata:
title : Dokumentation und freie Lizenzen
Chapter #0:9: start 10261.220000, end 13145.059000
Metadata:
title : Neues aus Barcelona
Chapter #0:10: start 13145.059000, end 13661.674000
Metadata:
title : E-Roller Security
Chapter #0:11: start 13661.674000, end 13857.677000
Metadata:
title : Free Wifi an Flughäfen
Chapter #0:12: start 13857.677000, end 13977.530000
Metadata:
title : Ausklang
Stream #0:0[0x1](und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 47 kb/s (default)
Metadata:
creation_time : 2019-02-20T23:54:27.000000Z
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Data: bin_data (tx3g / 0x67337874)
Metadata:
creation_time : 2019-02-20T23:58:55.000000Z
handler_name : "Chapter Titles"
Stream #0:2[0x3](eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 300x300 [SAR 1:1 DAR 1:1], 0.0001 fps, 0.0001 tbr, 1k tbn (default) (attached pic) (timed thumbnails)
Metadata:
creation_time : 2019-02-20T23:58:55.000000Z
handler_name : "Chapter Images"
vendor_id : ....
Unsupported codec with id 98314 for input stream 1
and:
user@box:~$ ffmpeg-7.0.2-amd64-static/ffmpeg -i file.m4a -map 0:s:? -c copy -f srt out.srt
ffmpeg version 7.0.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
libpostproc 58. 1.100 / 58. 1.100
[mjpeg @ 0x2268cc80] EOI missing, emulating
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.m4a':
Metadata:
major_brand : M4V
minor_version : 1
compatible_brands: M4A mp42isom
creation_time : 2019-02-20T23:54:27.000000Z
title : FS232 Wurstkatastrophe im Bällebad
artist : Metaebene Personal Media
album : Freak Show
track : 232
date : 2019
encoder : auphonic.com
iTunSMPB : 00000000 00000800 000005E0 00000000125EC620 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
description :
comment :
album_artist : Freak Show
Duration: 03:52:57.53, start: 0.000000, bitrate: 49 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 65.487000
Metadata:
title : Intro
Chapter #0:1: start 65.487000, end 169.929000
Metadata:
title : Begrüßung
Chapter #0:2: start 169.929000, end 397.296000
Metadata:
title : Niklas Roy
Chapter #0:3: start 397.296000, end 1603.783000
Metadata:
title : Heimcomputer und Spielekonsolen
Chapter #0:4: start 1603.783000, end 3173.700000
Metadata:
title : Grafiksoftware
Chapter #0:5: start 3173.700000, end 4836.552000
Metadata:
title : Kunst
Chapter #0:6: start 4836.552000, end 6757.380000
Metadata:
title : Niklas' Projekte
Chapter #0:7: start 6757.380000, end 8316.623000
Metadata:
title : Steuerung und Workshops
Chapter #0:8: start 8316.623000, end 10261.220000
Metadata:
title : Dokumentation und freie Lizenzen
Chapter #0:9: start 10261.220000, end 13145.059000
Metadata:
title : Neues aus Barcelona
Chapter #0:10: start 13145.059000, end 13661.674000
Metadata:
title : E-Roller Security
Chapter #0:11: start 13661.674000, end 13857.677000
Metadata:
title : Free Wifi an Flughäfen
Chapter #0:12: start 13857.677000, end 13977.530000
Metadata:
title : Ausklang
Stream #0:0[0x1](und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 47 kb/s (default)
Metadata:
creation_time : 2019-02-20T23:54:27.000000Z
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Data: bin_data (tx3g / 0x67337874)
Metadata:
creation_time : 2019-02-20T23:58:55.000000Z
handler_name : "Chapter Titles"
Stream #0:2[0x3](eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 300x300 [SAR 1:1 DAR 1:1], 0.0001 fps, 0.0001 tbr, 1k tbn (default) (attached pic) (timed thumbnails)
Metadata:
creation_time : 2019-02-20T23:58:55.000000Z
handler_name : "Chapter Images"
vendor_id : ....
Output #0, srt, to 'out.srt':
[out#0/srt @ 0x2272ddc0] Output file does not contain any stream
Error opening output file out.srt.
Error opening output files: Invalid argument
user@box:~$ echo $?
234
user@box:~$ ls -l out.srt
ls: cannot access 'out.srt': No such file or directory
comment:8 by , 11 months ago
͏ "tx3g" (3GPP Timed Text)?
͏ Maybe the support is missing..?
͏ https://forum.videohelp.com/threads/402515-Problem-with-extracting-tx3g-subtitles



Please test current FFmpeg git head and provide the command line you tested together with the complete, uncut console output to make this a valid ticket.