how to convert vdr to divx?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 23, 2005 at 11:31:17AM +0200, Jukka Tastula wrote:
> On Wednesday 23 March 2005 08:19, Craig Sanders wrote:
> 
> > analysing the file with '-i' shows that it has an ac3 stream, mp2
> > stream, and a video stream.
> 
> That's probably it then. You should try the latest snapshot (050322); the 
> bugs page claims there's a fix for a problem with AC3 and vdr >1.3.19 (and 
> 1.3.23).

thanks.  that does the trick.

if anyone else is interested, my converter script now looks like this:

---cut here---
#! /bin/bash

# vdr2dix.sh [dir]
#
# e.g. vdr2divx.sh /video/FooBar/2005-03-22.23.59.99.99.rec
# will convert to divx & save as /video/DIVX/FooBar.2005.03.22.avi

# user-tweakable constants
OUTDIR='/video/DIVX'
TMPDIR='/video/tmp'
ARGS='-oac mp3lame -ovc lavc'

# arg processing
IN="$1"
show=$(echo "$IN" | sed -e 's=/video/==' -e 's=/.*==')
date=$(echo "$IN" | sed -e 's=.*\([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\).*=\1=')
OUT="$OUTDIR/$show.$date.avi"
#echo $IN "===>" $OUT


[ -e $TMPDIR/vdrsync1.mpg ] && rm -f $TMPDIR/vdrsync1.mpg

#echo vdrsync.pl $IN -mpeg2 -o $TMPDIR/
#echo mencoder $ARGS -o $OUT $TMPDIR/vdrsync1.mpg

vdrsync.pl $IN -mpeg2 -o $TMPDIR/
mencoder $ARGS -o $OUT $TMPDIR/vdrsync1.mpg

rm -f $TMPDIR/vdrsync1.mpg
---cut here---

it probably needs some tweaking of the mencoder arguments for optimum
quality/size, but it works as is.


craig

-- 
craig sanders <cas@xxxxxxxxxx>           (part time cyborg)



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux