watching videos on pinephone
#1
One of the main things i use my phone for is watching videos so when i recently got a pinephone i set out to get this working nicely on it.

I installed mobian with phosh on a microsd and that's been really stable for me. This has a videos program built in but it wouldn't play a video i'd downloaded to the phone so i installed mpv since i'm familiar with it on desktop and it's small and simple. This worked great when i went into settings and made it the default for video and music files. The only problem is the default interface and other ones i found were not made for a phone and so it made pausing and changing time difficult with only a touch interface.

Thankfully mpv has a fully scriptable interface so i managed to make a really simple interface by editing the the default file from the mpv github.

It just gives you a time seekbar and a central play/pause button but that's all that's usually needed.

To use this script you need to make a 'mpv.conf' file in the '/home/{username}/.config/mpv/' folder with the line 'osc=no'
This stops the builtin interface from appearing. There must be no spaces in the file and {username} is 'mobian' on mobian.

Then you need to make a folder named 'scripts' in the same folder so that you can put a new file in '/home/{username}/.config/mpv/scripts'

To use my edit of the interface you need to make a file with a .lua extension. I named it 'osc.lua'.
Then copy and paste this code in which is mostly just the same as the original: https://pastebin.com/aTq7Uncb

With this done, anytime you open a video on the pinephone, you'll have a simple interface that will be fully usable with only touch.
To fullscreen the video just double tap somewhere above or to the sides of the play button and seekbar. double tap again to exit fullscreen.


Hopefully this is an easy way to make pinephone a little more normal for daily use. Any improvements are welcome as this is just a simple edit of the osc and I don't very well understand the mpv API. Also i did most of this on desktop and then moved the files to where they needed to be.
  Reply
#2
Welcome to the community - great first post :-)
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.1 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition Tow-boot on SPI, Arch/SXMO on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, daily driver Tow-boot with Arch/SXMO on eMMC
  Reply
#3
Thanks, tried that and it works great! I don't use the phone much for videos but when I did was using VLC before. This seems lighter weight and I like the simpler interface. Kudos!
  Reply
#4
I'm curious when Pinephone will be able to support voice transfer and music playback.
  Reply
#5
(12-13-2021, 10:54 AM)Galad Wrote: One of the main things i use my phone for is watching videos so when i recently got a pinephone i set out to get this working nicely on it.

I installed mobian with phosh on a microsd and that's been really stable for me. This has a videos program built in but it wouldn't play a video i'd downloaded to the phone so i installed mpv since i'm familiar with it on desktop and it's small and simple. This worked great when i went into settings and made it the default for video and music files. The only problem is the default interface and other ones i found were not made for a phone and so it made pausing and changing time difficult with only a touch interface.

Have you tried celluloid?  I understand it's kinda a shaell around mpv with a good mobile interface.
  Reply
#6
(12-11-2022, 09:42 PM)treebeard Wrote: Have you tried celluloid?  I understand it's kinda a shaell around mpv with a good mobile interface.

I tried celluloid myself today and found that the video (for the one mp4 I tested) is pretty choppy (even with GDK_GL=gles) and very blue.  I found a workaround for the blue by using a video filter but that made the lag way worse.

After adding "opengl-es=yes" to mpv.conf that same video worked fine with mpv.  Your script made the controls easier to use on a phone.

I tried a variety of things but never could get around various OpenGL issues with the included totem player.

mpv wins the day!
  Reply
#7
I use Clapper on mobian. Low CPU usage and a nice graphical interface!
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation ⚠ Possible US legislative threat to Pinephone? ⚠ Westslope 6 216 03-27-2023, 07:12 PM
Last Post: Westslope
  eSIM on PinePhone just_a_q 2 1,238 03-14-2023, 10:14 AM
Last Post: EuvzO8
  Are you using the Pinephone as your daily driver? jro 150 70,055 03-13-2023, 09:06 AM
Last Post: dante404
  PinePhone Game Thread PixelPaintbrush 27 30,804 03-13-2023, 04:41 AM
Last Post: xavi92
Lightbulb Suggestion: NFC-F / FeliCa Support for next gen PinePhone or board add-on iamauser 0 216 03-11-2023, 10:21 AM
Last Post: iamauser
  UPDATED (June 2021): 17-distro multi-boot image for Pinephone (incl. 3GiB variant) megous 183 195,117 03-05-2023, 11:04 AM
Last Post: Eugo
  [Serious] Pinephone availability in volumes? oobdev 3 364 02-28-2023, 07:14 AM
Last Post: barray
  are you still using pinephone as a daily driver? zetabeta 29 2,453 02-09-2023, 11:48 AM
Last Post: silverwing
Sad New PinePhone won't boot 9/10 times - Screen is on but stays black :( dante404 8 3,127 02-03-2023, 01:27 AM
Last Post: dante404
  PureTalk work with Pinephone? car46999 6 1,091 01-30-2023, 12:05 AM
Last Post: car46999

Forum Jump:


Users browsing this thread: 1 Guest(s)