online TV ... using rtmpdump, rtmpsrv and rtmpsuck

Using applications, configuring, problems
Message
Author
User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#21 Post by pemasu »

stu90. Your streamplay script for radio stations creates /tmp/ice-stations file if it is not there already. But....if you dont have net connection and you start the script...it creates the dummy ice-stations file which afterwards with net connection prevents the file to be overwritten. And leads to empty station list. I removed the if statement and let it be overwritten everytime. Curl is so astonishingly fast...as you know that overwritten file is not big thing. And it is in /tmp anyway.

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#22 Post by keniv »

I think I have found the answer to the question about quiting cvlc. I found a hotkeys list for vlc here http://wiki.videolan.org/Hotkeys_table. Ctrl-q works for vlc but apparently there is no equivalent in cvlc and so I have change the player to vlc.

Regards,

Ken.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#23 Post by sc0ttman »

Attached script: StreamPlayer 0.2 (was watch_tv) ....

Changelog for 0.2
- better $? handling and error codes (click X to quit now works, etc)
- separate lists for radio and TV streams
- choose radio or TV at startup
- added more TV streams
- updated text in GUI, shows TV or radio, depending what you choose
- auto sort the stream lists alphabetically
- renamed cancel button, now called 'Stop and Quit'
- the 'Stop and Quit' button now ends playback as well
- relevant fixes to make it all work in Xdialog and dialog

NOTE: I didn't include Stu extra radio stations,
but this could be done easy enough

Also, if anyone can get some working DemocracyNow streams that would be great! :)
Attachments
streamplayer.gz
updated, remove .gz. extension and make exec
(19.14 KiB) Downloaded 829 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
stu91
Posts: 145
Joined: Mon 06 Aug 2012, 15:11
Location: England. Dpup. Dell Inspiron 1501

#24 Post by stu91 »

keniv wrote:Hi All

Stu90

Thanks for v 0.2. I have made two small scrips so as I can run the TV and the radio from desktop icons. I'm afraid this is the limit of my ability. I would like to add the new urls to v 0.2. Is this a matter of adding the urls to your script in alphabetical order or is there more to it?
Ken.
Hi Keniv,
Sorry for the late reply - managed to break my old forum account so have had to re sign up.

For adding new urls - look in the section:
STREAMLIST=' notice the little apostrophe / single quote sign after the =' there is another one at the bottom of the urls section - you can paste the new urls (one per line ) between these two apostrophe's / single quote's - they dont need to be in any order as the script with sort them.

I have attached below v.03 with updated urls
Attachments
streamplay.gz
v.03 remove fake .gz and make script executable
(14.77 KiB) Downloaded 594 times

User avatar
stu91
Posts: 145
Joined: Mon 06 Aug 2012, 15:11
Location: England. Dpup. Dell Inspiron 1501

#25 Post by stu91 »

pemasu wrote:stu90. Your streamplay script for radio stations creates /tmp/ice-stations file if it is not there already. But....if you dont have net connection and you start the script...it creates the dummy ice-stations file which afterwards with net connection prevents the file to be overwritten. And leads to empty station list. I removed the if statement and let it be overwritten everytime. Curl is so astonishingly fast...as you know that overwritten file is not big thing. And it is in /tmp anyway.
Hi Pemasu,
I never thought about that. :oops:
cheers. :)

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#26 Post by keniv »

Hi All

stu91

Thanks for telling me how to add a new stream then saving me having to do it by creating a new version. However, I will try adding any new streams that are posted.

scOttman

Thanks for all your work on the new version. I like the separation of the TV and radio and the ability to switch off the radio stream. However, I have found what I think might be a problem when playing the radio streams. When a stream is chosen the "radio" box disappears and the "startup" choice box appears. This means you cannot choose the stop and quit option. Hope this is clear.

Regards,

Ken.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#27 Post by sc0ttman »

keniv wrote:When a stream is chosen the "radio" box disappears and the "startup" choice box appears. This means you cannot choose the stop and quit option. Hope this is clear.
Yes that's clear... But I just click either Radio or TV then 'Stop', only 1 extra click... The script is not a serious attempt at anything, just a quick n dirty solution for viewing/listening to stuff... Essentially I started this thread to get more streams for VLC-GTK. If I think of a quick way to fix the issue I'll post another version...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#28 Post by keniv »

Hi scOttman

OK, as you suggest it is not much of a problem. It works well and I like it a lot.

Ken.

poilu
Posts: 11
Joined: Fri 02 Nov 2012, 12:33

Streamplay in UBUNTU

#29 Post by poilu »

I want use the script streamplay in UBUNTU Lucid but I have this errors

:: Streaming Meida Player ::
:: Select Channel to Play ::

