Gentoo Archives: gentoo-user

From: meino.cramer@×××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] No Sound while video capturing with guvcview
Date: Sun, 08 May 2011 11:41:32
Message-Id: 20110508114012.GF9337@solfire
In Reply to: Re: [gentoo-user] No Sound while video capturing with guvcview by Kfir Lavi
1 Kfir Lavi <lavi.kfir@×××××.com> [11-05-08 13:28]:
2 > On Sun, May 8, 2011 at 12:35 PM, <meino.cramer@×××.de> wrote:
3 >
4 > > Kfir Lavi <lavi.kfir@×××××.com> [11-05-08 11:32]:
5 > > > On Sun, May 8, 2011 at 12:00 PM, <meino.cramer@×××.de> wrote:
6 > > >
7 > > > > Hi,
8 > > > >
9 > > > > may be one can help me...
10 > > > >
11 > > > > I am using a webcam (lsusb: Bus 001 Device 002: ID 1415:2000 Nam Tai
12 > > > > E&E Products Ltd. or OmniVision Technologies, Inc. Sony Playstation
13 > > > > Eye) on my window board to capture videos from the crow, which often
14 > > > > visits me in summer.
15 > > > >
16 > > > > The PS-Eye cam has one (four?) microphones to capture audio and
17 > > > > delivers up to 60 fps.
18 > > > >
19 > > > > The setup was working last summer with video AND audio.
20 > > > >
21 > > > > This summer only video is captured. The resulting video file
22 > > > > seems to contain a "null audio" (no sound samples other than
23 > > > > zeroes...)
24 > > > >
25 > > > > When playing the file with mplayer, this is the output on the terminal
26 > > > > (the video plays ok beside the fact that there is no sound to hear...)
27 > > > >
28 > > > > [aviheader] Video stream found, -vid 0
29 > > > > [aviheader] Audio stream found, -aid 1
30 > > > >
31 > > > > Badly interleaved AVI file detected - switching to -ni mode...
32 > > > > AVI: No audio stream found -> no sound.
33 > > > > VIDEO: [MJPG] 640x480 24bpp 60.094 fps 29695.7 kbps (3625.0
34 > > > > kbyte/s)
35 > > > > Clip info:
36 > > > > Title:
37 > > > > Software: guvcview-1.4.5
38 > > > > Comments: Sun May 8 09:51:35 2011
39 > > > >
40 > > > >
41 > > ==========================================================================
42 > > > > Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
43 > > > > Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
44 > > > >
45 > > > >
46 > > ==========================================================================
47 > > > >
48 > > > >
49 > > ==========================================================================
50 > > > > Opening audio decoder: [pcm] Uncompressed PCM audio decoder
51 > > > > AUDIO: 44100 Hz, 1 ch, s16le, 705.6 kbit/100.00% (ratio:
52 > > 88200->88200)
53 > > > > Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
54 > > > >
55 > > > >
56 > > ==========================================================================
57 > > > > AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
58 > > > > Starting playback...
59 > > > > Movie-Aspect is undefined - no prescaling applied.
60 > > > > VO: [gl2] 640x480 => 640x480 Planar 422P
61 > > > > [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is
62 > > > > ok!)
63 > > > > [gl2] antialiasing off
64 > > > > [gl2] bilinear linear
65 > > > > A: -0.0 V: 1.3 A-V: -1.265 ct: -0.126 77/ 77 14% 88% 0.0% 0 0
66 > > > > Capturing not enabled (forgot -capture parameter?)
67 > > > > A: -0.0 V: 14.8 A-V:-14.844 ct: -1.486 893/893 10% 89% 0.0% 0 0
68 > > > >
69 > > > > What can I do/check/test/experiment to get back the audio again....?
70 > > > >
71 > > > > Thank you very much for any help in advance!
72 > > > >
73 > > > > Have a nice sunday!
74 > > > > Best regards
75 > > > > mcc
76 > > > >
77 > > > >
78 > > > > From your output it shows that the sound is not null.
79 > > > Does your sound works playing other files (alsamixer)?
80 > > > Can you record now a picture with the webcam and play it with sound
81 > > after?
82 > > >
83 > > > Kfir
84 > >
85 > > Hi Kfir,
86 > >
87 > > thank you for your reply! :)
88 > >
89 > > sorry, English isn't my mothers tongue...
90 > >
91 > > When playing other videos there is no problem with the sound.
92 > >
93 > > What did you mean with
94 > >
95 > > "Can you record now a picture with the webcam and play it with sound
96 > > after?"
97 > >
98 > >
99 > > mcc
100 > >
101 > >
102 > > You said that this file is a recording of the webcam with sound.
103 > Can you record again from your webcam and then play the file?
104 > Does the file you record is the same compression algorithm as the file that
105 > doesn't work?
106 >
107 > Kfir
108
109 The settings (compression algo, audio samplerate and device and such)
110 are stored in a config file which I didnt't touch.
111 Currently, when I record from the webcam I get the effects described
112 above: Video yes, audio no with mplayer output as given above...
113
114 May /I have to change the settings/ for what reason ever?!?
115
116 mcc