Is there any way in ffmpeg to cut a video with embedded subtitles and multiple audio tracks accordingly? [closed]

I have a video which had multiple audio tracks and embedded subtitles. I tried using ffmpeg to cut it, but I could not get the subtitles with it, nor the audio tracks. Here’s the command I tried:

ffmpeg -i input.mkv -ss 00:01:16 -to 00:02:46 -map "[0:0]:v" -map "[0:3]:a" -map "[0:4]:s" -c copy output.mkv 

I tried using this command –

ffprobe -v info input.mkv

to collect information about the streams and substituted the streams, but for some reason it gave an error which read something along the lines of – Output with label 0:0 does not exist. Is there an alternative to achieve the result I wish?

Edit – I tried this command:

ffmpeg -i input.mkv -ss 00:01:16 -to 00:02:46 -map 0 -c:a copy -c:s copy output.mkv

It does the task BUT I have trouble seeing the video on my pc, it just shows a black screen (VLC) but on my mobile when I watch it using PLAYit, it works fine but I can’t see the first 8 seconds for some reason. Anyways fix for this?

  • This question could be answered on Super User


  • NVM, I got it fixed


I managed to solve the problem. Here’s the command just in case anyone’s suffering through the same issue:

ffmpeg -i input.mkv -ss 00:01:16 -to 00:02:46 -map 0 -c:v libx264 -c:a copy -c:s copy output.mkv

Leave a Comment