popcornmix / omxplayer

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

--loop not seamless #785

Open Wim-N opened 4 years ago

Wim-N commented 4 years ago

Our Python program generates an .mp4 with a continuous scrolling image. When I play it with the --loop options it stops for a fraction of a second before it start again. This 'breaks' the the scrolling image. I've checked the .mp4 file with an video editor and the generated file seems to be correct. I'm using a Pi4 with 2GB memory and 1080p60 on the first HDMI output.

popcornmix commented 4 years ago

omxplayer wasn't designed for that and it's not a trivial thing to do. omxplayer is being deprecated in favour of vlc. It looks like vlc doesn't support seamless looping yet, but it is planned for v4. https://forum.videolan.org/viewtopic.php?t=149226

If you only need video and not audio, then the hello_video demo app can support seemless looping with a trivial change: https://www.raspberrypi.org/forums/viewtopic.php?p=103421#p103421

Wim-N commented 4 years ago

Thanks! I've tried the 'hello_video' demo, because I do not need any audio. Made the change in the source file, no problem. But when I try to compile it, it reports an error: /usr/bin/ld: cannot find -lilclient There is no directory /usr/bin/ld but there is a directory /usr/bin/X11 but that does not contain a file called lilclient. Searched the while Pi for that file but could not find it.... Any idea how to proceed?

Wim-N commented 4 years ago

After some digging found this (http://pi.bek.no/playVideo/) $ cd /opt/vc/src/hello_pi $ make -C libs/ilclient $ make -C libs/vgfont

and then 'make' again It compiled without any problem and the playback is seamless now!! Thanks for the support!

exidyboy commented 4 years ago

On 10/09/2020, at 9:07 PM, Wim Nagtegaal wrote:

Our Python program generates an .mp4 with a continuous scrolling image. When I play it with the --loop options it stops for a fraction of a second before it start again. This 'breaks' the the scrolling image. I've checked the .mp4 file with an video editor and the generated file seems to be correct. I'm using a Pi4 with 2GB memory and 1080p60 on the first HDMI output.

If your piece is silent there is a lower-level method of playing video on a Pi that gives genuinely seamless looping.

Wim-N commented 4 years ago

If your piece is silent there is a lower-level method of playing video on a Pi that gives genuinely seamless looping.

Please explain

exidyboy commented 4 years ago

On 11/09/2020, at 7:14 PM, Wim Nagtegaal wrote:

If your piece is silent there is a lower-level method of playing video on a Pi that gives genuinely seamless looping.

Please explain

https://www.raspberrypi.org/forums/viewtopic.php?p=103421#p103421

Wim-N commented 4 years ago

As written before that's the solution that worked for me after solving a problem with compiling the changed code.