Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ffmpeg give error while transcoding from MKV to MP4

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
linux4michelleWeb
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia

ffmpeg give error while transcoding from MKV to MP4

#1 Post by linux4michelleWeb »

Hello *,

I have a Mobile Media Player which support only MP4 and AVI files, which mean, I have to convert any MKV files (VoD) to MP4.

However, since the last upgrade of VLC two (?) weeks ago, I can not more convert anything!

I get always the error message
Automatic encoder selection failed for output stream #0:1.
Default encoder for format mp4 (codec none) is probably disabled.
Please choose an encoder manually.
Error selecting an encoder for stream 0:1
So an Internet search give me no answer, but some hints about a bug in ffmpeg.

It seems, if an MKV files has a subtitle in it and if they are NOT "text", then ffmpeg fail to convert the file.

Now I have played with some parameters and options to remove the subtitles but failed.

Can someone tell me what additional OPTION I need to convert the MKV file to MP4 please?

Currently I use

ffmpeg -i ${INPUT_FILE}.mkv -map 0 -map_metadata -1 ${MISSING_SUBTITLE_REMOVE_OPTION} ${OUTPUT_FILE}.mp4

Thanks in avance
Michelle

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: ffmpeg give error while transcoding from MKV to MP4

#2 Post by Segfault »

You are not transcoding, both MKV and MP4 are containers, you are remuxing. You can use mkvtoolnix to manipulate MKV files, also you could use Avidemux or similar tool to remux into MP4. Regarding ffmpeg, I'm no expert, but I think you need to map video and audio only to drop subtitles. Or use https://gpac.wp.imt.fr/mp4box/

linux4michelleWeb
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia

Re: ffmpeg give error while transcoding from MKV to MP4

#3 Post by linux4michelleWeb »

Grmpf, - now I know, why I can not convert some MKV to MP4:

It is the Sub-Title-Stream which is not automatically droped if I convert to MP4.
An additional

-map -0:s

is the trick.

Have a nice day
Michelle

Post Reply