Playing video files
#1
I mentioned this in a post on the Mobian board but there were no responses. I don't know if this issue is only with that distribution or if it's more general to the Pinephone's video capabilities.

What I've found is that when playing local video files on the Pinephone it cannot keep up with 1080p, or even 480p playback (though the latter is better). To make videos play smoothly I've had to transcode them down to 240p. (Admittedly I have not tried 360, that might work as well, but 240 looks surprisingly good on the phone's small screen.) This is the case whether using Mobian's default video player or the VLC video player.

Is this something that is likely to improve as development continues, or is it just a limitation of the video hardware?

For anyone else running into this issue, I put together a quick-and-dirty shell script that uses ffmpeg to transcode the video to 240p H.264, preserving the aspect ratio, and copies the audio, from the source mp4 and mkv files in the current directory. The resulting reduced resolution files are placed in a "240" subdirectory.

Code:
#!/bin/sh

mkdir 240

for file in *.m??
do
  echo '----------------------------------------'
  echo Processing $file...
  ffmpeg -i "$file" -c:v libx264 -c:a copy -vf scale=-2:240 "240/$file"
  echo '----------------------------------------'
done
  Reply
#2
It's not the HW limitation, it's drivers + software, check this demo for instance  Wink
https://www.youtube.com/watch?v=yyRm8kccyG4
  Reply
#3
(12-06-2020, 01:58 PM)Zebulon Walton Wrote: What I've found is that when playing local video files on the Pinephone it cannot keep up with 1080p, or even 480p playback

It's a while since I tested it but hd videos played fine using mpv.
  Reply
#4
OK, being a software issue it will likely improve with updates over time. I'll give mpv a try as suggested and see how that does. Though encoding in 240p saves lots of space and looks OK on the Pinephone screen. (Of course it would look pretty crappy on a large external monitor.)
  Reply
#5
i was playing 720p video using youtube-dl and mpv just fine, though i havent tested in a while
  Reply
#6
I was surprised to see a recent update to youtube-dl on my phone, it seems it is installed by default on Mobian?

Considering the recent controversy with the project and Github, I found that surprising. Smile
  Reply
#7
I installed mpv and tested with 720 and 1080 video files. It plays 1080 fairly well, slightly jerky but not bad. Playback of 720 appears flawless. Looks like that's going to be the default video player. One drawback I see is the controls for pause, etc. are tiny and difficult to operate on the phone. Also if you fire up mpv directly it wants files dragged and dropped to it, there's no menu to directly open up files. I don't see a way to drag and drop with the phone's GUI. Minor nits for better video playback.
  Reply
#8
I'm not sure if there's a mobile-focused OSC preset, but I don't believe it should be too hard to make one. I might give it a try once my pinephone arrives, assuming nobody else has yet.
https://github.com/mpv-player/mpv/wiki/User-Scripts is a good listing of existing scripts that I know of, though I don't see an OSC tailored for mobile there.
  Reply
#9
@Zebulon Walton, I couldn't even get VLC to work. It installed fine, but the GUI was totally non-responsive. Do you know a workaround for this?
  Reply
#10
(01-15-2021, 03:10 PM)3x5co Wrote: @Zebulon Walton, I couldn't even get VLC to work. It installed fine, but the GUI was totally non-responsive. Do you know a workaround for this?

you need to use mpv, vlc is cpu only
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I record video on a Pinephone? kk22 18 7,111 07-22-2024, 05:18 PM
Last Post: baptx
  How To Share The External MicroSD Folders and Files On A Network? pinephoneuser22 5 2,666 02-10-2024, 08:47 AM
Last Post: jakfish
  Video Out not working BenniTec 7 6,180 10-21-2021, 11:56 AM
Last Post: BenniTec
  Video playback with hardware acceleration jojuma 2 3,432 08-21-2021, 11:24 AM
Last Post: jojuma
  Video Quickstart Guide Luke 0 7,486 04-26-2021, 03:44 AM
Last Post: Luke
  [Video] Securing SSH Config On Pinephone + Demo RTP 0 1,843 03-15-2021, 01:53 AM
Last Post: RTP
  Phone Won't Detect Music Files From SD Card Joelandsonja 11 15,533 02-25-2021, 11:23 PM
Last Post: cybercricket
  OS for video communicator? (single purpose device) feklee 2 3,191 02-02-2021, 08:44 PM
Last Post: feklee
  cad files for rear case/battery upgrade dallytaur 5 6,362 11-19-2020, 07:19 PM
Last Post: wibble
  Pinephone playing 1440p video on external display megous 2 4,559 09-18-2020, 12:57 PM
Last Post: megous

Forum Jump:


Users browsing this thread: 4 Guest(s)