Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. ffmpeg -f x11grab -i :0.0 -f hls http://192.168.1.68/tmp/hls
  2.  
  3. ffmpeg version N-60313-g6d7119d Copyright (c) 2000-2014 the FFmpeg developers
  4. built on Feb 2 2014 16:01:55 with gcc 4.7 (Debian 4.7.3-4)
  5. configuration: --enable-indev=alsa --enable-gpl --enable-x11grab --enable-libpulse --enable-libopus --enable-libmp3lame --enable-libvpx --enable-libx264 --enable-pthreads
  6. libavutil 52. 63.100 / 52. 63.100
  7. libavcodec 55. 49.101 / 55. 49.101
  8. libavformat 55. 29.100 / 55. 29.100
  9. libavdevice 55. 7.100 / 55. 7.100
  10. libavfilter 4. 1.102 / 4. 1.102
  11. libswscale 2. 5.101 / 2. 5.101
  12. libswresample 0. 17.104 / 0. 17.104
  13. libpostproc 52. 3.100 / 52. 3.100
  14. [x11grab @ 0x2823900] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 640 height: 480
  15. [x11grab @ 0x2823900] shared memory extension found
  16. Input #0, x11grab, from ':0.0':
  17. Duration: N/A, start: 1391370026.581568, bitrate: 294617 kb/s
  18. Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 640x480, 294617 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc
  19. [tcp @ 0x28854c0] Failed to resolve hostname 192.168.10.ts: Name or service not known
  20. Output #0, hls, to 'http://192.168.1.68/tmp/hls':
  21. Metadata:
  22. encoder : Lavf55.29.100
  23. Stream #0:0: Video: mpeg2video, yuv420p, 640x480, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
  24. Stream mapping:
  25. Stream #0:0 -> #0:0 (rawvideo -> mpeg2video)
  26. Could not write header for output file #0 (incorrect codec parameters ?): Input/output error
  27.  
  28. rtmp {
  29. server {
  30. listen 1935;
  31. chunk_size 4096;
  32.  
  33. application live
  34. {
  35. live on;
  36. record off;
  37.  
  38. hls on;
  39. hls_path /tmp/hls;
  40. hls_fragment 12s;
  41. }
  42. }
  43. }
  44.  
  45. http {
  46. ...
  47. server {
  48. ...
  49. location /hls {
  50. types {
  51. application/vnd.apple.mpegurl m3u8;
  52. }
  53. root /tmp;
  54. add_header Cache-Control no-cache;
  55. }
  56. }
  57. ...
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement