Hi everyone -
So, I have this DVD player that will take a usb stick and play divx/xvid avis, PAL or NTSC. I've used it dozens of times to watch various shows that I've downloaded.
Anyway, I recently downloaded some .mkv files that contain xvid mpeg-4 video and 48KHz sampled vorbis audio. Looking at the xvids that I have that work on my player, they are xvid mpeg-4 video and 48KHz sampled mp3 audio...
so, I was thinking it should be relatively straight forward to convert these mkvs into something I could watch.
My first shot was with DeVeDe. I had it make a DVD iso (and eventually tried every output I could muster), and the audio was always sync'd off from the video by like 5 seconds or so. I played with the audio delay feature in DeVeDe, but it didn't seem to help at all. I've used DeVeDe successfully to make DVDs out of other formats...and mplayer and all my other video players seem to play the original mkv correctly, so I gave up there.
Next I tried to make my own file. I figured out how to use the mkvinfo and then mkvextract tools to make a video.avi and an audio.ogg file. I then transcoded the audio.ogg file to an audio.mp3 file using the Sound Converter gui on my ubuntu box. I'm sure there is a command line transcoder, but the gui worked just fine.
I'm not sure how to assemble this video.avi and audio.mp3 into a real xvid video with sound, though. I tried to use avimerge, but it says that the video isn't avi.
specifically I tried:
avimerge -o my_output_xvid.avi -i video.avi -p audio.mp3
and it complained that:
scanning file video.avi for video/audio parameter
[avilib] V: 25.000 fps, codec=XVID, frames=66287, width=688, height=560
merging audio audio.mp3 track 0 (multiplexing) into 0 ...
AVI open: avilib - Not an AVI file
So here are my questions:
* Anyone have any idea how I can fix DeVeDe to not have the audio sync problem? It's always just worked...and the audio delay doesn't seem to work at all.
* anyone know how to assemble this video (mpeg-4) and audio (mp3) into an xvid4 .avi video?
* is there a simple command line solution for this? I took a look at transcode and there were way too many options for me to try to figure it out! namely some way to extract the audio/video, then convert (I guess just the audio) and then reassemble into xvid?
thanks!!
-arm




Bookmarks