Re: [Encode2mpeg-users] v0.6.0 error: libmp3lame complains about <blank> Hz sample rate
Brought to you by:
encode2mpeg
From: Giacomo C. <enc...@us...> - 2006-10-19 20:12:42
|
On Thu, Oct 19, 2006 at 11:40:18AM -0700, Adam Monsen wrote: > On 10/19/06, Giacomo Comes <enc...@us...> wrote:[...] > > >Please run: > >yuvscaler </dev/null 2>&1 > >and post the output. > > > $ yuvscaler </dev/null 2>&1 > bash: yuvscaler: command not found > > DOH! I didn't have it installed. After installing the "mjpegtools" package > (I'm using Fedora Core 5) here's the result: > > $ yuvscaler </dev/null 2>&1 > INFO: [yuvscaler] yuvscaler 1.8.0 (15-02-2004) is a general scaling > utility for yuv frames > INFO: [yuvscaler] (C) 2001-2004 Xavier Biquard <xbi...@fr...>, > yuvscaler -h for help, or man yuvscaler > **ERROR: [yuvscaler] Could'nt read YUV4MPEG header! > > However, this doesn't seem to improve my original encode job. I still see: This was a simple bug about encode2mpeg checking for mjpegtools when it should not have done it. To be fixed in the next release. > > $ encode2mpeg -v -o output input.mpg -avionly -aid 128 -encode 3:2:2 > -profile divxht > **ERROR: [encode2mpeg] libmp3lame does not support Hz sample rate > > >I'll know sometime in the next 10 hours if it worked. Perhaps it's time > >for > >> a CPU upgrade. :) > > > This command line appeared to be working: > > encode2mpeg -v -o outout input.mpg -avionly -aid 128 -encode 3:2:2 -profile > divxht -srate 48000 > > But the resulting .avi file is zero bytes. There was an error... > > [...] > videocodec: libavcodec (640x480 fourcc=30355844 [DX50]) > [VE_LAVC] High quality encoding selected (non-realtime)! > [mpeg4 @ 0x86d734c]Error: 2pass curve failed to converge Two pass encoding is broken in mplayer 1.0pre8. You should: use 1 pass encoding, or patch mplayer (see the README) or use a recent SVN snapshot of mplayer. > Could not open codec. > FATAL: Cannot initialize video driver. > > Exiting... > INFO: [fixavi] fixing index in the avi stream > MEncoder 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team > CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (Family: 15, Model: 1, > Stepping: 2) > CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 > Compiled with runtime CPU detection. > > WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help. > success: format: 0 data: 0x0 - 0x0 > Win32 LoadLibrary failed to load: avisynth.dll, > /usr/lib/codecs/avisynth.dll, /usr/lib/win32/avisynth.dll, > /usr/local/lib/win32/avisynth.dll > Seek failed > ============ Sorry, this file format is not recognized/supported > ============= > === If this file is an AVI, ASF or MPEG stream, please contact the author! > === > Cannot open demuxer. > > Exiting... > mv: cannot stat `output.tmp': No such file or directory > INFO: [encode2mpeg] -vfr 4 may avoid skipping frames > ### LOG: heroes_s01_ep01 [2006-10-18 21:53:57] > INFO: [encode2mpeg] version 0.6.0 running in Avi Mode > INFO: [encode2mpeg] command line: '-v -o output input.mpg -avionly -aid > 128 -encode 3:2:2 -profile divxht -srate 48000' > MPEG: frameformat:VCD split:800 vfr:2 vbr:1152 abr:128 asr:44100 > audioformat:mp3 mp3:copy mpegencoder:mpeg2enc > AVI: encode:3:2:2 AUDIOPASS:-oac mp3lame -lameopts preset=standard > VIDEOPASS: -ovc lavc -lavcopts > vcodec=mpeg4:autoaspect:vrc_maxrate=8000:vrc_buf_size=3145:vbitrate=4000:psnr:mbd=2:keyint=300 > PASS:2 TURBO:on > INFO: [identify] ID_VIDEO_ID=0 > INFO: [identify] ID_AUDIO_ID=0 > INFO: [identify] ID_FILENAME=1005_20060926200000.mpg > INFO: [identify] ID_DEMUXER=mpegps > INFO: [identify] ID_VIDEO_FORMAT=0x10000002 > INFO: [identify] ID_VIDEO_BITRATE=6000000 > INFO: [identify] ID_VIDEO_WIDTH=480 > INFO: [identify] ID_VIDEO_HEIGHT=480 > INFO: [identify] ID_VIDEO_FPS=29.970 > INFO: [identify] ID_VIDEO_ASPECT=0.0000 > INFO: [identify] ID_LENGTH=3598.19 > INFO: [identify] ID_VIDEO_CODEC=mpeg12 > INFO: [MENCODERARG] -v input.mpg -aid 128 -vf harddup -srate 48000 > -af-adv force=1 -ofps 24 > INFO: [MPLAYERYUVOPT] output.avi -noframedrop -v -osdlevel 0 -vo > yuv4mpeg:file=/dev/fd/4 -nosound -benchmark > INFO: [YUVSCALEROPT] -v 1 -n -O VCD > INFO: [MPEG2ENCOPT] -f 2 -b 1152 -V 46 -B 137 -4 2 -2 1 -R 2 -g 6 -G 12 > -v 1 -S 800 -n -F 2 -s -r 16 > INFO: [MPLEXOPT] -f 2 -V -b 46 -r 5120 > INFO: [VCDIMAGEROPT] -t vcd2 > INFO: [CDRDAOOPT] --driver generic-mmc --device 0,0,0 > INFO: [GROWISOFSOPT] -dvd-compat -Z /dev/cdrecorder -dvd-video > INFO: [profile] using profile: DivX Home Theater > INFO: [setaspect] initial resolution: 480x480 aspect: 1.333333 > INFO: [setaspect] final resolution: 640x480 > INFO: [setaspect] -vf scale=640:480,expand=640:480 > INFO: [mencoder] MEncoder 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team > INFO: [mencoder] ==> Found video stream: 0 > INFO: [mencoder] ==> Found audio stream: 0 > INFO: [fixavi] fixing index in the avi stream > INFO: [encode2mpeg] -vfr 4 may avoid skipping frames > AVI: > AVI: output.avi is 0 bytes, 0.0 B > JOBEND: output [2006-10-18 22:54:39] (1h0m42s) > > > [...] > > >Ok, the trouble you had are due to the fact that input.mpg does not have > >an > >audio stream. Only video. Or at least mplayer is not able to identify the > >audio > >stream. > >Does "mplayer input.mpg" play with audio or not? > > > Yes, it does play with audio. But I'm sure "mplayer input.mpg -aid 128" will not :-). I think you were using -aid 128 with the encode2mpeg command line but the audio stream present in input.mpg does not have aid 128 but 0. Please run this time: mplayer -msglevel identify=6 -vo md5sum:outfile=/dev/null -ao null -nocache -frames 0 input.mpg and post the output. Just to be sure. So, if you omit -aid 128 or use -aid 0 (or whatever audio stream id is present in input.mpg) and use 1 pass encoding it should work. Giacomo |