Re: [PATCH] [media] uvcvideo: Fix clock param realtime setting

2014-04-01 Thread Olivier Langlois
Hi Laurent, On Tue, 2014-04-01 at 15:49 +0200, Laurent Pinchart wrote: Hi Olivier, On Sunday 30 March 2014 00:23:01 Olivier Langlois wrote: Hi Laurent, Yes. ffmpeg uses wall clock time to create timestamps for audio packets from ALSA device. OK. I suppose I shouldn't drop

Re: [PATCH] [media] uvcvideo: Fix clock param realtime setting

2014-03-29 Thread Olivier Langlois
Hi Laurent, Yes. ffmpeg uses wall clock time to create timestamps for audio packets from ALSA device. OK. I suppose I shouldn't drop support for the realtime clock like I wanted to then :-) There is a bug in ffmpeg describing problems to synchronize audio and the video from a

Re: [PATCH] [media] uvcvideo: Fix clock param realtime setting

2014-03-28 Thread Olivier Langlois
Hi Laurent, On Fri, 2014-03-28 at 17:20 +0100, Laurent Pinchart wrote: Hi Olivier, Thank you for the patch. On Friday 28 March 2014 01:42:38 Olivier Langlois wrote: timestamps in v4l2 buffers returned to userspace are updated in uvc_video_clock_update() which uses timestamps fetched

Re: [PATCH] [media] uvcvideo: Fix clock param realtime setting

2014-03-28 Thread Olivier Langlois
Before applying this, I'm curious, do you have a use case for realtime time stamps ? Yes. ffmpeg uses wall clock time to create timestamps for audio packets from ALSA device. OK. I suppose I shouldn't drop support for the realtime clock like I wanted to then :-) There

[PATCH] [media] uvcvideo: Fix clock param realtime setting

2014-03-27 Thread Olivier Langlois
with ffmpeg: ffmpeg -y -f v4l2 -input_format yuyv422 -video_size 640x480 -framerate 30 -i /dev/video0 \ -f alsa -acodec pcm_s16le -ar 16000 -ac 1 -i default \ -c:v libx264 -preset ultrafast \ -c:a libfdk_aac \ out.mkv and inspecting the v4l2 input starting timestamp. Signed-off-by: Olivier