Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
Need help in coding for rtmp restreaming using ffmpegOK guys I need help to restream this stream this stream
rtmp://23.228.228.231:1935/static/snworld it works in vlc , its not from any flash player so thats that, i dont have any more parameters rtmpdump -r "rtmp://23.228.228.231:1935/static/snworld" | ffmpeg -i - -vcodec copy -acodec copy -f flv "rtmp://share.ovcast.com/live1/testing521507" I tried that code but I get this C:\Users\Bunny>rtmpdump -r "rtmp://23.228.228.231:1935/static/snworld" | ffmpeg -i - -vcodec copy -acodec copy -f flv "rtmp://share.ovcast.com/live1/testing5215 07" RTMPDump v2.3 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL WARNING: You haven't specified an output file (-o filename), using stdout Connecting ... WARNING: HandShake: client signature does not match! INFO: Connected... Starting download at: 0.000 kB INFO: Metadata: INFO: audiochannels 2.00 INFO: audiocodecid 10.00 INFO: audiosamplerate 48000.00 INFO: height 720.00 INFO: videocodecid 7.00 INFO: width 1280.00 0.170 kB / 0.00 secffmpeg version N-67929-g5182a2a Copyright (c) 2000-2014 the F Fmpeg developers built on Nov 23 2014 22:09:50 with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable- libx265 --enable-libxavs --enable-libxvid --enable-zlib libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat 56. 15.100 / 56. 15.100 libavdevice 56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 312.426 kB / 1.27 secInput #0, flv, from 'pipe:': Metadata: audiochannels : 2 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 30.30 fps, 29.97 tbr, 1k tbn, 59.94 tbc Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp 329.060 kB / 1.37 secOutput #0, flv, to 'rtmp://share.ovcast.com/live1/testing52 1507': Metadata: audiochannels : 2 encoder : Lavf56.15.100 Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 30.30 fps, 1k tbn, 1k tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 48000 Hz, stereo Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) frame= 1 fps=0.2 q=-1.0 size= 102kB time=00:00:00.04 bitrate=18635.4kbits frame= 3 fps=0.5 q=-1.0 size= 112kB time=00:00:00.10 bitrate=8402.3kbits/ frame= 6 fps=1.0 q=-1.0 size= 123kB time=00:00:00.17 bitrate=5813.1kbits/ frame= 8 fps=1.2 q=-1.0 size= 134kB time=00:00:00.23 bitrate=4637.5kbits/ frame= 10 fps=1.4 q=-1.0 size= 144kB time=00:00:00.30 bitrate=3923.2kbits/ frame= 13 fps=1.6 q=-1.0 size= 160kB time=00:00:00.40 bitrate=3211.9kbits/ frame= 15 fps=1.7 q=-1.0 size= 174kB time=00:00:00.51 bitrate=2772.1kbits/ frame= 17 fps=1.8 q=-1.0 size= 183kB time=00:00:00.57 bitrate=2593.3kbits/ frame= 20 fps=2.1 q=-1.0 size= 193kB time=00:00:00.64 bitrate=2470.8kbits/ frame= 22 fps=2.2 q=-1.0 size= 208kB time=00:00:00.72 bitrate=2342.0kbits/ frame= 24 fps=2.2 q=-1.0 size= 214kB time=00:00:00.76 bitrate=2274.4kbits/ frame= 25 fps=2.2 q=-1.0 size= 223kB time=00:00:00.85 bitrate=2141.2kbits/ frame= 27 fps=2.3 q=-1.0 size= 234kB time=00:00:00.91 bitrate=2084.8kbits/ frame= 29 fps=2.3 q=-1.0 size= 247kB time=00:00:00.98 bitrate=2061.2kbits/ frame= 31 fps=2.4 q=-1.0 size= 260kB time=00:00:01.04 bitrate=2032.3kbits/ frame= 33 fps=2.4 q=-1.0 size= 272kB time=00:00:01.11 bitrate=2008.3kbits/ frame= 36 fps=2.5 q=-1.0 size= 285kB time=00:00:01.17 bitrate=1984.0kbits/ frame= 38 fps=2.5 q=-1.0 size= 295kB time=00:00:01.23 bitrate=1951.7kbits/ frame= 40 fps=2.5 q=-1.0 size= 313kB time=00:00:01.30 bitrate=1967.0kbits/ 334.909 kB / 1.40 secframe= 41 fps=2.5 q=-1.0 size= 324kB time=00:00:01.38 340.594 kB / 1.43 secframe= 43 fps=2.5 q=-1.0 size= 335kB time=00:00:01.45 352.331 kB / 1.50 secframe= 45 fps=2.5 q=-1.0 size= 347kB time=00:00:01.51 365.155 kB / 1.57 secframe= 47 fps=2.5 q=-1.0 size= 359kB time=00:00:01.58 377.217 kB / 1.64 secframe= 49 fps=2.5 q=-1.0 size= 371kB time=00:00:01.64 396.847 kB / 1.74 secframe= 52 fps=2.6 q=-1.0 size= 385kB time=00:00:01.70 409.884 kB / 1.80 secframe= 54 fps=2.6 q=-1.0 size= 397kB time=00:00:01.77 424.313 kB / 1.87 secframe= 56 fps=2.6 q=-1.0 size= 410kB time=00:00:01.83 431.510 kB / 1.90 secframe= 57 fps=2.6 q=-1.0 size= 424kB time=00:00:01.92 444.238 kB / 1.99 secframe= 59 fps=2.6 q=-1.0 size= 438kB time=00:00:01.98 467.478 kB / 2.13 secframe= 61 fps=2.6 q=-1.0 size= 452kB time=00:00:02.11 478.216 kB / 2.17 secframe= 63 fps=2.6 q=-1.0 size= 468kB time=00:00:02.17 frame= 64 fps=2.6 q=-1.0 size= 478kB time=00:00:02.22 bitrate=1764.5kbits/ 502.158 kB / 2.27 secframe= 66 fps=2.6 q=-1.0 size= 494kB time=00:00:02.28 516.876 kB / 2.33 secframe= 68 fps=2.6 q=-1.0 size= 510kB time=00:00:02.34 537.839 kB / 2.44 secframe= 70 fps=2.6 q=-1.0 size= 524kB time=00:00:02.41 551.545 kB / 2.50 secframe= 73 fps=2.6 q=-1.0 size= 538kB time=00:00:02.47 558.502 kB / 2.54 secs ERROR: RTMP_ReadPacket, failed to read RTMP packet header 559.012 kB / 2.56 sec Download complete frame= 75 fps=2.6 q=-1.0 size= 552kB time=00:00:02.54 bitrate=1779.5kbits/ [flv @ 0000000002c4f7e0] Failed to update header with correct duration. [flv @ 0000000002c4f7e0] Failed to update header with correct filesize. frame= 75 fps=2.6 q=-1.0 Lsize= 559kB time=00:00:02.58 bitrate=1773.5kbits /s video:522kB audio:33kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.706476% Can someone get me a code to restream it via ffmpeg or rtmpdump or anyway else ? Thank you in advance, I shall pay a decent amount as reward if you can help me to get it working |
Tags: flash, restreaming, rtmp |
Thread Tools | |
Display Modes | |
|
|