[FFmpeg-devel] [PATCH]Describe eia_608 as text subtitles

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Aug 27 16:55:04 CEST 2015


Anshul <anshul.ffmpeg <at> gmail.com> writes:

> > Attached patch fixes an issue with ffplay here (it 
> > tries to scale the text subtitles), please comment,
>
> Any Video sample  that work with this patch and do 
> not work without it would be great.

Full Episode 2.mp4

> At my PC I am not able to play any ClosedCaption Sample 
> from mine own repository with ffplay even with this patch.

I suspect you mean ticket #2067, subtitles are 
not well supported in libavfilter making showing 
text subtitles difficult.

But for the moment, I would suggest we concentrate 
on ffmpeg, there are still several Closed Captions 
samples that do not work.

> Command line output would also be welcomed.

$ ffplay Full\ Episode\ 2.mp4
ffplay version N-74678-g6701c92 Copyright (c) 2003-2015 
the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 58.100 / 56. 58.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 38.100 /  5. 38.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f7d1c000920] multiple edit list 
entries, a/v desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Full Episode 2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1iso6
    creation_time   : 2015-08-06 12:12:47
  Duration: 00:22:37.82, start: 0.000000, bitrate: 483 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), 
yuv420p, 1024x576, 357 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn, 
47.95 tbc (default)
    Metadata:
      creation_time   : 2015-08-06 12:12:47
      handler_name    : h264 at GPAC0.5.2-DEV-rev248-g39d5978-master
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 
48000 Hz, stereo, fltp, 122 kb/s (default)
    Metadata:
      creation_time   : 2015-08-06 11:48:49
      handler_name    : Sound Media Handler
    Stream #0:2(eng): Subtitle: eia_608 (c608 / 0x38303663), 
1920x1080, 0 kb/s (default)
    Metadata:
      creation_time   : 2014-04-03 05:32:25
      handler_name    : Apple Closed Caption Media Handler
[Closed caption Decoder @ 0x7f7d1c40be60] Data Ignored since 
exceeding screen width
    Last message repeated 25 times
[swscaler @ 0x7f7cec000c60] 0x0 -> 0x0 is invalid scaling dimension
Cannot initialize the sub conversion context

> Though patch looks correct to me

Pushed, thank you!

> just need more information for testing 
> and documenting it here.

Of course.

Could you comment again on ticket #4616?
When I remove the additional bytes in the 
eia_608 packets from the mov demuxer, I 
still don't get useful subttiles from the 
decoder...

Thank you, Carl Eugen



More information about the ffmpeg-devel mailing list