maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   MPV (mplayer fork) on Sailfish: no success :( (https://talk.maemo.org/showthread.php?t=93050)

norayr 2016-02-19 05:20

Re: MPV (mplayer fork) on Sailfish: no success :(
 
hey, I don't need mplayer to play videos.

I need just a console version to play music and radio streams.

Can you share the compiled version? Or compile it without video support at all?

And add to openrepos.

I believe can do that, I used to compile mplayer in the past often. But I have a lot of work these couple of days, and no Jolla sdk environment, and would appreciate if some one would do that.

liar 2016-03-01 19:09

Re: MPV (mplayer fork) on Sailfish: no success :(
 
i have managed to compile mpv and it plays back videos!

via this hack:
https://bpaste.net/show/49b5baf12149

audio doesn't work yet though (probably need libaudioresource), and video needs to be rotated

tetris11_ 2016-03-02 10:55

Re: MPV (mplayer fork) on Sailfish: no success :(
 
I mean.... your username is only that, right?

liar 2016-03-03 19:20

Re: MPV (mplayer fork) on Sailfish: no success :(
 
https://www.youtube.com/watch?v=uwZy0Mk9R9o
video (size meh) and audio (need to figure out where to put the code...) work

EDIT: ... silly me ... you can use the --fs (fullscreen) option to have the video appropriately sized :)

paolomi 2016-03-09 07:58

Re: MPV (mplayer fork) on Sailfish: no success :(
 
great news! :)
could you provide the rpm for testing purpose? :D
Many thanks :)

tetris11_ 2016-03-26 02:22

Re: MPV (mplayer fork) on Sailfish: no success :(
 
hey! any update on that package?

wolke 2018-11-14 19:29

Re: MPV (mplayer fork) on Sailfish: no success :(
 
heres a (crappy, work-in-progress) cmdline audio-file player that i use as the backend to my music thingie (klomp). it requires pyqt which is installable using zypper if you ignore the error about breaking it.

unfortunately, there is a bug in QT that makes the QMediaPlayer fail on vbr MP3s, so i had to write an extremely lowlevel player using QAudioDecoder for mp3.

also no keyboard control yet, just a few cmdline args

https://github.com/teleshoes/klomp/b...rc/qtcmdplayer

Code:

usage: qtcmdplayer [-h] [--loop] [--volume VOLUME] [--mp3] [--nomp3]
                  FILE [POSITION_MILLIS] [COMMAND_FIFO]

Play music/sound files from the command line using PyQt5 media tools.

positional arguments:
  FILE                  sound file to play
  POSITION_MILLIS      optional starting position in millis
  COMMAND_FIFO          optional path to existing FIFO for listening to
                        commands

optional arguments:
  -h, --help            show this help message and exit
  --loop, -loop        when playback is finished, play again immediately
                        forever
  --volume VOLUME, -volume VOLUME
                        set volume 0 - 100(values greater than 100 are allowed
                        only for MP3s, or with --mp3)
  --mp3                force MP3 mode regardless of file extension (use
                        QAudioDecoder+QAudioOutput instead of QMediaPlayer)
  --nomp3              force non-MP3 mode regardless of file extension (use
                        QMediaPlayer instead of QAudioDecoder+QAudioOutput)



All times are GMT. The time now is 06:30.

vBulletin® Version 3.8.8