How do I encode DVB Subtitles?

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I encode DVB Subtitles?

Wagner Patriota
*QUESTION 1:*
How do I add a STR file to a MPEG-TS file with the "DVB subtitle codec"?
If so, could you give me a sample command line?
Thank.

I am trying:
ffmpeg -i video.ts *-i subtitle.srt* -vcodec copy -acodec copy *-scodec
dvbsub* output.ts

The stream is created because I can see it with MediaInfo, but the
subtitles don't appear!

*QUESTION 2:*
How do I use the command *slang*? I try to use it, but ffmpeg says the
command doesn't exist.

Thank you.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

rogerdpack2
> How do I add a STR file to a MPEG-TS file with the "DVB subtitle codec"?
> If so, could you give me a sample command line?
> Thank.

Are you trying to add subtitles?


> I am trying:
> ffmpeg -i video.ts *-i subtitle.srt* -vcodec copy -acodec copy *-scodec
> dvbsub* output.ts
>
> The stream is created because I can see it with MediaInfo, but the
> subtitles don't appear!

You probably can't use vcodec copy and expect new stuff to appear
within the video.
> *QUESTION 2:*
> How do I use the command *slang*? I try to use it, but ffmpeg says the
> command doesn't exist.

Perhaps you're confusing ffmpeg with mplayer/mencoder?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

Wagner Patriota
I thought the subtitle streams were totally separated from the video
stream...
it's supposed to be... we are even supposed to be able to add more than 1
subtitle with DVB... it should work.

On Mon, Jun 18, 2012 at 1:43 PM, Roger Pack <[hidden email]> wrote:

> > How do I add a STR file to a MPEG-TS file with the "DVB subtitle codec"?
> > If so, could you give me a sample command line?
> > Thank.
>
> Are you trying to add subtitles?
>
>
> > I am trying:
> > ffmpeg -i video.ts *-i subtitle.srt* -vcodec copy -acodec copy *-scodec
> > dvbsub* output.ts
> >
> > The stream is created because I can see it with MediaInfo, but the
> > subtitles don't appear!
>
> You probably can't use vcodec copy and expect new stuff to appear
> within the video.
> > *QUESTION 2:*
> > How do I use the command *slang*? I try to use it, but ffmpeg says the
> > command doesn't exist.
>
> Perhaps you're confusing ffmpeg with mplayer/mencoder?
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

rogerdpack2
In reply to this post by Wagner Patriota
> The stream is created because I can see it with MediaInfo, but the
> subtitles don't appear!

How are you seeing if they appear?
-r
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

Wagner Patriota
They just don't appear!

The command line:
ffmpeg -i input.mp4 *-i a.srt* -vcodec copy -acodec copy *-scodec
dvbsub*-bsf h264_mp4toannexb -y out2.ts

Output #0, mpegts, to 'out2.ts':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V mp42isom
    creation_time   : 2012-02-08 15:56:57
    encoder         : Lavf54.6.101
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 1016x572
[SAR 1024:1023 DAR 260096:146289], q=2-31, 2038 kb/s, 23.96 fps, 90k tbn,
23.98 tbc
    Metadata:
      creation_time   : 2012-02-08 15:56:57
      handler_name    : Mainconcept MP4 Video Media Handler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 125
kb/s
    Metadata:
      creation_time   : 2012-02-08 15:56:57
      handler_name    : Mainconcept MP4 Sound Media Handler
    Stream #0:2: Subtitle: dvb_subtitle
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
*  Stream #1:0 -> #0:2 (srt -> dvbsub) [look at this!]*
Press [q] to stop, [?] for help

the video process ok, apparently, no errors.... but no subtitle...



On Mon, Jun 18, 2012 at 3:37 PM, Roger Pack <[hidden email]> wrote:

> > The stream is created because I can see it with MediaInfo, but the
> > subtitles don't appear!
>
> How are you seeing if they appear?
> -r
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

Carl Eugen Hoyos
In reply to this post by Wagner Patriota
Wagner Patriota <wagner.patriota <at> gmail.com> writes:

> ffmpeg -i video.ts -i subtitle.srt -vcodec copy -acodec copy
> -scodec dvbsub output.ts

(Complete, uncut console output missing.)

dvbsub are bitmap-based subtitles, srt is text-based (iirc).
It is not trivial to convert from one type to the other,
you may be able to use -vf ass to "burn" the subtitles
on the video (in case that is what you want).

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

Wagner Patriota
If I burn, doesn't it mean that I won't be able to watch the video without
subtitle? I need to keep the DVB standard! To switch it on or off...

On Tue, Jun 19, 2012 at 4:08 AM, Carl Eugen Hoyos <[hidden email]> wrote:

