On Thu, 29 Sep 2005 16:30:25 +0200
Carlo Capocasa <capocasa@gmx.net> wrote:
> After a bunch of cumbersome testing I was able to transcode a
> Quicktime MOV file to OGG with theora and Vorbis. The method's a bit
> fumbly, but it works... It is automatable except for the initial
> audio decoding.
>
> Software used: Xine, oggenc, ffmpeg, ffmpeg2theora, oggzmerge
>
> Step 1: Get the video out of Quicktime
>
> ffmpeg -i infile.mov -b 5000 -f mpeg2video outfile.mpg
>
> Step 2: Get the video into theora
>
> ffmpeg2theora -v 3 outfile.mpg
>
> Step 3: Get the audio out of Quicktime
>
> xine infile.mov
> (Select 'File' for audio output plugin and play the whole clip
once)
>
> Step 4: Get the audio into Vorbis
>
> oggenc -q -1 --downmix xine-out.wav
>
> Step 5: Merge the results to the finished video
>
> oggzmerge outfile.mpg.ogg xine-out.ogg -o outfile.ogg
>
>
> Hope this is helpful to someone... Improvements welcome.
>
> Carlo
Hi,
Thank you for your howto, here is mine.
I use mplayer and encoder_example to do the job.
mencoder -ovc lavc -oac lavc -lavcopts
acodec=mp3:abitrate=128:vqscale=2 -vf crop,scale MyVideo.mov -ofps 25
rm -f stream*
mkfifo -m 0600 stream.yuv stream.wav
mplayer test.avi -channels 1 -af resample=22050:1:1,channels=1,volnorm
-ao pcm:file=stream.wav -vo null -vc null -quiet&>mplayer-audio.log &
mplayer test.avi -vo yuv4mpeg -ao null -sws 7 -nosound -quiet -vf
crop,scale,pp=v1/h1/dr,smartblur=5:0.2:-30,smartblur=5:0.1:30,decimate=2:1000:1600:.001
-ssf cgb=1 &>mplayer-video.log &
encoder_example -a -1 -v 5 -o MyVideo.Theora.ogg stream.wav stream.yuv
It always worked in my cases.
Best regards
--
ZikZak
http://gameclash.org