phabian
18th February 2014, 00:49
I've got some .mkv videos that (according to MediaInfo) contain these formats: Video = VC-1, Audio = WMA.
The videos play fine on my Windows machine, but I want to convert them so they can be played on my Android phone as well.
Usually I can convert one container format to another by just copying the streams, like this:
FFmpeg -i input.wmv -vcodec copy -acodec copy output.mp4
This doesn't seem to work for files with VC-1 / WMA content: it says "track 1: could not find tag, codec not currently supported in container".
I guessed track 1 is the sound, so I kept the -vcodec copy and used "-acodec aac", that didn't work either: "Codec is experimental but experimental codecs are not enabled, see -strict -2".
Instead, I tried "-acodec libvorbis" and that seemed to work, but it still can't be played on my Android phone.
I assume I have to transcode the video stream as well. But I have no idea what to fill in there, or what encoding params to specify (or even how to specify them). The aac and libvorbis for audio were more or less guesses (after looking through the help).
What command line should I use to convert input.mkv to output.mp4 so that the output file uses some more compatible audio & video formats? For example, x264 for video and mp3 or aac for audio?
Thanks!
The videos play fine on my Windows machine, but I want to convert them so they can be played on my Android phone as well.
Usually I can convert one container format to another by just copying the streams, like this:
FFmpeg -i input.wmv -vcodec copy -acodec copy output.mp4
This doesn't seem to work for files with VC-1 / WMA content: it says "track 1: could not find tag, codec not currently supported in container".
I guessed track 1 is the sound, so I kept the -vcodec copy and used "-acodec aac", that didn't work either: "Codec is experimental but experimental codecs are not enabled, see -strict -2".
Instead, I tried "-acodec libvorbis" and that seemed to work, but it still can't be played on my Android phone.
I assume I have to transcode the video stream as well. But I have no idea what to fill in there, or what encoding params to specify (or even how to specify them). The aac and libvorbis for audio were more or less guesses (after looking through the help).
What command line should I use to convert input.mkv to output.mp4 so that the output file uses some more compatible audio & video formats? For example, x264 for video and mp3 or aac for audio?
Thanks!