GPU accelerated mpv media player combined with smplayer gui - Raspberry Pi Forums


with computer raspberry pi, relatively weak cpu makes essential satisfactory web experience involving media or playing locally stored media, gpu decode , render possible. constraint in mind handy have variety of tools , tricks in raspberry pi's arsenal.
of course omxplayer- pi's native media player, indispensible , uses minimal cpu , memory resources. idea create desktop shortcut icon open , stay open in teminal ( keyboard controls work ) ( see http://jeffhoogland.blogspot.ca/2012/08 ... a-gui.html) permits dragging , dropping media file icon activate omxplayer in full screen keyboard control of playback. useful have gui can open omxplayer in resizable draggable window volume, seeking , aspect., , other controls. need admirably fufilled guenter kreidl's ingenious, documented , scrupously maintained omxplayergui separate integrated component downloaded part of kweb (minimal kiosk browser) low resource,fast browser unique features , again essential tool in pi's quiver.
(viewtopic.php?f=66&t=40860&sid=1a7b993f ... 513518675b).

has additional benefit of integrating youtube-dl omxplayergui..
known users of these forums kusti8 has devised extension chromium invoke omxplayergui when playing youtube video. oir other supported sites. interesting , useful app chromium using omxplayer play tube, can found here: viewtopic.php?f=38&t=132460&p=882933
( these 2 chromium extensions/apps can peacefully coexist.)




useful have still more tools different challenges presented demanding web multimedia. while have been using hardware accelerated mpv media player on raspbian.
precompiled installable binary version can downloaded here :

https://nwgat.ninja/installing-mpv-with ... -2-3-zero/

and/or instructions compiling can found here

https://nwgat.ninja/compiling-mpv-with- ... -3-zero-2/

includes compiled version of ffmpeg.(as aside thing did afterward download winff repository transcoding hoping hardware accelerated transcoding winff presets in repository vesion apparently don't match compiled ffmpeg version)


again useful create desktop shortcut icon mpv open , stay open in terminal retain keyboard control( using sudo pcmanfm open icon in desktop go properties/ desktop entry , check appropriate boxes.) enables drop local media files directly onto mpv icon , and mpv spring action. used version of mpv play without hiccup , without mpeg license 1920x1080p mpeg2 transport stream encoded @ 17225 kbps . wouldn't seek- presumably because transport stream not indexed.. played sample hevc 720p encoded video entitled surfing found @ : http://www.elecard.com/en/download/videos.html
, of course big buck bunny video smoothly.

best known used gui mpv player , mplayer smplayer. repository version of smplayer old , not support mpv rather mplayer. repository version of smplayer using mplayer version in repository pretty if configured in preferences using user defined ,xv video output , alsa audio output , 4 threads under performance.etc. allows drag , drop hd youtube videos player , plays them in resizable draggable window or full screen fast keyboard control , seeking options. easy on cpu uses considerably more cpu resources omxplayer , omxplayer gui. 1 annoying drawback repository version of smplayer @ least could't hardware scale low resolution eg320x240 video full screen rather play postage stamp size albeit in proper aspect ratio surrounded black borders. search solutions led me stumble upon hardware accelated mpv.

there more recent versions of smplayer (a gui mplayer//mpv player) version of smplayer found in raspbian's repository. these have advantage on repository version in allow smplayer use either mplayer found in raspbian or mpv player version of mplayer , thereby utilize mpv's enhanced qualitly , it's support youtube-dl. using hardware accelerated version of mpv lowers cpu resource usage considerably. precompiled installable binary of smplayer version 16.10 works in raspbian and/or instructions compiling can found here :


http://ubuntu-mate.community/t/tutorial ... pport/3888

in smplayers preferences under general tab pick mpv player, giving path mpv executable found under local binaries , rpi or default video output. found smplayer using mpv hardware scales standard definition videos full screen in proper aspect ratio (press f on keyboard full screen black borders.) version of smplayer using both mplayer or mpv supports dragging , dropping youtube videos. unfortunately 0 knowledge of linux (something must try remedy 1 of these days) not able configure mpv in smplayer use youtube-dl , support numerous other video sites.

mpv has configuration file located @ : /home/pi/.config/mpv/mpv.conf. instructions using configuration file can found @ mpv website:
https://mpv.io/manual/master/


1 in someways unfortunate aspect of hardware acclerated version of mpv is compiled using efficient mmal (whatever !) has unfortunate result video rendered in full screen overlay removes visibilty of gui controls in smplayer. able remedy conundrum rather imperfect useable hack specifing following in smplayer preferences.: using television 1360x768 native resolution ,overscan disabled ,so specified in smplayer preferences advanced tab options mplayer/mpv “ --autofit=1360x720 “ -without apostophes. enabled smplayer output in full screen aspect ration preserved allowed smplayers animated floating control appear when mouse dragged bottom of screen.
not able presumably because of mmal , overlay use mpv's configuration file mpv display osd , osc information believe enabled default. omxplayer outputs overlay video yet still shows osd info time position etc. solutions.? new version of ubuntu 16.04 has accelerated version of mpv , newer smplayer in repository .i tried ubuntu 16.04 , video played it's mpv wasn't displayed in correct aspect ratio , reason did not seem fast or efficient mpv player have referenced here..

note if @ point lose keyboard control of full screen omxplayer or mpv might try pressing alt-tab regain control

final digression may or may not helpful other pi users had few multimedia ideas stumbled upon partcularly regard using flashgot in firefox/iceweasel , chromium url media internals ferreting out true urls of embedded web videos referenced in post other users may find these ideas useful or have better suggestions
: viewtopic.php?t=135895&p=903851

i have not read of few things wrong;
1) 1080p mpeg ts streams h264 encoded, , not mpeg2. never need mpeg 2 license them. mixing container formats , codecs.
2) there's no problem seeking in ts streams. lot of htdv recording of such streams , if play recorded files omxplayer(gui) seeking works charm.


raspberrypi



Comments