Hi,

0n 07/06/[EMAIL PROTECTED]:46 Alex Samad told me:

> On Fri, Jun 22, 2007 at 07:08:45AM +1000, Alex Samad wrote:
> > On Thu, Jun 21, 2007 at 11:19:31AM +0200, Maik Holtkamp wrote:
> > > Hi,
> > > 
> > > 0n 07/06/[EMAIL PROTECTED]:20 Alex Samad told me:
> > > 
> > > > > I guess your only option would be, if you want to use transcode, -x
> > > > > mplayer,mplayer. But that requires mplayer.
> > > > > 
> > > > mplayer handles the sound, but crashes on the video :)
> > > > 
> > > > same problem with mencoder.
> > > > 
> > > > But I am guessing I could use mencoder to pull out the audio
> > > > and transcode to manage the video, then how to put it all
> > > > together ?
> > > 
> > > avimerge 
> > > 
> > > I have a canon ixus, which records a rubbish close to yours
> > > (input is 15 fps mjpeg). I use this script to convert the
> > > stuff to 25fps mpeg4:
> > > 
> > > ---cut ixus21mpeg4.sh---
> > > #!/bin/bash
> > > 
> > > transcode -i $1 -x auto,null -o /tmp/video_noSound.avi -F mpeg4 \
> > >           -y ffmpeg,null - export_fps 25,3 -f 15,13 -J modfps
> > > 
> > > mplayer $1 -ao pcm:file=/tmp/sound.wav -vc dummy -vo null
> > > 
> > > sox /tmp/sound.wav -r 44100 /tmp/sound_44100.wav
> > > 
> > > lame /tmp/sound_44100.wav /tmp/sound.mp3
> > > 
> > > avimerge -o ./video.avi -i /tmp/video_noSound.avi -p /tmp/sound.mp3
> > > 
> > > rm /tmp/video_noSound.avi /tmp/sound.wav /tmp/sound_44100.wav \
> > >    /tmp/sound.mp3
> > > ---cut---

> I have testing out the above script and it seems to do the job, but I would 
> like to 
> 
> 1) produce Divx output files - right now I need the ffdshow codec's for 
> windows, i no under mencoder there is the -ffourccDX50 option, how do I the 
> same with transcode

ffmpeg will flag the stream with FourCC "DIVX" (transcode -y ffmpeg
-F list). I don't know if there is some option in transcode/ffmpeg
to change this to DX50 on the fly, probably a hexedtior will do as
it should be compatible.
On the other hand you can use -y divx5, but as there were (are?)
some issues using -y divx(WhatEverVersion) I avoid it whereever I
can. If you have the choice I would prefer xvid over divx.

AFAIK the $EVIL_OS ffdshow codec should handle what ffmpeg/xvid
produced. I don't know much about MS codec handling but never had
any issues.

> 2) how do I make this a 2 pass encoding, I am presuming I can
> setup the transcode line to run twice. Could I then get ride of
> the avimerge and merge it with transcode ?

You can use -R (1|2). I myself don't use it, as I could not find any
_real_ (I am not that nitpicking) visible advantages between those 2
runs. IMHO it is most valuable, if you have to meet a fixed size
(e.g. 700MB or CD) for your video and want to minimize the waste of
bits. 

If you have any quality issues and file size is not that restricted,
incearsing the bitrate (-w defaults to 1800) would be the prefered
option, IMHO.

Of course you can add the sound using transcode (-p), but I would
prepare it with mplayer/sox/lame first. In spite [EMAIL PROTECTED] is a
crap itsself, handling this "borked sound" directly is even worse
for transcode.

-- 
bye maik

Attachment: pgpIo5yUwPTLX.pgp
Description: PGP signature

Reply via email to