DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th December 2013
lucas34's Avatar
lucas34 lucas34 is offline
Real Name: Lucas
Noob.
 
Join Date: Oct 2013
Posts: 17
Default how to watch youtube videos on OpenBSD?

I tried some tutorials but none worked!
Thanks.

Last edited by lucas34; 27th December 2013 at 04:44 PM.
Reply With Quote
  #2   (View Single Post)  
Old 27th December 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

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
Reply With Quote
  #3   (View Single Post)  
Old 27th December 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I use either x11/smtube or www/youtube-dl.
Reply With Quote
  #4   (View Single Post)  
Old 27th December 2013
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 335
Default

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!
Reply With Quote
  #5   (View Single Post)  
Old 30th December 2013
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

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.
Reply With Quote
  #6   (View Single Post)  
Old 3rd January 2014
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

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.
Reply With Quote
  #7   (View Single Post)  
Old 3rd January 2014
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by J65nko View Post
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
Why? I have done some semi-serious video editing and encoding on OpenBSD. If you need something better than OpenBSD for your video work next stop should be OS X and some kind of proprietary software.
Reply With Quote
  #8   (View Single Post)  
Old 4th January 2014
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 405
Default

Quote:
Originally Posted by Oko View Post
If you need something better than OpenBSD for your video work next stop should be OS X and some kind of proprietary software.
Why ? You can edit videos with Blender, no ? (with an i386/amd64 CPU, I mean).
But you're a bit off-topic, no ?
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
  #9   (View Single Post)  
Old 4th January 2014
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 373
Default

Quote:
Originally Posted by J65nko View Post
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
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
Reply With Quote
Old 4th January 2014
Holubecois Holubecois is offline
New User
 
Join Date: Dec 2013
Posts: 7
Default

HTML5 stuff works fine for me, you can also try using the embedded link and or videodownloadhelper plugin to watch them.
Reply With Quote
Old 5th January 2014
yei0K yei0K is offline
New User
 
Join Date: Jan 2014
Posts: 1
Default

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'
To watch a YouTube video, I copy the URL to the clipboard, press "Mod4-y", paste the URL into the dialog, the video begins to download and after 8 seconds, vlc streams the video in fullscreen.

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.
Reply With Quote
Old 7th January 2014
lucas34's Avatar
lucas34 lucas34 is offline
Real Name: Lucas
Noob.
 
Join Date: Oct 2013
Posts: 17
Default

Thanks for the replies.Unfortunately no procedure worked.When I try watching a video keeps saying I need to install flash.I tried with FF, Chromium and Xombrero.
(google transl.)
Reply With Quote
Old 7th January 2014
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by lucas34 View Post
When I try watching a video keeps saying I need to install flash.I tried with FF, Chromium and Xombrero.
x11/youtube-dl does not integrate itself into a browser. It is a command-line Python application which is used as an intermediate step.

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:
  1. Download the interview in MP4 format with the following command:

    $ youtube-dl -f 18 http://www.youtube.com/watch?v=mahBZ4lSZHQ

    The -f 18 option is used to limit downloading to MP4 format.

    Downloading may take several minutes depending upon your network connection. youtube-dl will update download information until completed:
    Code:
    $ youtube-dl -f 18 http://www.youtube.com/watch?v=mahBZ4lSZHQ
    [youtube] Setting language
    [youtube] mahBZ4lSZHQ: Downloading video webpage
    [youtube] mahBZ4lSZHQ: Downloading video info webpage
    [youtube] mahBZ4lSZHQ: Extracting video information
    [download] Destination: mahBZ4lSZHQ.mp4
    [download] 100.0% of 134.86M at  230.96k/s ETA 00:00
    $
  2. View the MP4 file with any media player. I have successfully used x11/mplayer and/or x11/vlc. Using mplayer as an example, use the following command:

    $ mplayer mahBZ4lSZHQ.mp4

    Note that mplayer & vlc are X applications.
  3. When finished, save or delete the MP4 file as desired.
Yes, youtube-dl requires manual intervention, however with minimal imagination, one can write a simple shell script to take out some drudgery. The advantage of downloading locally is if videos are worthwhile, you now have a local copy which you can store yourself. Stuff posted on YouTube tends to vaporize at rather inconvenient times.
Reply With Quote
Old 8th January 2014
lucas34's Avatar
lucas34 lucas34 is offline
Real Name: Lucas
Noob.
 
Join Date: Oct 2013
Posts: 17
Default

Is there any virtualization program for OpenBSD?I could put a distro like mint in the virtual machine only to watch videos.It would be more practical.
Reply With Quote
Old 8th January 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I recommended smtube, in my post above. It is a GUI for searching and playing youtube videos with smplayer.
Reply With Quote
Old 8th January 2014
lucas34's Avatar
lucas34 lucas34 is offline
Real Name: Lucas
Noob.
 
Join Date: Oct 2013
Posts: 17
Default

smtube works!Goodbye Flash player.
Reply With Quote
Old 13th January 2014
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default

I tried using mplayer but got this error message:

Code:
           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************
But this is running on a quad core computer!?

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
It worked ok but then I saw this error message:

Code:
It seems there is no Xvideo support for your video card available.
So I added another option and my ~/.mplayer/config looks like this:
Code:
lavdopts=threads=2
vo=x11
Reply With Quote
Old 29th January 2014
Martillo Martillo is offline
Semper deinceps corda
 
Join Date: Apr 2013
Location: Madrid, Spain
Posts: 79
Default

Waiting for the new version of SMtube to be ported. The actual does not swallow well the Vevo's tricking.
Reply With Quote
Old 29th January 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

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.
Reply With Quote
Old 30th January 2014
censored censored is offline
Swen Tnavelerri
 
Join Date: Jan 2014
Posts: 45
Default

I've looked at youtube-dl. I've never used it, but I did take a peek at the code.

The user agent it sends (ends in "Gecko/20100101 Firefox/10.0 (Chrome)") is fairly identifiable as coming from youtube-dl. Type it into Google to see for yourself. I have no idea what Youtube's opinion towards youtube-dl might be, or if its usage would be considered to be outside of their policy limits, but still - I wonder why the author chose that user agent.

At least, the copy of the program that I looked at had the described user agent, as default.

Last edited by censored; 30th January 2014 at 03:19 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 07:47 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick