popcornmix / omxplayer

omxplayer
GNU General Public License v2.0
1.02k stars 334 forks source link

How to use the --loop function #187

Open Nobeernogman opened 10 years ago

Nobeernogman commented 10 years ago

When i use the --loop function. It will play my video 1 time. I see on the OSD 00:00:00. But it wont play the file again. Is this my own mistake?

command: omxplayer --loop videofile.mp4

mp4 file specs: http://www.codedump.be/code/1449/

AMSVIEIRA commented 9 years ago

@skgsergio thanks! problem solved!

AMSVIEIRA commented 9 years ago

@skgsergio just one more question :) this video is been reproduced on a shared folder on the raspberry. The video is called test.mp4 and when I replaced this one for another with the same name I wish it would replace the old video for the new one. But for that to happen I have to restart the raspberry and then it reproduces the new video. I´m trying to find a way to omx automatically reload and change the video. Do you have an idea of how to do it?

Sorry for bothering you, and sorry for my "English" :)

Les-A commented 8 years ago

If I should raise a new issue then please advise but a lot of what is written here seems relevant to my problem but I'm not sure.

I'm using a bash script on a headless Pi B to invoke OMXPlayer for each mp3 file in my record collection. So I start the script manually over ssh from another Linux computer using putty. After successfully playing anything from half a dozen to a few dozen tracks, OMXPlayer fails to terminate when it reaches the end of a track. I can kill it and the script continues but then OMXPlayer has to be killed at the end of every track until I reboot the Pi - simply stopping and restarting the script doesn't help. Also, once the problem occurs OMXPlayer always fails to terminate, even with commands such as 'omxplayer -v' (from memory).

What I have found is that the whole thing runs fine either as a native user or over ssh when the monitor is plugged into the HDMI socket - even if it is not actually switched on. Removing the hdmi monitor results in the problem reappearing. I find this puzzling because when the monitor is switched on (and ssh is in use) there is no output being directed to it. I'm using the latest Raspian Wheezy with the Pi distribution of OMXPlayer. I have the sound mixer set to send output to the jack socket to play through my hi-fi.

Any thoughts on what to do next would be welcome.

anta40 commented 8 years ago

My omxplayer info: Build date: Sat, 12 Sep 2015 00:49:19 +0000 Version: d99bd86 [master] Repository: https://github.com/popcornmix/omxplayer.git

Trying something like: omxplayer --loop helloworld.mp4: playing the video at 1st attempt went fine, but at the 2nd time it was like stuck infinitely at frame 1 & frame 2...

popcornmix commented 8 years ago

@anta40 A sample file that shows the problem would be useful.

anta40 commented 8 years ago

Hi @popcornmix Here you go: http://lab.anta40.net/vids/FibreFirst_Animation_final.mp4

jehutting commented 8 years ago

@anta40 your movie loops fine on my raspbian RPI B-model with uname -a Linux rpitv 4.1.13+ #826 PREEMPT Fri Nov 13 20:13:22 GMT 2015 armv6l GNU/Linux Try to install the omxplayer latest version.

anta40 commented 8 years ago

Oops sorry @popcornmix, wrong video. This is the correct one: http://lab.anta40.net/vids/Particle_25_mepet_max.mp4

anta40 commented 8 years ago

OK, first I uninstall the official omxplayer, and then install that latest version:

$ sudo aptitude purge omxplayer
$ wget http://omxplayer.sconde.net/builds/omxplayer_0.3.6~git20160102~f544084_armhf.deb
$ sudo dpkg -i omxplayer_0.3.6~git20160102~f544084_armhf.deb

It doesn't run:

$ omxplayer
/usr/bin/omxplayer.bin: /lib/arm-linux-gnueabihf/libc.so.6: version 'GLIBC_2.17' not found (required by /usr/lib/omxplayer/libavutil.so.54)
usr/bin/omxplayer.bin: /lib/arm-linux-gnueabihf/libsmbclient.so.0: no version available (required by /usr/lib/omxplayer/libavformat.so.56)
jehutting commented 8 years ago

Now you are running in issue #412.

jehutting commented 8 years ago

@fredericofs You can't... see above popcornmix comment.

Ruffio commented 8 years ago

@fredericofs please close this as the initial issue has been fixed. Thanks.

nagualcode commented 8 years ago

@Ruffio I guess this issue was opened by @Nobeernogman , lets make sure he can close it as it seems fixed now. Thanks