11/8/2023 0 Comments Add subtitles to gif![]() ![]() ![]() vf/-af/-filter and -filter_complex cannot be used together for the same stream. When I am trying to combine them with this script: ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -vf "fps=15,scale=420:-1:flags=lanczos,palettegen" -y palette.pngįfmpeg -v warning -ss 10:00 -t 5 -i input.avi -i palette.png -vf "ass=subtitles.ass" -lavfi "fps=15,scale=420:-1:flags=lanczos paletteuse" -y output.gifįiltergraph 'ass=subtitles.ass' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph. The problem is that the first script gives me good quality without subtitles and the second gives me subtitles without good quality. Then I am using this script to add subtitles to gif: ffmpeg -v warning -i output.gif -vf "ass=subtitles.ass" -y outputWithSubs.gifĪll that works just fine. I generate a palette and then using it to output the gif. gif with good quality: ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -vf "fps=15,scale=420:-1:flags=lanczos,palettegen" -y palette.pngįfmpeg -v warning -ss 10:00 -t 5 -i input.avi -i palette.png -lavfi "fps=15,scale=420:-1:flags=lanczos paletteuse" -y output.gif
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |