Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: Problems to convert pva->mpg
you can use PVAstrumento or the command line version CPVAS.exe,
both works fine with wine. I've written a little script that
generates a PVA job-file stats wine and /c/CPVAS.exe
converts vdr to mpg's. simply call
vdr2mpg /path/where/0xx.vdr-files/are
you must "mount" /c on C: and /video on G:
in wine.conf
Roland
--- vdr2mpg -----------------------
#!/bin/bash
#list all VDR-Files (ok 000..099)
FILES=`ls $1/0*.vdr`
if [ -z "$1"]; then
echo no params;
exit 1; # exit if we have no params
fi
for FILE in $FILES; do
echo "Converting: $FILE";
#only convert Files that aren't marked
if ! test -e $FILE.mark; then
./makeps.pl $FILE
#if .mpg exists, converting seems to be succesful-> mark
if test -e $FILE.mpg; then
touch $FILE.mark;
fi;
fi;
done
-----------------------------
--- makeps.pl ---------------
#!/bin/sh
# replace / to \ and /video to G:
# G: must be 'mounted' as /video in wine.conf
FILE=`echo $1 | sed -e 's/\/video/G:/g; s/\//\\\/g'`;
# Jobfile is in mountpoint c, replace / to _
JOBNAME=`echo $1 | sed -e 's/\/video\///g; s/\//_/g'`;
JOB=/c/$JOBNAME;
echo "Converting: $FILE";
echo "JOB-File: $JOB";
# creating JOB-File
" > $JOB;eryn pvas job v000101 # DO NOT DELETE THIS LINE
echo "\$JOB" >> $JOB;
echo "makeps $FILE $FILE.mpg" >> $JOB;
echo "\$PARMS" >>$JOB;
echo "loglevel 1" >>$JOB;
echo "fixstart 1" >>$JOB;
echo "sync 1" >>$JOB;
echo "dropgop 1" >>$JOB;
echo "ptsjitter 150000" >>$JOB;
echo "shortscan 0" >>$JOB;
echo "setbr 1" >>$JOB;
echo "setvbr 1" >>$JOB;
echo "setavg 1" >>$JOB;
echo "packsize 2048" >>$JOB;
echo "splitsize 0" >>$JOB;
echo "overlap 1" >>$JOB;
#Start Wine and cPVAS.exe
wine /c/cPVAS.exe c:\\$JOBNAME
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index