I was cutting some part of video with ffmpeg cli
without rencoding
Original video streams was
Stream 0 : video hevc
Stream 1 : audio ac3
Stream 2 : Subtitle ass
So I used this code
ffmpeg -ss 00:25:00 -i input.mkv -t 60 -c:v copy -c:a copy output.mkv
It gives this result
Stream 0 : video hevc > copy
Stream 1 : audio ac3 > copy
Stream 2 : subtitle ass > ssa
So with that code it converts subtitles format
Just like we specify
-c:v for video codec
-c:a for audio codec
How we can specify subtitles codecs?
Btw I did lil research and found that
ffmpeg -ss 00:25:00 -i input.mkv -t 60 -c:copy output.mkv
This copy all streams including subtitles also
Stream 0 : video hevc > copy
Stream 1 : audio ac3 > copy
Stream 2 : subtitle ass > copy
But just wanna know how we can specify subtitle codec in ffmpeg?
+ Reply to Thread
Results 1 to 6 of 6
-
Anonymous543Guest
-
ass = ssa
g.e.Code:-c:s srt
Last edited by ProWo; 22nd Dec 2021 at 10:53.
-
Anonymous543Guest
No I checked on Google
ass = Advanced SubStation Alpha (ASS) is a script for more advanced subtitles than SSA. It is technically SSA v4+
ssa : SubStation Alpha (or Sub Station Alpha), abbreviated SSA, is a subtitle file format created by CS Low (also known as Kotus) that allows for more advanced subtitles than the conventional SRT and similar formats. It is also the name of the popular, now discontinued tool used to edit subtitles.
Both different -
you can try to copy all streams and metadata:
Code:ffmpeg -ss 00:25:00 -t 60 -y -i %1 -map 0 -c copy -f matroska %~n1_60.mkv
Similar Threads
-
How to install ffmpeg cli in linux
By Anonymous543 in forum Newbie / General discussionsReplies: 3Last Post: 22nd Dec 2021, 10:45 -
Need help 2 pass encoding with ffmpeg cli in windows
By Anonymous543 in forum Newbie / General discussionsReplies: 28Last Post: 9th Dec 2021, 09:46 -
Color Space in x264 Via FFMPEG in CLI
By koberulz in forum Newbie / General discussionsReplies: 15Last Post: 11th May 2020, 12:48 -
Cannot find x264 codec device for FFmpeg transcoding
By Tom Ato in forum ProgrammingReplies: 2Last Post: 13th Feb 2020, 15:00 -
I want to export subtitles of images(pgs) with CLI
By hifumin in forum SubtitleReplies: 4Last Post: 3rd May 2018, 01:20