| | 27 | |
| | 28 | |
| | 29 | |
| | 30 | But the suggested command doesn't work either. I tried it with ffmpeg 0.5.10, which is known to be working. Without success: |
| | 31 | {{{ |
| | 32 | [llarevo@llarevo-desktop bin]$ ./ffplay -f v4l2 -i /dev/video0 |
| | 33 | FFplay version 0.5.10, Copyright (c) 2003-2012 Fabrice Bellard, et al. |
| | 34 | configuration: --prefix=/opt/ffmpeg-0.5.10 --enable-nonfree --enable-gpl --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid |
| | 35 | libavutil 49.15. 0 / 49.15. 0 |
| | 36 | libavcodec 52.20. 1 / 52.20. 1 |
| | 37 | libavformat 52.31. 0 / 52.31. 0 |
| | 38 | libavdevice 52. 1. 0 / 52. 1. 0 |
| | 39 | built on Aug 8 2012 19:52:08, gcc: 4.7.0 20120507 (Red Hat 4.7.0-5) |
| | 40 | Unknown input format: v4l2 |
| | 41 | [llarevo@llarevo-desktop bin]$ ./ffplay -f video4linux2 -i /dev/video0 |
| | 42 | FFplay version 0.5.10, Copyright (c) 2003-2012 Fabrice Bellard, et al. |
| | 43 | configuration: --prefix=/opt/ffmpeg-0.5.10 --enable-nonfree --enable-gpl --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid |
| | 44 | libavutil 49.15. 0 / 49.15. 0 |
| | 45 | libavcodec 52.20. 1 / 52.20. 1 |
| | 46 | libavformat 52.31. 0 / 52.31. 0 |
| | 47 | libavdevice 52. 1. 0 / 52. 1. 0 |
| | 48 | built on Aug 8 2012 19:52:08, gcc: 4.7.0 20120507 (Red Hat 4.7.0-5) |
| | 49 | ./ffplay: unrecognized option '-i' |
| | 50 | [llarevo@llarevo-desktop bin]$ ./ffplay -f video4linux2 |
| | 51 | FFplay version 0.5.10, Copyright (c) 2003-2012 Fabrice Bellard, et al. |
| | 52 | configuration: --prefix=/opt/ffmpeg-0.5.10 --enable-nonfree --enable-gpl --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid |
| | 53 | libavutil 49.15. 0 / 49.15. 0 |
| | 54 | libavcodec 52.20. 1 / 52.20. 1 |
| | 55 | libavformat 52.31. 0 / 52.31. 0 |
| | 56 | libavdevice 52. 1. 0 / 52. 1. 0 |
| | 57 | built on Aug 8 2012 19:52:08, gcc: 4.7.0 20120507 (Red Hat 4.7.0-5) |
| | 58 | An input file must be specified |
| | 59 | [llarevo@llarevo-desktop bin]$ man ffplay |
| | 60 | [llarevo@llarevo-desktop bin]$ ./ffplay -f video4linux2 /dev/video0 |
| | 61 | FFplay version 0.5.10, Copyright (c) 2003-2012 Fabrice Bellard, et al. |
| | 62 | configuration: --prefix=/opt/ffmpeg-0.5.10 --enable-nonfree --enable-gpl --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid |
| | 63 | libavutil 49.15. 0 / 49.15. 0 |
| | 64 | libavcodec 52.20. 1 / 52.20. 1 |
| | 65 | libavformat 52.31. 0 / 52.31. 0 |
| | 66 | libavdevice 52. 1. 0 / 52. 1. 0 |
| | 67 | built on Aug 8 2012 19:52:08, gcc: 4.7.0 20120507 (Red Hat 4.7.0-5) |
| | 68 | [video4linux2 @ 0x7f6d1c005230]Wrong size (0x0) |
| | 69 | /dev/video0: Error while opening file |
| | 70 | }}} |
| | 71 | With ffmpeg 0.5.10, I don't have any problems with capturing: |
| | 72 | {{{ |
| | 73 | ./ffmpeg -debug 1 -t 300 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0 /home/tbastian/out-vga-2M-5min.mpg |
| | 74 | FFmpeg version 0.5.10, Copyright (c) 2000-2012 Fabrice Bellard, et al. |
| | 75 | configuration: --prefix=/opt/ffmpeg-0.5.10 --enable-nonfree --enable-gpl --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid |
| | 76 | libavutil 49.15. 0 / 49.15. 0 |
| | 77 | libavcodec 52.20. 1 / 52.20. 1 |
| | 78 | libavformat 52.31. 0 / 52.31. 0 |
| | 79 | libavdevice 52. 1. 0 / 52. 1. 0 |
| | 80 | built on Aug 8 2012 19:52:08, gcc: 4.7.0 20120507 (Red Hat 4.7.0-5) |
| | 81 | [video4linux2 @ 0x2e3a600][3]Capabilities: 5010015 |
| | 82 | [video4linux2 @ 0x2e3a600]The V4L2 driver set input_id: 0, input: Television |
| | 83 | Input #0, video4linux2, from '/dev/video0': |
| | 84 | Duration: N/A, start: 1344448553.258682, bitrate: 92160 kb/s |
| | 85 | Stream #0.0, 1/1000000: Video: rawvideo, yuv420p, 640x480, 1/25, 92160 kb/s, 25 tbr, 1000k tbn, 25 tbc |
| | 86 | Output #0, mpeg, to '/home/tbastian/out-vga-2M-5min.mpg': |
| | 87 | Stream #0.0, 1/90000: Video: mpeg1video, yuv420p, 640x480, 1/25, q=2-31, 2000 kb/s, 90k tbn, 25 tbc |
| | 88 | Stream mapping: |
| | 89 | Stream #0.0 -> #0.0 |
| | 90 | Press [q] to stop encoding |
| | 91 | frame= 327 fps= 25 q=5.4 Lsize= 3370kB time=13.04 bitrate=2117.1kbits/s |
| | 92 | video:3352kB audio:0kB global headers:0kB muxing overhead 0.541767% |
| | 93 | }}} |