Encoding H264 video on RISC OS using ffmpeg
Chris Gransden (337) 1207 posts |
There’s an updated version of ffmpeg (100965) available here. It’s now possible to encode H264 video using ffmpeg. Needs alignment exceptions turned off. See here for examples. Using the defaults gets around 10fps depending on input format on a Rpi 400 @2.4GHz.
|
Raik (463) 2061 posts |
H264 was possible with Christopher Martins last alpha. |
Raik (463) 2061 posts |
Sorry, I have not seen. Is a new new version. |
Chris Gransden (337) 1207 posts |
The !Boot file needs the Wimpslot increasing to 37200k.
|
Raik (463) 2061 posts |
I wondering. Have you try? ;-) |
Chris Gransden (337) 1207 posts |
This is the output you should see when you run ffmpeg in a task window,
|
Raik (463) 2061 posts |
Todays download is working now. Anyone has changed !Boot inside ;-) I’m never satisfied ;-) |
Chris Gransden (337) 1207 posts |
Both lame 3.100 and sox 14.4.2 have been added to https://www.riscosports.co.uk/eabi. lame, sox and ffmpeg will all convert wav to mp3 at about the same speed. Up to 22x real time on a RPi 400 @2.4GHz. |
Raik (463) 2061 posts |
Thanks a lot. |
Chris Gransden (337) 1207 posts |
To play back a file just add ‘-t oss’,
|
Raik (463) 2061 posts |
Thanks a lot. Now I hav seen in the manual. *sox track.mp3 -q -t oss Is working well. |
Raik (463) 2061 posts |
Senseless comparison. |
Raik (463) 2061 posts |
Sorry, I not see the comparison to the old version… ;-) |
Raik (463) 2061 posts |
Have a working Pandora Classic (OMAP3+600MHz) and a Pi1A as the slowest RISC OS 5 machines. |
Raik (463) 2061 posts |
Short try… Audio Video Video 1 Reference: ffmpeg 3.0 “Iyonix optimized” on Titanium Latest ffmpeg ARMX6 Pi4 (1,5Ghz) I wondering about any results but try again was the same. |
David J. Ruck (33) 1636 posts |
Looking at the relative performance of the Titanium, ARMx6 and Pi4, the ratios are as I’d expect, except for Video 2 on the Pi4 which is about 4x slower than the rest. Might be worth re-running that one to check. |
Raik (463) 2061 posts |
Video2 was the point I wondering. All tests I do 3×. |
David J. Ruck (33) 1636 posts |
All three systems can run Linux, so it would be very interesting to see the comparison with RISC OS on the same hardware. |
Raik (463) 2061 posts |
Part of the “verbose output” … speed=0.531x … fps= 16
Never on ARMX6 … Pi4 Linux (1,5Ghz) Titanium Linux And now? Video encoding is a “Miracle Bag” (? “Wundertüte”) ;-) |
David J. Ruck (33) 1636 posts |
Looks to me as if ffmpeg might be using hardware acceleration on the Pi4 under Linux but not RISC OS. But on the Titanium it looks like the last 3 tests are running far less optimally under Linux than RISC OS. |
David Feugey (2125) 2709 posts |
Disc bandwidth limitations? |
Raik (463) 2061 posts |
Should not. |
Raik (463) 2061 posts |
Is it possible (or a reason why not) to compile a ffmpeg version that works without alignment exceptions off? |