[FFmpeg-user] Burned Subtitles using .ass files for small time intervals(<1 sec) Issue
Aameer Rafiq Wani
aameer.rafiq at gmail.com
Tue Apr 12 14:00:05 CEST 2016
ffmpeg in script(http://aameer.github.io/cloud-computing-101/ ,
encoding_script_watermarked.sh, line 145):
(time ffmpeg -i $INPUT_VIDEO_FILE -profile:v baseline -level 4.0 -vf
"scale=-2:360,subtitles='dynamic_subtitle_'$VIDEO_ID'.ass':force_style='FontName=Aaargh/Aaargh.ttf,PrimaryColour=&H664c4c4c"
-start_number 0 -hls_time 10 -hls_list_size 0 -f hls
s3_temp/your_bucket/$PROJECT_ID/videos/$VIDEO_ID/$VIDEO_ID"_360_.m3u8"
&& echo "360 version:" >> encoding_logs.log ) 2>> encoding_logs.log &
which would tranlate to sample ffmpeg command used as under:
ffmpeg -i 3553_1.mp4 -profile:v baseline -level 4.0 -vf
scale=-2:360,subtitles='dynamic_subtitle_'3861'.ass':force_style='FontName=Aaargh/Aaargh.ttf,PrimaryColour=&H664c4c4c
-start_number 0 -hls_time 10 -hls_list_size 0 -f hls
/mnt/s3_temp/bucket_name/3547/videos/3861/3861_360_.m3u8
thanks,
aameer
On Tue, Apr 12, 2016 at 5:24 PM, Aameer Rafiq Wani <aameer.rafiq at gmail.com>
wrote:
> I am attaching one of sample full console outputs with this mail, I am not
> sure what you meant by short .ass file I have just two lines of dailog in
> my .ass file, as I need two texts anything shorter than that wont serve my
> purpose, again the script which generates the .ass files is here(
> http://aameer.github.io/cloud-computing-101/
> encoding_script_watermarked.sh line 102) and sample ass file which I am
> using is as under:
> [Script Info]
> ; Script generated by FFmpeg/Lavc57.24.103
> ScriptType: v4.00+
> PlayResX: 384
> PlayResY: 288
>
> [V4+ Styles]
> Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour,
> OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX,
> ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL,
> MarginR, MarginV, Encoding
> Style:
> Default,Arial,16,&H99999999,&H99999999,&H0,&H0,0,0,0,0,100,100,0,0,1,0,0,2,40,40,63,0
> Style:
> Hidden,Arial,16,&H99999999,&H99999999,&H0,&H0,0,0,0,0,100,100,0,0,1,0,0,6,40,40,63,0
>
> [Events]
> Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect,
> Text
> Dialogue: 0,0:00:00.00,1:59:30.783,Default,,0,0,0,,full test for all
> Dialogue: 0,0:39:50.927,0:39:51.077,Hidden,,0,0,10,,full test for all
>
> moreover the ffmpeg command which I use is shown here (
> http://aameer.github.io/cloud-computing-101/
> encoding_script_watermarked.sh line 145)
>
> the echo output on 140 can be seen in output log file too.
>
> is that the place where you are asking me to use "-f lavfi -i testsrc
> (or color)" ?. I am sorry but I couldn't understand you properly there.
>
> Also please find the sample uncut log attached with this mail.
>
> Please let me know if you need anything else which could help us debug
> this.
>
> Thanks,
> aameer
>
>
>
>
> On Tue, Apr 12, 2016 at 5:03 PM, Carl Eugen Hoyos <cehoyos at ag.or.at>
> wrote:
>
>> Aameer Rafiq Wani <aameer.rafiq <at> gmail.com> writes:
>>
>> > when I was tryign to burn the subtitles for larger videos the
>> > subtitle sometimes wouldnt show up for time intervals less than
>> > 1 sec
>>
>> Can you provide a command line with -f lavfi -i testsrc (or color)
>> and a very short ass file to reproduce?
>> Please also provide the complete, uncut console output.
>>
>> Carl Eugen
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
>
>
> --
> Regards,
> AAMEER RAFIQ WANI
> email: aameer.rafiq at gmail.com
> websites: aameer.github.io <aameer at github.io> / aameer.weebly.com
> Facebook: https://www.facebook.com/aameerrafiq.wani
> LinkedIn: http://in.linkedin.com/in/aameerwani
> Contact number: +919500083139
> Current location: Bangalore India.
>
--
Regards,
AAMEER RAFIQ WANI
email: aameer.rafiq at gmail.com
websites: aameer.github.io <aameer at github.io> / aameer.weebly.com
Facebook: https://www.facebook.com/aameerrafiq.wani
LinkedIn: http://in.linkedin.com/in/aameerwani
Contact number: +919500083139
Current location: Bangalore India.
More information about the ffmpeg-user
mailing list