CalumJEadie
Posts: 15
Joined: Thu Oct 18, 2012 10:51 pm
Contact: Website

Omxplayer support for console YouTube client - yt

Mon Oct 29, 2012 6:07 pm

yt - a command line YouTube client, now has Omxplayer support.

yt allows you to browse YouTube videos quickly through a command line client and can now take advantage of Omxplayer for hardware accelerated YouTube playback.

Check out the project at https://github.com/rjw57/yt and get it up and running with:

Code: Select all

sudo apt-get install youtube-dl # Installs dependancies.
sudo youtube-dl -U # Makes sure latest version is used.
sudo apt-get install python-setuptools
sudo easy_install whitey # Install yt - different name used to avoid conflict with existing project.
yt --player omxplayer # Specify Omxplayer rather than default MPlayer.
Thanks to:

jimb137
Posts: 11
Joined: Thu Dec 20, 2012 1:31 am
Location: Sacramento, California, USA

Re: Omxplayer support for console YouTube client - yt

Thu Dec 20, 2012 1:35 am

I tried these simple steps with the 12/16 release, and all I got was a couple of screens of errors. Anyone interested in them? Any ideas how to proceed?

CalumJEadie
Posts: 15
Joined: Thu Oct 18, 2012 10:51 pm
Contact: Website

Re: Omxplayer support for console YouTube client - yt

Thu Dec 20, 2012 4:49 pm

jimb137 wrote:I tried these simple steps with the 12/16 release, and all I got was a couple of screens of errors. Anyone interested in them? Any ideas how to proceed?
Hey jimb137,

May be able to help you out! Let me know the errors and I'll have a look (if there's a lot probaby best we http://pastebin.com/).

Cheers,
Calum

jimb137
Posts: 11
Joined: Thu Dec 20, 2012 1:31 am
Location: Sacramento, California, USA

Re: Omxplayer support for console YouTube client - yt

Thu Dec 20, 2012 8:36 pm

OK, Here 'tis

pi@raspberrypi ~ $ yt --player omxplayer

Traceback (most recent call last):

File "/usr/local/bin/yt", line 9, in <module>

load_entry_point('whitey==0.2', 'console_scripts', 'yt')()

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 28, in main

ui.run()

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 71, in run

curses.wrapper(self._curses_main)

File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper

return func(stdscr, *args, **kwds)

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 114, in _curses_main

self._update_screen()

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 172, in _update_screen

self._add_table_row(self._help, 0, 0, w-1, self._bar_attr, max_width=16, win=self._help_bar)

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 349, in _add_table_row

win.addstr(y, x, truncate('%s:%s' % (k,v), min(w-x, cell_w)).encode(self._code), attr)

UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2026' in position 12: ordinal not in range(256)

pi@raspberrypi ~ $

have fun with this... I'll be back from holiday in January

pesch
Posts: 1
Joined: Sun Jan 13, 2013 4:36 pm

Re: Omxplayer support for console YouTube client - yt

Sun Jan 13, 2013 4:46 pm

jimb137 wrote:OK, Here 'tis

pi@raspberrypi ~ $ yt --player omxplayer

Traceback (most recent call last):

File "/usr/local/bin/yt", line 9, in <module>

load_entry_point('whitey==0.2', 'console_scripts', 'yt')()

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 28, in main

ui.run()

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 71, in run

curses.wrapper(self._curses_main)

File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper

return func(stdscr, *args, **kwds)

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 114, in _curses_main

self._update_screen()

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 172, in _update_screen

self._add_table_row(self._help, 0, 0, w-1, self._bar_attr, max_width=16, win=self._help_bar)

File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 349, in _add_table_row

win.addstr(y, x, truncate('%s:%s' % (k,v), min(w-x, cell_w)).encode(self._code), attr)

UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2026' in position 12: ordinal not in range(256)

pi@raspberrypi ~ $

have fun with this... I'll be back from holiday in January

I posted a solution in this previous post http://www.raspberrypi.org/phpBB3/viewt ... 57&p=98096 Check your locale and make sure it supports Unicode.

Return to “General discussion”

Who is online

Users browsing this forum: bensimmo, Burngate, Imperf3kt, roshnee_kishore and 64 guests