Hey! I've tried to view some RTMP streams, but since I am not a constant Rtmpdump's user, none of my tests succeeded!
This was after DMW's post (#883) on the UK channels topic.![]()
Here is an example:
test.txt
here what RD says:
"Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close"
PS:I used in the example above the command screened by VLCexplorer, to be sure that the operation would be exact on rtmpdump.
Last edited by sayco; 21-05-2012 at 23:28.
hi
i have a question
lets say i am streaming using rtmpdump like this
which it works perfectlyrtmpdump -v -r "rtmp://XXXXXXXX" | vlc -
but the thing is i want that vlc to launch after the rtmpdump receive data or after it say connect
i dont want him to open vlc at the same moment when he open rtmpdump but after for example 3 sec
so vlc will stream instantly without waiting
is it possible ?
thanks
the vlc is a child process that has to be created, so the pipe write will be established from rtmpdump.
in order to perform piping, vlc must be already ready to accept data.
what you can possibly do is hide the vlc window until data is available, but this needs to be done in
rtmpdump code.
rossifeder (08-06-2012)
last year when we had the uk hd (unicast) streams we had a lot of talk about buffering so I came up with this piece of script for my use never saw a need to share it, now I have cleaned it up a little,
it works by dumping the stream to a flv file, and vlc starts after a 30 second delay (back then I used a 1 minute delay)
the lines in red are not to be used, they just helpful hints as to what goes where.
may not be exactly what you want, but it can be useful when a stream lags a little and you want a smooth playback, just set a higher delay before launch of vlcCode:CALL:PLAY PING -N 31 127.0.0.1 >NUL CALL:VLC1 TASKKILL /F /IM rtmpdump.exe /T CLS ECHO clearing cache.... PING -N 3 127.0.0.1 >NUL DEL stream.flv GOTO:EXIT or goto your menu label so you can select another stream :PLAY ECHO The put the stream name here if you want too stream wil start in 30 seconds.... START /MIN rtmpdump -v -r put the stream info here -o "stream.flv" GOTO:EOF :VLC1 CLS ECHO Close vlc to return to the menu. CALL %vlc% -vvv "stream.flv" -q --meta-title="stream name" - & GOTO:EOF :EXIT
Last edited by sandy187; 06-06-2012 at 21:37.
DEAD_MAN_WALKING (06-06-2012), rossifeder (08-06-2012), wired_ (06-06-2012)
You know if your a streamer this could come in real handy for (re)broadcasting channels you dont have so to speak...![]()
Say NO to Ads on streams & Stop the Virus/Malware Alerts.
If ever a password is needed in any of my or other users uploads try myp2p, Myp2p or wiziwig.
sandy187 (06-06-2012)
i am not doing this for lagbecause for lag i can just increase the buffer size of vlc
i am doing this because i want to do a beautiful batch file
anyway the code isnt working
i noticed that is missing EOF so when it say goto EOF it cant find it
i think this is the problem
can u put the code again
thanks
it's only a part of a script.
I called a label, and used the eof to return to the point after the call, so I can continue the rest of the cmd. If I had used goto "xxx" label, that would create a loop.
here is a script I have, but not posted as yet enpttv.bat.txt I still need to direct the rtmpdump cmds to a single label.Code:VLC DELAYED START.TXT
Last edited by sandy187; 08-06-2012 at 21:49.
DEAD_MAN_WALKING (09-06-2012), rossifeder (08-06-2012)
nice , thank you
i will analyze the code tomorrow
but i have a question
lets say that i want (using a batch file) to open a stream and save it, like this
rtmpdump rtmp -v -r "XXX" -a --------------etc etc -o stream.flv
the problem now , how i can tell that the streaming is getting save or there is an error like connecting to server
i know that rtmpdump show in background what going on , but i want it to be automatic from the batch
i want the batch to tell me if there is a streaming (and saving it) or there isnt (error) and maybe the batch cay retry connecting again
so i think i need that rtmpdump to return a value like 1 to success and 0 to error
can i do that ? does rtmpdump return a value ? is there a method similar to this (other helping script) to do this
the fact is , i did study language C for programming 3 years ago , but i start to using batch 3 days ago and iam trying to learn
in language C i am used to this using a value that return from a function so i am asking if is the same thing here
thanks
sandy187 (09-06-2012)
rossifeder (09-06-2012)
Is it possible to use RTMP Dump or something similar to BROWSE a server?
For example I download an MTV show for my wife each week. (Well before this Viacom/DirecTV fight). I sniff the rtmp's and then use command line to download. It looks like this.Can I explore the base website and download shows whenever they are added to server?Code:"C:\temp\rtmpdump.exe" -r "rtmpe://cp10740.edgefcs.net/ondemand/mtvnorigin/gsp.originmusicstor/sites/mtv.com/shows/teen_mom_4/aftershow/mt_teenmom_s4_school_act1_Maci_FINAL_1280x720_3500_h32.mp4" -o "c:\temp\a1.mp4" --resume
Thanks.
Last edited by SourDeez; 15-07-2012 at 19:23.
Say NO to Ads on streams & Stop the Virus/Malware Alerts.
If ever a password is needed in any of my or other users uploads try myp2p, Myp2p or wiziwig.
sandy187 (26-07-2012), thatguy7669 (27-07-2012), tvmaster (26-07-2012), wired_ (29-07-2012)
Hi. I'm using rtmpdump with rtmpsuck and I wonder if there is any possibility to open demanded video automaticly in vlc (instead of rewriting swf, rtmp server and page into rtmpgui or command line)
DEAD_MAN_WALKING (27-07-2012), sandy187 (26-07-2012), wired_ (29-07-2012)
Is it even possible for Mr Chu to make that kind of decision? After all, last i heard rtmpdump was open source.KSV can modify the source with his patches to the extent, that he'd be better off renaming the modified program.
Say NO to Ads on streams & Stop the Virus/Malware Alerts.
If ever a password is needed in any of my or other users uploads try myp2p, Myp2p or wiziwig.