Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 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. */
- ############################################################################
- 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'
- ffmpeg version N-51240-g644092c Copyright (c) 2000-2013 the FFmpeg developers
- built on Mar 24 2013 00:37:06 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
- configuration: --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-pthreads --enable-libx264 --enable-libxvid --enable-libvorbis
- libavutil 52. 22.101 / 52. 22.101
- libavcodec 55. 1.100 / 55. 1.100
- libavformat 55. 0.100 / 55. 0.100
- libavdevice 55. 0.100 / 55. 0.100
- libavfilter 3. 48.100 / 3. 48.100
- libswscale 2. 2.100 / 2. 2.100
- libswresample 0. 17.102 / 0. 17.102
- libpostproc 52. 2.100 / 52. 2.100
- [video4linux2,v4l2 @ 0x12b82a0] Estimating duration from bitrate, this may be inaccurate
- Input #0, video4linux2,v4l2, from '/dev/video0':
- Duration: N/A, start: 206.097684, bitrate: 147456 kb/s
- Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
- 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.
- Output #0, flv, to 'rtmp://localhost/live/deneme':
- Metadata:
- encoder : Lavf55.0.100
- Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 320x240, q=2-31, 660 kb/s, 1k tbn, 25 tbc
- Stream mapping:
- Stream #0:0 -> #0:0 (rawvideo -> flv)
- #################################################################################################
- mucahit@mucahit:~$ ffplay 'rtmp://localhost/live/deneme'ffplay version N-51240-g644092c Copyright (c) 2003-2013 the FFmpeg developers
- built on Mar 24 2013 00:37:06 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
- configuration: --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-pthreads --enable-libx264 --enable-libxvid --enable-libvorbis
- libavutil 52. 22.101 / 52. 22.101
- libavcodec 55. 1.100 / 55. 1.100
- libavformat 55. 0.100 / 55. 0.100
- libavdevice 55. 0.100 / 55. 0.100
- libavfilter 3. 48.100 / 3. 48.100
- libswscale 2. 2.100 / 2. 2.100
- libswresample 0. 17.102 / 0. 17.102
- libpostproc 52. 2.100 / 52. 2.100
- [rtmp @ 0x7f1200004200] Server error: vq= 0KB sq= 0B f=0/0
- rtmp://localhost/live/deneme: Operation not permitted
- #####################################################################################################
- /* red5 log */
- [INFO] [pool-8-thread-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action connect
- [INFO] [pool-8-thread-3] org.red5.server.net.rtmp.RTMPHandler - Connecting to: [WebScope@13c55849 Depth = 1, Path = '/default', Name = 'live']
- [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
- [INFO] [pool-8-thread-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action createStream
- [INFO] [pool-8-thread-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action play
- [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
- [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
- [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