#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 @ 0xe082a0] fd:3 capabilities:4000001 [video4linux2,v4l2 @ 0xe082a0] Current input_channel: 0, input_name: HDMI INPUT, input_std: ffffff [video4linux2,v4l2 @ 0xe082a0] 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 @ 0x21922a0] fd:3 capabilities:4000001 [video4linux2,v4l2 @ 0x21922a0] Current input_channel: 0, input_name: HDMI INPUT, input_std: ffffff [video4linux2,v4l2 @ 0x21922a0] 0, b000, NTSC [video4linux2,v4l2 @ 0x21922a0] 1, 1000, NTSC-M [video4linux2,v4l2 @ 0x21922a0] 2, 2000, NTSC-M-JP [video4linux2,v4l2 @ 0x21922a0] 3, 8000, NTSC-M-KR [video4linux2,v4l2 @ 0x21922a0] 4, 4000, NTSC-443 [video4linux2,v4l2 @ 0x21922a0] 5, ff, PAL [video4linux2,v4l2 @ 0x21922a0] 6, 7, PAL-BG [video4linux2,v4l2 @ 0x21922a0] 7, 8, PAL-H [video4linux2,v4l2 @ 0x21922a0] 8, 10, PAL-I [video4linux2,v4l2 @ 0x21922a0] 9, e0, PAL-DK [video4linux2,v4l2 @ 0x21922a0] 10, 100, PAL-M [video4linux2,v4l2 @ 0x21922a0] 11, 200, PAL-N [video4linux2,v4l2 @ 0x21922a0] 12, 400, PAL-Nc [video4linux2,v4l2 @ 0x21922a0] 13, 800, PAL-60 [video4linux2,v4l2 @ 0x21922a0] 14, ff0000, SECAM [video4linux2,v4l2 @ 0x21922a0] 15, 10000, SECAM-B [video4linux2,v4l2 @ 0x21922a0] 16, 40000, SECAM-G [video4linux2,v4l2 @ 0x21922a0] 17, 80000, SECAM-H [video4linux2,v4l2 @ 0x21922a0] 18, 320000, SECAM-DK [video4linux2,v4l2 @ 0x21922a0] 19, 400000, SECAM-L [video4linux2,v4l2 @ 0x21922a0] 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 @ 0x1f2e8e0] fd:3 capabilities:4000001 [video4linux2,v4l2 @ 0x1f2e8e0] Current input_channel: 0, input_name: HDMI INPUT, input_std: ffffff [video4linux2,v4l2 @ 0x1f2e8e0] Querying the device for the current frame size [video4linux2,v4l2 @ 0x1f2e8e0] Setting frame size to 0x0 [video4linux2,v4l2 @ 0x1f2e8e0] Trying to set codec:rawvideo pix_fmt:yuv420p Last message repeated 1 times [video4linux2,v4l2 @ 0x1f2e8e0] The V4L2 driver changed the video from 0x0 to 320x288 [video4linux2,v4l2 @ 0x1f2e8e0] The V4L2 driver is using the interlaced mode [video4linux2,v4l2 @ 0x1f2e8e0] All info found Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1378901552.317053, bitrate: 27648 kb/s Stream #0:0, 1, 1/1000000: Video: rawvideo (YV12 / 0x32315659), yuv420p, 320x288, 1/1000000, 27648 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k tbc Successfully opened the file. Parsing a group of options: output file out.avi. Successfully parsed a group of options. Opening an output file: out.avi. Successfully opened the file. detected 12 logical cores [graph 0 input from stream 0:0 @ 0x1f1f7e0] Setting 'video_size' to value '320x288' [graph 0 input from stream 0:0 @ 0x1f1f7e0] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0x1f1f7e0] Setting 'time_base' to value '1/1000000' [graph 0 input from stream 0:0 @ 0x1f1f7e0] Setting 'pixel_aspect' to value '0/1' [graph 0 input from stream 0:0 @ 0x1f1f7e0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x1f1f7e0] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0x1f1f7e0] w:320 h:288 pixfmt:yuv420p tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2 [format @ 0x1f1b7a0] compat: called with args=[yuv420p] [format @ 0x1f1b7a0] Setting 'pix_fmts' to value 'yuv420p' [AVFilterGraph @ 0x1f18160] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed [mpeg4 @ 0x1f30aa0] intra_quant_bias = 0 inter_quant_bias = -64 Output #0, avi, to 'out.avi': Metadata: ISFT : Lavf55.16.102 Stream #0:0, 0, 1/25: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 320x288, 1/25, q=2-31, 200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg4) Press [q] to stop, [?] for help frame= 250 fps=9.8 q=2.0 Lsize= 68kB time=00:00:25.32 bitrate= 22.0kbits/s video:47kB audio:0kB subtitle:0 global headers:0kB muxing overhead 43.453104% 250 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x1f30020] Statistics: 9 seeks, 257 writeouts Received signal 2: terminating.