Re: [dev] [surf] web videos idea
On Sun, Nov 23, 2014 at 09:01:07PM -0500, Greg Reagle wrote: I use extension DownloadHelper for Firefox then play movie file with mplayer. You can also inspect the source of the HTML page as the full URL of the video is often there (usually ends with .mp4 or .flv). Many video players will work with an http URL so you don't need an extra download step. Thank you guys, but I'm looking for something automatic. Looks like it doesn't exist but would be cool to have something like this. Also I don't care about youtube videos or any other type of video system that doesn't provide their videos as video files, I think this is wrong and sucks a lot. So my interest is in direct video links and pages with html5 video tag, that also point to a video file. Regards, -- Henrique Lengler
Re: [dev] [surf] web videos idea
Henrique Lengler wrote: Thank you guys, but I'm looking for something automatic. Looks like it doesn't exist but would be cool to have something like this. Also I don't care about youtube videos or any other type of video system that doesn't provide their videos as video files, I think this is wrong and sucks a lot. So my interest is in direct video links and pages with html5 video tag, that also point to a video file. Regards, There was a script+patch somewhere that would grab an embedded video and play it with mplayer/mpv/... by pressing a shortcut defined in your config.def.h of surf, and as long as you disable javascript and plugins, surf won't play the video by itself. I can't remember where I found it, but here's the code: #define WATCH {.v = (char *[]){ /bin/sh, -c, \ st -e \ yt $(xprop -id $0 _SURF_URI | cut -d \\\ -f 2), \ winid, NULL } } [...] { MODKEY, GDK_w, spawn, WATCH }, with yt being something like the attached script. #!/bin/mksh # format=-f34 # leave empty for default player=mpv --quiet --geometry=50%:50% --keep-open tmpdir=$HOME/yt url=$1 filepath=$tmpdir/$(youtube-dl --id --get-filename $format $url) youtube-dl -c -o $filepath $format $url print $! $filepath.$$.pid while [ ! -r $filepath ] [ ! -r $filepath.part ]; do printf '%s' Waiting for youtube-dl... sleep 3 done [ -r $filepath.part ] $player $filepath.part || $player $filepath kill $($filepath.$$.pid) rm $filepath.$$.pid
Re: [dev] [surf] web videos idea
use the filth web browser, that one will run mplayer for all html5 video.
Re: [dev] [surf] web videos idea
use the filth player, that one will run mplayer for all html5 video.
Re: [dev] [surf] web videos idea
On Mon, Nov 24, 2014 at 10:31:30PM +0100, hiro wrote: use the filth web browser, that one will run mplayer for all html5 video. I can't find anything related to filth web browser on google. Regards, -- Henrique Lengler
Re: [dev] [surf] web videos idea
sorry, third attempt: fifth browser
Re: [dev] [surf] web videos idea
I use extension DownloadHelper for Firefox then play movie file with mplayer. You can also inspect the source of the HTML page as the full URL of the video is often there (usually ends with .mp4 or .flv). Many video players will work with an http URL so you don't need an extra download step. On Fri, Nov 21, 2014, at 07:39 PM, Henrique Lengler wrote: I have a video player (mplayer) installed on my computer with a lot of codecs, so it is able to play a lot of videos formats. I don't like the idea of installing some plugins like gstreamer to play vide on on the browser if have a video player already working. This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to WORK TOGETHER. So I just thought, is there a way to combine both, my web browser that will care only about display the html stuff, and leave the video work to my video player? This would be awesome. -- http://www.fastmail.com - Same, same, but different...
Re: [dev] [surf] web videos idea
On Sat, Nov 22, 2014 at 12:39:07AM +, Henrique Lengler wrote: Hi, I have a video player (mplayer) installed on my computer with a lot of codecs, so it is able to play a lot of videos formats. I don't like the idea of installing some plugins like gstreamer to play vide on on the browser if have a video player already working. This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to WORK TOGETHER. So I just thought, is there a way to combine both, my web browser that will care only about display the html stuff, and leave the video work to my video player? This would be awesome. There is a firefox plugin called mozplugger that does pretty much that. It'll select a program to display external content with based on its own config file, termcap, xdg-mime and alternatives[1], then launch that program and embed its window into firefox. [1] See, that's what happens when there is no standard. mozplugger has now 4 different ways of selecting an application, so if the choice it takes is the wrong one, good luck in figuring out how to change it. Regards, Ciao, Markus
[dev] [surf] web videos idea
Hi, I have a video player (mplayer) installed on my computer with a lot of codecs, so it is able to play a lot of videos formats. I don't like the idea of installing some plugins like gstreamer to play vide on on the browser if have a video player already working. This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to WORK TOGETHER. So I just thought, is there a way to combine both, my web browser that will care only about display the html stuff, and leave the video work to my video player? This would be awesome. Regards, -- Henrique Lengler
Re: [dev] [surf] web videos idea
Henrique Lengler wrote: So I just thought, is there a way to combine both, my web browser that will care only about display the html stuff, and leave the video work to my video player? This would be awesome. Heyho, you can use youtube-dl to download embedded videos from many sites or play them directly with a quvy enabled mpv (which I find way better than mplayer). --Markus