mpv --profile=fast --hwdec=auto-safe ./nasa.ts
thanks, but we are different between X11 & wayland?
edit,
ok, switch to rpi-ffmpeg-6.1.1-2 build, --hwdec=auto-safe
āprofile=fast
x264,
(+) Video --vid=1 () (h264 720x1280 24.000fps)
(+) Audio --aid=1 () (aac 2ch 44100Hz)
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [gpu] 720x1280 yuv420p <ā no v4l2-m2m
x265,
Using hardware decoding (drm).
AO: [pipewire] 48000Hz stereo 2ch floatp
<<< alloc_frame
<<< v4l2_request_hevc_start_frame: 4 <----request not v4l2-m2m
<<< v4l2_request_hevc_decode_slice
<<< v4l2_request_hevc_end_frame: 4
<<< frame_post_process
VO: [gpu] 1920x1080 drm_prime[rpi4_8]
jc-kynesim released 7.0_rpi_import_1 branch.
can not compile, it said need C11?
edit,
ok, rebuild 6.0.1_main with x265 updated.
Hi @Darksky,
The recent system upgrade upgraded ffmpeg to ffmpeg 2:7.0.1-2 which was in conflict with rpi-ffmpeg-6.1.r112734.g3d640ab1f4-1.
Is there a newer rpi-ffmpeg available for download?
Iām gonna have to say no with the jc-kynesim repo. I had tried last week. He has a dev/7.0/rpi_import_1 branch started but if you build on it and after installing the package ffmpeg -v says ffmpeg version n6.2-dev-2004-gd0fe46c27f
which matches the last tag in his repo of n6.2-dev
.
I also saw graysky2 of arch-arm asking about the 7.0 status a couple of months ago and he has not replied to him yet.
https://github.com/jc-kynesim/rpi-ffmpeg/issues/90
Additional:
I had an idea of removing the .git directory from the dev/7.0/rpi_import_1 branch and created a tarball and modifying the PKGBUILD to see if things were treated differently and now it is showing up as:
[ray@jellyfin ~]$ ffmpeg -v
ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 14.1.1 (GCC) 20240507
It appears versioning is done differently when git is involved (tags vs some versioning fille). I tested a h265 stream with mpv and it did ok on my pi5.
Here is the package I built. I am pretty sure it is still in the experimental stage as he has not added a n7.0
tag to his repo yet.
rpi-ffmpeg-7.0-1-aarch64.pkg.tar.zst
https://drive.google.com/file/d/1y1XBggAA5ODoBV3ap_BTOFqTvI4_3RZn/view?usp=sharing
so, does Pi4/ffmpeg-7/firefox/YT work?
Did not test with pi4.
Thank you. Seems to work on GT King Pro with H264
jfl@jfl-gtkpro ī° ļ ī° mpv '/home/jfl/Videos/Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film [aqz-KE-bpKQ].mp4'
Option vf-add: scale_rkrga doesn't exist.
Error parsing option vf-add (option parameter could not be parsed)
/etc/mpv/mpv.conf:82: setting option vf-add='scale_rkrga=force_yuv=auto' failed.
(+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
[vaapi] libva: /usr/lib/dri/v4l2_request_drv_video.so init failed
[vaapi] libva: /usr/lib/dri/v4l2_request_drv_video.so init failed
Using hardware decoding (v4l2m2m).
VO: [gpu] 1920x1080 drm_prime[nv12]
V: 00:10:34 / 00:10:34 (100%) Dropped: 114
Exiting... (End of file)
jfl@jfl-gtkpro ī° ļ ī°
--vo=gpu-next is not working well.
jfl@jfl-gtkpro ī° ļ ī° mpv '/home/jfl/Videos/Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film [aqz-KE-bpKQ].mp4'
Option vf-add: scale_rkrga doesn't exist.
Error parsing option vf-add (option parameter could not be parsed)
/etc/mpv/mpv.conf:82: setting option vf-add='scale_rkrga=force_yuv=auto' failed.
(+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
[vaapi] libva: /usr/lib/dri/v4l2_request_drv_video.so init failed
[vaapi] libva: /usr/lib/dri/v4l2_request_drv_video.so init failed
Using hardware decoding (v4l2m2m).
VO: [gpu-next] 1920x1080 drm_prime[nv12]
[vo/gpu-next/libplacebo] Spent 3206.206 ms compiling shader (slow!)
[vo/gpu-next/libplacebo] gl_pass_run: drawing: OpenGL error: GL_INVALID_ENUM
[vo/gpu-next/libplacebo] gl_tex_destroy: OpenGL error: GL_INVALID_OPERATION
[vo/gpu-next/libplacebo] gl_pass_run: drawing: OpenGL error: GL_INVALID_ENUM
[vo/gpu-next/libplacebo] gl_tex_destroy: OpenGL error: GL_INVALID_OPERATION
ok, test rpi-ffmpeg-7.0 & rebuild mpv-git.
h264/h265 no v4l2-m2m output.
I tested my pi4 here with xfce and mpv from the repo and HW h265 worked. HW h264 did not work but it has not worked with mpv for a while. I am now able to play h264 and vp9 for some reason in youtube but no HW with h264. Although firefox says h264 HW is available in the config and the probe is successful for one of the video cards on the command line.
mpv having high dropped frames when streaming 1080p/60 Youtue.
found this, anyone tried?
ok, try to build, errorā¦Host compiler lacks C11 support?
edit,
add some flags from Alarmās ffmpeg-rpi PKGBUILD, now can compile.
edit2,
7.0/rpi_import_1 had āAllow rpi_sand test to build and pass on non-ARM architecturesā.
so, build option add --enable-sand but donāt know how it work?
edit3,
ok, set --hwdec=auto-safe --profile=fast
h264, VO: [gpu] 720x1280 yuv420p ā no v4l2m2m
h265, VO: [gpu] 1920x800 drm_prime[rpi4_10]
edit4,
ok, found this, fork from jcās-7.0, fixed forever logs when play h265.
edit5,
h264 didnāt work v4l2m2m
[ffmpeg/video] h264_v4l2m2m: Profile 89817320 not supported by decode
Could not open codec.
h265 work well v4l2_requset.
with ffmpeg7-jc, firefox window mode choppy, full mode smooth? h264ify enabled.
edit,
jc-ffmpeg update to 5.1.6_main and PiOS.
edit2, some testā¦
*h265
Using hardware decoding (drm-copy).
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu-next] 1280x720 yuv420p
ok, another test.
mpv --ao=pipewire --vo=gpu-next --hwdec=hevc-v4l2request --gpu-context=waylandvk h265.mkv
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu-next] 1280x720 yuv420p
AV: 00:00:48 / 00:51:52 (2%) A-V: 0.001
jc-ffmpeg-7.1 now, there is rpi-util sub/DIR, seems build script for PiOS only.
so, how to add Pi option?
edit,
about rpi sand format, --enable-sand.
rpi-ffmpeg 7.1-1
pushed to unstable when the mirrors sync.
do you add some options for Rpi?
Used options graysky at arch-arm uses.
ok, his build not jc-patch, ignored.