> Wagner Patriota <wagner.patriota <at> gmail.com> writes:
>
> > ffmpeg -i video.ts -i subtitle.srt -vcodec copy -acodec copy
> > -scodec dvbsub output.ts
>
> (Complete, uncut console output missing.)
>
> dvbsub are bitmap-based subtitles, srt is text-based (iirc).
> It is not trivial to convert from one type to the other,
> you may be able to use -vf ass to "burn" the subtitles
> on the video (in case that is what you want).
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

Wagner Patriota
In reply to this post by Carl Eugen Hoyos
Good information! I converted my subtitle from .srt -> .sub
and then ffmpeg put it into my video perfectly... now I will adjust the
details... thank you so much! it worked! ;-)

On Tue, Jun 19, 2012 at 4:08 AM, Carl Eugen Hoyos <[hidden email]> wrote:

> Wagner Patriota <wagner.patriota <at> gmail.com> writes:
>
> > ffmpeg -i video.ts -i subtitle.srt -vcodec copy -acodec copy
> > -scodec dvbsub output.ts
>
> (Complete, uncut console output missing.)
>
> dvbsub are bitmap-based subtitles, srt is text-based (iirc).
> It is not trivial to convert from one type to the other,
> you may be able to use -vf ass to "burn" the subtitles
> on the video (in case that is what you want).
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

nick758
Hi, Wagner!

I have the same problem, but it is not resolved by converting srt to sub.
Could you send command which you entered.
And what version of ffmpeg was used?

Thanks in advance.
---
Nikolay
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

Bernd Butscheidt
In reply to this post by Wagner Patriota


>________________________________
>
>On Tue, Jun 19, 2012 at 4:08 AM, Carl Eugen Hoyos <[hidden email]> wrote:
>
>> Wagner Patriota <wagner.patriota <at> gmail.com> writes:
>>
>> > ffmpeg -i video.ts -i subtitle.srt -vcodec copy -acodec copy
>> > -scodec dvbsub output.ts



So I tried this using a recording from ITVHD made with vdr:


ffmpeg_g -i
/media/videoPIII/video/The_Break-Up/2012-08-19.00.22.191-0.rec/00001.ts -map 0:0 -vcodec copy -map 0:2 -acodec copy -map 0:3 -scodec copy -ss 0:04:57.31 -t 00:32:30.850 Break_up_test_1.ts


Complete output at the end - so far - no errors. FFmpeg used to complain in my memories when trying to remux subtitles. But even mediainfo showing that there is a subtitle stream, I cannot visualize it neither with mplayer, vlc or xine or demux it with ProjectX (which is possible using the uncut original recording).


Here are the outputs:

===============================



/extern07/ffmpeg_neu/ffmpeg/ffmpeg_g -i /media/videoPIII/video/The_Break-Up/2012-08-19.00.22.191-0.rec/00001.ts -map 0:0 -vcodec copy -map 0:2 -acodec copy -map 0:3 -scodec copy -ss 0:04:57.31 -t 00:32:30.850 Break_up_test_1.ts
ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers
  built on Aug 19 2012 11:52:57 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2)
  configuration: --enable-gpl --enable-libx264 --enable-filter=hqdn3d --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r
  libavutil      51. 70.100 / 51. 70.100
  libavcodec     54. 53.100 / 54. 53.100
  libavformat    54. 25.104 / 54. 25.104
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 11.101 /  3. 11.101
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[h264 @ 0x1ee5140] mmco: unref short failure
    Last message repeated 5 times
[mpegts @ 0x1ee1240] Stream #3: not enough frames to estimate rate; consider increasing probesize
[NULL @ 0x1ee6d00] start time is not set in estimate_timings_from_pts                                                                                                                                                                    
[mpegts @ 0x1ee1240] PES packet size mismatch                                                                                                                                                                                            
    Last message repeated 1 times
Input #0, mpegts, from '/media/videoPIII/video/The_Break-Up/2012-08-19.00.22.191-0.rec/00001.ts':
  Duration: 02:02:53.47, start: 42770.197300, bitrate: 9146 kb/s
  Program 132
    Stream #0:0[0x93a]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x941]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:2[0x93b](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0:3[0x924](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
File 'Break_up_test_1.ts' already exists. Overwrite ? [y/N] y
muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'Break_up_test_1.ts':
  Metadata:
    encoder         : Lavf54.25.104
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 90k tbn, 25 tbc
    Stream #0:1(eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, 256 kb/s
    Stream #0:2(eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
  Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
PES packet size mismatch.0 size= 1670647kB time=00:23:07.87 bitrate=9861.1kbits/s    
frame=97537 fps=867 q=-1.0 Lsize= 2290978kB time=00:32:29.58 bitrate=9626.5kbits/s   
video:2043516kB audio:60964kB subtitle:7155 global headers:0kB muxing overhead 8.493097%



