[FFmpeg-devel] {WIP} {HELP} Dvb Subtitles and Hard Subtitles

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Jun 20 21:24:30 CEST 2011


On Mon, Jun 20, 2011 at 07:58:41PM +0100, JULIAN GARDNER wrote:
> 
> 
> ----- Original Message -----
> > From: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> > To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> > Cc: 
> > Sent: Monday, 20 June 2011, 20:28
> > Subject: Re: [FFmpeg-devel] {WIP} {HELP} Dvb Subtitles and Hard Subtitles
> > 
> > On Mon, Jun 13, 2011 at 06:35:17PM +0100, JULIAN GARDNER wrote:
> >>  Thanks for the offer, i have uploaded a file to
> >>  url: tvonip.dk
> >>  username: ffmpeg
> >>  password: devel
> >> 
> >>  The file is BitrateNotUpdate.ts
> > 
> > Can't find, possibly not anymore?
> > 
> >>  If you use the command line
> >> 
> >>  ffmpeg -i BitrateNotUpdate.ts -f mpegts -y a.ts
> >> 
> >>  all is good, but
> >> 
> >>  ffmpeg -i BitrateNotUpdate.ts -scodec dvbsub -f mpegts -y a.ts
> > 
> > Tested with some other file, and it fails with non-monotonic timestamps
> > unless you comment out some of the DVB special-case in ffmpeg.c.
> > So I don't think this is reproducible without the exact patch-set
> > that you are using.
> > I commented out those
> > //    if (enc->codec_id == CODEC_ID_DVB_SUBTITLE)
> > //        nb = 2;
> > //    else
> > lines, but then it works just fine, none if the issue you describe,
> > at least not with my sample file.
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> ftp                 tvonip.dk
> user              ffmpeg
> password     devel
> file               BitrateNotUpdate.ts
> 
> this file has 3 streams marked, Video/Audio and Dvb Subtitles. problem is that there are no subtitles being sent at the time. If you follow my previous message you will see if you add  -scodec dvbsub you get encoding but no time and no bitrate update, also the output especially to udp is done in blocks with large gaps

You will probably want to change av_interleave_packet_per_dts,
the condition s->nb_streams == stream_count to be a bit more
forgiving concerning subtitle streams, otherwise data can only
be output when there's subtitle data, too.
(The condition basically waits until there's a packet from every
stream. I think it should be adapted to something "until there's
either a packet from every stream, or from every stream except
subtitle streams and all non-subtitle streams have at least
0.5 s of data buffered" - though even that's not bright for
udp).


More information about the ffmpeg-devel mailing list