dvbsub problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

dvbsub problem

Leo-2
Hello,

I have some problems copying subtitle stream in a MPEG-TS file.  I have a
saved dvb MPEG-TS stream from my DVB device, and want to transcode it from
h264 to mpeg4 video format while keeping the subtitle track untouched.

There is no error reported from the ffmpeg process, but somehow the subtitle
information is lost in the generated MPEG-TS file.  When I view the original
TS file in VLC, it displays the subtitle just fine.  But with the generated
file, the subtitle track and information is there, yet vlc doesn't display
any subtitle.

So I played with ffmpeg for a bit and found that when I try to extract the
subtitle track from the generated TS file, I don't get anything.  My idea is
that if ffmpeg can (and should) mux all the stream correctly into the
generated file I should be able to extract the same information from it
afterward.

To simplify the test I just copy the tracks and don't do any transcoding.
 Here's the information of the original file:

Input #0, mpegts, from 'original.ts':
  Duration: 00:00:59.76, start: 12599.390500, bitrate: 4145 kb/s
 Program 1
    Stream #0.0[0x44]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
   Stream #0.1[0x45]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.2[0x46]: Video: h264, yuv420p, 720x576 [PAR 16:11 DAR 20:11],
25 fps, 25 tbr, 90k tbn, 50 tbc
   Stream #0.3[0x47](zho): Subtitle: dvbsub

I ran the ffmpeg command like this:
ffmpeg -i original.ts -vcodec copy -acodec copy -scodec copy new.ts

The new.ts has this information:
Input #0, mpegts, from 'new.ts':
  Duration: 00:00:59.76, start: 1.400000, bitrate: 4074 kb/s
 Program 1 Service01
    Metadata:
     name            : Service01
      provider_name   : FFmpeg
   Stream #0.0[0x100]: Video: h264, yuv420p, 720x576 [PAR 16:11 DAR 20:11],
25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x101]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
   Stream #0.2[0x102](zho): Subtitle: dvbsub


The container looks right, except that Stream 0.2 doesn't have anything in
it.

I tried to extract the subtitle stream with ffmpeg:
ffmpeg -i new.ts -an -vn -scodec copy -f rawvideo subtitle.data

Subtitle.data is an empty file.

To verify that the command works on the original TS file,
ffmpeg -i original.ts -an -vn -scodec copy -f rawvideo subtitle.data

This gives a subtitle.data of 108940 bytes.  Also towards the end of ffmpeg
output gives some hint:

Output of extracting track from the original TS:
Input #0, mpegts, from '*original.ts*':
  Duration: 00:00:59.76, start: 12599.390500, bitrate: 4145 kb/s
 Program 1
    Stream #0.0[0x44]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
   Stream #0.1[0x45]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.2[0x46]: Video: h264, yuv420p, 720x576 [PAR 16:11 DAR 20:11],
25 fps, 25 tbr, 90k tbn, 50 tbc
   Stream #0.3[0x47](zho): Subtitle: dvbsub
Output #0, rawvideo, to 'subtitle.data':
 Metadata:
    encoder         : Lavf52.64.2
   Stream #0.0(zho): Subtitle: dvbsub
Stream mapping:
 Stream #0.3 -> #0.0
Press [q] to stop encoding
[NULL @ 0x2520d60]missing picture in access unit
size=     *106kB* time=57.86 bitrate=  15.1kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead inf%

Output from extracting track from the ffmpeg created TS:
Input #0, mpegts, from '*new.ts*':
 Duration: 00:00:59.76, start: 1.400000, bitrate: 4074 kb/s
  Program 1 Service01
   Metadata:
      name            : Service01
     provider_name   : FFmpeg
    Stream #0.0[0x100]: Video: h264, yuv420p, 720x576 [PAR 16:11 DAR 20:11],
25 fps, 25 tbr, 90k tbn, 50 tbc
   Stream #0.1[0x101]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.2[0x102](zho): Subtitle: dvbsub
Output #0, rawvideo, to 'subtitle.data':
  Metadata:
   encoder         : Lavf52.64.2
    Stream #0.0(zho): Subtitle: dvbsub
Stream mapping:
  Stream #0.2 -> #0.0
Press [q] to stop encoding
[NULL @ 0x23c4dd0]missing picture in access unit
size=       *0kB* time=10000000000.00 bitrate=   0.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead -nan%


So does the mpegts muxer not put anything into the dvbsub track?  If so,
does other muxer do this correctly?

I'm running Fedora 13,
Linux fedora 2.6.33.5-124.fc13.x86_64 #1 SMP Fri Jun 11 09:38:12 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux

ffmpeg version is:
FFmpeg version 0.6-rpmfusion, Copyright (c) 2000-2010 the FFmpeg developers
 built on Jul 27 2010 03:51:42 with gcc 4.4.4 20100630 (Red Hat 4.4.4-10)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg
--incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
--arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic' --extra-version=rpmfusion --enable-bzlib --enable-libdc1394
--enable-libdirac --enable-libfaad --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf
--enable-postproc --enable-pthreads --disable-static --enable-shared
--enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64
--enable-runtime-cpudetect
  libavutil     50.15. 1 / 50.15. 1
 libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
 libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
 libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
FFmpeg 0.6-rpmfusion
libavutil     50.15. 1 / 50.15. 1
libavcodec    52.72. 2 / 52.72. 2
libavformat   52.64. 2 / 52.64. 2
libavdevice   52. 2. 0 / 52. 2. 0
libavfilter    1.19. 0 /  1.19. 0
libswscale     0.11. 0 /  0.11. 0
libpostproc   51. 2. 0 / 51. 2. 0


Thanks,


Leo
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: dvbsub problem

csr@statsbiblioteket.dk
Any ideas? I am having the same problem. I "just" need ffmpeg to remux a single program out of a multichannel transport-stream with dvbsub. We used to be able to do this with vlc, but vlc can't handle the newest ts-muxes that the Danish broadcasters started sending out in January.

Colin Rosenthal
State and University Library
Aarhus, Denmark
Reply | Threaded
Open this post in threaded view
|

Re: dvbsub problem

Carl Eugen Hoyos
csr <at> statsbiblioteket.dk <csr <at> statsbiblioteket.dk> writes:

> Any ideas?

While it is often a good idea to search the mailing lists for
similar problems, answering a 14 month old mail that did not
contain sufficient information to test / reproduce anything and
offering even less information is not useful.

Please provide command line and complete, uncut console output
(and explain - again - what is wrong with the output file).

(If remuxing dvbsub really doesn't work, mplayer will probably
work for your specific problem.)

Carl Eugen

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

Re: dvbsub problem

JULIAN GARDNER
In reply to this post by csr@statsbiblioteket.dk
Hi Colin, let me know what the problem is, we are based in Aarhus and already take DVBSUBS and hard burn them onto our encoded streams

joolz




>________________________________
> From: "[hidden email]" <[hidden email]>
>To: [hidden email]
>Sent: Thursday, 9 February 2012, 9:58
>Subject: Re: [FFmpeg-user] dvbsub problem
>
>Any ideas? I am having the same problem. I "just" need ffmpeg to remux a
>single program out of a multichannel transport-stream with dvbsub. We used
>to be able to do this with vlc, but vlc can't handle the newest ts-muxes
>that the Danish broadcasters started sending out in January.
>
>Colin Rosenthal
>State and University Library
>Aarhus, Denmark
>
>--
>View this message in context: http://ffmpeg-users.933282.n4.nabble.com/dvbsub-problem-tp2734519p4372353.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: dvbsub problem

csr@statsbiblioteket.dk
In reply to this post by Carl Eugen Hoyos
Hi Carl Eugen,

No problem.

/usr/bin/ffmpeg -i mux1.flight93.ts  -codec copy -map 0:3 -map 0:7 -map
0:11 -f mpegts -y out.ts 2>err.out

and the console output is attached.

The problem is that the output file has a dvbsub stream but the stream
is empty. There are no subtitles visible when you play it in vlc.
The same stream in the original file is not empty - it has
danish-language subtitles.

If I try to dump only the dvbsub stream with ffmpeg:

/usr/bin/ffmpeg -i mux1.flight93.ts -an -vn -scodec copy  -map 0:11  -f
mpegts   -y out.ts
I get the following (truncated this time, but you can have the full
output if you like):


Output #0, mpegts, to 'out.ts':
   Metadata:
     encoder         : Lavf53.24.2
     Stream #0:0(dan): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream mapping:
   Stream #0:11 -> #0:0 (copy)
Press [q] to stop, [?] for help
PES packet size mismatch59:00.14 bitrate=   0.1kbits/s
[mpegts @ 0xeb27a0] PES packet size mismatch
     Last message repeated 4 times
size=     162kB time=02:59:01.75 bitrate=   0.1kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead inf%
Output file is empty, nothing was encoded (check -ss / -t / -frames
parameters if used)

Note that the output file is not zero size.

best regards,
Colin


On 09-02-2012 11:11, Carl Eugen Hoyos wrote:

> csr<at>  statsbiblioteket.dk<csr<at>  statsbiblioteket.dk>  writes:
>
>> Any ideas?
> While it is often a good idea to search the mailing lists for
> similar problems, answering a 14 month old mail that did not
> contain sufficient information to test / reproduce anything and
> offering even less information is not useful.
>
> Please provide command line and complete, uncut console output
> (and explain - again - what is wrong with the output file).
>
> (If remuxing dvbsub really doesn't work, mplayer will probably
> work for your specific problem.)
>
> 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

