[mythtv-users] writing VCDs
Michael J. Sherman
msherman at dsbox.com
Wed Mar 19 16:58:21 EST 2003
Attached is what I have compiled so far into a shell script for creating
VCDs. I get a seg fault in the mplex step because it looks like the
audio file isn't being created properly. Anyone have any thoughts?
--
Michael J. Sherman | Software Developer
Digital Sandbox, Inc. | http://www.dsbox.com/
-------------- next part --------------
#!/bin/sh
# Michael Sherman <msherman at dsbox dot com>
echo ""
echo "You are making a VCD image from a .nuv file. Good luck with all that."
if [ "$1" = "" ] ; then
echo "Usage: make_vcd.sh file ";
echo ""
exit;
fi
echo ""
echo "==============================================================================="
echo "Extracting audio..."
echo "==============================================================================="
nuvplay -e $1.nuv | toolame -b 224 -p 2 -m s /dev/stdin $1.mp2
echo ""
echo "==============================================================================="
echo "Extracting video..."
echo "==============================================================================="
exportvideo -Y 2 $1.nuv "|mpeg2enc -b 1152 -G 15 -g 15 -N -o $1.m1v"
echo ""
echo "==============================================================================="
echo "Creating final MPEG video file..."
echo "==============================================================================="
mplex -f 8 -V -b 500 -o $1.mpg $1.m1v $1.mp2
echo ""
echo "==============================================================================="
echo "Creating VCD .iso and .cue files..."
echo "==============================================================================="
vcdimager -c $1.cue -b $1.bin $1.mpg
echo ""
echo "==============================================================================="
echo "Cleaning up temp files..."
echo "==============================================================================="
rm $1.m1v $1.mp2 $1.mpg
echo ""
echo "Done."
echo ""
More information about the mythtv-users
mailing list