Dev/video0 Input/output Error
Contents |
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of mplayer dev video0 Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC
Dev Nst0 Input Output Error
Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu ffmpeg video4linux2 Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Multimedia
V4l2-ctl Set-fmt-video
Software [ubuntu] ffmpeg video capture Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 11 Thread: ffmpeg video capture Thread Tools Show Printable Version Subscribe yuyv422 to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode August 30th, 2010 #1 mike4ubuntu View Profile View Forum Posts Private Message A Carafe of Ubuntu Join Date May 2005 Beans 126 DistroUbuntu 14.04 Trusty Tahr ffmpeg video capture Anybody had any success in getting ffmpeg to work as advertised with video capture from a webcam? I really want to convert the webcam output to VP8 or H264, but apparently ffmpeg can't even capture the webcam with a video4linux device. Code: mike@lic9:/opt/test/vp8$ ffmpeg -f oss -i /dev/dsp -f video4linux2 -i /dev/video0 test.mpg FFmpeg version SVN-r23439, Copyright (c) 2000-2010 the FFmpeg developers built on Jun 3 2010 11:01:08 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac -- enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-lib vorbis --enable-libx264 --enable-libxvid --enable-x11grab libavutil 50.16. 0 / 50.16. 0 libavcodec 52.73. 0 / 52.73. 0 libavformat 52.67. 0 / 52.67. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.20. 0 / 1.20. 0 libswscale 0.11
with .avi container Thanks! Next message: [FFmpeg-user] ffmpeg input output error---proper format for codec_id 0, pix_fmt -1 Messages sorted by: [ date ] [
Ffserver
thread ] [ subject ] [ author ] How should this command
Avconv
be modified? Thanks ubuntu at ubuntu:~$ ffmpeg -f alsa -ac 1 -i hw:0 -f video4linux2 -i /dev/video0 /tmp/out2.mpg ffmpeg version git-2012-12-11-4b4f16c Copyright (c) 2000-2012 the FFmpeg developers built on Dec 11 2012 12:34:17 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp https://ubuntuforums.org/showthread.php?t=1564565 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-libpulse --enable-version3 libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 79.102 / 54. 79.102 libavformat 54. 49.101 / 54. 49.101 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 26.102 / 3. 26.102 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [alsa @ https://ffmpeg.org/pipermail/ffmpeg-user/2013-January/012524.html 0x93175e0] cannot set channel count to 1 (Invalid argument) hw:0: Input/output error ubuntu at ubuntu:~$ ffmpeg -f alsa -ac 2 -i hw:0 -f video4linux2 -i /dev/video0 /tmp/out2.mpg ffmpeg version git-2012-12-11-4b4f16c Copyright (c) 2000-2012 the FFmpeg developers built on Dec 11 2012 12:34:17 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-libpulse --enable-version3 libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 79.102 / 54. 79.102 libavformat 54. 49.101 / 54. 49.101 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 26.102 / 3. 26.102 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [alsa @ 0xa3c65e0] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, alsa, from 'hw:0': Duration: N/A, start: 1357862164.514471, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s [video4linux2,v4l2 @ 0xa3d8240] Cannot find a proper format for codec_id 0, pix_fmt -1. /dev/video0: Input/output error ubuntu at ubuntu:~$ P
device capabilities Encoding example Adjusting camera functions OS X AVFoundation QTKit Windows dshow Uses the dshow (DirectShow) input device which is the preferred option for Windows users. See the wiki article about DirectShow and the dshow input device documentation for more information. vfwcap Warning: vfwcap is outdated. Use dshow instead if https://trac.ffmpeg.org/wiki/Capture/Webcam possible. See DirectShow for more information. Uses the outdated vfwcap input device. See the vfwcap input device documentation for more information. List devices To list the supported, connected capture devices: ffmpeg -y -f vfwcap -i list Example output: … libavutil 50.36. 0 / 50.36. 0 libavcore 0.16. 1 / 0.16. 1 libavcodec 52.108. 0 / 52.108. 0 libavformat 52.93. 0 / 52.93. 0 libavdevice 52. 2. 3 / 52. 2. 3 output error libavfilter 1.74. 0 / 1.74. 0 libswscale 0.12. 0 / 0.12. 0 [vfwcap @ 01c6d150] Driver 0 [vfwcap @ 01c6d150] Microsoft WDM Image Capture (Win32) [vfwcap @ 01c6d150] Version: 5.1.2600.5512 list: Input/output error Encoding example Example to encode video from the camera: ffmpeg -y -f vfwcap -r 25 -i 0 out.mp4 -i 0 is the index (zero based) in the list of present capture devices (Driver 0 in this instance). Linux Uses dev/video0 input/output error the video4linux2 (or simply v4l2) input device to capture live input such as from a webcam. See the v4l2 input device documentation for more information. List devices To list the supported, connected capture devices you can use the v4l-ctl tool. This example shows two connected webcams: /dev/video0 and /dev/video1. $ v4l2-ctl --list-devices USB2.0 PC CAMERA (usb-0000:00:1d.7-1): /dev/video1 UVC Camera (046d:0819) (usb-0000:00:1d.7-2): /dev/video0 List device capabilities To list available formats (supported pixel formats, video formats, and frame sizes) for a particular input device: $ ffmpeg -f v4l2 -list_formats all -i /dev/video0 … [video4linux2,v4l2 @ 0xf07d80] Raw : yuyv422 : YUV 4:2:2 (YUYV) : 640x480 160x120 176x144 320x176 320x240 352x288 432x240 544x288 640x360 [video4linux2,v4l2 @ 0xf07d80] Compressed: mjpeg : MJPEG : 640x480 160x120 176x144 320x176 320x240 352x288 432x240 544x288 640x360 Alternatively you could use v4l2-ctl --list-formats-ext to list available formats. Encoding example Example to encode video from /dev/video0: ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 output.mkv Adjusting camera functions Brightness, zoom, focus, etc, can be adjusted with v4l2-ctl. Display all controls and their menus: v4l2-ctl -L Then adjust the value: v4l2-ctl -c