I take the liberty to come and ask for help from the community following a problem with ffmpeg that I can't solve on my own.
I need to recover a video track from a 1.mkv file, an audio track from another 2.mkv file and convert it to aac and a subtitle track from one of the 2 files (it's identical) and put it back in a .mkv file.
I manage to recover the video and the audio of their respective files, on the other hand as soon as I ask for the copy of the subtitle stream the audio file is corrupted, that is to say that I have some sound at the beginning then it cuts, then comes back for a few seconds later in the video, whereas if I don't integrate the sst track the audio works very well.
Here is my command:
Code: Select all
ffmpeg -i "S01E01.mkv" -i "OUT_S01E01.mkv" -map 1:v:0 -vcodec copy -map 0:a:0 -acodec aac -b:a 128k -map_metadata -1 -map 0:s:0 -scodec copy -f matroska "test.mkv"
Thank you in advance.
Edit: sorry for my bad translation, I use an online translator.