===========================


mediainfo Break_up_test_1.ts
General
ID                                       : 1 (0x1)
Complete name                            : Break_up_test_1.ts
Format                                   : MPEG-TS
File size                                : 2.18 GiB
Duration                                 : 32mn 30s
Overall bit rate                         : 9 621 Kbps

Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Format settings, GOP                     : M=4, N=12
Codec ID                                 : 27
Duration                                 : 32mn 30s
Bit rate                                 : 8 887 Kbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.171
Stream size                              : 2.02 GiB (92%)
Color primaries                          : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics                 : BT.709-5, BT.1361
Matrix coefficients                      : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : 129
Duration                                 : 32mn 30s
Bit rate mode                            : Constant
Bit rate                                 : 256 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -300ms
Stream size                              : 59.5 MiB (3%)
Language                                 : English

Text
ID                                       : 258 (0x102)
Menu ID                                  : 1 (0x1)
Format                                   : DVB Subtitle
Codec ID                                 : 6
Language                                 : English

Menu
ID                                       : 4096 (0x1000)
Menu ID                                  : 1 (0x1)
Duration                                 : 32mn 30s
List                                     : 256 (0x100) (AVC) / 257 (0x101) (AC-3, English) / 258 (0x102) (DVB Subtitle, English)
Language                                 :  / English / English
Service name                             : Service01
Service provider                         : FFmpeg
Service type                             : digital television


========================================
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

Wagner Patriota
In reply to this post by nick758
On Fri, Aug 17, 2012 at 8:34 AM, nick758 <[hidden email]> wrote:

> Hi, Wagner!
>
> I have the same problem, but it is not resolved by converting srt to sub.
> Could you send command which you entered.
>

ffmpeg -i video.ts -i subtitle.sub -vcodec copy -acodec copy -scodec dvbsub
output.ts


> And what version of ffmpeg was used?
>

Hello... I am using the last version of FFmpeg. :-)


>
> Thanks in advance.
> ---
> Nikolay
>
>
>
> --
> View this message in context:
> http://ffmpeg-users.933282.n4.nabble.com/How-do-I-encode-DVB-Subtitles-tp4651021p4652685.html
> Sent from the FFmpeg-users mailing list archive at Nabble.com.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

voduyhien
Can you guide me how to convert subtitle from .srt to .sub ?
Which software did you use to convert it?

thank you
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

rogerdpack2
In reply to this post by Bernd Butscheidt
> Complete output at the end - so far - no errors. FFmpeg used to complain in my memories when trying to remux subtitles. But even mediainfo showing that there is a subtitle stream, I cannot visualize it neither with mplayer, vlc or xine or demux it with ProjectX (which is possible using the uncut original recording).

what about ffplay? :)
-r
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

Wagner Patriota
In reply to this post by voduyhien
sorry I just saw your message now... :-( I don't know if you solved your
problem already...
I used AVIAddXSubs to convert it

On Mon, Aug 20, 2012 at 11:12 AM, voduyhien <[hidden email]> wrote:

> Can you guide me how to convert subtitle from .srt to .sub ?
> Which software did you use to convert it?
>
> thank you
>
>
>
> --
> View this message in context:
> http://ffmpeg-users.933282.n4.nabble.com/How-do-I-encode-DVB-Subtitles-tp4651021p4652756.html
> Sent from the FFmpeg-users mailing list archive at Nabble.com.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

Bernd Butscheidt
In reply to this post by rogerdpack2


________________________________
> From: Roger Pack <[hidden email]>
>To: FFmpeg user questions <[hidden email]>
>Sent: Monday, August 20, 2012 6:07 PM
>Subject: Re: [FFmpeg-user] How do I encode DVB Subtitles?
>
>> Complete output at the end - so far - no errors. FFmpeg used to complain in my memories when trying to remux subtitles. But even mediainfo showing that there is a subtitle stream, I cannot visualize it neither with mplayer, vlc or xine or demux it with ProjectX (which is possible using the uncut original recording).
>
>what about ffplay? :)
>-r




Sorry for the long delay. Here is another example using ffplay:

1. ffplay output playing the source file. DVBsubs are shown!
2. the cutting with ffmpeg
3. ffplay output of the cut file. A subtitle stream is shown but the streams seems to empty (no subtitles are shown on the screen).


====================================
1. ffplay output playing the source file. DVBsubs are shown!

