Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Customized rtmpdump binaries with patch file

(http://stream-recorder.com/forum/showthread.php?t=16103)

KSV 04-08-2013 09:21 AM

Re: Customized rtmpdump binaries with patch file


 
i have seen some people claiming that certain url's working with old builds but not new one's. this is due to the changed behavior of url parsing in official git repository. for example if you have passed following url to rtmpdump it will behave differently after this commit.

Code:

-r "rtmp://host/first/second/third/fourth"
old app will parse the app as first/second and playpath as third/fourth while after this commit app will be parsed as first/second/third and playpath as fourth invalidating the previously working command.

you can overcome this problem in two ways:
1. specify app and playpath using separate commands (-a|--app) and (-y|--playpath) respectively.
2. in my builds you can also use // as app and playpath separator.

Code:

-r "rtmp://host/first/second//third/fourth"

karlo2105 04-08-2013 09:21 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 61445)
i have tried it few times and it works every time. maybe your localized server having issues. try with IP 124.40.42.172.

With your server it doesn't work at all.
Code:

rtmpdump -v -r "rtmp://124.40.42.172/live/Flash_li
ve_KTO_TV@27823" -W "http://www.ktotv.com/templates/ktotv/swf/player.swf" | vlc -
RTMPDump v2.4 GIT-2012-12-30 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close


KSV 04-08-2013 09:36 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by karlo2105 (Post 61448)
With your server it doesn't work at all.

use following command to access it directly with IP.

Code:

rtmpdump -v -r "rtmp://124.40.42.172:80/live/Flash_live_KTO_TV@27823" -W "http://www.ktotv.com/templates/ktotv/swf/player.swf" -t "rtmp://cp99495.live.edgefcs.net:80/live" -o Test.flv
Code:

RTMPDump v2.4 GIT-2012-12-30 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  audiocodecid            2.00
INFO:  audiodatarate          0.00
INFO:  canseektoend            FALSE
INFO:  creationdate            Mon Apr 08 14:37:19 2013
INFO:  duration                0.00
INFO:  framerate              25.00
INFO:  height                  450.00
INFO:  lastkeyframetimestamp  0.00
INFO:  lasttimestamp          0.00
INFO:  metadatacreator        On2 Flix SDK for Dshow_2.7.4.0
INFO:  On2                    Technologies
INFO:  profile                VP6-E
INFO:  videocodecid            4.00
INFO:  videodatarate          0.00
INFO:  width                  800.00
521.433 kB / 10.47 sec

Your second stream is also working fine for me.

karlo2105 04-08-2013 10:00 AM

Re: Customized rtmpdump binaries with patch file


 
It's working great with -t parameter added even with original server.
Thanks very much KSV. ;)

KSV 04-08-2013 09:58 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by karlo2105 (Post 61451)
It's working great with -t parameter added even with original server.

'-t' switch doesn't do anything magical. probably it was a temporary glitch on your side.

dindi 04-09-2013 07:41 AM

Re: Customized rtmpdump binaries with patch file


 
How about BUFX - realtime download on some servers...
Isn't possible to download with real speed on servers based on Flash Media Server 3?

Majority of sites runnin FMS is needed to use -v mode and sometimes videos are downloaded with lag between Video/Sound.

KSV 04-09-2013 08:54 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by dindi (Post 61473)
How about BUFX - realtime download on some servers...
Isn't possible to download with real speed on servers based on Flash Media Server 3?

Majority of sites runnin FMS is needed to use -v mode and sometimes videos are downloaded with lag between Video/Sound.

i don't quite understand what you wanna say but it has been resolved long ago.

Code:

--realtime|-R          Don't attempt to speed up download via the Pause/Unpause BUFX hack

lorus 04-09-2013 08:25 PM

Re: Customized rtmpdump binaries with patch file


 
I have some trouble with a stream. The capturing seems to start but it captures only 0.01sec and then the process hangs / doesn't captures anything more ... :(

Code:

C:\Users\media\Desktop\rtmp>rtmpdump -r "rtmp://xxx:1936/streams" -a "streams" -f "WIN 11,6,602,180" -W "http://xxx/xxx/xxx.swf" -p "http://xxx" -y "xxx" -o "xxx"
RTMPDump v2.4 GIT-2012-12-30 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  presetname              Custom
INFO:  creationdate            Tue Apr 09 21:36:10 2013
INFO:  videodevice            AVerMedia BDA Analog Capture Secondary [1]
INFO:  framerate              60.00
INFO:  width                  720.00
INFO:  height                  400.00
INFO:  videocodecid            avc1
INFO:  videodatarate          1500.00
INFO:  avclevel                32.00
INFO:  avcprofile              66.00
INFO:  videokeyframe_frequency 10.00
INFO:  audiodevice            AVerMedia BDA Analog Capture Secondary [1]
INFO:  audiosamplerate        44100.00
INFO:  audiochannels          2.00
INFO:  audioinputvolume        75.00
INFO:  audiocodecid            mp4a
INFO:  audiodatarate          96.00

0.660 kB / 0.00 sec
289.526 kB / 0.00 sec
673.945 kB / 0.00 sec
1078.496 kB / 0.00 sec
INFO: Metadata:
INFO:  presetname              Custom
INFO:  creationdate            Tue Apr 09 21:36:10 2013
INFO:  videodevice            AVerMedia BDA Analog Capture Secondary [1]
INFO:  framerate              60.00
INFO:  width                  720.00
INFO:  height                  400.00
INFO:  videocodecid            avc1
INFO:  videodatarate          1500.00
INFO:  avclevel                32.00
INFO:  avcprofile              66.00
INFO:  videokeyframe_frequency 10.00
INFO:  audiodevice            AVerMedia BDA Analog Capture Secondary [1]
INFO:  audiosamplerate        44100.00
INFO:  audiochannels          2.00
INFO:  audioinputvolume        75.00
INFO:  audiocodecid            mp4a
INFO:  audiodatarate          96.00

1203.780 kB / 0.01 sec
INFO: Metadata:
INFO:  presetname              Custom
INFO:  creationdate            Tue Apr 09 21:36:10 2013
INFO:  videodevice            AVerMedia BDA Analog Capture Secondary [1]
INFO:  framerate              60.00
INFO:  width                  720.00
INFO:  height                  400.00
INFO:  videocodecid            avc1
INFO:  videodatarate          1500.00
INFO:  avclevel                32.00
INFO:  avcprofile              66.00
INFO:  videokeyframe_frequency 10.00
INFO:  audiodevice            AVerMedia BDA Analog Capture Secondary [1]
INFO:  audiosamplerate        44100.00
INFO:  audiochannels          2.00
INFO:  audioinputvolume        75.00
INFO:  audiocodecid            mp4a
INFO:  audiodatarate          96.00


KSV 04-09-2013 09:41 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by lorus (Post 61490)
I have some trouble with a stream. The capturing seems to start but it captures only 0.01sec and then the process hangs / doesn't captures anything more ... :(

Try adding -v (--live) switch.

anon069 04-10-2013 07:23 AM

Re: Customized rtmpdump binaries with patch file


 
Thank you KSV for your effort and for adding those patches, one of which has fixed my previous problem. It is definitely appreciated. If only I had a tenth of the understanding that you have!

a69


All times are GMT -6. The time now is 08:12 AM.