Thread: [Encode2mpeg-users] v0.6.0 error: libmp3lame complains about <blank> Hz sample rate
Brought to you by:
encode2mpeg
From: Adam M. <ha...@gm...> - 2006-10-18 16:43:35
|
On startup I'm seeing this strange error: $ encode2mpeg -v -o output input.mpg -avionly -aid 128 -encode 3:2:2 -profile divxht **ERROR: [encode2mpeg] libmp3lame does not support Hz sample rate Any ideas? packages installed: lame-3.96.1-5.fc5 mplayer-1.0-0.28.pre8.fc5 mencoder-1.0-0.28.pre8.fc5 -- Adam Monsen |
From: Giacomo C. <co...@na...> - 2006-10-18 17:21:04
|
On Wed, Oct 18, 2006 at 09:43:04AM -0700, Adam Monsen wrote: > On startup I'm seeing this strange error: > > $ encode2mpeg -v -o output input.mpg -avionly -aid 128 -encode 3:2:2 > -profile divxht > **ERROR: [encode2mpeg] libmp3lame does not support Hz sample rate > > Any ideas? > > packages installed: > lame-3.96.1-5.fc5 > mplayer-1.0-0.28.pre8.fc5 > mencoder-1.0-0.28.pre8.fc5 > > -- > Adam Monsen For some reason encode2mpeg is failing to detect the sample rate of input.mpg. If you add -srate 48000 it should skip the check. 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 Giacomo |
From: Adam M. <ha...@gm...> - 2006-10-19 05:08:26
|
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") 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) Giacomo > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Encode2mpeg-users mailing list > Enc...@li... > https://lists.sourceforge.net/lists/listinfo/encode2mpeg-users > -- Adam Monsen |
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 |
From: Adam M. <ha...@gm...> - 2006-10-19 18:40:21
|
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: $ 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 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. 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. > [...] -- Adam Monsen |
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 |
From: Adam M. <ha...@gm...> - 2006-10-19 21:22:53
|
Ya, "-aid 128" was definitely wrong. The original command line seems to be working if I remove "-aid 128". I'll try 1-pass or patch my mplayer/mencoder. Thanks!! (more info below) On 10/19/06, Giacomo Comes <enc...@us...> wrote:[...] > 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. [...] > 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. Here you go... 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 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. Playing input.mpg. ID_VIDEO_ID=0 ID_AUDIO_ID=0 MPEG-PS file format detected. VIDEO: MPEG2 480x480 (aspect 2) 29.970 fps 6000.0 kbps (750.0 kbyte/s) ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== 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_AUDIO_CODEC=mp3 ID_AUDIO_FORMAT=80 ID_AUDIO_BITRATE=384000 ID_AUDIO_RATE=48000 ID_AUDIO_NCH=2 ID_LENGTH=3598.19 md5sum: Parsing suboptions. md5sum: Suboptions parsed OK. ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 480 x 480 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] 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 AO: [null] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... Exiting... (End of file) 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. > [...] -- Adam Monsen |
From: Giacomo C. <enc...@us...> - 2006-10-20 03:24:06
|
On Thu, Oct 19, 2006 at 02:22:43PM -0700, Adam Monsen wrote: > Ya, "-aid 128" was definitely wrong. The original command line seems to be > working if I remove "-aid 128". I'll try 1-pass or patch my > mplayer/mencoder. > > Thanks!! > > (more info below) > > On 10/19/06, Giacomo Comes <enc...@us...> wrote:[...] > > >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. > > [...] > > >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. > > > Here you go... > > > 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 > > 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. > > Playing input.mpg. > ID_VIDEO_ID=0 > ID_AUDIO_ID=0 > MPEG-PS file format detected. > VIDEO: MPEG2 480x480 (aspect 2) 29.970 fps 6000.0 kbps (750.0 kbyte/s) > ========================================================================== > Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 > AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) > Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) > ========================================================================== > 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_AUDIO_CODEC=mp3 > ID_AUDIO_FORMAT=80 > ID_AUDIO_BITRATE=384000 > ID_AUDIO_RATE=48000 > ID_AUDIO_NCH=2 > ID_LENGTH=3598.19 > md5sum: Parsing suboptions. > md5sum: Suboptions parsed OK. > ========================================================================== > Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough > VDec: vo config request - 480 x 480 (preferred colorspace: Mpeg PES) > Could not find matching colorspace - retrying with -vf scale... > Opening video filter: [scale] > 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 > AO: [null] 48000Hz 2ch s16le (2 bytes per sample) > Starting playback... > > > Exiting... (End of file) Intresting. video MPEG-2 480x480 audio (most probably) mp2 384kbps It looks like you have got an mpeg for a SVCD with mpeg multichannel audio. You could be able to convert the audio to ac3 5.1 with encode2mpeg. Giacomo |
From: Adam M. <ha...@gm...> - 2006-10-20 05:26:34
|
On 10/19/06, Giacomo Comes <enc...@us...> wrote:[...] > Intresting. > video MPEG-2 480x480 > audio (most probably) mp2 384kbps > > It looks like you have got an mpeg for a SVCD with mpeg multichannel > audio. > You could be able to convert the audio to ac3 5.1 with encode2mpeg. > [...] Mmm... yeah, that would be nice! Actually, it's an MPEG video right from my TV Tuner Card (Hauppauge WinTV PVR-350). I'm encoding some old VHS tapes. The Hauppauge works pretty well. Recording video is as simple as cat /dev/video > input.mpg -- Adam Monsen |
From: Giacomo C. <enc...@us...> - 2006-10-20 16:03:56
|
On Thu, Oct 19, 2006 at 10:26:31PM -0700, Adam Monsen wrote: > On 10/19/06, Giacomo Comes <enc...@us...> wrote:[...] > > >Intresting. > >video MPEG-2 480x480 > >audio (most probably) mp2 384kbps > > > >It looks like you have got an mpeg for a SVCD with mpeg multichannel > >audio. > >You could be able to convert the audio to ac3 5.1 with encode2mpeg. > > > [...] > > Mmm... yeah, that would be nice! > > Actually, it's an MPEG video right from my TV Tuner Card (Hauppauge WinTV > PVR-350). I'm encoding some old VHS tapes. > > The Hauppauge works pretty well. Recording video is as simple as > cat /dev/video > input.mpg Well, if you are recording from VHS tapes I doubt they contain 5.1 audio. But I'm corious about the mpeg made by your TV Tuner Card. Can I have a small sample? few MB are enough. Thanks. Giacomo |