err.out (36K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: dvbsub problem

Carl Eugen Hoyos
Colin Rosenthal <csr <at> statsbiblioteket.dk> writes:

> /usr/bin/ffmpeg -i mux1.flight93.ts -an -vn -scodec copy  -map 0:11  -f
> mpegts   -y out.ts
> I get the following (truncated this time, but you can have the full
> output if you like):

Please provide command line and complete, uncut console output
(and explain - again - what is wrong with the output file).

Please do not top-post, it is considered rude here, Carl Eugen

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

Re: dvbsub problem

csr@statsbiblioteket.dk
On 09-02-2012 11:40, Carl Eugen Hoyos wrote:

> Colin Rosenthal<csr<at>  statsbiblioteket.dk>  writes:
>
>> /usr/bin/ffmpeg -i mux1.flight93.ts -an -vn -scodec copy  -map 0:11  -f
>> mpegts   -y out.ts
>> I get the following (truncated this time, but you can have the full
>> output if you like):
> Please provide command line and complete, uncut console output
> (and explain - again - what is wrong with the output file).
>
> Please do not top-post, it is considered rude here, Carl Eugen
>

Are email attachments ok or would you prefer the output posted in directly?
/Colin
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: dvbsub problem

Carl Eugen Hoyos
Colin Rosenthal <csr <at> statsbiblioteket.dk> writes:

> > Please provide command line and complete, uncut console output
> > (and explain - again - what is wrong with the output file).
>
> Are email attachments ok or would you prefer the output posted
> in directly?

We don't want to overburden our users, I found a sample and
tested myself.

The problem is probably related to ticket #531, -copyinkf does not
work anymore (and only allowed to copy only subs anyway), feel free
to add yourself to CC there (or find out how to force keyframes for
subtitle streams).

Carl Eugen

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

Re: dvbsub problem

csr@statsbiblioteket.dk
On 09-02-2012 12:25, Carl Eugen Hoyos wrote:

> Colin Rosenthal<csr<at>  statsbiblioteket.dk>  writes:
>
>>> Please provide command line and complete, uncut console output
>>> (and explain - again - what is wrong with the output file).
>> Are email attachments ok or would you prefer the output posted
>> in directly?
> We don't want to overburden our users, I found a sample and
> tested myself.
>
> The problem is probably related to ticket #531, -copyinkf does not
> work anymore (and only allowed to copy only subs anyway), feel free
> to add yourself to CC there (or find out how to force keyframes for
> subtitle streams).
>
> Carl Eugen

Maybe - but in #531 extraction of dvbsub worked ok. It was dvb-teletext
that failed.
regards,
Colin

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

Re: dvbsub problem

Leo-2
In reply to this post by Carl Eugen Hoyos
On Thu, Feb 9, 2012 at 3:25 AM, Carl Eugen Hoyos <[hidden email]> wrote:

> Colin Rosenthal <csr <at> statsbiblioteket.dk> writes:
>
> > > Please provide command line and complete, uncut console output
> > > (and explain - again - what is wrong with the output file).
> >
> > Are email attachments ok or would you prefer the output posted
> > in directly?
>
> We don't want to overburden our users, I found a sample and
> tested myself.
>
> The problem is probably related to ticket #531, -copyinkf does not
> work anymore (and only allowed to copy only subs anyway), feel free
> to add yourself to CC there (or find out how to force keyframes for
> subtitle streams).
>
>
Not sure if my problem is at all related to Colin's problem since I don't
know all the details or different kinds of subtitling in dvb, but recently
I found patches that solved my problem.

The patches were originally discussed on the ffmpeg-devel mailing list on
the same day I posted my questions! It was proposed by Tomas Härdin and
included several iteration of patches. But it never got committed and the
ffmpeg.org pipermail deleted the attachments in the message. Took me a bit
of searching and I finally found the two patches that were included in his
discussion.

I will include them here and hopefully this can help with your issue. I
modified the patches so that it would work on my version of the source
0.8.4. You may still need to modify them to get it compiled. I also needed
to modify the Makefile.


Leo

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

dvbsub_option_4_2.patch (12K) Download Attachment
intra_only_subs.patch (750 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Problems building 0.10

Darryl Lewis
Not sure if anyone else has experienced this, but I'm getting the
following issue while trying to build 0.10 on OSX

HTML doc/ffmpeg.html
Unknown option: init-file
Try 'texi2html -help' for usage instructions.
make: *** [doc/ffmpeg.html] Error 2

I'm running the latest available version of texti2html, 1.64



_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user