memories icon indicating copy to clipboard operation
memories copied to clipboard

Need ffmpeg compatible with Memories

Open MrMEEE opened this issue 4 months ago • 2 comments

Describe the bug

Hi.. I'm running on RHEL and internal go-vod..

2025/08/27 01:12:45 7vgz1yayb9g0-720p: ffmpeg exited with status: 8 2025/08/27 01:12:45 7vgz1yayb9g0-max: stopping stream 2025/08/27 01:12:45 7vgz1yayb9g0-max: /usr/local/bin/ffmpeg -loglevel warning -hwaccel cuda -noautorotate -i /var/www/nextcloud-data/__groupfolders/6/2025/08/VID20250823090811.mp4 -copyts -fflags +genpts -vf "format=nv12|cuda,hwupload,scale_cuda=force_original_aspect_ratio=decrease:passthrough=0,hwdownload,format=nv12,transpose=1,format=nv12|cuda,hwupload" -map "0✌️0" "-c:v" h264_nvenc -preset p6 -tune ll -rc vbr -rc-lookahead 30 -cq 24 -temporal-aq 1 -map "0🅰️0?" "-c:a" aac -start_number 0 -avoid_negative_ts disabled -f hls -hls_flags split_by_time -hls_time 3 -hls_segment_type mpegts -hls_segment_filename /tmp/go-vod/7vgz1yayb9g0-2304127118/max-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" - 2025/08/27 01:12:45 ffmpeg-error: Unrecognized option 'rc'. 2025/08/27 01:12:45 ffmpeg-error: Error splitting the argument list: Option not found

I'm using the ffmpeg static builds from here: https://johnvansickle.com/ffmpeg/

Where should I get a ffmpeg with NVENC support that is compatible with go-vod??

Steps To Reproduce

No response

Platform

- OS: Linux/Windows
- Browser: Firefox/Chrome/App
- Memories Version: Latest
- Nextcloud Version: Latest
- PHP Version: 8.3.19

Screenshots

No response

Additional context

MrMEEE avatar Aug 26 '25 23:08 MrMEEE

If I use the ffmpeg version from RPMFusion.. I get:

2025/09/04 01:55:29 ooega4v9z3b0-max: /bin/ffmpeg -loglevel warning -hwaccel cuda -noautorotate -i /var/www/nextcloud-data/__groupfolders/6/2025/09/VID_20250901_174234.mp4 -copyts -fflags +genpts -vf "format=nv12|cuda,hwupload,scale_cuda=force_original_aspect_ratio=decrease:passthrough=0,hwdownload,format=nv12,transpose=1,format=nv12|cuda,hwupload" -map "0:v:0" "-c:v" h264_nvenc -preset p6 -tune ll -rc vbr -rc-lookahead 30 -cq 24 -map "0:a:0?" "-c:a" aac -start_number 0 -avoid_negative_ts disabled -f hls -hls_flags split_by_time -hls_time 3 -hls_segment_type mpegts -hls_segment_filename /tmp/go-vod/ooega4v9z3b0-4016931290/max-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" - 2025/09/04 01:55:29 ffmpeg-error: [AVFilterGraph @ 0x55c171a756c0] No such filter: 'scale_cuda' 2025/09/04 01:55:29 ffmpeg-error: Error reinitializing filters! 2025/09/04 01:55:29 ffmpeg-error: Failed to inject frame into filter network: Invalid argument 2025/09/04 01:55:29 ffmpeg-error: Error while processing the decoded data for stream #0:0 2025/09/04 01:55:29 ffmpeg-error: [aac @ 0x55c171a45b80] 2 frames left in the queue on closing 2025/09/04 01:55:30 ooega4v9z3b0-max: ffmpeg exited with status: 1

MrMEEE avatar Sep 03 '25 23:09 MrMEEE

The most straightforward way here is to use a docker container. go-vod uses jellyfin's ffmpeg specifically for hw acceleration so it's barely tested with the internal transcoder method. One way would be to somehow get jellyfin ffmpeg manually.

pulsejet avatar Sep 26 '25 22:09 pulsejet