Advertisement
Guest User

Untitled

a guest
May 1st, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. Local machine:
  2.  
  3. ffmpeg -f alsa -i plughw:CARD=Intel,DEV=0 -f video4linux2 -s vga -i /dev/video0 -f mpegts pipe:1 | sudo netcat ...
  4.  
  5. ffmpeg version 2.2.git-66e30a2 Copyright (c) 2000-2014 the FFmpeg developers
  6. built on Apr 30 2014 11:16:55 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  7. configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-x11grab --enable-libpulse --enable-libx264 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr
  8. libavutil 52. 79.100 / 52. 79.100
  9. libavcodec 55. 59.100 / 55. 59.100
  10. libavformat 55. 37.101 / 55. 37.101
  11. libavdevice 55. 13.100 / 55. 13.100
  12. libavfilter 4. 4.100 / 4. 4.100
  13. libavresample 1. 2. 0 / 1. 2. 0
  14. libswscale 2. 6.100 / 2. 6.100
  15. libswresample 0. 18.100 / 0. 18.100
  16. libpostproc 52. 3.100 / 52. 3.100
  17. Guessed Channel Layout for Input Stream #0.0 : stereo
  18. Input #0, alsa, from 'plughw:CARD=Intel,DEV=0':
  19. Duration: N/A, start: 1398962566.002048, bitrate: 1536 kb/s
  20. Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
  21. [video4linux2,v4l2 @ 0x1b5dea0] Time per frame unknown
  22. Input #1, video4linux2,v4l2, from '/dev/video0':
  23. Duration: N/A, start: 44794.413853, bitrate: N/A
  24. Stream #1:0: Video: mjpeg, yuvj422p(pc), 640x480, 30 tbr, 1000k tbn, 1000k tbc
  25. [swscaler @ 0x1b42b40] deprecated pixel format used, make sure you did set range correctly
  26. No pixel format specified, yuv422p for MPEG-2 encoding chosen.
  27. Use -pix_fmt yuv420p for compatibility with outdated media players.
  28. Output #0, mpegts, to 'pipe:1':
  29. Metadata:
  30. encoder : Lavf55.37.101
  31. Stream #0:0: Video: mpeg2video, yuv422p, 640x480, q=2-31, 200 kb/s, 90k tbn, 30 tbc
  32. Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
  33. Stream mapping:
  34. Stream #1:0 -> #0:0 (mjpeg -> mpeg2video)
  35. Stream #0:0 -> #0:1 (pcm_s16le -> mp2)
  36. Press [q] to stop, [?] for help
  37. [alsa @ 0x1b4ada0] ALSA buffer xrun.
  38. frame= 597 fps= 31 q=27.7 Lsize= 1931kB time=00:00:20.03 bitrate= 789.4kbits/s dup=1 drop=0
  39. video:793kB audio:897kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 14.275245%
  40.  
  41. ##########################################################
  42.  
  43. Remote computer:
  44.  
  45. sudo nc -l -p 110 | avconv -v verbose -r 30 -s 640x480 -f rawvideo -i - http://localhost/webcam.ffm
  46.  
  47. avconv version 0.8.10-6:0.8.10-1, Copyright (c) 2000-2013 the Libav developers
  48. built on Feb 5 2014 03:52:19 with gcc 4.7.2
  49. configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.10-1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  50. libavutil 51. 22. 2 / 51. 22. 2
  51. libavcodec 53. 35. 0 / 53. 35. 0
  52. libavformat 53. 21. 1 / 53. 21. 1
  53. libavdevice 53. 2. 0 / 53. 2. 0
  54. libavfilter 2. 15. 0 / 2. 15. 0
  55. libswscale 2. 1. 0 / 2. 1. 0
  56. libpostproc 52. 0. 0 / 52. 0. 0
  57. [rawvideo @ 0x643d00] Estimating duration from bitrate, this may be inaccurate
  58. Input #0, rawvideo, from 'pipe:':
  59. Duration: N/A, start: 0.000000, bitrate: N/A
  60. Stream #0.0: Video: rawvideo, yuv420p, 640x480, 30 tbr, 30 tbn, 30 tbc
  61. [buffer @ 0x632ca0] w:640 h:480 pixfmt:yuv420p
  62. Output #0, ffm, to 'http://localhost/webcam.ffm':
  63. Metadata:
  64. encoder : Lavf53.21.1
  65. Stream #0.0: Video: mpeg1video, yuv420p, 640x480, q=2-31, 200 kb/s, 1000k tbn, 30 tbc
  66. Stream mapping:
  67. Stream #0:0 -> #0:0 (rawvideo -> mpeg1video)
  68. Press ctrl-c to stop encoding
  69. frame= 8 fps= 0 q=24.8 size= 1448kB time=0.23 bitrate=50837.1kbits/s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement