An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles: ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V....... ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V....... ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
hevc_qsv and h264_qsv encoders also have "high" profile: ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V....... ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin < cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now. does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode? dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail: ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin < cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application. Now, moving to cingg, does adding preset 4 b 1570k into profile file fix anything? you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before: localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 # cd /home/cinelerra/cinelerra-5.1 bin/cin Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data Render::render_single: Session finished.
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin < cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use? may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Rendered also to av1_svt.webm that worked as shown below. Then back again to av1_qsv.mp4 from scratch, but got the same error. Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm ----------- FFMPEG webm Audio preset: opus.webm Video Preset compression: av1_svt.webm Pixels: yuv420p preset 4 b 1570k ---------- Svt[warn]: Failed to set thread priority: Invalid argument [SWR @ 0x7f7b47452b00] Using fltp internally between filters [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting to 96000 bps. FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted Svt[error]: deinit called without sending EOS! Render::render_single: Session finished. ** rendered 2832 frames in 109.469 secs, 25.870 fps FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm audio0 pad 32 -335 (367) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm Total excess of backups: -50 Session time: 0:27:05 Cpu time: user: 0:10:21.894 sys: 0:00:10.195
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
сб, 12 окт. 2024 г., 22:19 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin < cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Rendered also to av1_svt.webm that worked as shown below. Then back again to av1_qsv.mp4 from scratch, but got the same error.
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm ----------- FFMPEG webm Audio preset: opus.webm Video Preset compression: av1_svt.webm Pixels: yuv420p preset 4 b 1570k ---------- Svt[warn]: Failed to set thread priority: Invalid argument [SWR @ 0x7f7b47452b00] Using fltp internally between filters [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting to 96000 bps. FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted Svt[error]: deinit called without sending EOS! Render::render_single: Session finished. ** rendered 2832 frames in 109.469 secs, 25.870 fps FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm audio0 pad 32 -335 (367) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm Total excess of backups: -50 Session time: 0:27:05 Cpu time: user: 0:10:21.894 sys: 0:00:10.195
to be honest this log does not show SAME error about mismatching format, so it probably was only first half. can you try to cut av1_qsv.mp4 back to just first non-comment line?
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 12.10.2024 21:26, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:19 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Ok, I misunderstood when I tried something quite else below, software av1_svt.webm below. Should aac audio be available for av1_qsv.mp4, I couldn't see it?
Rendered also to av1_svt.webm that worked as shown below. Then back again to av1_qsv.mp4 from scratch, but got the same error.
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm ----------- FFMPEG webm Audio preset: opus.webm Video Preset compression: av1_svt.webm Pixels: yuv420p preset 4 b 1570k ---------- Svt[warn]: Failed to set thread priority: Invalid argument [SWR @ 0x7f7b47452b00] Using fltp internally between filters [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting to 96000 bps. FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted Svt[error]: deinit called without sending EOS! Render::render_single: Session finished. ** rendered 2832 frames in 109.469 secs, 25.870 fps FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm audio0 pad 32 -335 (367) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm Total excess of backups: -50 Session time: 0:27:05 Cpu time: user: 0:10:21.894 sys: 0:00:10.195
to be honest this log does not show SAME error about mismatching format, so it probably was only first half.
can you try to cut av1_qsv.mp4 back to just first non-comment line?
I don't understand: Can you explain "cut av1_qsv.mp4 back to just first non-comment line" ....?
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 12.10.2024 21:36, skrev Terje J. Hanssen:
Den 12.10.2024 21:26, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:19 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen: > An overview over the system FFmpeg 7.x > supported QSV pixel formats and profiles: > > > ffmpeg -hide_banner -h encoder=hevc_qsv | egrep > 'Supported|profile|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 p010le p012le > yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le > -profile <int> E..V....... (from 0 to > INT_MAX) (default unknown) > main 1 E..V....... > main10 2 E..V....... > mainsp 3 E..V....... > main 0 E..V....... > > > ffmpeg -hide_banner -h encoder=h264_qsv | egrep > 'Supported|profile|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 qsv > -profile <int> E..V....... (from 0 to > INT_MAX) (default unknown) > main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Ok, I misunderstood when I tried something quite else below, software av1_svt.webm below. Should aac audio be available for av1_qsv.mp4, I couldn't see it?
Rendered also to av1_svt.webm that worked as shown below. Then back again to av1_qsv.mp4 from scratch, but got the same error.
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm ----------- FFMPEG webm Audio preset: opus.webm Video Preset compression: av1_svt.webm Pixels: yuv420p preset 4 b 1570k ---------- Svt[warn]: Failed to set thread priority: Invalid argument [SWR @ 0x7f7b47452b00] Using fltp internally between filters [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting to 96000 bps. FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted Svt[error]: deinit called without sending EOS! Render::render_single: Session finished. ** rendered 2832 frames in 109.469 secs, 25.870 fps FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm audio0 pad 32 -335 (367) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm Total excess of backups: -50 Session time: 0:27:05 Cpu time: user: 0:10:21.894 sys: 0:00:10.195
to be honest this log does not show SAME error about mismatching format, so it probably was only first half.
can you try to cut av1_qsv.mp4 back to just first non-comment line?
I don't understand: Can you explain "cut av1_qsv.mp4 back to just first non-comment line" ....?
I came to wonder where are the equivalents to the ffmpeg command line "-hwaccel_output_format qsv -qsv_device /dev/dri/renderD128" defined in CinGG?
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
>
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
> > ffmpeg -hide_banner -h encoder=av1_qsv | egrep > 'Supported|profile|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 p010le qsv > -profile <int> E..V....... (from 0 to > INT_MAX) (default unknown) > main 1 E..V....... > > > ffmpeg -hide_banner -h encoder=vp9_qsv | egrep > 'Supported|profile|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 p010le vuyx > qsv xv30le > -profile <int> E..V....... (from 0 to > INT_MAX) (default unknown) > profile0 1 E..V....... > profile1 2 E..V....... > profile2 3 E..V....... > profile3 4 E..V....... > > > ffmpeg -hide_banner -h encoder=vp9_qsv | egrep > 'Supported|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 p010le vuyx > qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
сб, 12 окт. 2024 г., 22:42 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 21:36, skrev Terje J. Hanssen:
Den 12.10.2024 21:26, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:19 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin < cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Ok, I misunderstood when I tried something quite else below, software
av1_svt.webm below. Should aac audio be available for av1_qsv.mp4, I couldn't see it?
Rendered also to av1_svt.webm that worked as shown below. Then back again
to av1_qsv.mp4 from scratch, but got the same error.
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm ----------- FFMPEG webm Audio preset: opus.webm Video Preset compression: av1_svt.webm Pixels: yuv420p preset 4 b 1570k ---------- Svt[warn]: Failed to set thread priority: Invalid argument [SWR @ 0x7f7b47452b00] Using fltp internally between filters [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting to 96000 bps. FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted Svt[error]: deinit called without sending EOS! Render::render_single: Session finished. ** rendered 2832 frames in 109.469 secs, 25.870 fps FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm audio0 pad 32 -335 (367) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm Total excess of backups: -50 Session time: 0:27:05 Cpu time: user: 0:10:21.894 sys: 0:00:10.195
to be honest this log does not show SAME error about mismatching format, so it probably was only first half.
can you try to cut av1_qsv.mp4 back to just first non-comment line?
I don't understand: Can you explain "cut av1_qsv.mp4 back to just first non-comment line" ....?
I came to wonder where are the equivalents to the ffmpeg command line "-hwaccel_output_format qsv -qsv_device /dev/dri/renderD128" defined in CinGG?
I think you can change device for vaapi, but I have not tested this code for qsv. It seems to puck correct device by default here ... so no need to complicate our investigation with this for now. hwaccel_output_format *probably* only needed for hw transcoding, like mpeg2 hdv to av1. What happen if you remove those two from dv to av1_qsv command line?
Den 12.10.2024 21:54, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:42 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 21:36, skrev Terje J. Hanssen:
Den 12.10.2024 21:26, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:19 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu: > > > сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via > Cin <cin@lists.cinelerra-gg.org>: > > > > Den 12.10.2024 12:08, skrev Terje J. Hanssen: >> An overview over the system FFmpeg 7.x >> supported QSV pixel formats and profiles: >> >> >> ffmpeg -hide_banner -h encoder=hevc_qsv | >> egrep 'Supported|profile|main' >> Supported hardware devices: qsv qsv qsv >> Supported pixel formats: nv12 p010le >> p012le yuyv422 y210le qsv bgra x2rgb10le >> vuyx xv30le >> -profile <int> E..V....... (from 0 >> to INT_MAX) (default unknown) >> main 1 E..V....... >> main10 2 E..V....... >> mainsp 3 E..V....... >> main 0 E..V....... >> >> >> ffmpeg -hide_banner -h encoder=h264_qsv | >> egrep 'Supported|profile|main' >> Supported hardware devices: qsv qsv qsv >> Supported pixel formats: nv12 qsv >> -profile <int> E..V....... (from 0 >> to INT_MAX) (default unknown) >> main 77 E..V....... > > > I think we can concentrate on av1 for now. > > does it fail if you add "-profile main" to > ffmpeg command line for dv av1 encode? > > dv due to it being software codec, so ffmpeg > forced to push and convert frames from system > memory, as opposed to hdv (hw) = > av1 on-gpu > transcode) >
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Ok, I misunderstood when I tried something quite else below, software av1_svt.webm below. Should aac audio be available for av1_qsv.mp4, I couldn't see it?
Rendered also to av1_svt.webm that worked as shown below. Then back again to av1_qsv.mp4 from scratch, but got the same error.
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm ----------- FFMPEG webm Audio preset: opus.webm Video Preset compression: av1_svt.webm Pixels: yuv420p preset 4 b 1570k ---------- Svt[warn]: Failed to set thread priority: Invalid argument [SWR @ 0x7f7b47452b00] Using fltp internally between filters [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting to 96000 bps. FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted Svt[error]: deinit called without sending EOS! Render::render_single: Session finished. ** rendered 2832 frames in 109.469 secs, 25.870 fps FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm audio0 pad 32 -335 (367) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm Total excess of backups: -50 Session time: 0:27:05 Cpu time: user: 0:10:21.894 sys: 0:00:10.195
to be honest this log does not show SAME error about mismatching format, so it probably was only first half.
can you try to cut av1_qsv.mp4 back to just first non-comment line?
I don't understand: Can you explain "cut av1_qsv.mp4 back to just first non-comment line" ....?
I came to wonder where are the equivalents to the ffmpeg command line "-hwaccel_output_format qsv -qsv_device /dev/dri/renderD128" defined in CinGG?
I think you can change device for vaapi, but I have not tested this code for qsv. It seems to puck correct device by default here ... so no need to complicate our investigation with this for now.
hwaccel_output_format *probably* only needed for hw transcoding, like mpeg2 hdv to av1.
What happen if you remove those two from dv to av1_qsv command line?
It works
сб, 12 окт. 2024 г., 22:36 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 21:26, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:19 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin < cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Ok, I misunderstood when I tried something quite else below, software
av1_svt.webm below. Should aac audio be available for av1_qsv.mp4, I couldn't see it?
it hides behind h264.mp4 audio profile .... but can you check two more things with cmd line ffmpeg? first change .webm part of working command line to .mp4 try it and report if and how it fail and then to mkv also report if it work or not. so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....? sorry for such long road ...
Rendered also to av1_svt.webm that worked as shown below. Then back again
to av1_qsv.mp4 from scratch, but got the same error.
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm ----------- FFMPEG webm Audio preset: opus.webm Video Preset compression: av1_svt.webm Pixels: yuv420p preset 4 b 1570k ---------- Svt[warn]: Failed to set thread priority: Invalid argument [SWR @ 0x7f7b47452b00] Using fltp internally between filters [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting to 96000 bps. FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted Svt[error]: deinit called without sending EOS! Render::render_single: Session finished. ** rendered 2832 frames in 109.469 secs, 25.870 fps FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm audio0 pad 32 -335 (367) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm Total excess of backups: -50 Session time: 0:27:05 Cpu time: user: 0:10:21.894 sys: 0:00:10.195
to be honest this log does not show SAME error about mismatching format, so it probably was only first half.
can you try to cut av1_qsv.mp4 back to just first non-comment line?
I don't understand: Can you explain "cut av1_qsv.mp4 back to just first non-comment line" ....?
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
сб, 12 окт. 2024 г., 22:45 Andrew Randrianasulu <randrianasulu@gmail.com>:
сб, 12 окт. 2024 г., 22:36 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 21:26, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:19 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin < cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen:
An overview over the system FFmpeg 7.x supported QSV pixel formats and profiles:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... main 0 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Ok, I misunderstood when I tried something quite else below, software
av1_svt.webm below. Should aac audio be available for av1_qsv.mp4, I couldn't see it?
it hides behind h264.mp4 audio profile ....
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
sorry for such long road ...
Rendered also to av1_svt.webm that worked as shown below. Then back again
to av1_qsv.mp4 from scratch, but got the same error.
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm ----------- FFMPEG webm Audio preset: opus.webm Video Preset compression: av1_svt.webm Pixels: yuv420p preset 4 b 1570k ---------- Svt[warn]: Failed to set thread priority: Invalid argument [SWR @ 0x7f7b47452b00] Using fltp internally between filters [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting to 96000 bps. FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted Svt[error]: deinit called without sending EOS! Render::render_single: Session finished. ** rendered 2832 frames in 109.469 secs, 25.870 fps FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm audio0 pad 32 -335 (367) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm Total excess of backups: -50 Session time: 0:27:05 Cpu time: user: 0:10:21.894 sys: 0:00:10.195
to be honest this log does not show SAME error about mismatching format, so it probably was only first half.
can you try to cut av1_qsv.mp4 back to just first non-comment line?
I don't understand: Can you explain "cut av1_qsv.mp4 back to just first non-comment line" ....?
just open it with editor as text file, remove all but very first line where it says mp4 av1_qsv but I think we trying something unsupported here ....
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|profile|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) profile0 1 E..V....... profile1 2 E..V....... profile2 3 E..V....... profile3 4 E..V.......
ffmpeg -hide_banner -h encoder=vp9_qsv | egrep 'Supported|main' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 12.10.2024 21:48, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:45 Andrew Randrianasulu <randrianasulu@gmail.com>:
сб, 12 окт. 2024 г., 22:36 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 21:26, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:19 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org>:
Den 12.10.2024 12:08, skrev Terje J. Hanssen: > An overview over the system FFmpeg 7.x > supported QSV pixel formats and profiles: > > > ffmpeg -hide_banner -h encoder=hevc_qsv > | egrep 'Supported|profile|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 p010le > p012le yuyv422 y210le qsv bgra x2rgb10le > vuyx xv30le > -profile <int> E..V....... (from > 0 to INT_MAX) (default unknown) > main 1 E..V....... > main10 2 E..V....... > mainsp 3 E..V....... > main 0 E..V....... > > > ffmpeg -hide_banner -h encoder=h264_qsv > | egrep 'Supported|profile|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 qsv > -profile <int> E..V....... (from > 0 to INT_MAX) (default unknown) > main 77 E..V.......
I think we can concentrate on av1 for now.
does it fail if you add "-profile main" to ffmpeg command line for dv av1 encode?
dv due to it being software codec, so ffmpeg forced to push and convert frames from system memory, as opposed to hdv (hw) = > av1 on-gpu transcode)
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Ok, I misunderstood when I tried something quite else below, software av1_svt.webm below. Should aac audio be available for av1_qsv.mp4, I couldn't see it?
it hides behind h264.mp4 audio profile ....
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line: du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
sorry for such long road ...
Rendered also to av1_svt.webm that worked as shown below. Then back again to av1_qsv.mp4 from scratch, but got the same error.
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm ----------- FFMPEG webm Audio preset: opus.webm Video Preset compression: av1_svt.webm Pixels: yuv420p preset 4 b 1570k ---------- Svt[warn]: Failed to set thread priority: Invalid argument [SWR @ 0x7f7b47452b00] Using fltp internally between filters [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting to 96000 bps. FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted FFStream::encode_frame: encode failed. file: /Videoklipp/QSV/dv01_07_av1_svt.webm err: Resource temporarily unavailable FFStream::flush failed :file:/Videoklipp/QSV/dv01_07_av1_svt.webm err: Operation not permitted Svt[error]: deinit called without sending EOS! Render::render_single: Session finished. ** rendered 2832 frames in 109.469 secs, 25.870 fps FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm audio0 pad 32 -335 (367) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_svt.webm Total excess of backups: -50 Session time: 0:27:05 Cpu time: user: 0:10:21.894 sys: 0:00:10.195
to be honest this log does not show SAME error about mismatching format, so it probably was only first half.
can you try to cut av1_qsv.mp4 back to just first non-comment line?
I don't understand: Can you explain "cut av1_qsv.mp4 back to just first non-comment line" ....?
just open it with editor as text file, remove all but very first line where it says
mp4 av1_qsv
but I think we trying something unsupported here ....
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from 'dv01_07.dv': Metadata: timecode : 01:09:35:09 Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus)) Press [q] to stop, [?] for help [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000 bps. Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm': Metadata: timecode : 01:09:35:09 encoder : Lavf61.1.100 Stream #0:0: Video: av1, nv12(bottom coded first (swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn Metadata: encoder : Lavc61.3.100 av1_qsv Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s Metadata: encoder : Lavc61.3.100 libopus [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.223557% frame= 2832 fps=1764 q=-0.0 Lsize= 23852KiB time=00:01:53.24 bitrate=1725.5kbits/s speed=70.5x
>
hevc_qsv and h264_qsv encoders also have "high" profile:
ffmpeg -hide_banner -h encoder=hevc_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 p010le p012le yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 1 E..V....... main10 2 E..V....... mainsp 3 E..V....... -tier <int> E..V....... Set the encoding tier (only level >= 4 can support high tier) (from 0 to 256) (default high) main 0 E..V....... high 256 E..V.......
ffmpeg -hide_banner -h encoder=h264_qsv | egrep 'Supported|profile|main|high' Supported hardware devices: qsv qsv qsv Supported pixel formats: nv12 qsv -profile <int> E..V....... (from 0 to INT_MAX) (default unknown) main 77 E..V....... high 100 E..V.......
> > ffmpeg -hide_banner -h encoder=av1_qsv | > egrep 'Supported|profile|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 p010le qsv > -profile <int> E..V....... (from > 0 to INT_MAX) (default unknown) > main 1 E..V....... > > > ffmpeg -hide_banner -h encoder=vp9_qsv | > egrep 'Supported|profile|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 p010le > vuyx qsv xv30le > -profile <int> E..V....... (from > 0 to INT_MAX) (default unknown) > profile0 1 E..V....... > profile1 2 E..V....... > profile2 3 E..V....... > profile3 4 E..V....... > > > ffmpeg -hide_banner -h encoder=vp9_qsv | > egrep 'Supported|main' > Supported hardware devices: qsv qsv qsv > Supported pixel formats: nv12 p010le > vuyx qsv xv30le
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 12.10.2024 22:48, skrev Terje J. Hanssen:
Den 12.10.2024 21:48, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:45 Andrew Randrianasulu <randrianasulu@gmail.com>:
сб, 12 окт. 2024 г., 22:36 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 21:26, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 22:19 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 19:56, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 20:45 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 18:43, skrev Andrew Randrianasulu:
сб, 12 окт. 2024 г., 16:59 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 12.10.2024 15:09, skrev Terje J. Hanssen:
Den 12.10.2024 14:39, skrev Andrew Randrianasulu: > > > сб, 12 окт. 2024 г., 13:23 Terje J. Hanssen > via Cin <cin@lists.cinelerra-gg.org>: > > > > Den 12.10.2024 12:08, skrev Terje J. > Hanssen: >> An overview over the system FFmpeg 7.x >> supported QSV pixel formats and profiles: >> >> >> ffmpeg -hide_banner -h encoder=hevc_qsv >> | egrep 'Supported|profile|main' >> Supported hardware devices: qsv qsv qsv >> Supported pixel formats: nv12 >> p010le p012le yuyv422 y210le qsv bgra >> x2rgb10le vuyx xv30le >> -profile <int> E..V....... (from >> 0 to INT_MAX) (default unknown) >> main 1 E..V....... >> main10 2 E..V....... >> mainsp 3 E..V....... >> main 0 E..V....... >> >> >> ffmpeg -hide_banner -h encoder=h264_qsv >> | egrep 'Supported|profile|main' >> Supported hardware devices: qsv qsv qsv >> Supported pixel formats: nv12 qsv >> -profile <int> E..V....... (from >> 0 to INT_MAX) (default unknown) >> main 77 E..V....... > > > I think we can concentrate on av1 for now. > > does it fail if you add "-profile main" to > ffmpeg command line for dv av1 encode? > > dv due to it being software codec, so ffmpeg > forced to push and convert frames from > system memory, as opposed to hdv (hw) = > > av1 on-gpu transcode) >
No, it doesn't fail:
but claims: "Please use -profile:a or -profile:v, -profile is ambiguous"
ah, I think it mostly relevant to ffmpeg as cli application.
Now, moving to cingg, does adding
preset 4 b 1570k
into profile file
fix anything?
you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.
Sorry, the same error as before:
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1
# cd /home/cinelerra/cinelerra-5.1
bin/cin
Load recent: dv01_07.dv Render to: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 FFMPEG mp4 Video wrench: Video Preset compression: av1_qsv.mp4 Pixels: nv12 preset 4 b 1570k
Cinelerra Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.mp4 Cinelerra Error (widgets) Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.mp4 Error rendering data
Render::render_single: Session finished.
what kind of audio compression you use?
Audio preset was set to h264.mp4 tried also h265.mp4 without any change there is no aac available for av1_qsv
may be set video profile to something else, then set in gui both av1_qsv.mp4 and relevant audio like aac?
Ok, I misunderstood when I tried something quite else below, software av1_svt.webm below. Should aac audio be available for av1_qsv.mp4, I couldn't see it?
it hides behind h264.mp4 audio profile ....
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe : ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 --------- ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 --------- ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
sorry for such long road ...
[snip]
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us. can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
sorry for such long road ...
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm # bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420 webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data ------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. ----------- Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg." ====================================
On Sun, Oct 13, 2024 at 2:43 PM Terje J. Hanssen <terjejhanssen@gmail.com> wrote:
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm
localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm
# bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420
should be: Pixels: nv12 (due to QSV accepting it only this way)
webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data
strange, Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm yet Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (with spaces, not underscores)
------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. -----------
Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg."
Yeah, but we are not even at encoding entrypoint, so this line had no chance to show anything.
====================================
Den 13.10.2024 14:04, skrev Andrew Randrianasulu:
On Sun, Oct 13, 2024 at 2:43 PM Terje J. Hanssen <terjejhanssen@gmail.com> wrote:
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm
localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm
# bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420
should be: Pixels: nv12 (due to QSV accepting it only this way)
Here show to be something strange; Some times entering the Video preset and compression av1_qsv.webm: pixels has shifted between yuv420p and nv12, and no other option to select each time!? It looks like when I write 'nv12' directly in the widget it remember it next time. But it doesn't help on the render error
webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data
strange, Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm
Have to confirm (+) or (-) when the file name exists from before
yet Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (with spaces, not underscores)
Yeah, it seemed as the underscores were stripped away, a graphical issue here?
------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. -----------
Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg."
Yeah, but we are not even at encoding entrypoint, so this line had no chance to show anything.
That's also my impression, the encoding really never starts and breaks immediately So there is no ffmpeg log file to inspect
====================================
вс, 13 окт. 2024 г., 15:44 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:04, skrev Andrew Randrianasulu:
On Sun, Oct 13, 2024 at 2:43 PM Terje J. Hanssen <terjejhanssen@gmail.com> wrote:
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm
localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm
# bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420
should be: Pixels: nv12 (due to QSV accepting it only this way)
Here show to be something strange; Some times entering the Video preset and compression av1_qsv.webm: pixels has shifted between yuv420p and nv12, and no other option to select each time!?
I think this mean selected codec does not exist. be sure to launch self-compiled against system's ffmpeg version of cin (you can check libraries it links to by using ldd path_to_executable ) It looks like when I write 'nv12' directly in the widget it remember it
next time. But it doesn't help on the render error
yeah, strange. Can you a) launch cin like LANG=C bin/cin b) try to save video to somesimple location like /dev/shm/1.mp4
webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data
strange, Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm
Have to confirm (+) or (-) when the file name exists from before
yet Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (with spaces, not underscores)
Yeah, it seemed as the underscores were stripped away, a graphical issue here?
------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. -----------
Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg."
Yeah, but we are not even at encoding entrypoint, so this line had no chance to show anything.
That's also my impression, the encoding really never starts and breaks immediately So there is no ffmpeg log file to inspect
====================================
Den 13.10.2024 14:49, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 15:44 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:04, skrev Andrew Randrianasulu:
On Sun, Oct 13, 2024 at 2:43 PM Terje J. Hanssen <terjejhanssen@gmail.com> wrote:
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm
localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm
# bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420
should be: Pixels: nv12 (due to QSV accepting it only this way)
Here show to be something strange; Some times entering the Video preset and compression av1_qsv.webm: pixels has shifted between yuv420p and nv12, and no other option to select each time!?
I think this mean selected codec does not exist.
be sure to launch self-compiled against system's ffmpeg version of cin (you can check libraries it links to by using ldd path_to_executable )
Please, specify the command steps with paths My system ffmpeg is which ffmpeg /usr/bin/ffmpeg My Cinelerra "home" installation is /home/cinelerra/cinelerra-5.1
It looks like when I write 'nv12' directly in the widget it remember it next time. But it doesn't help on the render error
yeah, strange.
Can you a) launch cin like LANG=C bin/cin
b) try to save video to somesimple location like /dev/shm/1.mp4
Then the initial PluginFilter errors arised again, see terminal output below By the way, the same render error as previously localhost:/home/cinelerra/cinelerra-5.1 # LANG=C bin/cin Cinelerra Infinity - built: Sep 23 2024 10:31:07 git://git.cinelerra-gg.org/goodguy/cinelerra.git (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy 2003-2017 mods for Cinelerra-CV by CinelerraCV team 2015-2024 mods for Cinelerra-GG by Cinelerra-GG team Libav version: Lavc61.3.100 Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for Cinelerra. lang changed from 'POSIX' to 'C' build plugin index for: /home/cinelerra/cinelerra-5.1/bin/plugins PluginFFilter::new_ffilter(lv2) err: Operation not permitted [sofalizer_205 @ 0x33de0780] Valid SOFA filename must be set. PluginFFilter::new_ffilter(sofalizer) err: Invalid argument PluginFFilter::new_ffilter(blend_vulkan) err: Input/output error PluginFFilter::new_ffilter(libplacebo) err: Operation not permitted PluginFFilter::new_ffilter(overlay_qsv) err: Input/output error PluginFFilter::new_ffilter(overlay_vulkan) err: Input/output error PluginFFilter::new_ffilter(xfade_vulkan) err: Input/output error PluginFFilter::new_ffilter(hstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(vstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(xstack_qsv) err: Operation not permitted build lv2 index for: $CIN_PATH/lv2 int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /dev/shm/1.mp4 Render::render_single: Session finished. Total excess of backups: -50 Session time: 0:03:28 Cpu time: user: 0:00:05.252 sys: 0:00:02.696
webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data
strange, Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm
Have to confirm (+) or (-) when the file name exists from before
yet Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (with spaces, not underscores)
Yeah, it seemed as the underscores were stripped away, a graphical issue here?
------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. -----------
Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg."
Yeah, but we are not even at encoding entrypoint, so this line had no chance to show anything.
That's also my impression, the encoding really never starts and breaks immediately So there is no ffmpeg log file to inspect
====================================
вс, 13 окт. 2024 г., 17:29 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:49, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 15:44 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:04, skrev Andrew Randrianasulu:
On Sun, Oct 13, 2024 at 2:43 PM Terje J. Hanssen <terjejhanssen@gmail.com> wrote:
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm
localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm
# bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420
should be: Pixels: nv12 (due to QSV accepting it only this way)
Here show to be something strange; Some times entering the Video preset and compression av1_qsv.webm: pixels has shifted between yuv420p and nv12, and no other option to select each time!?
I think this mean selected codec does not exist.
be sure to launch self-compiled against system's ffmpeg version of cin (you can check libraries it links to by using ldd path_to_executable )
Please, specify the command steps with paths
My system ffmpeg is
which ffmpeg /usr/bin/ffmpeg
My Cinelerra "home" installation is
/home/cinelerra/cinelerra-5.1
ldd /home/cinelerra/cinelerra-5.1/bin/cin but I think it does not matter because yeah full output below shows that"home" build of cinelerra started
It looks like when I write 'nv12' directly in the widget it remember it
next time. But it doesn't help on the render error
yeah, strange.
Can you a) launch cin like LANG=C bin/cin
b) try to save video to somesimple location like /dev/shm/1.mp4
Then the initial PluginFilter errors arised again, see terminal output below By the way, the same render error as previously
localhost:/home/cinelerra/cinelerra-5.1 # LANG=C bin/cin Cinelerra Infinity - built: Sep 23 2024 10:31:07 git://git.cinelerra-gg.org/goodguy/cinelerra.git (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy 2003-2017 mods for Cinelerra-CV by CinelerraCV team 2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
Libav version: Lavc61.3.100
Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for Cinelerra.
lang changed from 'POSIX' to 'C' build plugin index for: /home/cinelerra/cinelerra-5.1/bin/plugins PluginFFilter::new_ffilter(lv2) err: Operation not permitted [sofalizer_205 @ 0x33de0780] Valid SOFA filename must be set. PluginFFilter::new_ffilter(sofalizer) err: Invalid argument PluginFFilter::new_ffilter(blend_vulkan) err: Input/output error PluginFFilter::new_ffilter(libplacebo) err: Operation not permitted PluginFFilter::new_ffilter(overlay_qsv) err: Input/output error PluginFFilter::new_ffilter(overlay_vulkan) err: Input/output error PluginFFilter::new_ffilter(xfade_vulkan) err: Input/output error PluginFFilter::new_ffilter(hstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(vstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(xstack_qsv) err: Operation not permitted build lv2 index for: $CIN_PATH/lv2 int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /dev/shm/1.mp4 Render::render_single: Session finished. Total excess of backups: -50 Session time: 0:03:28 Cpu time: user: 0:00:05.252 sys: 0:00:02.696
I am about to give up :( I have no idea WHY it shows this error. from "home" cin directory can you cat bin/ffmpeg/video/av1_qsv.webm cat bin/ffmpeg/video/av1_qsv.mp4 ?
webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data
strange, Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm
Have to confirm (+) or (-) when the file name exists from before
yet Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (with spaces, not underscores)
Yeah, it seemed as the underscores were stripped away, a graphical issue here?
------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. -----------
Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg."
Yeah, but we are not even at encoding entrypoint, so this line had no chance to show anything.
That's also my impression, the encoding really never starts and breaks immediately So there is no ffmpeg log file to inspect
====================================
Den 13.10.2024 16:39, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 17:29 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:49, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 15:44 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:04, skrev Andrew Randrianasulu:
On Sun, Oct 13, 2024 at 2:43 PM Terje J. Hanssen <terjejhanssen@gmail.com> wrote:
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm
localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm
# bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420
should be: Pixels: nv12 (due to QSV accepting it only this way)
Here show to be something strange; Some times entering the Video preset and compression av1_qsv.webm: pixels has shifted between yuv420p and nv12, and no other option to select each time!?
I think this mean selected codec does not exist.
be sure to launch self-compiled against system's ffmpeg version of cin (you can check libraries it links to by using ldd path_to_executable )
Please, specify the command steps with paths
My system ffmpeg is
which ffmpeg /usr/bin/ffmpeg
My Cinelerra "home" installation is
/home/cinelerra/cinelerra-5.1
ldd /home/cinelerra/cinelerra-5.1/bin/cin
but I think it does not matter because yeah full output below shows that"home" build of cinelerra started
It looks like when I write 'nv12' directly in the widget it remember it next time. But it doesn't help on the render error
yeah, strange.
Can you a) launch cin like LANG=C bin/cin
b) try to save video to somesimple location like /dev/shm/1.mp4
Then the initial PluginFilter errors arised again, see terminal output below By the way, the same render error as previously
localhost:/home/cinelerra/cinelerra-5.1 # LANG=C bin/cin Cinelerra Infinity - built: Sep 23 2024 10:31:07 git://git.cinelerra-gg.org/goodguy/cinelerra.git <http://git.cinelerra-gg.org/goodguy/cinelerra.git> (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy 2003-2017 mods for Cinelerra-CV by CinelerraCV team 2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
Libav version: Lavc61.3.100
Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for Cinelerra.
lang changed from 'POSIX' to 'C' build plugin index for: /home/cinelerra/cinelerra-5.1/bin/plugins PluginFFilter::new_ffilter(lv2) err: Operation not permitted [sofalizer_205 @ 0x33de0780] Valid SOFA filename must be set. PluginFFilter::new_ffilter(sofalizer) err: Invalid argument PluginFFilter::new_ffilter(blend_vulkan) err: Input/output error PluginFFilter::new_ffilter(libplacebo) err: Operation not permitted PluginFFilter::new_ffilter(overlay_qsv) err: Input/output error PluginFFilter::new_ffilter(overlay_vulkan) err: Input/output error PluginFFilter::new_ffilter(xfade_vulkan) err: Input/output error PluginFFilter::new_ffilter(hstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(vstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(xstack_qsv) err: Operation not permitted build lv2 index for: $CIN_PATH/lv2 int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /dev/shm/1.mp4 Render::render_single: Session finished. Total excess of backups: -50 Session time: 0:03:28 Cpu time: user: 0:00:05.252 sys: 0:00:02.696
I am about to give up :(
It is understandable, if not any new ideas popup. We have already tried a lot.
I have no idea WHY it shows this error.
from "home" cin directory can you
cat bin/ffmpeg/video/av1_qsv.webm
cat bin/ffmpeg/video/av1_qsv.mp4
?
localhost:/home/cinelerra/cinelerra-5.1 # cat bin/ffmpeg/video/av1_qsv.webm # only usable with ext. ffmpeg webm av1_qsv # cin_pix_fmt=nv12 localhost:/home/cinelerra/cinelerra-5.1 # cat bin/ffmpeg/video/av1_qsv.mp4 # only usable with ext. ffmpeg mp4 av1_qsv cin_pix_fmt=nv12
webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data
strange, Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm
Have to confirm (+) or (-) when the file name exists from before
yet Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (with spaces, not underscores)
Yeah, it seemed as the underscores were stripped away, a graphical issue here?
------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. -----------
Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg."
Yeah, but we are not even at encoding entrypoint, so this line had no chance to show anything.
That's also my impression, the encoding really never starts and breaks immediately So there is no ffmpeg log file to inspect
====================================
вс, 13 окт. 2024 г., 17:55 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 16:39, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 17:29 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:49, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 15:44 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:04, skrev Andrew Randrianasulu:
On Sun, Oct 13, 2024 at 2:43 PM Terje J. Hanssen < terjejhanssen@gmail.com> wrote:
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
but can you check two more things with cmd line ffmpeg?
first change .webm part of working command line to .mp4
try it and report if and how it fail
and then to mkv
also report if it work or not.
so we will try more common (for now ) container formats for av1, may be 7.0 simply can't make AV1 IN mp4 container ....?
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm
localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm
# bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420
should be: Pixels: nv12 (due to QSV accepting it only this way)
Here show to be something strange; Some times entering the Video preset and compression av1_qsv.webm: pixels has shifted between yuv420p and nv12, and no other option to select each time!?
I think this mean selected codec does not exist.
be sure to launch self-compiled against system's ffmpeg version of cin (you can check libraries it links to by using ldd path_to_executable )
Please, specify the command steps with paths
My system ffmpeg is
which ffmpeg /usr/bin/ffmpeg
My Cinelerra "home" installation is
/home/cinelerra/cinelerra-5.1
ldd /home/cinelerra/cinelerra-5.1/bin/cin
but I think it does not matter because yeah full output below shows that"home" build of cinelerra started
It looks like when I write 'nv12' directly in the widget it remember it
next time. But it doesn't help on the render error
yeah, strange.
Can you a) launch cin like LANG=C bin/cin
b) try to save video to somesimple location like /dev/shm/1.mp4
Then the initial PluginFilter errors arised again, see terminal output below By the way, the same render error as previously
localhost:/home/cinelerra/cinelerra-5.1 # LANG=C bin/cin Cinelerra Infinity - built: Sep 23 2024 10:31:07 git://git.cinelerra-gg.org/goodguy/cinelerra.git (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy 2003-2017 mods for Cinelerra-CV by CinelerraCV team 2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
Libav version: Lavc61.3.100
Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for Cinelerra.
lang changed from 'POSIX' to 'C' build plugin index for: /home/cinelerra/cinelerra-5.1/bin/plugins PluginFFilter::new_ffilter(lv2) err: Operation not permitted [sofalizer_205 @ 0x33de0780] Valid SOFA filename must be set. PluginFFilter::new_ffilter(sofalizer) err: Invalid argument PluginFFilter::new_ffilter(blend_vulkan) err: Input/output error PluginFFilter::new_ffilter(libplacebo) err: Operation not permitted PluginFFilter::new_ffilter(overlay_qsv) err: Input/output error PluginFFilter::new_ffilter(overlay_vulkan) err: Input/output error PluginFFilter::new_ffilter(xfade_vulkan) err: Input/output error PluginFFilter::new_ffilter(hstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(vstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(xstack_qsv) err: Operation not permitted build lv2 index for: $CIN_PATH/lv2 int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /dev/shm/1.mp4 Render::render_single: Session finished. Total excess of backups: -50 Session time: 0:03:28 Cpu time: user: 0:00:05.252 sys: 0:00:02.696
I am about to give up :(
It is understandable, if not any new ideas popup. We have already tried a lot.
I have no idea WHY it shows this error.
from "home" cin directory can you
cat bin/ffmpeg/video/av1_qsv.webm
cat bin/ffmpeg/video/av1_qsv.mp4
?
localhost:/home/cinelerra/cinelerra-5.1 # cat bin/ffmpeg/video/av1_qsv.webm # only usable with ext. ffmpeg webm av1_qsv # cin_pix_fmt=nv12
localhost:/home/cinelerra/cinelerra-5.1 # cat bin/ffmpeg/video/av1_qsv.mp4 # only usable with ext. ffmpeg mp4 av1_qsv cin_pix_fmt=nv12
looks fine. I am afraid we better to try and rebuild our cingg BUT before you run make clean note params we passed to configure, put them into note somewhere. head config.log I think it should show ./configure --without-thirdparty --without-libdpx --with-single-user double-check to where installed ffmpeg-devel package installs libavcodec.h and other headers (may be there is gui for that?) also do not forgot to set to that directory CFLAGS=-I/usr/include/ffmpeg as example from previous attempt. Next, what prevent you from copying lines from git log output? Try selecting and pasting with shift key ... put shift down, move mouse cursor to line you want to copy, without unpressing shift put left mouse button down, move it to the right selecting line. Unpress mouse button first, then shift. I sometimes forgot to do this and selection/paste into midnight commander messes up :/ you can simply redownload fresh git copy, and configure it anew in another folder, then copy over profile files to its bin subfolder and use this unpatched build for tests.
webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data
strange, Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm
Have to confirm (+) or (-) when the file name exists from before
yet Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (with spaces, not underscores)
Yeah, it seemed as the underscores were stripped away, a graphical issue here?
------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. -----------
Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg."
Yeah, but we are not even at encoding entrypoint, so this line had no chance to show anything.
That's also my impression, the encoding really never starts and breaks immediately So there is no ffmpeg log file to inspect
====================================
Den 13.10.2024 17:16, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 17:55 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 16:39, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 17:29 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:49, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 15:44 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:04, skrev Andrew Randrianasulu:
On Sun, Oct 13, 2024 at 2:43 PM Terje J. Hanssen <terjejhanssen@gmail.com> wrote:
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
> > > > but can you check two more things with > cmd line ffmpeg? > > > first change .webm part of working > command line to .mp4 > > try it and report if and how it fail > > and then to mkv > > also report if it work or not. > > so we will try more common (for now ) > container formats for av1, may be 7.0 > simply can't make AV1 IN mp4 container ....? >
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm
localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm
# bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420
should be: Pixels: nv12 (due to QSV accepting it only this way)
Here show to be something strange; Some times entering the Video preset and compression av1_qsv.webm: pixels has shifted between yuv420p and nv12, and no other option to select each time!?
I think this mean selected codec does not exist.
be sure to launch self-compiled against system's ffmpeg version of cin (you can check libraries it links to by using ldd path_to_executable )
Please, specify the command steps with paths
My system ffmpeg is
which ffmpeg /usr/bin/ffmpeg
My Cinelerra "home" installation is
/home/cinelerra/cinelerra-5.1
ldd /home/cinelerra/cinelerra-5.1/bin/cin
but I think it does not matter because yeah full output below shows that"home" build of cinelerra started
It looks like when I write 'nv12' directly in the widget it remember it next time. But it doesn't help on the render error
yeah, strange.
Can you a) launch cin like LANG=C bin/cin
b) try to save video to somesimple location like /dev/shm/1.mp4
Then the initial PluginFilter errors arised again, see terminal output below By the way, the same render error as previously
localhost:/home/cinelerra/cinelerra-5.1 # LANG=C bin/cin Cinelerra Infinity - built: Sep 23 2024 10:31:07 git://git.cinelerra-gg.org/goodguy/cinelerra.git <http://git.cinelerra-gg.org/goodguy/cinelerra.git> (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy 2003-2017 mods for Cinelerra-CV by CinelerraCV team 2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
Libav version: Lavc61.3.100
Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for Cinelerra.
lang changed from 'POSIX' to 'C' build plugin index for: /home/cinelerra/cinelerra-5.1/bin/plugins PluginFFilter::new_ffilter(lv2) err: Operation not permitted [sofalizer_205 @ 0x33de0780] Valid SOFA filename must be set. PluginFFilter::new_ffilter(sofalizer) err: Invalid argument PluginFFilter::new_ffilter(blend_vulkan) err: Input/output error PluginFFilter::new_ffilter(libplacebo) err: Operation not permitted PluginFFilter::new_ffilter(overlay_qsv) err: Input/output error PluginFFilter::new_ffilter(overlay_vulkan) err: Input/output error PluginFFilter::new_ffilter(xfade_vulkan) err: Input/output error PluginFFilter::new_ffilter(hstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(vstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(xstack_qsv) err: Operation not permitted build lv2 index for: $CIN_PATH/lv2 int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /dev/shm/1.mp4 Render::render_single: Session finished. Total excess of backups: -50 Session time: 0:03:28 Cpu time: user: 0:00:05.252 sys: 0:00:02.696
I am about to give up :(
It is understandable, if not any new ideas popup. We have already tried a lot.
I have no idea WHY it shows this error.
from "home" cin directory can you
cat bin/ffmpeg/video/av1_qsv.webm
cat bin/ffmpeg/video/av1_qsv.mp4
?
localhost:/home/cinelerra/cinelerra-5.1 # cat bin/ffmpeg/video/av1_qsv.webm # only usable with ext. ffmpeg webm av1_qsv # cin_pix_fmt=nv12
localhost:/home/cinelerra/cinelerra-5.1 # cat bin/ffmpeg/video/av1_qsv.mp4 # only usable with ext. ffmpeg mp4 av1_qsv cin_pix_fmt=nv12
looks fine.
I am afraid we better to try and rebuild our cingg BUT before you run make clean note params we passed to configure, put them into note somewhere.
head config.log
I think it should show ./configure --without-thirdparty --without-libdpx --with-single-user
double-check to where installed ffmpeg-devel package installs libavcodec.h and other headers (may be there is gui for that?)
also do not forgot to set to that directory
CFLAGS=-I/usr/include/ffmpeg as example from previous attempt.
Next, what prevent you from copying lines from git log output? Try selecting and pasting with shift key ... put shift down, move mouse cursor to line you want to copy, without unpressing shift put left mouse button down, move it to the right selecting line. Unpress mouse button first, then shift. I sometimes forgot to do this and selection/paste into midnight commander messes up :/
you can simply redownload fresh git copy, and configure it anew in another folder, then copy over profile files to its bin subfolder and use this unpatched build for tests.
Well, I think I need a break, and leave it as is in a while forward. Just upgraded to the latest Appimage and rpm for now :)
webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data
strange, Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm
Have to confirm (+) or (-) when the file name exists from before
yet Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (with spaces, not underscores)
Yeah, it seemed as the underscores were stripped away, a graphical issue here?
------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. -----------
Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg."
Yeah, but we are not even at encoding entrypoint, so this line had no chance to show anything.
That's also my impression, the encoding really never starts and breaks immediately So there is no ffmpeg log file to inspect
====================================
OW! may be I found it - try to move first line with # below "webm av1_qsv" line, so "webm ..." will be VERY first line in profile same for h264/vp9 .... вс, 13 окт. 2024 г., 19:20 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 17:16, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 17:55 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 16:39, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 17:29 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:49, skrev Andrew Randrianasulu:
вс, 13 окт. 2024 г., 15:44 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 14:04, skrev Andrew Randrianasulu:
On Sun, Oct 13, 2024 at 2:43 PM Terje J. Hanssen < terjejhanssen@gmail.com> wrote:
Den 13.10.2024 03:04, skrev Andrew Randrianasulu:
[snip]
> > > but can you check two more things with cmd line ffmpeg? > > > first change .webm part of working command line to .mp4 > > try it and report if and how it fail > and then to mkv > > also report if it work or not. > > so we will try more common (for now ) container formats for av1, may > be 7.0 simply can't make AV1 IN mp4 container ....? >
mp4 and mkv works like webm from ffmpeg command line:
du -sh dv01_07_av1_qsv_pr4_bv1570k.* 24M dv01_07_av1_qsv_pr4_bv1570k.mkv 24M dv01_07_av1_qsv_pr4_bv1570k.mp4 24M dv01_07_av1_qsv_pr4_bv1570k.webm
Verified video and audio used with ffprobe :
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mkv Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.mkv': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bottom coded first (swapped)), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv01_07_av1_qsv_pr4_bv1570k.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomav01iso2mp41 encoder : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 1768 kb/s Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bottom coded first (swapped)), 720x576, 1634 kb/s, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 av1_qsv timecode : 01:09:35:09 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 01:09:35:09 Unsupported codec with id 0 for input stream 2 ---------
ffprobe -hide_banner dv01_07_av1_qsv_pr4_bv1570k.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv_pr4_bv1570k.webm': Metadata: TIMECODE : 01:09:35:09 ENCODER : Lavf61.1.100 Duration: 00:01:53.29, start: -0.007000, bitrate: 1724 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: ENCODER : Lavc61.3.100 av1_qsv DURATION : 00:01:53.280000000 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp Metadata: ENCODER : Lavc61.3.100 libopus DURATION : 00:01:53.288000000
so, it works for ffmpeg but not for us.
can you test those two attached files (profile for av1_qsv.webm and default file for av1_qsv, put both in bin/ffmpeg/video) ?
I should hope I could report progress, but sorry - it's the same immediately error with av1_qsv.webm
localhost:/home/cinelerra/cinelerra-5.1 # ls bin/ffmpeg/video/av1_qsv* bin/ffmpeg/video/av1_qsv.dfl bin/ffmpeg/video/av1_qsv.mp4 bin/ffmpeg/video/av1_qsv.webm
# bin/cin Render to: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG/webm Audio Preset: webm.webm (tried also opus.webm and opus.ffmpeg.webm) Video compression: av1_qsv.webm Pixels: yuv420
should be: Pixels: nv12 (due to QSV accepting it only this way)
Here show to be something strange; Some times entering the Video preset and compression av1_qsv.webm: pixels has shifted between yuv420p and nv12, and no other option to select each time!?
I think this mean selected codec does not exist.
be sure to launch self-compiled against system's ffmpeg version of cin (you can check libraries it links to by using ldd path_to_executable )
Please, specify the command steps with paths
My system ffmpeg is
which ffmpeg /usr/bin/ffmpeg
My Cinelerra "home" installation is
/home/cinelerra/cinelerra-5.1
ldd /home/cinelerra/cinelerra-5.1/bin/cin
but I think it does not matter because yeah full output below shows that"home" build of cinelerra started
It looks like when I write 'nv12' directly in the widget it remember it
next time. But it doesn't help on the render error
yeah, strange.
Can you a) launch cin like LANG=C bin/cin
b) try to save video to somesimple location like /dev/shm/1.mp4
Then the initial PluginFilter errors arised again, see terminal output below By the way, the same render error as previously
localhost:/home/cinelerra/cinelerra-5.1 # LANG=C bin/cin Cinelerra Infinity - built: Sep 23 2024 10:31:07 git://git.cinelerra-gg.org/goodguy/cinelerra.git (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy 2003-2017 mods for Cinelerra-CV by CinelerraCV team 2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
Libav version: Lavc61.3.100
Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for Cinelerra.
lang changed from 'POSIX' to 'C' build plugin index for: /home/cinelerra/cinelerra-5.1/bin/plugins PluginFFilter::new_ffilter(lv2) err: Operation not permitted [sofalizer_205 @ 0x33de0780] Valid SOFA filename must be set. PluginFFilter::new_ffilter(sofalizer) err: Invalid argument PluginFFilter::new_ffilter(blend_vulkan) err: Input/output error PluginFFilter::new_ffilter(libplacebo) err: Operation not permitted PluginFFilter::new_ffilter(overlay_qsv) err: Input/output error PluginFFilter::new_ffilter(overlay_vulkan) err: Input/output error PluginFFilter::new_ffilter(xfade_vulkan) err: Input/output error PluginFFilter::new_ffilter(hstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(vstack_qsv) err: Operation not permitted PluginFFilter::new_ffilter(xstack_qsv) err: Operation not permitted build lv2 index for: $CIN_PATH/lv2 int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /dev/shm/1.mp4 Render::render_single: Session finished. Total excess of backups: -50 Session time: 0:03:28 Cpu time: user: 0:00:05.252 sys: 0:00:02.696
I am about to give up :(
It is understandable, if not any new ideas popup. We have already tried a lot.
I have no idea WHY it shows this error.
from "home" cin directory can you
cat bin/ffmpeg/video/av1_qsv.webm
cat bin/ffmpeg/video/av1_qsv.mp4
?
localhost:/home/cinelerra/cinelerra-5.1 # cat bin/ffmpeg/video/av1_qsv.webm # only usable with ext. ffmpeg webm av1_qsv # cin_pix_fmt=nv12
localhost:/home/cinelerra/cinelerra-5.1 # cat bin/ffmpeg/video/av1_qsv.mp4 # only usable with ext. ffmpeg mp4 av1_qsv cin_pix_fmt=nv12
looks fine.
I am afraid we better to try and rebuild our cingg BUT before you run make clean note params we passed to configure, put them into note somewhere.
head config.log
I think it should show ./configure --without-thirdparty --without-libdpx --with-single-user
double-check to where installed ffmpeg-devel package installs libavcodec.h and other headers (may be there is gui for that?)
also do not forgot to set to that directory
CFLAGS=-I/usr/include/ffmpeg as example from previous attempt.
Next, what prevent you from copying lines from git log output? Try selecting and pasting with shift key ... put shift down, move mouse cursor to line you want to copy, without unpressing shift put left mouse button down, move it to the right selecting line. Unpress mouse button first, then shift. I sometimes forgot to do this and selection/paste into midnight commander messes up :/
you can simply redownload fresh git copy, and configure it anew in another folder, then copy over profile files to its bin subfolder and use this unpatched build for tests.
Well, I think I need a break, and leave it as is in a while forward. Just upgraded to the latest Appimage and rpm for now :)
webm av1_qsv # cin_pix_fmt=nv12 (+) Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm (+) Cin error; Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (+) Error rendering data
strange, Overwrite: /Videoklipp/QSV/dv01_07_av1_qsv.webm
Have to confirm (+) or (-) when the file name exists from before
yet Couldn't open /Videoklipp/QSV/dv01 07 av1 qsv.webm (with spaces, not underscores)
Yeah, it seemed as the underscores were stripped away, a graphical issue here?
------------- Message log: int FFMPEG::init_encoder(const char*): mismatch audio/video file format: /Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. -----------
Another question I wondered about from yesterday: "you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg." ------- localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts # apply at init encode #loglevel=error loglevel=debug threads=auto side_data_only_packets=1 ---------------- As I understood this, the loglevel=debug is setup in Cingg's internal ffmpeg, to "trigger" debug error messages from the external system ffmpeg(?) How does communication work, and did it report more detailed error msg."
Yeah, but we are not even at encoding entrypoint, so this line had no chance to show anything.
That's also my impression, the encoding really never starts and breaks immediately So there is no ffmpeg log file to inspect
====================================
Den 13.10.2024 22:09, skrev Andrew Randrianasulu:
OW!
may be I found it - try to move first line with # below "webm av1_qsv" line, so "webm ..." will be VERY first line in profile
same for h264/vp9 ....
Voilà, you solved the puzzle 😉 I just edited and tested the first one. only those with .webm or also .mp4? -------- cat bin/ffmpeg/video/av1_qsv.webm webm av1_qsv # only usable with ext. ffmpeg # cin_pix_fmt=nv12 SD-DV --> AV1_QSV.webm Video compression: av1_qsv.webm Pixels: nv12 works (p010le /qsv - I think also yuv420p was "default" first time, but not longer seen) webm av1_qsv # cin_pix_fmt=nv12 [av1_qsv @ 0x7f47600a9c40] Specified pixel format yuv420p is not supported by the av1_qsv encoder. [av1_qsv @ 0x7f47600a9c40] Supported pixel formats: [av1_qsv @ 0x7f47600a9c40] nv12 [av1_qsv @ 0x7f47600a9c40] p010le [av1_qsv @ 0x7f47600a9c40] qsv FFMPEG::open_encoder err: Invalid argument int FFMPEG::open_encoder(const char*, const char*): open failed av1_qsv:/Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. [av1_qsv @ 0x7f47580ece80] Encoder: input is system memory surface [av1_qsv @ 0x7f47580ece80] Use Intel(R) oneVPL to create MFX session, the required implementation version is 1.1 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [AVHWDeviceContext @ 0x7f475809f580] Trying to use DRM render node for device 0, with matching kernel driver (i915). [AVHWDeviceContext @ 0x7f475809f580] libva: VA-API version 1.22.0 [AVHWDeviceContext @ 0x7f475809f580] libva: User requested driver 'iHD' [AVHWDeviceContext @ 0x7f475809f580] libva: Trying to open /usr/lib64/dri/iHD_drv_video.so [AVHWDeviceContext @ 0x7f475809f580] libva: Found init function __vaDriverInit_1_22 [AVHWDeviceContext @ 0x7f475809f580] libva: va_openDriver() returns 0 [AVHWDeviceContext @ 0x7f475809f580] Initialised VAAPI connection: version 1.22 [AVHWDeviceContext @ 0x7f475809f580] Format 0x41524742 -> bgra. [AVHWDeviceContext @ 0x7f475809f580] Format 0x41424752 -> rgba. [AVHWDeviceContext @ 0x7f475809f580] Format 0x58524742 -> bgr0. [AVHWDeviceContext @ 0x7f475809f580] Format 0x58424752 -> rgb0. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30335241 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30334241 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30335258 -> x2rgb10le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30334258 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x36314752 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x56555941 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x56555958 -> vuyx. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30303859 -> gray. [AVHWDeviceContext @ 0x7f475809f580] Format 0x3231564e -> nv12. [AVHWDeviceContext @ 0x7f475809f580] Format 0x3132564e -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32595559 -> yuyv422. [AVHWDeviceContext @ 0x7f475809f580] Format 0x59565955 -> uyvy422. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32315659 -> yuv420p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30323449 -> yuv420p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x50313134 -> yuv411p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x48323234 -> yuv422p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x56323234 -> yuv440p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x50343434 -> yuv444p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x33434d49 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30313050 -> p010le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32313050 -> p012le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x36313050 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30313259 -> y210le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32313259 -> y212le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x36313259 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30313459 -> xv30le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32313459 -> xv36le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x36313459 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x50424752 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x50524742 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.3.4 (). [AVHWDeviceContext @ 0x7f475809f580] Driver not found in known nonstandard list, using standard behaviour. [av1_qsv @ 0x7f47580ece80] Initialized an internal MFX session using hardware accelerated implementation [av1_qsv @ 0x7f47580ece80] Using the constant quantization parameter (CQP) by default. Please use the global_quality option and other options for a quality-based mode or the b option and other options for a bitrate-based mode if the default is not the desired choice. [av1_qsv @ 0x7f47580ece80] Using the constant quantization parameter (CQP) ratecontrol method [av1_qsv @ 0x7f47580ece80] profile: av1 main; level: 30 [av1_qsv @ 0x7f47580ece80] GopPicSize: 248; GopRefDist: 8; GopOptFlag:; IdrInterval: 0 [av1_qsv @ 0x7f47580ece80] TargetUsage: 4; RateControlMethod: CQP [av1_qsv @ 0x7f47580ece80] QPI: 102; QPP: 128; QPB: 161 [av1_qsv @ 0x7f47580ece80] NumRefFrame: 4 [av1_qsv @ 0x7f47580ece80] IntRefType: 0; IntRefCycleSize: 0; IntRefQPDelta: 0; IntRefCycleDist: 0 [av1_qsv @ 0x7f47580ece80] MaxFrameSize: 0; [av1_qsv @ 0x7f47580ece80] BitrateLimit: unknown; MBBRC: OFF; ExtBRC: unknown [av1_qsv @ 0x7f47580ece80] VDENC: ON [av1_qsv @ 0x7f47580ece80] BRefType: pyramid [av1_qsv @ 0x7f47580ece80] PRefType: default [av1_qsv @ 0x7f47580ece80] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0; MinQPB: 0; MaxQPB: 0 [av1_qsv @ 0x7f47580ece80] FrameRateExtD: 1; FrameRateExtN: 25 [av1_qsv @ 0x7f47580ece80] NumTileRows: 1; NumTileColumns: 1; NumTileGroups: 1 [av1_qsv @ 0x7f47580ece80] WriteIVFHeaders: OFF [av1_qsv @ 0x7f47580ece80] LowDelayBRC: OFF [av1_qsv @ 0x7f47580ece80] MaxFrameSize: 0; [SWR @ 0x7f47581a2b40] Using fltp internally between filters Render::render_single: Session finished. ** rendered 2832 frames in 6.205 secs, 456.406 fps ----------- FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_qsv.webm audio0 pad 32 -143 (175) audio0 pad 0 -143 (143) audio0 pad 0 -15 (15) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_qsv.webm Total excess of backups: -50 Session time: 0:24:06 Cpu time: user: 0:00:25.478 sys: 0:00:08.879 --------------- du -sh dv01_07*.webm 11M dv01_07_av1_qsv.webm 22M dv01_07_av1_svt.webm ffprobe -hide_banner dv01_07_av1_qsv.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv.webm': Metadata: ENCODER : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 770 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bt470bg/unknown/unknown), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: DURATION : 00:01:53.283000000 Stream #0:1: Audio: vorbis, 48000 Hz, stereo, fltp Metadata: DURATION : 00:01:53.283000000
пн, 14 окт. 2024 г., 00:15 Terje J. Hanssen <terjejhanssen@gmail.com>:
Den 13.10.2024 22:09, skrev Andrew Randrianasulu:
OW!
may be I found it - try to move first line with # below "webm av1_qsv" line, so "webm ..." will be VERY first line in profile
same for h264/vp9 ....
Voilà, you solved the puzzle 😉
I just edited and tested the first one. only those with .webm or also .mp4?
try also mp4, may be also try set I send separately --------
cat bin/ffmpeg/video/av1_qsv.webm webm av1_qsv # only usable with ext. ffmpeg # cin_pix_fmt=nv12
SD-DV --> AV1_QSV.webm Video compression: av1_qsv.webm Pixels: nv12 works (p010le /qsv - I think also yuv420p was "default" first time, but not longer seen) webm av1_qsv # cin_pix_fmt=nv12
[av1_qsv @ 0x7f47600a9c40] Specified pixel format yuv420p is not supported by the av1_qsv encoder. [av1_qsv @ 0x7f47600a9c40] Supported pixel formats: [av1_qsv @ 0x7f47600a9c40] nv12 [av1_qsv @ 0x7f47600a9c40] p010le [av1_qsv @ 0x7f47600a9c40] qsv FFMPEG::open_encoder err: Invalid argument int FFMPEG::open_encoder(const char*, const char*): open failed av1_qsv:/Videoklipp/QSV/dv01_07_av1_qsv.webm Render::render_single: Session finished. [av1_qsv @ 0x7f47580ece80] Encoder: input is system memory surface [av1_qsv @ 0x7f47580ece80] Use Intel(R) oneVPL to create MFX session, the required implementation version is 1.1 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 libva info: VA-API version 1.22.0 libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_22 libva info: va_openDriver() returns 0 [AVHWDeviceContext @ 0x7f475809f580] Trying to use DRM render node for device 0, with matching kernel driver (i915). [AVHWDeviceContext @ 0x7f475809f580] libva: VA-API version 1.22.0 [AVHWDeviceContext @ 0x7f475809f580] libva: User requested driver 'iHD' [AVHWDeviceContext @ 0x7f475809f580] libva: Trying to open /usr/lib64/dri/iHD_drv_video.so [AVHWDeviceContext @ 0x7f475809f580] libva: Found init function __vaDriverInit_1_22 [AVHWDeviceContext @ 0x7f475809f580] libva: va_openDriver() returns 0 [AVHWDeviceContext @ 0x7f475809f580] Initialised VAAPI connection: version 1.22 [AVHWDeviceContext @ 0x7f475809f580] Format 0x41524742 -> bgra. [AVHWDeviceContext @ 0x7f475809f580] Format 0x41424752 -> rgba. [AVHWDeviceContext @ 0x7f475809f580] Format 0x58524742 -> bgr0. [AVHWDeviceContext @ 0x7f475809f580] Format 0x58424752 -> rgb0. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30335241 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30334241 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30335258 -> x2rgb10le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30334258 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x36314752 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x56555941 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x56555958 -> vuyx. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30303859 -> gray. [AVHWDeviceContext @ 0x7f475809f580] Format 0x3231564e -> nv12. [AVHWDeviceContext @ 0x7f475809f580] Format 0x3132564e -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32595559 -> yuyv422. [AVHWDeviceContext @ 0x7f475809f580] Format 0x59565955 -> uyvy422. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32315659 -> yuv420p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30323449 -> yuv420p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x50313134 -> yuv411p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x48323234 -> yuv422p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x56323234 -> yuv440p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x50343434 -> yuv444p. [AVHWDeviceContext @ 0x7f475809f580] Format 0x33434d49 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30313050 -> p010le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32313050 -> p012le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x36313050 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30313259 -> y210le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32313259 -> y212le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x36313259 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x30313459 -> xv30le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x32313459 -> xv36le. [AVHWDeviceContext @ 0x7f475809f580] Format 0x36313459 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x50424752 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] Format 0x50524742 -> unknown. [AVHWDeviceContext @ 0x7f475809f580] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.3.4 (). [AVHWDeviceContext @ 0x7f475809f580] Driver not found in known nonstandard list, using standard behaviour. [av1_qsv @ 0x7f47580ece80] Initialized an internal MFX session using hardware accelerated implementation [av1_qsv @ 0x7f47580ece80] Using the constant quantization parameter (CQP) by default. Please use the global_quality option and other options for a quality-based mode or the b option and other options for a bitrate-based mode if the default is not the desired choice. [av1_qsv @ 0x7f47580ece80] Using the constant quantization parameter (CQP) ratecontrol method [av1_qsv @ 0x7f47580ece80] profile: av1 main; level: 30 [av1_qsv @ 0x7f47580ece80] GopPicSize: 248; GopRefDist: 8; GopOptFlag:; IdrInterval: 0 [av1_qsv @ 0x7f47580ece80] TargetUsage: 4; RateControlMethod: CQP [av1_qsv @ 0x7f47580ece80] QPI: 102; QPP: 128; QPB: 161 [av1_qsv @ 0x7f47580ece80] NumRefFrame: 4 [av1_qsv @ 0x7f47580ece80] IntRefType: 0; IntRefCycleSize: 0; IntRefQPDelta: 0; IntRefCycleDist: 0 [av1_qsv @ 0x7f47580ece80] MaxFrameSize: 0; [av1_qsv @ 0x7f47580ece80] BitrateLimit: unknown; MBBRC: OFF; ExtBRC: unknown [av1_qsv @ 0x7f47580ece80] VDENC: ON [av1_qsv @ 0x7f47580ece80] BRefType: pyramid [av1_qsv @ 0x7f47580ece80] PRefType: default [av1_qsv @ 0x7f47580ece80] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0; MinQPB: 0; MaxQPB: 0 [av1_qsv @ 0x7f47580ece80] FrameRateExtD: 1; FrameRateExtN: 25 [av1_qsv @ 0x7f47580ece80] NumTileRows: 1; NumTileColumns: 1; NumTileGroups: 1 [av1_qsv @ 0x7f47580ece80] WriteIVFHeaders: OFF [av1_qsv @ 0x7f47580ece80] LowDelayBRC: OFF [av1_qsv @ 0x7f47580ece80] MaxFrameSize: 0; [SWR @ 0x7f47581a2b40] Using fltp internally between filters Render::render_single: Session finished. ** rendered 2832 frames in 6.205 secs, 456.406 fps ----------- FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_qsv.webm audio0 pad 32 -143 (175) audio0 pad 0 -143 (143) audio0 pad 0 -15 (15) FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_qsv.webm FFMPEG::open_decoder: some stream times estimated: /Videoklipp/QSV/dv01_07_av1_qsv.webm Total excess of backups: -50 Session time: 0:24:06 Cpu time: user: 0:00:25.478 sys: 0:00:08.879 ---------------
du -sh dv01_07*.webm 11M dv01_07_av1_qsv.webm 22M dv01_07_av1_svt.webm
ffprobe -hide_banner dv01_07_av1_qsv.webm Input #0, matroska,webm, from 'dv01_07_av1_qsv.webm': Metadata: ENCODER : Lavf61.1.100 Duration: 00:01:53.28, start: 0.000000, bitrate: 770 kb/s Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bt470bg/unknown/unknown), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn Metadata: DURATION : 00:01:53.283000000 Stream #0:1: Audio: vorbis, 48000 Hz, stereo, fltp Metadata: DURATION : 00:01:53.283000000
So in summary "Getting a build to work in a custom environment is not easy." Andrew noted: "CFLAGS=-I/usr/include/ffmpeg as example from previous attempt." So just FYI, I updated the manual to add the following in section 1.3.5 custom build of the Installation section as recommended by Andrew. I hope it might help in the future. If you have a problem with libdpx (a wrapper of VPixx low-level library for
Python), resolve that by changing the configure line as shown to build without it:
./confgure --with-single-user --without-libdpx
If you have some of your thirdparty libraries installed in non-standard locations or if you want to use a specific version, consider setting CFLAGS=-I/<path> to pass that location to the compiler so it knows where to find it.
вс, 13 окт. 2024 г., 21:00 Phyllis Smith <phylsmith2017@gmail.com>:
So in summary "Getting a build to work in a custom environment is not easy."
Andrew noted: "CFLAGS=-I/usr/include/ffmpeg as example from previous attempt." So just FYI, I updated the manual to add the following in section 1.3.5 custom build of the Installation section as recommended by Andrew. I hope it might help in the future.
If you have a problem with libdpx (a wrapper of VPixx low-level library
for Python),
I do not think python was involved here ... this is image-format (DPX) encoding-decoding library resolve that by changing the configure line as shown to build without it:
./confgure --with-single-user --without-libdpx
If you have some of your thirdparty libraries installed in non-standard locations or if you want to use a specific version, consider setting CFLAGS=-I/<path> to pass that location to the compiler so it knows where to find it.
Oops, I corrected it. Thanks. On Sun, Oct 13, 2024 at 12:11 PM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
вс, 13 окт. 2024 г., 21:00 Phyllis Smith <phylsmith2017@gmail.com>:
So in summary "Getting a build to work in a custom environment is not easy."
Andrew noted: "CFLAGS=-I/usr/include/ffmpeg as example from previous attempt." So just FYI, I updated the manual to add the following in section 1.3.5 custom build of the Installation section as recommended by Andrew. I hope it might help in the future.
If you have a problem with libdpx (a wrapper of VPixx low-level library
for Python),
I do not think python was involved here ... this is image-format (DPX) encoding-decoding library
resolve that by changing the configure line as shown to build without it:
./confgure --with-single-user --without-libdpx
If you have some of your thirdparty libraries installed in non-standard locations or if you want to use a specific version, consider setting CFLAGS=-I/<path> to pass that location to the compiler so it knows where to find it.
participants (3)
-
Andrew Randrianasulu -
Phyllis Smith -
Terje J. Hanssen