|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
I have been using OpenBSD for more then 12 years, but if I really have to watch a video I just boot a Linux Mint liveCD
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
I dual boot Slackware and OpenBSD so if I want easy I can boot into Linux. Also, I have VLC and youtube-dl installed (Firefox) on OpenBSD.
__________________
hitest Last edited by hitest; 4th January 2014 at 01:06 AM. Reason: addition |
|
|||
x11/mplayer with www/youtube-dl, e.g.:
mplayer -cache 2048 -cache-min 10 `youtube-dl.py -gf5 -- XCnK3B7Ftow` This works for me on FreeBSD, so I guess it should also work on OpenBSD.
__________________
May the source be with you! |
|
||||
www/cclive is another option to download the video [and save it] and watch it on a local media player. It supports more flash video sites than just Youtube. Doing it this way may seem cumbersome at first but there are many advantages, e.g., you will no longer be forced to sit through those obnoxious advertisement videos Youtube now shoves in everyone's face.
|
|
||||
Install Firefox or other HTML5 cable browser (Xombrero comes to mind). Go to youtube and opt for HTML trials. If that doesn't work OpenBSD has at least one sometimes two packages per every popular scripting language (Perl, Python, Lua, Ruby) to download videos from YouTube. Since I work a lot lately with Python I go with youtube-dl but I also like Lua based scripts.
Last edited by Oko; 3rd January 2014 at 03:22 AM. |
|
|||
HTML5 stuff works fine for me, you can also try using the embedded link and or videodownloadhelper plugin to watch them.
|
|
|||
I have the "youtube-dl", "zenity" and "vlc" packages installed and I am using a keyboard shortcut, "Mod4-y", that runs the following script:
Code:
#!/bin/sh xterm -e 'youtube-dl --no-part -f 18/0/h264-sd -o $HOME/video.vid `zenity --entry` & \ sleep 8 && vlc -f $HOME/video.vid vlc://quit; \ mv $HOME/video.vid $HOME/video.vid.old; \ pkill -n xterm & ksh' I've set up youtube-dl to download videos in medium quality for youtube, liveleak and vimeo ("18" selects medium quality for youtube, "0" for liveleak and "h264-sd" for vimeo). If you want to choose a better quality, run "youtube-dl -F URL" and replace "18/0/h264-sd" with your choices. "youtube-dl --list-extractors" gives you a full list of supported sites. There certainly are better ways to do this. Also, this script can be dangerous, because the last line always kills the last opened xterm (which should be the xterm the script runs in, but you may leave the video open to watch it later). This is no problem for me, as I am always running tmux on top of xterm, so if the wrong xterm is killed, I just have to reattach tmux. Last edited by yei0K; 5th January 2014 at 12:54 PM. |
|
|||
Quote:
drm Code:
#!/bin/sh # needs zenity, youtube-dl and vlc installed URL=$(zenity --entry --text "Enter Video URL:") if [ "$URL" = "" ]; then echo "You must enter a url." exit fi TMPFILE=$(mktemp /tmp/youtube-vid.XXXXXX) youtube-dl --no-part -f 18/0/h264-sd -o $TMPFILE "$URL" & DL_PID=$! sleep 5 cvlc -f $TMPFILE vlc://quit kill $DL_PID rm $TMPFILE |
|
|||
Quote:
As an example, assume I want to watch the interview with Theo de Raadt found at http://www.youtube.com/watch?v=mahBZ4lSZHQ. To view this with x11/mplayer as a media player, use the following steps:
|
|
|||
I tried using mplayer but got this error message:
Code:
************************************************ **** Your system is too SLOW to play this! **** ************************************************ The problem is that mplayer is only using one core and each of my cores are running at less than 3 Ghz... I made mplayer use two cores by changing the ~/.mplayer/config Code:
lavdopts=threads=2 Code:
It seems there is no Xvideo support for your video card available. Code:
lavdopts=threads=2 vo=x11 |
|
|||
Waiting for the new version of SMtube to be ported. The actual does not swallow well the Vevo's tricking.
|
|
||||
gonzalo@ introduced the port and has been making the recent updates.
I use smtube, and so I will try to work up a patch for 1.8 this evening; if I get it working I'll post a patch here for you, and send it to gonzalo@ for consideration. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD Developer Videos From AsiaBSDCon 2013 | J65nko | News | 0 | 23rd November 2013 01:42 PM |
OpenBSD Watch CVS commits on Twitter! | ocicat | News | 1 | 12th July 2012 04:36 PM |
Videos of Open Source Forum talks from CeBIT 2012 | J65nko | News | 0 | 23rd March 2012 01:44 AM |
Enable Youtube Video in HTML5 | shep | News | 13 | 25th December 2011 07:31 PM |
Conference on Youtube infrastructure | 18Googol2 | Off-Topic | 0 | 13th July 2008 05:20 PM |