Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transcoding doesn't work #1342

Open
loshara131313 opened this issue Nov 8, 2024 · 3 comments
Open

Transcoding doesn't work #1342

loshara131313 opened this issue Nov 8, 2024 · 3 comments

Comments

@loshara131313
Copy link

Describe the bug

nextcloud was installed via Docker AIO, for some time transcoding via integrated graphics worked well, both with and without a external transcoder container (with the addition of the launch parameter --env NEXTCLOUD_ADDITIONAL_APKS="intel-media-driver ffmpeg" ). After some update, both methods stopped working.

Steps To Reproduce

  1. Go to memories with transcoding enabled via VA-API
  2. Try playing any video

Platform

- OS:Windows 11
- Browser: Firefox 134.0a1
- Memories Version: 7.4.1
- Nextcloud Version: 30.0
- PHP Version: 	8.2.25

Screenshots

No response

Additional context

-When the external transcoding container is enabled:
Logs inside the container:

2024-11-08T18:00:52.634768994Z Fetched https://loshara.su/index.php/apps/memories/static/go-vod?arch=x86_64 successfully!
2024-11-08T18:00:52.636208587Z 2024/11/08 18:00:52 &{Version:0.2.5 Configured:false VersionMonitor:true Bind::47788 FFmpeg:/usr/local/bin/ffmpeg FFprobe:/usr/local/bin/ffprobe TempDir:/tmp/go-vod ChunkSize:3 LookBehind:3 GoalBufferMin:1 GoalBufferMax:4 StreamIdleTime:60 ManagerIdleTime:60 QF:0 VAAPI:false VAAPILowPower:false NVENC:false NVENCTemporalAQ:false NVENCScale: UseTranspose:false ForceSwTranspose:false UseGopSize:false}
2024-11-08T18:00:52.636270575Z 2024/11/08 18:00:52 Starting go-vod 0.2.5 on :47788
2024-11-08T18:01:41.762380424Z 2024/11/08 18:01:41 &{Version:0.2.5 Configured:true VersionMonitor:true Bind::47788 FFmpeg:/usr/local/bin/ffmpeg FFprobe:/usr/local/bin/ffprobe TempDir:/tmp/go-vod ChunkSize:3 LookBehind:3 GoalBufferMin:1 GoalBufferMax:4 StreamIdleTime:60 ManagerIdleTime:60 QF:24 VAAPI:true VAAPILowPower:true NVENC:false NVENCTemporalAQ:false NVENCScale:cuda UseTranspose:true ForceSwTranspose:false UseGopSize:false}
2024-11-08T18:01:41.795841385Z 2024/11/08 18:01:41 k8lxah57wan0: new manager for /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_210553.mp4
2024-11-08T18:01:42.051393178Z 2024/11/08 18:01:42 k8lxah57wan0-max: stopping stream
2024-11-08T18:01:42.051424988Z 2024/11/08 18:01:42 k8lxah57wan0-max: /usr/local/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -noautorotate -i /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_210553.mp4 -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12,transpose_vaapi=1" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -ac 1 -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/k8lxah57wan0-1153092876/max-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" -
2024-11-08T18:01:42.070360866Z 2024/11/08 18:01:42 ffmpeg-error: [AVHWDeviceContext @ 0x589461ff8dc0] Failed to initialise VAAPI connection: -1 (unknown libva error).
2024-11-08T18:01:42.070382298Z 2024/11/08 18:01:42 ffmpeg-error: Device creation failed: -5.
2024-11-08T18:01:42.070385636Z 2024/11/08 18:01:42 ffmpeg-error: No device available for decoder: device type vaapi needed for codec hevc.
2024-11-08T18:01:42.070388692Z 2024/11/08 18:01:42 ffmpeg-error: Device setup failed for decoder on input stream #0:1 : Input/output error
2024-11-08T18:01:42.072326927Z 2024/11/08 18:01:42 k8lxah57wan0-max: ffmpeg exited with status: 1
2024-11-08T18:01:42.215682813Z 2024/11/08 18:01:42 k8lxah57wan0-1080p: stopping stream
2024-11-08T18:01:42.215701706Z 2024/11/08 18:01:42 k8lxah57wan0-1080p: /usr/local/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -noautorotate -i /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_210553.mp4 -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12:w=1920:h=1920,transpose_vaapi=1" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -ac 1 -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/k8lxah57wan0-1153092876/1080p-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" -
2024-11-08T18:01:42.235748946Z 2024/11/08 18:01:42 ffmpeg-error: [AVHWDeviceContext @ 0x633d06abadc0] Failed to initialise VAAPI connection: -1 (unknown libva error).
2024-11-08T18:01:42.235793443Z 2024/11/08 18:01:42 ffmpeg-error: Device creation failed: -5.
2024-11-08T18:01:42.235796110Z 2024/11/08 18:01:42 ffmpeg-error: No device available for decoder: device type vaapi needed for codec hevc.
2024-11-08T18:01:42.235798276Z 2024/11/08 18:01:42 ffmpeg-error: Device setup failed for decoder on input stream #0:1 : Input/output error
2024-11-08T18:01:42.237836927Z 2024/11/08 18:01:42 k8lxah57wan0-1080p: ffmpeg exited with status: 1
2024-11-08T18:01:43.823120732Z 2024/11/08 18:01:43 k8lxah57wan0-480p: stopping stream
2024-11-08T18:01:43.823141922Z 2024/11/08 18:01:43 k8lxah57wan0-480p: /usr/local/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -noautorotate -i /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_210553.mp4 -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12:w=854:h=854,transpose_vaapi=1" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -ac 1 -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/k8lxah57wan0-1153092876/480p-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" -
2024-11-08T18:01:43.842534348Z 2024/11/08 18:01:43 ffmpeg-error: [AVHWDeviceContext @ 0x6043faa32dc0] Failed to initialise VAAPI connection: -1 (unknown libva error).
2024-11-08T18:01:43.842571960Z 2024/11/08 18:01:43 ffmpeg-error: Device creation failed: -5.
2024-11-08T18:01:43.842574706Z 2024/11/08 18:01:43 ffmpeg-error: No device available for decoder: device type vaapi needed for codec hevc.
2024-11-08T18:01:43.842576892Z 2024/11/08 18:01:43 ffmpeg-error: Device setup failed for decoder on input stream #0:1 : Input/output error
2024-11-08T18:01:43.844429415Z 2024/11/08 18:01:43 k8lxah57wan0-480p: ffmpeg exited with status: 1
2024-11-08T18:01:44.017699044Z 2024/11/08 18:01:44 k8lxah57wan0-720p: stopping stream
2024-11-08T18:01:44.017722156Z 2024/11/08 18:01:44 k8lxah57wan0-720p: /usr/local/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -noautorotate -i /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_210553.mp4 -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12:w=1280:h=1280,transpose_vaapi=1" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -ac 1 -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/k8lxah57wan0-1153092876/720p-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" -
2024-11-08T18:01:44.037027298Z 2024/11/08 18:01:44 ffmpeg-error: [AVHWDeviceContext @ 0x5a4fe4b92dc0] Failed to initialise VAAPI connection: -1 (unknown libva error).
2024-11-08T18:01:44.037077921Z 2024/11/08 18:01:44 ffmpeg-error: Device creation failed: -5.
2024-11-08T18:01:44.037080554Z 2024/11/08 18:01:44 ffmpeg-error: No device available for decoder: device type vaapi needed for codec hevc.
2024-11-08T18:01:44.037091993Z 2024/11/08 18:01:44 ffmpeg-error: Device setup failed for decoder on input stream #0:1 : Input/output error
2024-11-08T18:01:44.039031532Z 2024/11/08 18:01:44 k8lxah57wan0-720p: ffmpeg exited with status: 1
2024-11-08T18:01:44.191101059Z 2024/11/08 18:01:44 k8lxah57wan0-1440p: stopping stream
2024-11-08T18:01:44.191119497Z 2024/11/08 18:01:44 k8lxah57wan0-1440p: /usr/local/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -noautorotate -i /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_210553.mp4 -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12:w=2560:h=2560,transpose_vaapi=1" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -ac 1 -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/k8lxah57wan0-1153092876/1440p-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" -
2024-11-08T18:01:44.213198208Z 2024/11/08 18:01:44 ffmpeg-error: [AVHWDeviceContext @ 0x59021ef1bdc0] Failed to initialise VAAPI connection: -1 (unknown libva error).
2024-11-08T18:01:44.213221423Z 2024/11/08 18:01:44 ffmpeg-error: Device creation failed: -5.
2024-11-08T18:01:44.213223971Z 2024/11/08 18:01:44 ffmpeg-error: No device available for decoder: device type vaapi needed for codec hevc.
2024-11-08T18:01:44.213226133Z 2024/11/08 18:01:44 ffmpeg-error: Device setup failed for decoder on input stream #0:1 : Input/output error
2024-11-08T18:01:44.215201750Z 2024/11/08 18:01:44 k8lxah57wan0-1440p: ffmpeg exited with status: 1
2024-11-08T18:02:08.962396865Z 2024/11/08 18:02:08 pkfuhrm880i0: new manager for /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_182930.mp4
2024-11-08T18:02:09.236816483Z 2024/11/08 18:02:09 pkfuhrm880i0-720p: stopping stream
2024-11-08T18:02:09.236842995Z 2024/11/08 18:02:09 pkfuhrm880i0-720p: /usr/local/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -noautorotate -i /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_182930.mp4 -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12:w=1280:h=1280" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -ac 1 -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/pkfuhrm880i0-706630649/720p-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" -
2024-11-08T18:02:09.255154717Z 2024/11/08 18:02:09 ffmpeg-error: [AVHWDeviceContext @ 0x5b5e94339980] Failed to initialise VAAPI connection: -1 (unknown libva error).
2024-11-08T18:02:09.255175662Z 2024/11/08 18:02:09 ffmpeg-error: Device creation failed: -5.
2024-11-08T18:02:09.255178341Z 2024/11/08 18:02:09 ffmpeg-error: No device available for decoder: device type vaapi needed for codec hevc.
2024-11-08T18:02:09.255180390Z 2024/11/08 18:02:09 ffmpeg-error: Device setup failed for decoder on input stream #0:0 : Input/output error
2024-11-08T18:02:09.257127483Z 2024/11/08 18:02:09 pkfuhrm880i0-720p: ffmpeg exited with status: 1
2024-11-08T18:02:09.393832482Z 2024/11/08 18:02:09 pkfuhrm880i0-max: stopping stream
2024-11-08T18:02:09.393851355Z 2024/11/08 18:02:09 pkfuhrm880i0-max: /usr/local/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -noautorotate -i /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_182930.mp4 -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -ac 1 -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/pkfuhrm880i0-706630649/max-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" -
2024-11-08T18:02:09.412362158Z 2024/11/08 18:02:09 ffmpeg-error: [AVHWDeviceContext @ 0x56a20e2c1980] Failed to initialise VAAPI connection: -1 (unknown libva error).
2024-11-08T18:02:09.412387353Z 2024/11/08 18:02:09 ffmpeg-error: Device creation failed: -5.
2024-11-08T18:02:09.412389855Z 2024/11/08 18:02:09 ffmpeg-error: No device available for decoder: device type vaapi needed for codec hevc.
2024-11-08T18:02:09.412392318Z 2024/11/08 18:02:09 ffmpeg-error: Device setup failed for decoder on input stream #0:0 : Input/output error
2024-11-08T18:02:09.414326254Z 2024/11/08 18:02:09 pkfuhrm880i0-max: ffmpeg exited with status: 1
2024-11-08T18:02:11.037017193Z 2024/11/08 18:02:11 pkfuhrm880i0-480p: stopping stream
2024-11-08T18:02:11.037037837Z 2024/11/08 18:02:11 pkfuhrm880i0-480p: /usr/local/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -noautorotate -i /mnt/ncdata/admin/files/AUTO/CAMERA/2024/11/VID_20241108_182930.mp4 -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12:w=854:h=854" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -ac 1 -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/pkfuhrm880i0-706630649/480p-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" -
2024-11-08T18:02:11.056454190Z 2024/11/08 18:02:11 ffmpeg-error: [AVHWDeviceContext @ 0x564d34764980] Failed to initialise VAAPI connection: -1 (unknown libva error).
2024-11-08T18:02:11.056472703Z 2024/11/08 18:02:11 ffmpeg-error: Device creation failed: -5.
2024-11-08T18:02:11.056475290Z 2024/11/08 18:02:11 ffmpeg-error: No device available for decoder: device type vaapi needed for codec hevc.
2024-11-08T18:02:11.056477357Z 2024/11/08 18:02:11 ffmpeg-error: Device setup failed for decoder on input stream #0:0 : Input/output error
2024-11-08T18:02:11.058351294Z 2024/11/08 18:02:11 pkfuhrm880i0-480p: ffmpeg exited with status: 1
2024-11-08T18:02:41.799078005Z 2024/11/08 18:02:41 k8lxah57wan0-1440p: stopping stream
2024-11-08T18:02:41.799142164Z 2024/11/08 18:02:41 k8lxah57wan0-720p: stopping stream
2024-11-08T18:02:41.799157065Z 2024/11/08 18:02:41 k8lxah57wan0-480p: stopping stream
2024-11-08T18:02:41.799169155Z 2024/11/08 18:02:41 k8lxah57wan0-max: stopping stream
2024-11-08T18:02:41.799180937Z 2024/11/08 18:02:41 k8lxah57wan0-1080p: stopping stream
2024-11-08T18:02:45.293119618Z 2024/11/08 18:02:45 &{Version:0.2.5 Configured:true VersionMonitor:true Bind::47788 FFmpeg:/usr/local/bin/ffmpeg FFprobe:/usr/local/bin/ffprobe TempDir:/tmp/go-vod ChunkSize:3 LookBehind:3 GoalBufferMin:1 GoalBufferMax:4 StreamIdleTime:60 ManagerIdleTime:60 QF:24 VAAPI:true VAAPILowPower:false NVENC:false NVENCTemporalAQ:false NVENCScale:cuda UseTranspose:true ForceSwTranspose:false UseGopSize:false}
2024-11-08T18:03:08.962727660Z 2024/11/08 18:03:08 pkfuhrm880i0-max: stopping stream
2024-11-08T18:03:08.962754656Z 2024/11/08 18:03:08 pkfuhrm880i0-480p: stopping stream
2024-11-08T18:03:18.962907060Z 2024/11/08 18:03:18 pkfuhrm880i0-720p: stopping stream
2024-11-08T18:03:41.796554591Z 2024/11/08 18:03:41 k8lxah57wan0: destroying manager
2024-11-08T18:03:41.796608435Z 2024/11/08 18:03:41 k8lxah57wan0-720p: stopping stream
2024-11-08T18:03:41.796623679Z 2024/11/08 18:03:41 k8lxah57wan0-480p: stopping stream
2024-11-08T18:03:41.796635648Z 2024/11/08 18:03:41 k8lxah57wan0-1080p: stopping stream
2024-11-08T18:03:41.796647448Z 2024/11/08 18:03:41 k8lxah57wan0-1440p: stopping stream
2024-11-08T18:03:41.796658981Z 2024/11/08 18:03:41 k8lxah57wan0-max: stopping stream
2024-11-08T18:04:18.967573249Z 2024/11/08 18:04:18 pkfuhrm880i0: destroying manager
2024-11-08T18:04:18.967632647Z 2024/11/08 18:04:18 pkfuhrm880i0-480p: stopping stream
2024-11-08T18:04:18.967647105Z 2024/11/08 18:04:18 pkfuhrm880i0-720p: stopping stream
2024-11-08T18:04:18.967659933Z 2024/11/08 18:04:18 pkfuhrm880i0-max: stopping stream

without external transcoding container:
Since nextcloud is installed via docker, it is problematic to look at specific logs; the server log contains the following error: Transcode failed: Transcoder returned 408

@loshara131313 loshara131313 added the needs triage To be triaged label Nov 8, 2024
@szaimen
Copy link
Contributor

szaimen commented Nov 15, 2024

@szaimen
Copy link
Contributor

szaimen commented Nov 15, 2024

@pulsejet
Copy link
Owner

Yeah, don't use the internal transcoder; the external container has updated drivers.

@pulsejet pulsejet removed the needs triage To be triaged label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants