map 0:a:0 - means, that you want to take first audio stream from input fileĪudio will be copied, video stream will be reencoded. map "" - means, that you want to put into your output video processed by filter_complex stream (video + subtitles). :si=0 - means, that you want to take first subtitle stream from input file But frame durations can only be expressed as integers so the muxer alternates between 3753/90000 (one time) and 3754/90000. converts the MKV file to MP4 and it embeds the only the first subtitle stream into the output video. Using this command: ffmpeg -i my-vacation-video.mkv -codec copy -codec:s movtext test.m4v. You get 90000 / 24000 1000 3753.75, ie, each frame needs to be displayed for 3753.75/90000 seconds. source info (using mediainfo to retrieve this): video: h264 audio: AAC subtitles: several streams using ASS format. means, that you want to take first video stream from input file. That is not evenly divisible by a frame rate of 24000/1001. To burn-in subtitles you can read the link at the top of the message or find another subject here at the stackexchange.īasically you can burn-in subtitles from MKV to MP4 using this command ffmpeg -i input.mkv -filter_complex "subtitles=input.mkv:si=0" `-map ""` -map 0:a:0 -c:a copy output.mp4 This command with "-map 0" will put all available tracks into the output file: ffmpeg -i input.mkv -map 0 -c:v libx264 -c:a aac -c:s mov_text output.mp4 You can can input ffmpeg "myMovie.mkv" to look at the list of streams in the file. map 0:s:0 means, that you want to pick first subtitles track from first input file "myMovie.mkv". map 0:a:0 means, that you want to pick first audio track from first input file "myMovie.mkv". map 0:v:0 means, that you want to pick first video track from first input file "myMovie.mkv". ffmpeg -i myMovie.mkv -c copy -map 0:v:0 -map 0:a:0 -map 0:s:0 myMovieMP4.mp4 You can find detailed answer on your question hereīasically you need to add "-map" parameter to your command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |