VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Anonymous543
    Guest
    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?
    Quote Quote  
  2. ass = ssa

    g.e.
    Code:
    -c:s srt
    (where srt is the codec)
    Last edited by ProWo; 22nd Dec 2021 at 10:53.
    Quote Quote  
  3. Anonymous543
    Guest
    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
    Quote Quote  
  4. 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
    Quote Quote  
  5. -c:s copy

    or

    -c:s ass
    Quote Quote  
  6. Anonymous543
    Guest
    Okey
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!