![]() ![]() Examining output.mp4 using MediaInfo tool.įormat settings, Reference frames : 2 framesįormat/Info : Advanced Audio Codec Low Complexity.Executing the "corrected" FFmpeg command (without -ss and -t):įfmpeg -y -hwaccel cuda -hwaccel_output_format cuda -i "input.mkv" -c:a copy -c:v h264_nvenc -c:s mov_text -map 0:v -map 0:a:0 -map 0:a:1 -map 0:s:0 -map 0:s:1 "output.mp4".Please choose an encoder manually.Įrror selecting an encoder for stream 0:3 Default encoder for format mp4 (codec none) is probably disabled. Execute the FFmpeg command from the question for reproducing the error message:įfmpeg -y -hwaccel cuda -hwaccel_output_format cuda -i "input.mkv" -c:a copy -c:v h264_nvenc -ss 00:00:13 -t 30 -map 0:v -map 0:a:0 -map 0:a:1 -map 0:s:0 -map 0:s:1 "output.mp4"Īutomatic encoder selection failed for output stream #0:3.Create input.mkv with synthetic video, two synthetic audio streams, and two subtitles streams using FFmpeg (for testing):įfmpeg -y -f lavfi -i testsrc=size=384x206:rate=1 -f lavfi -i sine=frequency=400 -f lavfi -i sine=frequency=1000 -sub_charenc CP1252 -i in0.srt -sub_charenc CP1252 -i in1.srt -map:v 0 -map:a 1 -map:a 2 -map:s 3 -map:s 4 -vcodec libx265 -crf 17 -pix_fmt yuv420p -acodec aac -ar 22050 -scodec ass -metadata:s:s:0 language=eng -metadata:s:s:1 language=ita -disposition:s:s:1 default+forced -t 10 input.mkv.Start by creating two subtitles text files:."stream #0:3" is a subtitle stream, and we have to specify the subtitle codec explicitly.įor testing, we may reproduce the issue using synthetic pattern with subtitles: You are experiencing the issue " FFmpeg doesn't auto-select subtitle codec for MP4" that described in the following ticket. ![]() We may select subtitles codec by adding -c:s mov_text argument, as described here:įfmpeg -y -hwaccel cuda -hwaccel_output_format cuda -i "input.mkv" -c:a copy -c:v h264_nvenc -c:s mov_text -ss 00:00:13 -t 30 -map 0:v -map 0:a:0 -map 0:a:1 -map 0:s:0 -map 0:s:1 "output.mp4"Īnother option is selecting MKV container instead of MP4 container:įfmpeg -y -hwaccel cuda -hwaccel_output_format cuda -i "input.mkv" -c:a copy -c:v h264_nvenc -ss 00:00:13 -t 30 -map 0:v -map 0:a:0 -map 0:a:1 -map 0:s:0 -map 0:s:1 "output.mkv"
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |