Francesco Romani wrote:
On Thu, 2008-02-28 at 04:41 -0600, Carl Karsten wrote:
I am recording speech from /dev/dsp1 - the level is good, the a/d is good, the first 10 seconds sound fine. then it gets garbled. it may be mplayer. on one test mp crashed.

Here is what has worked best for me.  hoping someone can suggest better.

Almost any v4l device that I'm aware of delivers uncompressed, PCM
audio.

in case it matters, it may not be a v4l device.  it is a lxr -> usb adapter:
http://www.everythingusb.com/soundtech_lightsnake_usb_instrument_cable.html

So, please try (not in any particular order)
-x v4l,v4l
Audio: no sound

-x v4l,oss
[transcode] warning: /usr/lib/transcode/import_oss.so: cannot open shared object file: No such file or directory

doh!  I'll get on that.

-x v4l,raw
Audio: no sound

Below are the logs from v4l and raw.

Carl K


++ transcode -i /dev/video0 -p /dev/dsp1 -x v4l,v4l -g 720x400 -V rgb24 -y ffmpeg,wav -F h264 -N 0x1 -E 48 -b 48,0,6,2 -ab 384k -M 0 -k -w 1800,10 -o a/test02_28_14_36_54.avi -H 0 --encode_fields p -c 0-00:00:05
transcode v1.1.0-alpha7 (C) 2001-2003 Thomas Oestreich, 2003-2008 Transcode Team
[transcode] V: AV demux/sync    | (0) sync AV at PTS start - demuxer disabled
[transcode] V: import frame     | 720x400  1.80:1  encoded @ UNKNOWN
[transcode] V: rgb2bgr          | yes
[transcode] V: bits/pixel       | 0.250
[transcode] V: decoding fps,frc | 25.000,0
[transcode] V: video format     | RGB24
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]
[transcode] A: export format    | 0x1     PCM          [  48,16,2]    1 kbps
[transcode] V: export format    | unknown (module dependant)
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | [EMAIL PROTECTED]
[transcode] V: IA32/AMD64 accel | sse2 sse mmx cmove asm
[transcode] V: video buffer     | 10 @ 720x400 [0x1]
[transcode] A: audio buffer     | 10 @ 48000x2x16
[import_v4l.so] v0.0.6 (2006-05-08) (video) v4l | (audio) PCM
[export_wav.so] v0.3.0 (2006-03-16) (audio) WAVE PCM
[export_ffmpeg.so] v0.3.17 (2007-11-02) (video) Lavc51.48.0 | (audio) 
MPEG/AC3/PCM
[import_v4l.so] warning: this module is deprecated: please use import_v4l2 
instead
[import_v4l.so] video4linux audio grabbing
[import_v4l.so] audio blocksize 4096
[import_v4l.so] warning: this module is deprecated: please use import_v4l2 
instead
[import_v4l.so] video4linux video grabbing
[import_v4l.so] device has no audio channel
[import_v4l.so] (audio-):
[import_v4l.so] picture: brightness= 0% hue= 0% colour= 0% contrast= 0%
[import_v4l.so] 1 frame buffer(s) available
[import_v4l.so] dropping 24 video frames for AV sync
[export_ffmpeg.so] Using FFMPEG codec 'h264' (FourCC 'h264', H264 (avc)).
[export_ffmpeg.so] No profile selected
[export_ffmpeg.so] Starting 1 thread(s)
[export_ffmpeg.so] Set display aspect ratio to input
[libx264 @ 0xa5a56050]using SAR=1/1
[libx264 @ 0xa5a56050]using cpu capabilities: MMX MMXEXT SSE SSE2 Cache64
[libx264 @ 0xa5a56050]slice I:13    Avg QP: 5.23  size: 72989 0| 0|20)
[libx264 @ 0xa5a56050]slice P:112   Avg QP: 4.12  size:  5286
[libx264 @ 0xa5a56050]mb I  I16..4: 62.6%  0.0% 37.4%
[libx264 @ 0xa5a56050]mb P I16..4: 0.1% 0.0% 0.0% P16..4: 52.8% 0.0% 0.0% 0.0% 0.0% skip:47.1%
[libx264 @ 0xa5a56050]final ratefactor: 17.64
[libx264 @ 0xa5a56050]SSIM Mean Y:0.9996080
[libx264 @ 0xa5a56050]kb/s:2465.4
[import_v4l.so] critical: ioctl get: Invalid argument
[import_v4l.so] critical: ioctl set: Invalid argument

[transcode] encoded 125 frames (0 dropped, 0 cloned), clip length   5.00 s
[EMAIL PROTECTED]:~/vga2usb/tc$

**************************

[EMAIL PROTECTED]:~/a$ mplayer test02_28_14_36_54.avi
MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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 test02_28_14_36_54.avi.
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO:  [h264]  720x400  24bpp  25.000 fps  2466.9 kbps (301.1 kbyte/s)
Clip info:
 Software: transcode-1.1.0-alpha7
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
[h264 @ 0x88a96d8]out of range intra chroma pred mode at 3 2
[h264 @ 0x88a96d8]error while decoding MB 3 2
[h264 @ 0x88a96d8]Unknown NAL code: 0
[h264 @ 0x88a96d8]concealing 1081 DC, 1081 AC, 1081 MV errors
VDec: vo config request - 720 x 400 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.80:1 - prescaling to correct movie aspect.
VO: [xv] 720x400 => 720x400 Planar YV12
V:   1.8  45/ 45 24%  3%  0.0% 0 0
gnome_screensaver_control()
Exiting... (End of file)


**************************

++ transcode -i /dev/video0 -p /dev/dsp1 -x v4l,raw -g 720x400 -V rgb24 -y ffmpeg,wav -F h264 -N 0x1 -E 48 -b 48,0,6,2 -ab 384k -M 0 -k -w 1800,10 -o a/test02_28_14_41_29.avi -H 0 --encode_fields p -c 0-00:00:05
transcode v1.1.0-alpha7 (C) 2001-2003 Thomas Oestreich, 2003-2008 Transcode Team
[transcode] V: AV demux/sync    | (0) sync AV at PTS start - demuxer disabled
[transcode] V: import frame     | 720x400  1.80:1  encoded @ UNKNOWN
[transcode] V: rgb2bgr          | yes
[transcode] V: bits/pixel       | 0.250
[transcode] V: decoding fps,frc | 25.000,0
[transcode] V: video format     | RGB24
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]
[transcode] A: export format    | 0x1     PCM          [  48,16,2]    1 kbps
[transcode] V: export format    | unknown (module dependant)
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | [EMAIL PROTECTED]
[transcode] V: IA32/AMD64 accel | sse2 sse mmx cmove asm
[transcode] V: video buffer     | 10 @ 720x400 [0x1]
[transcode] A: audio buffer     | 10 @ 48000x2x16
[import_raw.so] v0.3.2 (2002-11-10) (video) RGB/YUV | (audio) PCM
[import_v4l.so] v0.0.6 (2006-05-08) (video) v4l | (audio) PCM
[export_wav.so] v0.3.0 (2006-03-16) (audio) WAVE PCM
[export_ffmpeg.so] v0.3.17 (2007-11-02) (video) Lavc51.48.0 | (audio) 
MPEG/AC3/PCM
[import_raw.so] tcextract -x pcm -i "/dev/dsp1" -d 0 | tcextract -a 0 -x pcm -d 0 -t raw
[import_v4l.so] warning: this module is deprecated: please use import_v4l2 
instead
[import_v4l.so] video4linux video grabbing
[import_v4l.so] device has no audio channel
[import_v4l.so] (audio-):
[import_v4l.so] picture: brightness= 0% hue= 0% colour= 0% contrast= 0%
[import_v4l.so] 1 frame buffer(s) available
[import_v4l.so] dropping -2147483623 video frames for AV sync
[export_ffmpeg.so] Using FFMPEG codec 'h264' (FourCC 'h264', H264 (avc)).
[export_ffmpeg.so] No profile selected
[export_ffmpeg.so] Starting 1 thread(s)
[export_ffmpeg.so] Set display aspect ratio to input
[libx264 @ 0xa5a54050]using SAR=1/1
[libx264 @ 0xa5a54050]using cpu capabilities: MMX MMXEXT SSE SSE2 Cache64
[extract_pcm.c] warning: no file type specified, assuming RAW stream
encoding frame [81/125],   1.06 fps,  65.3%, ETA: 0:00:41, ( 9| 0|11)
[libx264 @ 0xa5a54050]slice I:13    Avg QP: 2.92  size: 77426 9| 0|11)
[libx264 @ 0xa5a54050]slice P:112   Avg QP: 4.22  size:  6084
[libx264 @ 0xa5a54050]mb I  I16..4: 96.6%  0.0%  3.4%
[libx264 @ 0xa5a54050]mb P I16..4: 0.0% 0.0% 0.0% P16..4: 63.6% 0.0% 0.0% 0.0% 0.0% skip:36.4%
[libx264 @ 0xa5a54050]final ratefactor: 17.45
[libx264 @ 0xa5a54050]SSIM Mean Y:0.9984436
[libx264 @ 0xa5a54050]kb/s:2700.8
[import_v4l.so] critical: ioctl get: Invalid argument
[import_v4l.so] critical: ioctl set: Invalid argument

[transcode] encoded 125 frames (0 dropped, 0 cloned), clip length   5.00 s


[EMAIL PROTECTED]:~/a$ mplayer test02_28_14_41_29.avi
MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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 test02_28_14_41_29.avi.
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO:  [h264]  720x400  24bpp  25.000 fps  2702.2 kbps (329.9 kbyte/s)
Clip info:
 Software: transcode-1.1.0-alpha7
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
[h264 @ 0x88a96d8]non existing PPS referenced
[h264 @ 0x88a96d8]decode_slice_header error
Error while decoding frame!
[h264 @ 0x88a96d8]non existing PPS referenced
[h264 @ 0x88a96d8]decode_slice_header error
Error while decoding frame!
[h264 @ 0x88a96d8]non existing PPS referenced
[h264 @ 0x88a96d8]decode_slice_header error
Error while decoding frame!
[h264 @ 0x88a96d8]non existing PPS referenced
[h264 @ 0x88a96d8]decode_slice_header error
Error while decoding frame!
[h264 @ 0x88a96d8]non existing PPS referenced
[h264 @ 0x88a96d8]decode_slice_header error
Error while decoding frame!
[h264 @ 0x88a96d8]non existing PPS referenced
[h264 @ 0x88a96d8]decode_slice_header error
Error while decoding frame!
[h264 @ 0x88a96d8]non existing PPS referenced
[h264 @ 0x88a96d8]decode_slice_header error
Error while decoding frame!
[h264 @ 0x88a96d8]non existing PPS referenced
[h264 @ 0x88a96d8]decode_slice_header error
Error while decoding frame!
[h264 @ 0x88a96d8]non existing PPS referenced
[h264 @ 0x88a96d8]decode_slice_header error
Error while decoding frame!
VDec: vo config request - 720 x 400 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.80:1 - prescaling to correct movie aspect.
VO: [xv] 720x400 => 720x400 Planar YV12
V:   2.1  54/ 54 16%  1%  0.0% 0 0
gnome_screensaver_control()
Exiting... (End of file)
[EMAIL PROTECTED]:~/a$


Reply via email to