Add other subtitle support [ASS]
Add support for others subtitle
Comments (19)
-
repo owner -
Account Deleted Samsung TV, basically transcode with other subtitule support like ASS
-
repo owner -
repo owner - changed version to 0.5
baking subtitles into video stream not supported by ffmpeg, will have to write some code for converting ASS into SRT
-
repo owner - changed status to open
related to
#16 -
repo owner - removed version
-
http://www.ffmpeg.org/libavfilter.html#ass Draw ASS (Advanced Substation Alpha) subtitles on top of input video using the libass library.
To enable compilation of this filter you need to configure FFmpeg with --enable-libass. This filter accepts in input the name of the ass file to render. For example, to render the file ‘sub.ass’ on top of the input video, use the command: ass=sub.ass
Not tested
-
Account Deleted - attached subtitleconverter.zip
Here is some code for converting SSA -> SRT and SUB -> SRT.
It works in memory but may be written to a new srt file.
-
Would it be the beginning of a new major feature?
But I did not have tested the libass filter.
-
Account Deleted libass filter and subtitles conversion could be complementary features.
-
repo owner - changed version to 1.2
-
Just try the libass and result seems good.
Downloaded Sintel Movie : http://ftp.nluug.nl/pub/graphics/blender/demo/movies/Sintel.2010.720p.mkv
Downloaded Srt file : http://durian.blender.org/wp-content/content/subtitles/sintel_en.srt
-
With Sintel mkv, you can also extract srt and transcode to ass then remux video and sub:
ffmpeg.exe -i Sintel.2010.720p.mkv -y -map 0:5 -scodec ass Sintelfr.ass
ffmpeg.exe -i Sintel.2010.720p.mkv -q:a 0 -q:v 0 -vf "ass=Sintelfr.ass" outfrremux.avi
-
From an external srt file: sintel_fr.srt (first line in srt should be removed)
ffmpeg.exe -i sintel_fr.srt -y -scodec ass sintel_fr_out.ass
ffmpeg.exe -i Sintel.2010.720p.mkv -q:a 0 -q:v 0 -vf "ass=sintel_fr_out.ass" OUT.avi
-
repo owner they now introduced "subtitles" filter, which will do the same as ass, but you can give it srt file, instead of ass - so the first step for external subs is not needed
https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2012-November/134900.html
-
You are talking about this avfilter ? I will try it...
http://ffmpeg.org/ffmpeg.html#subtitles-1
For libass on windows I followed this forum :
-
repo owner - changed status to resolved
-
Account Deleted Hello, I got a Samsung E series TV that doesn't support ASS subtitle format. When trying to Watch .MKV with embedded ASS nothing shows up using Serviio. This is why we need on-the-fly ASS to SRT Convert done by Serviio for transcode.
Best Luck for coding it.
-
repo owner It's already in 1.2 - read the docs
- Log in to comment
what device it this for?