I am conneceted to the TV through HDMI.bobbydriver wrote:How is your screen connected? HDMI or Composite?
You have to make sure the command to output via omxplayer is pointed at the right output.
Everything you describe is normal - except the video should appear on your screen
I tried using composite cable and its doing the same.bobbydriver wrote:If you are using HDMI then the file needs to say
mplayer = subprocess.Popen(
['omxplayer', '-ohdmi', url.decode('UTF-8').strip()],
stdout = subprocess.PIPE, stderr = subprocess.PIPE)
mplayer.wait()
Alternatively - can you try and connect via the composite to SCART see if your output is coming that way?
And finally does an OMXPlayer.log file get written to the directory you start yt from? If so then it might have some clues in it
Code: Select all
00:00:00 T:0 DEBUG: DllBcm: Using omx system library
00:00:00 T:0 DEBUG: DllOMX: Using omx system library
00:00:00 T:0 DEBUG: DllAvFormat: Using libavformat system library
00:00:00 T:0 DEBUG: DllAvUtilBase: Using libavutil system library
00:00:00 T:0 DEBUG: DllAvCodec: Using libavcodec system library
00:00:00 T:0 DEBUG: DllAvFormat: Using libavformat system library
00:00:00 T:0 ERROR: COMXPlayer::OpenFile - avformat_open_input http://o-o---preferred---sn-uxap5nvoxg5-ixhl---v18---lscache6.c.youtube.com/videoplayback?upn=svZd2-RhLeU&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=914501%2C927200%2C916806%2C900300%2C916611%2C922401%2C920704%2C912806%2C927201%2C925706%2C922403%2C913546%2C913556%2C916805%2C920201%2C901451&ms=au&algorithm=throttle-factor&burst=40&ip=80.221.10.207&itag=35&gcr=fi&sver=3&mt=1353954609&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hUSFlSVl9OS0NONF9RTFpDOkJPYVhOY2ZyNTk3&expire=1353978291&id=fce065812cfcb123
Can you explain how do we latest version of whitey and youtube-dl?Montekuri wrote:VIDEO NOT PLAYING - SOLUTION:
We have to install the latest version of whitey and youtube-dl:
Whitey version 0.2 (november 2012)
http://pypi.python.org/pypi/whitey
youtube-dl
https://github.com/rg3/youtube-dl/blob/ ... l?raw=true
Code: Select all
sudo youtube-dl -U
I am all set now. Thank you.dirkk0 wrote:worked for me. Thanks for this great post.Code: Select all
sudo youtube-dl -U
I thing you go to run the python setup script again.Luutifa wrote:Updated whitey, and yt-downloader (or whatever it was)
Does whitey0.2 need any tweaking in the source?
I don't think it does.
But still, doesn't work. I did remove the ", '-ohdmi'" from _init_.py, but can that do any bad?
I get:
OSError: [Errno 8] Exec format error
Actually, I solved my problem by manually upgrading youtube-dl (sudo youtube-dl -U didn't do it for some reason), and starting with "yt --player omxplayer"sim_tcr wrote:I thing you go to run the python setup script again.Luutifa wrote:Updated whitey, and yt-downloader (or whatever it was)
Does whitey0.2 need any tweaking in the source?
I don't think it does.
But still, doesn't work. I did remove the ", '-ohdmi'" from _init_.py, but can that do any bad?
I get:
OSError: [Errno 8] Exec format error
Correct syntax is mentioned in the beginning of this thread
Is there any solution? - Thank you for your help!pi@raspberrypi ~ $ yt
Traceback (most recent call last):
File "/usr/local/bin/yt", line 9, in <module>
load_entry_point('whitey==0.1', 'console_scripts', 'yt')()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 16, in main
ui.run()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 56, 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.1-py2.7.egg/yt/__init__.py", line 100, in _curses_main
self._run_pager()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 227, in _run_pager
self._play_video(c - ord('1'))
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 254, in _play_video
play_url(url)
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 364, in play_url
stdout = subprocess.PIPE, stderr = subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden
djdisc wrote:Hi, im also getting the Error
Is there any solution? - Thank you for your help!pi@raspberrypi ~ $ yt
Traceback (most recent call last):
File "/usr/local/bin/yt", line 9, in <module>
load_entry_point('whitey==0.1', 'console_scripts', 'yt')()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 16, in main
ui.run()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 56, 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.1-py2.7.egg/yt/__init__.py", line 100, in _curses_main
self._run_pager()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 227, in _run_pager
self._play_video(c - ord('1'))
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 254, in _play_video
play_url(url)
File "/usr/local/lib/python2.7/dist-packages/whitey-0.1-py2.7.egg/yt/__init__.py", line 364, in play_url
stdout = subprocess.PIPE, stderr = subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden
Code: Select all
yt --player omxplayer
Stuff in red is my work, including the easy paste of __init__.py, and running "sudo youtube-dl -U" Anyway, I think it's just about brain proof at this point.marktbaldridge wrote:
So, we have to download it here: https://github.com/rg3/youtube-dl/raw/2 ... youtube-dlThen we have to manually install it:Code: Select all
wget https://github.com/rg3/youtube-dl/raw/2012.02.27/youtube-dl
Now we need to install python's setup tools. And BTW, don't worry, this is all small stuff. You won't clutter up your SD card.Code: Select all
chmod +x youtube-dl cp youtube-dl /usr/bin/youtube-dl
Next we need to download and extract yt which is an awesome python console utility for playing youtube videos.Code: Select all
sudo apt-get install python-setuptools
But DON"T INSTALL YET! We need to tell yt to use omxplayer not mplayer because that doesn't work on the RP.Code: Select all
wget http://pypi.python.org/packages/source/w/whitey/whitey-0.1.tar.gz tar -zxvf whitey-0.1.tar.gz
[/color]Code: Select all
wget https://dl.dropbox.com/u/33311875/__init__.py cp __init__.py whitey-0.1/src/yt/__init__.py
Next, navigate so that you are in the main whitey folder, and then install:Finally run "sudo youtube-dl -U" until it says it needs to update once more. Wait for it to finish, then do it again, because it's a liar and a cheat, and you have to wait for it to say "youtube-dl is up-to-date (2012.12.11)"Code: Select all
sudo python setup.py install
Then you should be able to just run ~$ yt and watch the magic happen!
Code: Select all
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 115, in _curses_main
self._run_pager()
File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 242, in _run_pager
self._play_video(c - ord('1'))
File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 269, in _play_video
play_url(url,self._player)
File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 382, in play_url
play_url_omxplayer(url)
File "/usr/local/lib/python2.7/dist-packages/whitey-0.2-py2.7.egg/yt/__init__.py", line 394, in play_url_omxplayer
player.wait()
File "/usr/lib/python2.7/subprocess.py", line 1291, in wait
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File "/usr/lib/python2.7/subprocess.py", line 478, in _eintr_retry_call
return func(*args)
moocow1452 wrote:Figured it out, from the top;
Stuff in red is my work, including the easy paste of __init__.py, and running "sudo youtube-dl -U" Anyway, I think it's just about brain proof at this point.marktbaldridge wrote:
So, we have to download it here: https://github.com/rg3/youtube-dl/raw/2 ... youtube-dlThen we have to manually install it:Code: Select all
wget https://github.com/rg3/youtube-dl/raw/2012.02.27/youtube-dl
Now we need to install python's setup tools. And BTW, don't worry, this is all small stuff. You won't clutter up your SD card.Code: Select all
chmod +x youtube-dl cp youtube-dl /usr/bin/youtube-dl
Next we need to download and extract yt which is an awesome python console utility for playing youtube videos.Code: Select all
sudo apt-get install python-setuptools
But DON"T INSTALL YET! We need to tell yt to use omxplayer not mplayer because that doesn't work on the RP.Code: Select all
wget http://pypi.python.org/packages/source/w/whitey/whitey-0.1.tar.gz tar -zxvf whitey-0.1.tar.gz
[/color]Code: Select all
wget https://dl.dropbox.com/u/33311875/__init__.py cp __init__.py whitey-0.1/src/yt/__init__.py
Next, navigate so that you are in the main whitey folder, and then install:Finally run "sudo youtube-dl -U" until it says it needs to update once more. Wait for it to finish, then do it again, because it's a liar and a cheat, and you have to wait for it to say "youtube-dl is up-to-date (2012.12.11)"Code: Select all
sudo python setup.py install
Then you should be able to just run ~$ yt and watch the magic happen!