#ffmpeg -loglevel debug -f video4linux2 -list_formats all -i /dev/video0 ffmpeg version git-2013-09-11-c45e909 Copyright (c) 2000-2013 the FFmpeg developers built on Sep 11 2013 13:18:52 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1) configuration: --enable-libfaac --enable-libmp3lame --enable-nonfree --disable-vaapi --enable-shared --enable-version3 --enable-gpl --enable-libx264 libavutil 52. 43.100 / 52. 43.100 libavcodec 55. 31.101 / 55. 31.101 libavformat 55. 16.102 / 55. 16.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 84.100 / 3. 84.100 libswscale 2. 5.100 / 2. 5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-f' ... matched as option 'f' (force format) with argument 'video4linux2'. Reading option '-list_formats' ... matched as AVOption 'list_formats' with argument 'all'. Reading option '-i' ... matched as input file with argument '/dev/video0'. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file /dev/video0. Applying option f (force format) with argument video4linux2. Successfully parsed a group of options. Opening an input file: /dev/video0. [video4linux2,v4l2 @ 0xd5c2a0] fd:3 capabilities:4000001 [video4linux2,v4l2 @ 0xd5c2a0] Current input_channel: 0, input_name: HDMI INPUT, input_std: ffffff [video4linux2,v4l2 @ 0xd5c2a0] Raw : yuv420p : YV12 4:2:0 : /dev/video0: Immediate exit requested #ffmpeg -loglevel debug -f video4linux2 -list_standards all -i /dev/video0 ffmpeg version git-2013-09-11-c45e909 Copyright (c) 2000-2013 the FFmpeg developers built on Sep 11 2013 13:18:52 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1) configuration: --enable-libfaac --enable-libmp3lame --enable-nonfree --disable-vaapi --enable-shared --enable-version3 --enable-gpl --enable-libx264 libavutil 52. 43.100 / 52. 43.100 libavcodec 55. 31.101 / 55. 31.101 libavformat 55. 16.102 / 55. 16.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 84.100 / 3. 84.100 libswscale 2. 5.100 / 2. 5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-f' ... matched as option 'f' (force format) with argument 'video4linux2'. Reading option '-list_standards' ... matched as AVOption 'list_standards' with argument 'all'. Reading option '-i' ... matched as input file with argument '/dev/video0'. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file /dev/video0. Applying option f (force format) with argument video4linux2. Successfully parsed a group of options. Opening an input file: /dev/video0. [video4linux2,v4l2 @ 0x1aa72a0] fd:3 capabilities:4000001 [video4linux2,v4l2 @ 0x1aa72a0] Current input_channel: 0, input_name: HDMI INPUT, input_std: ffffff [video4linux2,v4l2 @ 0x1aa72a0] 0, b000, NTSC [video4linux2,v4l2 @ 0x1aa72a0] 1, 1000, NTSC-M [video4linux2,v4l2 @ 0x1aa72a0] 2, 2000, NTSC-M-JP [video4linux2,v4l2 @ 0x1aa72a0] 3, 8000, NTSC-M-KR [video4linux2,v4l2 @ 0x1aa72a0] 4, 4000, NTSC-443 [video4linux2,v4l2 @ 0x1aa72a0] 5, ff, PAL [video4linux2,v4l2 @ 0x1aa72a0] 6, 7, PAL-BG [video4linux2,v4l2 @ 0x1aa72a0] 7, 8, PAL-H [video4linux2,v4l2 @ 0x1aa72a0] 8, 10, PAL-I [video4linux2,v4l2 @ 0x1aa72a0] 9, e0, PAL-DK [video4linux2,v4l2 @ 0x1aa72a0] 10, 100, PAL-M [video4linux2,v4l2 @ 0x1aa72a0] 11, 200, PAL-N [video4linux2,v4l2 @ 0x1aa72a0] 12, 400, PAL-Nc [video4linux2,v4l2 @ 0x1aa72a0] 13, 800, PAL-60 [video4linux2,v4l2 @ 0x1aa72a0] 14, ff0000, SECAM [video4linux2,v4l2 @ 0x1aa72a0] 15, 10000, SECAM-B [video4linux2,v4l2 @ 0x1aa72a0] 16, 40000, SECAM-G [video4linux2,v4l2 @ 0x1aa72a0] 17, 80000, SECAM-H [video4linux2,v4l2 @ 0x1aa72a0] 18, 320000, SECAM-DK [video4linux2,v4l2 @ 0x1aa72a0] 19, 400000, SECAM-L [video4linux2,v4l2 @ 0x1aa72a0] 20, 800000, SECAM-Lc /dev/video0: Immediate exit requested #ffmpeg -loglevel debug -f video4linux2 -i /dev/video0 out.avi ffmpeg version git-2013-09-11-c45e909 Copyright (c) 2000-2013 the FFmpeg developers built on Sep 11 2013 13:18:52 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1) configuration: --enable-libfaac --enable-libmp3lame --enable-nonfree --disable-vaapi --enable-shared --enable-version3 --enable-gpl --enable-libx264 libavutil 52. 43.100 / 52. 43.100 libavcodec 55. 31.101 / 55. 31.101 libavformat 55. 16.102 / 55. 16.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 84.100 / 3. 84.100 libswscale 2. 5.100 / 2. 5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-f' ... matched as option 'f' (force format) with argument 'video4linux2'. Reading option '-i' ... matched as input file with argument '/dev/video0'. Reading option 'out.avi' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file /dev/video0. Applying option f (force format) with argument video4linux2. Successfully parsed a group of options. Opening an input file: /dev/video0. [video4linux2,v4l2 @ 0x13e78e0] fd:3 capabilities:4000001 [video4linux2,v4l2 @ 0x13e78e0] Current input_channel: 0, input_name: HDMI INPUT, input_std: ffffff [video4linux2,v4l2 @ 0x13e78e0] Querying the device for the current frame size [video4linux2,v4l2 @ 0x13e78e0] Setting frame size to 0x0 [video4linux2,v4l2 @ 0x13e78e0] Trying to set codec:rawvideo pix_fmt:yuv420p Last message repeated 1 times [video4linux2,v4l2 @ 0x13e78e0] The V4L2 driver changed the video from 0x0 to 320x288 [video4linux2,v4l2 @ 0x13e78e0] The V4L2 driver is using the interlaced mode [video4linux2,v4l2 @ 0x13e78e0] ioctl(VIDIOC_ENUMSTD): Invalid argument /dev/video0: Invalid argument