[FFmpeg-devel] {WIP} {HELP} Dvb Subtitles and Hard Subtitles
Michael Niedermayer
michaelni at gmx.at
Tue Jun 21 04:08:42 CEST 2011
On Mon, Jun 20, 2011 at 09:24:30PM +0200, Reimar Döffinger wrote:
> 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).
A field could be added to AVStream that the user app can set to the
time until which no packet will occur for certain
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110621/c7143d78/attachment.asc>
More information about the ffmpeg-devel
mailing list