./ffplay_g /w_LD2/ProjectX/Break_up_smart.ts
ffplay version 0.11.1.git Copyright (c) 2003-2012 the FFmpeg developers
  built on Sep  1 2012 10:49:23 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2)
  configuration: --enable-gpl --enable-libx264 --enable-filter=hqdn3d --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r
  libavutil      51. 70.100 / 51. 70.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 25.104 / 54. 25.104
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 15.101 /  3. 15.101
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpegts @ 0x2c56de0] max_analyze_duration 5000000 reached at 5000000
Input #0, mpegts, from '/w_LD2/ProjectX/Break_up_smart.ts':
  Duration: 01:39:25.09, start: 43067.989300, bitrate: 9116 kb/s
  Program 132
    Stream #0:0[0x93a]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 49 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x941]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:2[0x93b](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0:3[0x924](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Frame changed from size:0x0 to size:1920x1080KB vq= 4616KB sq=    0B f=0/0  
[h264 @ 0x2dcdbc0] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 0x2d66d60] mmco: unref short failure4929KB sq=    0B f=0/0  
[h264 @ 0x2c8c6c0] mmco: unref short failure
43070.81 A-V: -0.008 fd=  10 aq=  422KB vq=14927KB sq=    0B f=1/0 


=========================================================
2. the cutting with ffmpeg

./ffmpeg_g -i /w_LD2/ProjectX/Break_up_smart.ts -map 0:0 -vcodec copy -map 0:2 -acodec copy -map 0:3 -scodec copy -ss 0:04:57.31 -t 00:01:30.850 Break_up_smart_cut_1.ts
ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep  1 2012 10:49:23 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2)
  configuration: --enable-gpl --enable-libx264 --enable-filter=hqdn3d --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r
  libavutil      51. 70.100 / 51. 70.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 25.104 / 54. 25.104
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 15.101 /  3. 15.101
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpegts @ 0x33d4240] max_analyze_duration 5000000 reached at 5000000
Input #0, mpegts, from 'Break_up_smart.ts':
  Duration: 01:39:25.09, start: 43067.989300, bitrate: 9116 kb/s
  Program 132
    Stream #0:0[0x93a]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 49 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x941]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:2[0x93b](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0:3[0x924](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
[mpegts @ 0x33dbf60] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'Break_up_smart_cut_1.ts':
  Metadata:
    encoder         : Lavf54.25.104
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 49 fps, 90k tbn, 25 tbc
    Stream #0:1(eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, 256 kb/s
    Stream #0:2(eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
  Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
frame= 4541 fps=408 q=-1.0 Lsize=   87471kB time=00:01:30.87 bitrate=7885.2kbits/s   
video:77383kB audio:2839kB subtitle:242 global headers:0kB muxing overhead 8.708271%


==========================================================
ffplay output of the cut file. A subtitle stream is shown but the
streams seems to empty (no subtitles are shown on the screen).

./ffplay_g /w_LD2/ProjectX/Break_up_smart_cut_1.ts
ffplay version 0.11.1.git Copyright (c) 2003-2012 the FFmpeg developers
  built on Sep  1 2012 10:49:23 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2)
  configuration: --enable-gpl --enable-libx264 --enable-filter=hqdn3d --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r
  libavutil      51. 70.100 / 51. 70.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 25.104 / 54. 25.104
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 15.101 /  3. 15.101
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[h264 @ 0x2b2cdc0] mmco: unref short failure
    Last message repeated 5 times
[mpegts @ 0x2b0bd20] max_analyze_duration 5000000 reached at 5000000
[NULL @ 0x2b0b1a0] start time is not set in estimate_timings_from_pts
Input #0, mpegts, from '/w_LD2/ProjectX/Break_up_smart_cut_1.ts':
  Duration: 00:01:30.94, start: 1.426711, bitrate: 7879 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0:2[0x102](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
[h264 @ 0x2c30d60] mmco: unref short failureKB vq= 3410KB sq=    0B f=0/0  
    Last message repeated 1 times 0 aq=  307KB vq= 5952KB sq=    0B f=0/0  
[h264 @ 0x2bec0c0] mmco: unref short failure
    Last message repeated 3 times 0 aq=  728KB vq=14637KB sq=    0B f=0/0  
Frame changed from size:0x0 to size:1920x1080
  79.01 A-V:  0.010 fd=  14 aq=  452KB vq=14722KB sq=    0B f=0/0   f=0/0
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How do I encode DVB Subtitles?

killer
In reply to this post by Wagner Patriota
hi i have the same problem  I am trying to add a subtitle to a ts file and i trying this: ffmpeg -i example1.ts -i 1.sub -scodec dvbsub -acodec copy -vcodec copy -metadata:s:2 language=esp output.ts. the problem is that the ts is generated and ts file seems to contain the dvbsub because i have analyzed with a tool called content analyzer but the subtitles dont appear. sorry to disturbed you. i will really appreciate an answer, you can send me the answer to manuelkiller37@gmail.com