Dynamic dvb subtitles

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

Dynamic dvb subtitles

Felipe Mogollon
Hi,

I am trying to generate a mpegts stream with live DVB subtitles.

I have managed to create DVB subtitles by doing some tricks with python +
spumux + ffmpeg and I can finally get a dvbsub file that contains subtitles.

If I mux dvbsubtitle file into a mpegts stream everything seems fine, just
a little bit out of sync.

ffmpeg  -re -f lavfi -i testsrc=size=1280x720:rate=30 -f mpegts -i
dvbsub.sub -vcodec h264_nvenc -g 10 -scodec dvbsub -f mpegts output.ts -y

My problem is when I try to generate live DVB subtitles:

I have tried to put dvbsub.sub input in loop mode:
ffmpeg  -re -f lavfi -i testsrc=size=1280x720:rate=30 -stream_loop -1 -i
dvbsub.sub  -vcodec h264_nvenc -g 10 -acodec aac -strict -2 -scodec dvbsub
-f mpegts output.ts -y

and generate new dvbsub.sub for each "chunk" of subtitles, but ffmpeg
doesn't seems to mux those new subtitles in the right way and "repeats" the
first ones in a "random" way.

Any suggestions about how to generate live subtitles and mux them in a live
way into de the mpegts stream?

Thanks in advance

Felipe

--

Juan Felipe Mogollón Rodríguez
Researcher | Investigador
Digital Media
+[34] 943 30 92 [hidden email]
Member of GraphicsMedia.net
Legal Notice - Privacy policy (http://www.vicomtech.org/en/proteccion-datos)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic dvb subtitles

Carl Eugen Hoyos-2
2019-02-20 17:18 GMT+01:00, Felipe Mogollon <[hidden email]>:

> Hi,
>
> I am trying to generate a mpegts stream with live DVB subtitles.
>
> I have managed to create DVB subtitles by doing some tricks with python +
> spumux + ffmpeg and I can finally get a dvbsub file that contains subtitles.
>
> If I mux dvbsubtitle file into a mpegts stream everything seems fine, just
> a little bit out of sync.
>
> ffmpeg  -re -f lavfi -i testsrc=size=1280x720:rate=30 -f mpegts -i
> dvbsub.sub -vcodec h264_nvenc -g 10 -scodec dvbsub -f mpegts output.ts -y
>
> My problem is when I try to generate live DVB subtitles:
>
> I have tried to put dvbsub.sub input in loop mode:
> ffmpeg  -re -f lavfi -i testsrc=size=1280x720:rate=30 -stream_loop -1 -i
> dvbsub.sub  -vcodec h264_nvenc -g 10 -acodec aac -strict -2 -scodec dvbsub
> -f mpegts output.ts -y
>
> and generate new dvbsub.sub for each "chunk" of subtitles, but ffmpeg
> doesn't seems to mux those new subtitles in the right way and "repeats" the
> first ones

This is what I would expect the option "-stream_loop" to do...

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

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic dvb subtitles

Felipe Mogollon
So, is there any way to do what I am trying?

I mean, I want to push new dvbsub subtitles in a live mpegts

Felipe



On Thu, Feb 21, 2019 at 12:34 AM Carl Eugen Hoyos <[hidden email]>
wrote:

> 2019-02-20 17:18 GMT+01:00, Felipe Mogollon <[hidden email]>:
> > Hi,
> >
> > I am trying to generate a mpegts stream with live DVB subtitles.
> >
> > I have managed to create DVB subtitles by doing some tricks with python +
> > spumux + ffmpeg and I can finally get a dvbsub file that contains
> subtitles.
> >
> > If I mux dvbsubtitle file into a mpegts stream everything seems fine,
> just
> > a little bit out of sync.
> >
> > ffmpeg  -re -f lavfi -i testsrc=size=1280x720:rate=30 -f mpegts -i
> > dvbsub.sub -vcodec h264_nvenc -g 10 -scodec dvbsub -f mpegts output.ts -y
> >
> > My problem is when I try to generate live DVB subtitles:
> >
> > I have tried to put dvbsub.sub input in loop mode:
> > ffmpeg  -re -f lavfi -i testsrc=size=1280x720:rate=30 -stream_loop -1 -i
> > dvbsub.sub  -vcodec h264_nvenc -g 10 -acodec aac -strict -2 -scodec
> dvbsub
> > -f mpegts output.ts -y
> >
> > and generate new dvbsub.sub for each "chunk" of subtitles, but ffmpeg
> > doesn't seems to mux those new subtitles in the right way and "repeats"
> the
> > first ones
>
> This is what I would expect the option "-stream_loop" to do...
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".



--

Juan Felipe Mogollón Rodríguez
Researcher | Investigador
Digital Media
+[34] 943 30 92 [hidden email]
Member of GraphicsMedia.net
Legal Notice - Privacy policy (http://www.vicomtech.org/en/proteccion-datos)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".