Help - Search - Members - Calendar
Full Version: ffmpeg + ffplay
OESF Portables Forum > Model Specific Forums > Gemini PDA > Gemini PDA - Sailfish OS
vader
Hi all,

after working out how SDL sound works with sailfish, I added the fixes to my ffmpeg compilation. It hasn't changed the ffmpeg utility (convert from one video format to another amongst other things), but it now means that ffplay is fully functional. This is a very simple video player which uses ffmpeg to decode the streams and plays using SDL. It supports a lot more formats than the gstreamer based video players. There is no onscreen gui for control, however everything is keyboard based which is perfect for the gemini.

If people are interested, I could try to package it up, or just tgz it (there are 2 executables - ffmpeg and ffplay). Works brilliantly as command line viewer.

On another note, if anyone is interested in compiling/porting SDL apps to sailfish, I can give a quick howto to get things working, and steps to porting. There are lots of SDL apps around, and sailfish needs native apps smile.gif The qml front end is simple to create and using a native ide (tIDE), you can program, compile, test and package right on the gemini.
FrankS
QUOTE(vader @ Aug 27 2018, 11:13 PM) *
Hi all,

after working out how SDL sound works with sailfish, I added the fixes to my ffmpeg compilation. It hasn't changed the ffmpeg utility (convert from one video format to another amongst other things), but it now means that ffplay is fully functional. This is a very simple video player which uses ffmpeg to decode the streams and plays using SDL. It supports a lot more formats than the gstreamer based video players. There is no onscreen gui for control, however everything is keyboard based which is perfect for the gemini.

If people are interested, I could try to package it up, or just tgz it (there are 2 executables - ffmpeg and ffplay). Works brilliantly as command line viewer.

On another note, if anyone is interested in compiling/porting SDL apps to sailfish, I can give a quick howto to get things working, and steps to porting. There are lots of SDL apps around, and sailfish needs native apps smile.gif The qml front end is simple to create and using a native ide (tIDE), you can program, compile, test and package right on the gemini.


Where can I find the ffmpeg and ffplay?

Porting SDL apps reminds me to scummvm. That would be nice to have.
vader
QUOTE(FrankS @ Oct 4 2018, 01:03 AM) *
Where can I find the ffmpeg and ffplay?

Porting SDL apps reminds me to scummvm. That would be nice to have.


I have attached a tgz of ffmpeg and ffplay. You can't attach tgz files, so rename ffmpeg.txt to ffmpeg.tgz once downloaded. They are command line utils, so I haven't bothered to create any qml or rpms. Copy them (as root with devel-su) to /usr/local/bin/ and make sure you have all the libraries by using ldd. I think you only need audioresource for ffplay. I didn't bother rotating ffplay, as you can do this on the command line. I added an alias to my .bash_profile as follows:

alias ffp="ffplay -vf transpose=cclock -x 1080 -y 2160"

You can then use ffplay by using ffp, so to watch movie.mpg, from the terminal run:

ffp movie.mpg

To check to see if all the libraries are on your system, from the terminal run:

ldd /usr/local/bin/ffplay

it will show which libraries are linked, which versions are linked, and if the library is missing. Install any missing libraries with pkcon.

As far as scummvm, I just play the original DOS game under dosbox. I am currently up to act 2 of discworld, and it runs fine. I started porting scummvm, and stopped as dosbox does the job.

EDIT: when you run ffplay, there is no gui. To go forward/backwards use the right and left arrows. Up and Down jump a minute or so. You can pause with space, and go to single frame mode with 's'. That will pause, and each 's' will advance a frame. You can always run ffplay -h to get help smile.gif

It is a simple video player, but plays most formats, including rtp and http(s) streams. I use it to watch content on my panasonic pvr over UPnP. I patched/recompiled djmount to work with panasonic uPnP V2.
FrankS
Very nice, thank you. With ffplay I am able to look TV on geminiPDA over a triax sat>ip box this way. That is something the 'LLs vPlayer' cannot handle.


for example RTL Television on Astra 19.2°E):
CODE
ffplay -vf transpose=cclock -x 1080 -y 2160 -i "http://satip/?src=1&freq=12188&pol=h&ro=0.35&msys=dvbs&mtype=qpsk&plts=off&sr=27500&fec=34&pids=0,17,18,163,104,44,105"


It always tells me 'library "libwlparser.so" not found' but is playing the video and audio.
vader
QUOTE(FrankS @ Oct 5 2018, 01:08 AM) *
Very nice, thank you. With ffplay I am able to look TV on geminiPDA over a triax sat>ip box this way. That is something the 'LLs vPlayer' cannot handle.


for example RTL Television on Astra 19.2°E):
CODE
ffplay -vf transpose=cclock -x 1080 -y 2160 -i "http://satip/?src=1&freq=12188&pol=h&ro=0.35&msys=dvbs&mtype=qpsk&plts=off&sr=27500&fec=34&pids=0,17,18,163,104,44,105"


It always tells me 'library "libwlparser.so" not found' but is playing the video and audio.


I'm glad someone else finds it useful. The libwlparser.so error seems to be across the board. I get it in everything from the browser to a simple qml page rendered with qmlscene. All I could find out about it was it is probably a wolfram language parser. Obviously not needed, as it doesn't seem to stop anything running.
FrankS
QUOTE(vader @ Oct 5 2018, 12:34 AM) *
I'm glad someone else finds it useful. The libwlparser.so error seems to be across the board. I get it in everything from the browser to a simple qml page rendered with qmlscene. All I could find out about it was it is probably a wolfram language parser. Obviously not needed, as it doesn't seem to stop anything running.

Ok, many other apps are missing libwlparser.so too, but are working. Started some from command line. It is not essential.
rasva
Thanks, playback using ffplay seems to be smooth compared to some other players I tried to install from Jolla store and Openrepos. No GUI is a plus for me, I am got used for console mplayer smile.gif
I am also getting message about missing "libwlparser.so", but it works.
vader
Sorry I didn't respond earlier - was at the OSS conference. I'm glad it works for you - I prefer a command line player as well. I am happy with the playback performance, but the major reason I did it was the codec support. It supports more codecs than gstreamer, and if there is one it doesn't support, I can add it smile.gif

There are a lot of apps that complain about libwlparser - the best I could find out is it is something to do with wolfram language parser - maybe a libhybris thing.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.