From: B N. <bp...@gm...> - 2009-02-20 20:16:35
|
Hi! I'm trying to convert an MP4 file to an AVI for use in my Philips DVP-642, using encode2mpeg 0.6.4, MEncoder 1.0rc2-4.2.3, and bash 3.1.17(2)-release. I run this command: encode2mpeg -o ted.avi -n n -avionly -profile DivXHT ../ted01.mp4 ... and get this in the terminal: /usr/local/bin/encode2mpeg: line 5736: ((: step >1 && <10800: syntax error: operand expected (error token is "<10800") [STDERR] ++ WARN: [encode2mpeg] mp2enc missing, using libavcodec instead [STDOUT] ... and then nothing, except ted.avi.log grows without bound. It contains: ### LOG: ted.avi [2009-02-20 14:01:59] INFO: [encode2mpeg] version 0.6.4 running in Vobsub Mode INFO: [encode2mpeg] command line: '-o ted.avi -n n -avionly -profile DivXHT ../ted01.mp4' ++ WARN: [encode2mpeg] mp2enc missing, using libavcodec instead MPEG: frameformat:VCD frameformat:VCD frameformat:VCD [repeating indefinitely] If I run encode2mpeg with "sh -x", I get the following: + logvar ' MPEG: ' + local i + echo -n ' MPEG: ' + (( i=0 )) + (( i < 8 )) + echo + echo 'frameformat:VCD ' + (( i++ )) + (( i < 8 )) + echo + echo 'frameformat:VCD ' + (( i++ )) [repeating indefinitely] Now if I disable logging by putting a "return" at line 6024, I pass that point, but then my log file gets stuck on this: INFO: [MPLAYERYUVOPT] ../ted01.mp4 -vf harddup -noframedrop -v -osdlevel 0 -vo yuv4mpeg:file=/dev/fd/4 -ao pcm:waveheader:fast:file=%11%ted.avi.wav INFO: [MPLAYERYUVOPT] ../ted01.mp4 -vf harddup -noframedrop -v -osdlevel 0 -vo yuv4mpeg:file=/dev/fd/4 -ao pcm:waveheader:fast:file=%11%ted.avi.wav [...] ... and the shell script is repeating this: + (( i<1 )) + s='INFO: \[MPLAYERYUVOPT] ${MPLAYERYUVOPT[*]}' + eval echo '\ \ \ INFO: \[MPLAYERYUVOPT] ${MPLAYERYUVOPT[*]}' ++ echo ' INFO:' '[MPLAYERYUVOPT]' ../ted01.mp4 -vf harddup -noframedrop -v -osdlevel 0 -vo yuv4mpeg:file=/dev/fd/4 -ao pcm:waveheader:fast:file=%11%ted.avi.wav + (( i++ )) + (( i<1 )) + s='INFO: \[MPLAYERYUVOPT] ${MPLAYERYUVOPT[*]}' + eval echo '\ \ \ INFO: \[MPLAYERYUVOPT] ${MPLAYERYUVOPT[*]}' ++ echo ' INFO:' '[MPLAYERYUVOPT]' ../ted01.mp4 -vf harddup -noframedrop -v -osdlevel 0 -vo yuv4mpeg:file=/dev/fd/4 -ao pcm:waveheader:fast:file=%11%ted.avi.wav + (( i++ )) So, it's looking to me like my shell isn't liking some of the constructs in encode2mpeg, but bash shell scripts aren't my strong point. To tell the truth, I'm playing with encode2mpeg just to extract the mencoder command-line options necessary to create a DVP-642-compatible file, so if anyone has those handy and can provide them, I'd happily thank you and go on my way. Or if I can get encode2mpeg working somehow, that would be great, too. I'd be happy to do more testing or provide more information. Thanks, Brian |