Advertisement
Guest User

ffmpeg recording webcam to h264 mkv

a guest
May 13th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. $ ffmpeg -f v4l2 -s 640x480 -i /dev/video0 -vcodec libx264 out.mkv
  2. ffmpeg version N-40640-g5edd4fc Copyright (c) 2000-2012 the FFmpeg developers
  3. built on May 14 2012 02:03:22 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13)
  4. configuration: --enable-gpl --enable-libx264
  5. libavutil 51. 50.100 / 51. 50.100
  6. libavcodec 54. 21.101 / 54. 21.101
  7. libavformat 54. 4.100 / 54. 4.100
  8. libavdevice 53. 4.100 / 53. 4.100
  9. libavfilter 2. 72.105 / 2. 72.105
  10. libswscale 2. 1.100 / 2. 1.100
  11. libswresample 0. 11.100 / 0. 11.100
  12. libpostproc 52. 0.100 / 52. 0.100
  13. ^CEstimating duration from bitrate, this may be inaccurate
  14. Input #0, video4linux2,v4l2, from '/dev/video0':
  15. Duration: N/A, start: 2785251.674570, bitrate: N/A
  16. Stream #0:0: Video: mjpeg, yuvj422p, 640x480 [SAR 72:72 DAR 4:3], -2147483 kb/s, 1000k tbr, 1000k tbn, 1000k tbc
  17.  
  18. ___
  19.  
  20. nothing happening until i hit Control+C 2 times, then lists some junk,
  21. ffmpeg -f v4l2 -s 640x480 -r 30 -i /dev/video0 -vcodec libx264 out.mkv
  22. records video if i specify fps: "-r 30"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement