How can I record video on a Pinephone?
#11
My scripts still work for me, I just had to update (yet again) the name of the PulseAudio device:
http://svn.calcforge.org/viewvc/pinephon...revision=3
  Reply
#12
(07-04-2024, 07:21 PM)Kevin Kofler Wrote: My scripts still work for me, I just had to update (yet again) the name of the PulseAudio device:
http://svn.calcforge.org/viewvc/pinephon...revision=3

Which PinePhone version and operating system are you using?
I am using v1.2b hardware revision convergence package (Mobian edition) with an updated Mobian operating system.
The PulseAudio device is not the issue for me because with the command "pactl list | grep alsa_input" (https://superuser.com/questions/462309/l...321#462321) I can see the device name is still this one:
alsa_input.platform-sound.HiFi__hw_PinePhone_0__source
I just had to replace /dev/video2 with /dev/video3
I found the correct ID with this command:
media-ctl -d1 -p
When running your script, ffmpeg freezes and it is impossible to kill the process even with "sudo killalll -9 ffmpeg" (this results in a black screen when using the Megapixels camera app so we have to restart the PinePhone). I can see the same error in dmesg as the one I mentioned for another script:
https://gitlab.com/Alaraajavamma/fastvid...1988350434
  Reply
#13
PinePhone (original A64) Beta Edition (hardware revision v1.2b) with convergence package (3GB/32GB edition), running a fully updated Manjaro ARM Plasma Mobile Edition stable.

You are running Mobian stable, which is a really really old distribution by mobile GNU/Linux standards. Your kernel is Linux 6.1.x (Bookworm shipped with 6.1.69, you should have 6.1.97 available as an update), my PinePhone is running Linux 6.7.5. The error you are seeing seems to pretty clearly be a bug in the kernel driver for the camera.
  Reply
#14
(07-08-2024, 05:59 PM)Kevin Kofler Wrote: PinePhone (original A64) Beta Edition (hardware revision v1.2b) with convergence package (3GB/32GB edition), running a fully updated Manjaro ARM Plasma Mobile Edition stable.

You are running Mobian stable, which is a really really old distribution by mobile GNU/Linux standards. Your kernel is Linux 6.1.x (Bookworm shipped with 6.1.69, you should have 6.1.97 available as an update), my PinePhone is running Linux 6.7.5. The error you are seeing seems to pretty clearly be a bug in the kernel driver for the camera.

Thanks for the hint. Currently, there is only Linux kernel 6.1.69 in Mobian stable (http://repo.mobian.org/dists/bookworm/ma...ary-arm64/) and in Mobian staging there is 6.6.37 (http://repo.mobian.org/dists/staging/main/binary-arm64/).
I installed linux-image-6.6-sunxi64 from the staging repository and ffmpeg is now working to record videos from the camera. However the Megapixels app has now an error when trying to take a picture with the new kernel, maybe you have an idea:
https://gitlab.com/Alaraajavamma/fastvid...1990734890
  Reply
#15
There is 6.1.98+sunxi64-1 in bookworm-updates: http://repo.mobian.org/dists/bookworm-up...ary-arm64/
See also https://packages.mobian.org/

Maybe try the bookworm-updates kernel, if that fixes the ffmpeg issue without breaking Megapixels?

For what it's worth, I have Megapixels working with a 6.7.5 kernel on Manjaro ARM. The thing is, Megapixels in Mobian stable (bookworm) is also outdated, but that package comes from Debian (see https://packages.debian.org/bookworm/megapixels), so Mobian staging does not have an update for it. Only Debian trixie does (https://packages.debian.org/trixie/megapixels).

Mixing Mobian staging packages with a Debian stable base is not a good idea. Mobian staging is staging for Mobian testing, so it should be used only if you upgrade everything to Debian/Mobian testing, i.e., currently trixie.

Either use Mobian bookworm with bookworm-updates enabled (How do people end up with a bookworm install without bookworm-updates? Does Mobian not enable updates by default? That is very broken!) or use Mobian trixie with or without staging enabled, not a mix.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone Pro P. Siera 1 70 07-13-2024, 10:37 AM
Last Post: Peter Gamma
  eSIM on PinePhone just_a_q 6 3,293 07-02-2024, 01:30 AM
Last Post: zetabeta
  PinePhone Boots but only Shows Black Screen with Backlight danyeaw 1 128 06-30-2024, 10:18 AM
Last Post: danyeaw
  Pinephone won't boot. spha 13 4,058 05-15-2024, 10:31 PM
Last Post: Richy_T
  Pinephone boot. Richy_T 5 666 05-15-2024, 03:35 PM
Last Post: Richy_T
  PinePhone - boot from microSD laserpyramid 9 1,631 05-03-2024, 10:09 AM
Last Post: laserpyramid
  pinephone virtual keyboard aular 4 819 04-10-2024, 03:45 PM
Last Post: aular
  PinePhone Doesn't Boot LED Doesn't Show Any Signs When Charging dorkydev 1 569 04-02-2024, 11:50 AM
Last Post: Kevin Kofler
  Are you using the Pinephone as your daily driver? jro 157 119,028 02-18-2024, 11:33 PM
Last Post: aular
  2020 PinePhone Manjaro CE EU for sale, name your price astrojuanlu 7 2,516 02-14-2024, 04:51 PM
Last Post: astrojuanlu

Forum Jump:


Users browsing this thread: 1 Guest(s)