Advertisement
Guest User

Untitled

a guest
Mar 24th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. /* I am streaming video with this command to red5 server. I can watch stream with jwplayer (flash) on web. But I tried to get stream with ffmpeg it gave an error. */
  2.  
  3. ############################################################################
  4. mucahit@mucahit:$ ffmpeg -re -f video4linux2 -i /dev/video0 -ab 128k -ac 2 -ar 44100 -r 25 -s 320x240 -vb 660k -f flv 'rtmp://localhost/live/deneme'
  5.  
  6. ffmpeg version N-51240-g644092c Copyright (c) 2000-2013 the FFmpeg developers
  7. built on Mar 24 2013 00:37:06 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  8. configuration: --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-pthreads --enable-libx264 --enable-libxvid --enable-libvorbis
  9. libavutil 52. 22.101 / 52. 22.101
  10. libavcodec 55. 1.100 / 55. 1.100
  11. libavformat 55. 0.100 / 55. 0.100
  12. libavdevice 55. 0.100 / 55. 0.100
  13. libavfilter 3. 48.100 / 3. 48.100
  14. libswscale 2. 2.100 / 2. 2.100
  15. libswresample 0. 17.102 / 0. 17.102
  16. libpostproc 52. 2.100 / 52. 2.100
  17. [video4linux2,v4l2 @ 0x12b82a0] Estimating duration from bitrate, this may be inaccurate
  18. Input #0, video4linux2,v4l2, from '/dev/video0':
  19. Duration: N/A, start: 206.097684, bitrate: 147456 kb/s
  20. Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
  21. Codec AVOption ab (set bitrate (in bits/s)) specified for output file #0 (rtmp://localhost/live/deneme) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
  22. Output #0, flv, to 'rtmp://localhost/live/deneme':
  23. Metadata:
  24. encoder : Lavf55.0.100
  25. Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 320x240, q=2-31, 660 kb/s, 1k tbn, 25 tbc
  26. Stream mapping:
  27. Stream #0:0 -> #0:0 (rawvideo -> flv)
  28.  
  29. #################################################################################################
  30.  
  31. mucahit@mucahit:~$ ffplay 'rtmp://localhost/live/deneme'ffplay version N-51240-g644092c Copyright (c) 2003-2013 the FFmpeg developers
  32. built on Mar 24 2013 00:37:06 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  33. configuration: --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-pthreads --enable-libx264 --enable-libxvid --enable-libvorbis
  34. libavutil 52. 22.101 / 52. 22.101
  35. libavcodec 55. 1.100 / 55. 1.100
  36. libavformat 55. 0.100 / 55. 0.100
  37. libavdevice 55. 0.100 / 55. 0.100
  38. libavfilter 3. 48.100 / 3. 48.100
  39. libswscale 2. 2.100 / 2. 2.100
  40. libswresample 0. 17.102 / 0. 17.102
  41. libpostproc 52. 2.100 / 52. 2.100
  42. [rtmp @ 0x7f1200004200] Server error: vq= 0KB sq= 0B f=0/0
  43. rtmp://localhost/live/deneme: Operation not permitted
  44.  
  45. #####################################################################################################
  46.  
  47. /* red5 log */
  48.  
  49. [INFO] [pool-8-thread-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action connect
  50. [INFO] [pool-8-thread-3] org.red5.server.net.rtmp.RTMPHandler - Connecting to: [WebScope@13c55849 Depth = 1, Path = '/default', Name = 'live']
  51. [INFO] [pool-8-thread-3] org.red5.server.adapter.ApplicationAdapter - W3C x-category:session x-event:connect c-ip:127.0.0.1 c-client-id:3
  52. [INFO] [pool-8-thread-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action createStream
  53. [INFO] [pool-8-thread-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action play
  54. [INFO] [pool-5-thread-2] org.red5.server.adapter.ApplicationAdapter - W3C x-category:stream x-event:play c-ip:127.0.0.1 x-sname:2f997043-794c-4964-af58-764686dd9bb8
  55. [INFO] [pool-5-thread-1] org.red5.server.adapter.ApplicationAdapter - W3C x-category:stream x-event:stop c-ip:127.0.0.1 cs-bytes:3396 sc-bytes:3677 x-sname:2f997043-794c-4964-af58-764686dd9bb8
  56. [INFO] [pool-8-thread-3] org.red5.server.adapter.ApplicationAdapter - W3C x-category:session x-event:disconnect c-ip:127.0.0.1 c-client-id:3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement