OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> ffmpeg + ffplay
vader
post Aug 27 2018, 01:13 PM
Post #1





Group: Members
Posts: 284
Joined: 21-January 18
Member No.: 816,775



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.
Go to the top of the page
 
+Quote Post
FrankS
post Oct 3 2018, 07:03 AM
Post #2





Group: Members
Posts: 24
Joined: 28-September 18
Member No.: 832,753



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.
Go to the top of the page
 
+Quote Post
vader
post Oct 3 2018, 02:50 PM
Post #3





Group: Members
Posts: 284
Joined: 21-January 18
Member No.: 816,775



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.
Attached File(s)
Attached File  ffmpeg.txt ( 13.04MB ) Number of downloads: 3
 
Go to the top of the page
 
+Quote Post
FrankS
post Oct 4 2018, 07:08 AM
Post #4





Group: Members
Posts: 24
Joined: 28-September 18
Member No.: 832,753



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.
Go to the top of the page
 
+Quote Post
vader
post Oct 4 2018, 02:34 PM
Post #5





Group: Members
Posts: 284
Joined: 21-January 18
Member No.: 816,775



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.
Go to the top of the page
 
+Quote Post
FrankS
post Oct 8 2018, 04:01 AM
Post #6





Group: Members
Posts: 24
Joined: 28-September 18
Member No.: 832,753



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.
Go to the top of the page
 
+Quote Post
rasva
post Oct 25 2018, 10:07 AM
Post #7





Group: Members
Posts: 40
Joined: 12-October 07
From: Czech republic
Member No.: 20,815



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.
Go to the top of the page
 
+Quote Post
vader
post Oct 30 2018, 04:16 PM
Post #8





Group: Members
Posts: 284
Joined: 21-January 18
Member No.: 816,775



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th December 2019 - 05:33 AM