windy54
Posts: 86
Joined: Sat Dec 29, 2012 3:37 pm

Raspberrypi.org/ push button animation - problem with omxpla

Sun May 01, 2016 4:52 pm

I have just tried the push-button-animation from raspberrypi.org / make worksheet with my grandson and the created mp4 file does not play with omxplayer.

So, we started with a clean installation of Jessie and followed the instructions to install the software and create the python script.

We had a set of jpg files in a folder called animation as per the instructions.

Had to change

Code: Select all

avconv -r 10 -qscale 2 -i animation/frame%03d.jpg animation.mp4
to

Code: Select all

avconv -r 10 -i animation/frame%03d.jpg -qscale 2  animation.mp4
in order to create the mp4 file, the qscale option has to be after the input files, otherwise an error is generated by avconv.

The mp4 file is created but when we run omxplayer as

Code: Select all

omxplayer animation.mp4
we get
Video codec omx-h264 width 1920 height 1080 profile 100 fps 10.000000
Subtitle count: 0, state: off, index: 1, delay: 0

and no video
i have searched the internet but have not found a solution that works
we have tried
omxplayer -o hdmi animation.mp4

has anyone got any suggestions

cheers
Steve

windy54
Posts: 86
Joined: Sat Dec 29, 2012 3:37 pm

Re: Raspberrypi.org/ push button animation - problem with om

Sun May 01, 2016 7:17 pm

Just sorted it, not enough frames!

created an animation with 20 frames and it worked.

I found a post on the internet where some one said they had problems because omxplayer was too quick, their mp4 file was too short.

with 20 frames it worked a treat.

Return to “Beginners”