Opened 9 years ago
Closed 8 years ago
#5442 closed defect (fixed)
unsupported/unrecognized subtitle file format
Reported by: | dolohow | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | |
Cc: | nfxjfg@googlemail.com | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
When trying to play a video with subtitles using ffplay the program fails to load a subtitle file.
How to reproduce:
% ffplay file.mkv -sst file.txt ffplay version 3.0.1 Copyright (c) 2003-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libdcadec --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-shared --enable-version3 --enable-x11grab libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Input #0, matroska,webm, from 'file.mkv': Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: title : English Stream specifier file.txt does not match any subtitle stream
Attachments (1)
Change History (10)
by , 9 years ago
comment:1 by , 9 years ago
Component: | ffplay → undetermined |
---|---|
Keywords: | ffplay subtitles sub bug error removed |
Priority: | important → normal |
Resolution: | → invalid |
Status: | new → closed |
Please post all usage question on the user mailing list: -sst
does not accept a file name as argument.
comment:2 by , 9 years ago
Cc: | added |
---|---|
Component: | undetermined → avformat |
Resolution: | invalid |
Status: | closed → reopened |
Version: | unspecified → git-master |
This user was actually reporting a bug that affects mpv. mpv can open external subtitle files. It failed with the given sample file, because libavformat does not properly recognize it. The user just tried to reproduce it with ffmpeg-native utilities.
If you run ffprobe on the file, you'll find that it prints
Stream #0:0: Video: ansi, pal8, 640x400, 25 fps, 25 tbr, 25 tbn, 25 tbc
which is wrong.
comment:3 by , 9 years ago
Then please change the wording of the ticket.
But what kind of subtitle is this file supposed to be? And what program does support it?
follow-up: 5 comment:4 by , 9 years ago
Summary: | ffplay cannot open subtitle file → unsupported/unrecognized subtitle file format |
---|
Then please change the wording of the ticket.
Of course.
But what kind of subtitle is this file supposed to be?
No clue really. Looks like it might match with the "vplayer" format.
And what program does support it?
VLC.
comment:5 by , 9 years ago
Replying to gjdfgh:
Of course.
Thanks.
No clue really. Looks like it might match with the "vplayer" format.
According to $FATE/sub/VPlayer_capability_tester.txt
, it does not look likely.
VLC.
Fair point. Does it print any information on the format? If not, a look at the source to see what code handles it would probably be useful.
follow-up: 7 comment:6 by , 9 years ago
Mixed them up. I mean MPL2.
I think it fails because mpl2dec.c doesn't skip the BOM.
comment:7 by , 9 years ago
comment:9 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Fixed in 74267333a10e0be4355221d7be22dab73bd7184c.
subtitle file mentioned in this bug report