LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Determine the RTSP stream of Youtube video? (https://www.linuxquestions.org/questions/programming-9/determine-the-rtsp-stream-of-youtube-video-907262/)

Xeratul 10-09-2011 12:15 PM

Determine the RTSP stream of Youtube video?
 
Hello,

VLC can play the RTSP streams. Thus VLC could play the Youtube videos. Would you know a plugin for VLC to watch Youtube, or also could it be possible
from a given video to determine its rtsp url to watch it?

That would be great to directly watch in fullscreen with good resolution.

A solution with SH could be universal.

If it might be possible

Thank you

paulsm4 10-09-2011 12:35 PM

I'm not sure what you're looking for. Perhaps something like this:

Code:

http://www.videolan.org/doc/vlc-user-guide/en/ch04.html

vlc -vvv rtsp://www.example.org/your_stream

These links might also be helpful:

* http://www.videolan.org/support/faq.html

* http://wiki.videolan.org/VLC_command-line_help

Xeratul 10-09-2011 12:47 PM

1 Attachment(s)
Quote:

Originally Posted by paulsm4 (Post 4493928)
I'm not sure what you're looking for. Perhaps something like this:

Code:

http://www.videolan.org/doc/vlc-user-guide/en/ch04.html

vlc -vvv rtsp://www.example.org/your_stream

These links might also be helpful:

* http://www.videolan.org/support/faq.html

* http://wiki.videolan.org/VLC_command-line_help

Well, Here is an example.

Would you have the same as vlcflvplayer.user.js but into Bash or perl?

Code:

http://pastebin.com/7Qr7KMU6
...

An alternative is to get it mozilla plugin.

Is there a SH script that does it as well (without even opening the youtube or requiring the mozilla iceweasel)?

ta0kira 10-09-2011 02:47 PM

In Linux at least, FlashPlayer downloads the video to a temporary file, then plays it from that. At least one version I've used saved the file to /tmp/flash?????? or something like that, and the current version downloads the file to a similar location and immediately deletes it (available by copying the hanging fd in /proc/???/fd for the process running the plugin.) I'm not sure if this is different YouTube versions, different FlashPlayer versions, or different plugin wrappers. Anyway, you might take a look at how the plugin wrappers are written. It's generally been a .flv, .wmv, or .mp4 format.
Kevin Barry


All times are GMT -5. The time now is 12:33 PM.