./streamplay.sh: 48: select: not found
./streamplay.sh: 50: [[: not found
./streamplay.sh: 63: [[: not found
Not a menu entry - please select again
./streamplay.sh: 65: Syntax error: "done" unexpected

Why doesn't go in UBUNTU? Is only a script!
Can you help me?

PS: in puppy is ok!

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#30 Post by Keef »

Might be a shell problem. Ubuntu uses dash rather than bash. Some built-in commands are different.
See here: https://wiki.ubuntu.com/DashAsBinSh#select

poilu
Posts: 11
Joined: Fri 02 Nov 2012, 12:33

#31 Post by poilu »

That was the problem! Thanks.

I have another question: the capture of rtmp stream.
I can locate many streams.
I use wireshark or iptable in association with rtmpsrv.
Some streams I can't!
Where is the problem? What don't I know of rtmp protocol?
I think that I can't to capture the stream in http://www.coolsport.tv/ but I don'know why!?

Sorry for my bad english :)

poilu
Posts: 11
Joined: Fri 02 Nov 2012, 12:33

#32 Post by poilu »

I have resolve. Was a problem of redirection. I was seen the redirection link with the option -V in rtmpdump.
Bye

GaRailroader
Posts: 33
Joined: Thu 17 Jun 2010, 01:14
Location: Atlanta, GA

rtmpsuck

#33 Post by GaRailroader »

This thread is very interesting. I have an interest in identifying streams though I don't think I'm following the instructions correctly. My goal is to be able to rip videos from Hulu and other sources so that my son can watch them on my tablet on car trips when we don't have internet connectivity.

I am using Precise Puppy 5.4.3 and the closest thing I've been able to find for running as spot or fido is Main Menu: Menu-Utility-Gexec and not checking the run as root checkbox. I've run the iptables command exactly as it is typed into this thread and it doesn't give me any error messages.(I was thinking maybe I am supposed to be making some substitutions in this entry.) Lastly, when I run the rtmpsuck command it looks like it is watching port 1935 at ip address 0.0.0.0. When I go to a streaming video the rtmpsuck terminal window doesn't show anything. Any suggestions to get me on the right track are greatly appreciated.

Pat

GaRailroader
Posts: 33
Joined: Thu 17 Jun 2010, 01:14
Location: Atlanta, GA

spot

#34 Post by GaRailroader »

I've had some success since last night. I followed sc0ttman steps #1 and #2 verbatim. Step 3 was for Akita, I was using Precise 5.4.3. I opened a terminal and typed in the command: su -l spot<cr> I then typed in whoami<cr> and it reported back spot. I fired off a Seamonkey session from this terminal using : DISPLAY=:0 seamonkey<cr> I then browsed to Hulu and played a video. Upon completion, the video was saved in the root folder using the same name as Hulu server. This is a major breakthrough for me. Thanks to all those contributors to this thread.

Pat

poilu
Posts: 11
Joined: Fri 02 Nov 2012, 12:33

#35 Post by poilu »

Hulu is only for USA but are you sure that is rtmp stream?
You can verify with wireshark: http://www.youtube.com/watch?v=8PuUnQCS7DQ.
Ciao

GaRailroader
Posts: 33
Joined: Thu 17 Jun 2010, 01:14
Location: Atlanta, GA

#36 Post by GaRailroader »

From everything I've seen and read, Hulu is an rtmp stream. Unfortunately, my success has been limited. I've been able to get rtmpsuck to save a video that I'm streaming in a spot user Seamonkey session but rtmpsuck seems to choke on an error message before completing a stream. The most video I've been able to get is about the first 12 minutes of a 42 minute video. If anyone has any tips, I'm all ears.

Pat

poilu
Posts: 11
Joined: Fri 02 Nov 2012, 12:33

New question on rtmps/tlsv1/ssl

#37 Post by poilu »

Can I capture a stream video in tlsv1 on ssl?
Peraphs rtmps so work?
I want capture rtmps on 443 tcp port.
Am I delirius?
Thanks

poilu
Posts: 11
Joined: Fri 02 Nov 2012, 12:33

#38 Post by poilu »

Ok.
if you get a dev channel release of Chrome and a trunk build of Wireshark you can run Chrome with the environment variable SSLKEYLOGFILE set to, say, /home/foo/keylog. Then, in Wireshark's preferences for SSL, you can tell it about that key log file. As Chrome makes SSL connections, it'll dump an identifier and the connection key to that file and Wireshark can read those and decrypt SSL connections.
Ciao

stevielee
Posts: 36
Joined: Thu 26 Jul 2012, 02:51

Totally awesome......so far

#39 Post by stevielee »

Hi all....

I was started on this kick of acquiring video over the net (in a variety of ways) and had varying degrees of luck. Some browser plugins do a lot, but big sites like Hulu seem to evade me. Maybe the usual capture plugins just need to be updated - I have not tried it in a while.


This thread here got me started on a much closer monitoring of incoming streams rather than relying on the plugins which don't let you get into the guts of what is really happening. I played with it a while back, but no luck. Thanks to Garailroader I did get a stream from Hulu today, and was quite pleased. I would like to know the following:

I first tried to run as spot with su spot then I started a browser with the defaultbrowser command, but I got the same result as Garailroader.....the rtmpsuck terminal produced no response.

I then did exactly as he did,...I used su -l spot and then DISPLAY=:0 seamonkey.........and the Hulu stream came in on the rtmpsuck window nicely. It also automatically recorded it to /root (the home or ~ directory) without me doing anything. Is that normal? Do live streams record automatically as well? Also, why did small changes in the su and browser commands get the right results?

I don't know why this thread is not hugely popular. What are the best methods for getting the videos one wants - outside of direct downloads of files, drop sites, torrents, etc. Mainly I was wondering if this rtmpdump method is the best way to get into the heart of a media stream. Also, what does wireshark do and is that useful here?

I am very appreciative of the insights of scottman, garailroader, and poilu....I would get nowhere without your input.

Thanks,

Steven




Hmmm....seems like Hulu is not cooperating on full episodes of things....it has erratic behavior...does anyone see this also?

poilu
Posts: 11
Joined: Fri 02 Nov 2012, 12:33

#40 Post by poilu »

@all.
STreamplay with vlc and now ok also in UBUNTU!
Thanks to Sc0ttman STu90 and Darby Crash for modify.
And other.
Ciao
Attachments
streamplay.tar.gz
(1.29 KiB) Downloaded 388 times

Post Reply