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

JULIAN GARDNER joolzg at btinternet.com
Mon Jun 20 19:11:01 CEST 2011




>________________________________
>From: JULIAN GARDNER <joolzg at btinternet.com>
>To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
>Sent: Wednesday, 15 June 2011, 14:10
>Subject: Re: [FFmpeg-devel] {WIP} {HELP} Dvb Subtitles and Hard Subtitles
>
>>>I am a bit busy but if you have a reproduceable testcase i could try
>>>to take a look
>>>
>>>[...]
>>>-- 
>>>Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>>>
>>>The real ebay dictionary, page 1
>>>"Used only once"    - "Some unspecified defect prevented a second use"
>>>"In good condition" - "Can be repaird by experienced expert"
>>>"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
>>>
>>>_______________________________________________
>>>ffmpeg-devel mailing list
>>>ffmpeg-devel at ffmpeg.org
>>>http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>>
>>
>>Thanks for the offer, i have uploaded a file to
>>url: tvonip.dk
>>username: ffmpeg
>>password: devel
>>
>>The file is BitrateNotUpdate.ts
>>
>>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
>>
>>Will still work but the bitrate will stay at 0.0 until it finishes, but with a live stream ffmpeg seems to timeout and just drops to the cli without an error, for this you will need a much bigger file.
>>
>>joolz
>>
>>_______________________________________________
>>ffmpeg-devel mailing list
>>ffmpeg-devel at ffmpeg.org
>>http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>>
>
>Whilst hopefully Micheal is looking into the problem when dvbsubs being marked as available but not being present ive been testing different streams and have a few questions and problems.
>
>1. I have some AVIs with .sub and .idx files, now the problem is that the .sub says it starts at 77 seconds, but in the idx it says it starts at 127 seconds. Should we be able to use the idx file or should we be able to add an offset so the subtitles appear at the right time?
>
>2. Encode a file with hard subs and resized to cif all ok, do the same with soft subtitles and you get a mess as the subtitles are looking for a full frame, should be maybe look at resizing the subtitles before encoding depending on outgoing screen size?
>
>3. srt, any volounteers to change .srt to create a bitmap on decode?
>
>4. logo insertion? anybody want it adding. what i was thinking was to build a AVSubtitle struct with the logo, and as i do with hardsubs just add it to the screen.
>
>5. dvdsubs dont look as nice as they do on VLC.
>
>joolz
>
>_______________________________________________
>ffmpeg-devel mailing list
>ffmpeg-devel at ffmpeg.org
>http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>
>
Micheal, any news on the problem i mentioned!!! Did you download the test file?

Im only asking because i have tried to find the problem and have to say after looking into the code i cannot find the place that is causing this error. 


As i said before i am ready once this is sorted to put in a good few patches which make dvb subtitles a valid option, and also the hard subtitles as well.

Ive checked the main loop and found a couple of places that needed modding, one is where the PTSs of the streams are checked for the lowest value, but as no subtitles are available this is 0. so this is why we get the time as 0. This is in print_report.


On the bitrate i cannot find this, and also the intermittent data writes are messing up with my live streaming.

joolz



More information about the ffmpeg-devel mailing list