Hi, Well if the audio comes first it means you are dropping audio frames making audio capture shorter than video, this usually means issues with the audio source, you seem to have confirmed this by changing to another mic and verifying that the recorded video works fine in that case. There could be several reasons to why these audio frames are dropped, from hardware/firmware to low level usb issues, does your dmesg output prints anything related to snd_usb_audio module?
Also are you sure cheese is using your camera mic? For what I understand it always uses the system default audio input (in your case is the pulse server virtual alsa device). Regards, Paulo 2011/9/7 Steffen <stes...@googlemail.com>: > Hi Paulo, > > I am using a quite powerful PC i5 2.8 8 Gig RAM, ... and even with > lowest settings, 640 x 480 the result is the same. The audio always > comes out first. If I choose a different audio source like my other > Logitech C525 or Lifecam VX-2000 the recording of the Lifecam Cinema is > fine and even syncron to audio. So I think it is a guvcview - uvc > problem. In cheese it is also ok but cheese unfortunately records in low > frame rates. > > Steffen > > > > > Am Mittwoch, den 07.09.2011, 16:58 +0100 schrieb Paulo Assis: >> Hi, >> if you are using any of the mpeg4 codecs, you will need a rather >> powerful cpu for encoding at high frame rates, specially at any decent >> resolution. >> As an example I don't have any special problems with the following >> configuration: >> >> device input: MJPEG 800x600@25 fps >> video codec - mpeg 4 - avc (h264) >> audio codec - mpeg2 >> container - matroska >> >> 2.8.38 - 64bit kernel >> hardware: intel QuadCore 2,8 Ghz (45nm), 4 GB ram >> >> but if I increase the input to 30 fps I'll only get about 28 when encoding. >> >> If you changed the codec to MJPEG, and still have issues then there >> could be something wrong with your setup, is the audio OK except for >> the sync issues? As for the sync issues, do you get the audio before >> the video or vice versa ? >> >> Regards, >> Paulo >> >> >> 2011/9/7 Steffen <stes...@googlemail.com>: >> > Hi Paolo, >> > >> > Thank you for your answer! >> > >> > I reduced the frame rate, resolution and changed the video codec. But >> > still the same. Sound and audio is still unsyncron in guvcview. Cheese >> > records all well but in 15 fps. >> > >> > Steffen >> > >> > >> > Am Mittwoch, den 07.09.2011, 09:35 +0100 schrieb Paulo Assis: >> >> Hi, >> >> guvcview detects some sync issues, it seems although you select 30 >> >> fps, for that resolution (1280x720) your hardware is just not powerful >> >> enough to decode the MJPG stream and re-encode it with whatever coded >> >> you are using. >> >> Some solutions: >> >> -reduce the fps >> >> -reduce the resolution >> >> -try using a less resource demanding video codec (MJPG will save the >> >> video stream directly to disk, no compression is done in this case, >> >> but it generates a huge file if compared with any of the mpeg codecs) >> >> -use the matroska container instead of avi, it is much better since >> >> individual frames are timed stamped. Avi only sets a average fps (15 >> >> according to your log) >> >> >> >> Regards, >> >> Paulo >> >> >> >> 2011/9/7 Steffen <stes...@googlemail.com>: >> >> > Hello, >> >> > >> >> > I am testing Microsoft Lifecam Cinema now, but I am not able to record >> >> > audio and video syncronusely with that cam and guvcview. The Logitech >> >> > C525 works but has a crappy image. Also cheese works with both cams but >> >> > has a little frame rate. Skype works for both. >> >> > >> >> > Do you have any ideas? I have already installed that medibuild version >> >> > of uvc and the latest guvcview from the ppa. But the same result even >> >> > with the old ubuntu natty versions. >> >> > >> >> > Steffen >> >> > >> >> > >> >> > >> >> > >> >> > _______________________________________________ >> >> > Linux-uvc-devel mailing list >> >> > Linux-uvc-devel@lists.berlios.de >> >> > https://lists.berlios.de/mailman/listinfo/linux-uvc-devel >> >> > >> >> > >> > >> > >> > > > > _______________________________________________ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel