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 16:02:13
|
On Wed, Oct 18, 2006 at 10:08:24PM -0700, Adam Monsen wrote: > On 10/18/06, Giacomo Comes <co...@na...> wrote: > > > >For some reason encode2mpeg is failing to detect the sample rate of > >input.mpg. > >If you add -srate 48000 it should skip the check. > > > done. Encoding does appear to be happening, but I saw this: > > /home/adamm/bin/encode2mpeg: line 4477: ((: <10602: syntax error: operand > expected (error token is "<10602") This error is unrelated to the previous one and it won't affect the current encoding. Please run: yuvscaler </dev/null 2>&1 and post the output. > > I'll know sometime in the next 10 hours if it worked. Perhaps it's time for > a CPU upgrade. :) > > Please run this command: > >mplayer -msglevel identify=6 -vo md5sum:outfile=/dev/null -ao null > >-nocache -frames 0 input.mpg -aid 128 -v > >and post the output > > > Ok, here it is. By the way... input.mpg is 2.2GB. > > MPlayer 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: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 > > get_path('codecs.conf') -> '/home/adamm/.mplayer/codecs.conf' > Reading /home/adamm/.mplayer/codecs.conf: Can't open > '/home/adamm/.mplayer/codecs.conf': No such file or directory > Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No > such file or directory > Using built-in default codecs.conf. > CommandLine: '-msglevel' 'identify=6' '-vo' 'md5sum:outfile=/dev/null' '-ao' > 'null' '-nocache' '-frames' '0' 'input.mpg' '-aid' '128' '-v' > init_freetype > get_path('font/font.desc') -> '/home/adamm/.mplayer/font/font.desc' > font: can't open file: /home/adamm/.mplayer/font/font.desc > Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars) > Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay > Using Linux hardware RTC timing (1024Hz). > get_path('input.conf') -> '/home/adamm/.mplayer/input.conf' > Can't open input config file /home/adamm/.mplayer/input.conf: No such file > or directory > Can't open input config file /etc/mplayer/input.conf: No such file or > directory > Falling back on default (hardcoded) input config > Setting up LIRC support... > mplayer: could not connect to socket > mplayer: No such file or directory > Failed to open LIRC support. > You will not be able to use your remote control. > get_path('input.mpg.conf') -> '/home/adamm/.mplayer/input.mpg.conf' > > Playing input.mpg. > get_path('sub/') -> '/home/adamm/.mplayer/sub/' > [file] File size is 2334386176 bytes > STREAM: [file] input.mpg > STREAM: Description: File > STREAM: Author: Albeu > STREAM: Comment: based on the code from ??? (probably Arpi) > Checking for YUV4MPEG2 > ASF_check: not ASF guid! > Checking for NuppelVideo > Checking for REAL > Checking for SMJPEG > Searching demuxer type for filename input.mpg ext: .mpg > Checking for Nullsoft Streaming Video > Checking for MOV > Checking for VIVO > header block 1 size: 0 > AVS: avs_check_file - attempting to open file input.mpg > AVS: File is too big, aborting... > Checking for PVA > Checking for MPEG-TS... > TRIED UP TO POSITION 70796, FOUND 47, packet_size= 0, SEEMS A TS? 0 > Checking for LMLM4 Stream Format > Invalid packet in LMLM4 stream: ch=0 size=1140851704 > LMLM4 Stream Format not found > system stream synced at 0xD (13)! > ==> Found video stream: 0 > ID_VIDEO_ID=0 > ==> Found audio stream: 0 > ID_AUDIO_ID=0 > MPEG Stream reached EOF > ds_fill_buffer: EOF reached (stream: video) > MPEG-PS file format detected. > > Too many video packets in the buffer: (4096 in 7856228 bytes). > Maybe you are playing a non-interleaved stream/file or the codec failed? > For AVI files, try to force non-interleaved mode with the -ni option. > ds_fill_buffer: EOF reached (stream: audio) > MPEG: No audio stream found -> no sound. > Searching for sequence header... OK! > VIDEO: MPEG2 480x480 (aspect 2) 29.970 fps 6000.0 kbps (750.0 kbyte/s) > [V] filefmt:2 fourcc:0x10000002 size:480x480 fps:29.97 ftime:=0.0334 > get_path('sub/') -> '/home/adamm/.mplayer/sub/' > ID_FILENAME=input.mpg > ID_DEMUXER=mpegps > ID_VIDEO_FORMAT=0x10000002 > ID_VIDEO_BITRATE=6000000 > ID_VIDEO_WIDTH=480 > ID_VIDEO_HEIGHT=480 > ID_VIDEO_FPS=29.970 > ID_VIDEO_ASPECT=0.0000 > ID_LENGTH=3598.19 > md5sum: Parsing suboptions. > md5sum: outfile --> /dev/null > md5sum: Suboptions parsed OK. > ========================================================================== > Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough > VDec: vo config request - 480 x 480 (preferred colorspace: Mpeg PES) > Trying filter chain: vo > Could not find matching colorspace - retrying with -vf scale... > Opening video filter: [scale] > SwScale params: -1 x -1 (-1=no scaling) > Trying filter chain: scale vo > The selected video_out device is incompatible with this codec. > Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp. > VDecoder init failed :( > Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b > Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) > ========================================================================== > ID_VIDEO_CODEC=mpeg12 > Audio: no sound > Freeing 0 unused audio chunks. > Starting playback... > > Uninit video: libmpeg2 > vo: x11 uninit called but X11 not inited.. > > Exiting... (End of file) 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? If the source does not have audio, the proper solution in your case is to use -encode 0:2:2. I will fix encode2mpeg to output such message in case of source without audio. Giacomo |