transcoding video help

Hi,

I’ve got some .mkv videos that I would like to re-encode, but in a good way.

Container is mkv
Video is mpeg-2
Audio is Vorbis

I’m streaming them over samba to a player. The player knows about the mkv container, and it knows about the mpeg-2 video codec but it knows naught of Vorbis. The result is a video with no sound :frowning:

I have done the obvious:

ffmpeg -i foo.mkv -sameq foo.avi

to get a nice avi which plays fine. But it takes ages to transcode (transcoding runs at ~70fps) so it takes 1/2 hour ish per video…

Is there a way of keeping the container as mkv, copying (ie not re-encoding) the video, but re-encoding only the audio into say aac (or mp3, or something)? Would that be faster?

Thanks!

You could try avidemux - no guarantees thou.

On 2012-05-11 15:16, weighty foe wrote:
> to get a nice avi which plays fine. But it takes ages to transcode
> (transcoding runs at ~70fps) so it takes 1/2 hour ish per video…

with “-acodec” you can adjust the audio codec. What I haven’t located is
what to put for same codification. Ah, ok, you want the other way round, to
reencode the audio but not the video. Well, then -vcodec something.

With -codecs you can see the available codecs. But I have not located which
one you need.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)