[SOLVED] omxplayer does not work on second run
Posted: Fri Dec 13, 2013 4:48 pm
with raspbian freshly installed from NOOBS_v1_3_2.zip
if i start the following command
omxplayer -o hdmi myfile.avi
=> it plays just fine in 1080 both video and audio, it's fantastic !!
then if I press [ESC] to quit. i return to the console as expected.
then if i start again the same command, it gives the very same ouput:
=> but then the video does not show up and i can not hear any sound. only console remains onscreen
Then if i press [CTRL+C] i get
if i repeat the same process again and again, video never plays again
I have to reboot the rpi to be able to play the video, works only the first time.
i read in http://elinux.org/Omxplayer
that maybe i should use the following command
then in case i configure raspbian to start the graphic interface (choice selected in rasp-config)
=> in that case the above commands seems to work, but i have the same behaviour with omxplayer
in case i configure rpi to start only the command line
then i get an error claiming the display :0 does not exist
and just the same omxplayer refuses to play video without throwing error
it seems something stupid
what am i doing wrong ?
if i start the following command
omxplayer -o hdmi myfile.avi
=> it plays just fine in 1080 both video and audio, it's fantastic !!
then if I press [ESC] to quit. i return to the console as expected.
then if i start again the same command, it gives the very same ouput:
Code: Select all
pi@raspberrypi ~ $ omxplayer -o hdmi /home/pi/Desktop/myvideo.avi
Video codec omx-h264 width 1920 height 1080 profile 100 fps 30.000000
Audio codec pcm_s16le channels 2 samplerate 48000 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0Then if i press [CTRL+C] i get
Code: Select all
have a nice day ;)
pi@raspberrypi ~ $I have to reboot the rpi to be able to play the video, works only the first time.
i read in http://elinux.org/Omxplayer
that maybe i should use the following command
Code: Select all
xrefresh -display :0=> in that case the above commands seems to work, but i have the same behaviour with omxplayer
in case i configure rpi to start only the command line
then i get an error claiming the display :0 does not exist
and just the same omxplayer refuses to play video without throwing error
it seems something stupid
what am i doing wrong ?