You are not logged in.

#1 2009-06-23 04:29:46

dieguito01
Member
From: Argentina - Buenos Aires
Registered: 2009-06-22
Posts: 5
Website

Capture video with ffmpeg error!

Hello, i can't capture video for my webcam.

[root@serverzona webcam]# ffmpeg -f video4linux -s 240x160 -r 30 -i /dev/v4l/video0 -f mp4 webcam.mp4

FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libtheora --enable-postproc --enable-shared --enable-pthreads --enable-x11grab --enable-swscale
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Apr 20 2009 01:37:42, gcc: 4.3.3
Input #0, video4linux, from '/dev/v4l/video0':
  Duration: N/A, start: 1245730954.895343, bitrate: 13823 kb/s
    Stream #0.0: Video: rawvideo, yuv420p, 240x160, 13823 kb/s, 30 tbr, 1000k tbn, 30 tbc
Output #0, mp4, to 'webcam.mp4':
    Stream #0.0: Video: mpeg4, yuv420p, 240x160, q=2-31, 200 kb/s, 90k tbn, 30 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
VIDIOCMCAPTURE: Invalid argument
frame=    1 fps=  0 q=3.4 Lsize=       8kB time=0.03 bitrate=2002.6kbits/s    
video:7kB audio:0kB global headers:0kB muxing overhead 9.803922%

Here is my lsusb

[root@serverzona webcam]# lsusb 
Bus 001 Device 004: ID 0951:1607 Kingston Technology Data Traveler 2.0
Bus 001 Device 002: ID 04fc:0561 Sunplus Technology Co., Ltd Flexcam 100

Offline

Board footer

Powered by FluxBB