[FFmpeg-trac] #10873(undetermined:new): Memory leaks with ffmpeg cmd when use hwupload to vulkan format

2024-02-20 Thread FFmpeg
#10873: Memory leaks with ffmpeg cmd when use hwupload to vulkan format
-+-
 Reporter:  quinkblack   | Type:  defect
   Status:  new  | Priority:  normal
Component:   |  Version:
  undetermined   |  unspecified
 Keywords:   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
 Not sure if it's vulkan specific or not.

 cmd:

 {{{
 ./ffmpeg_g -init_hw_device vulkan=vk -filter_hw_device vk -i
 ~/video/bean.mp4  -an -vf hwupload -t 2 -f null -

 Indirect leak of 5728 byte(s) in 1 object(s) allocated from:
 #0 0x5622804ffd47 in posix_memalign (/home/quink/work/ffmpeg-
 ci/build/ffmpeg/ffmpeg_g+0x8f5d47) (BuildId:
 d8aea9f54becadafdf18355b740030f7094924bb)
 #1 0x56228520a9bf in av_malloc /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/mem.c:105:9
 #2 0x56228520b704 in av_mallocz /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/mem.c:256:17
 #3 0x562285195e40 in av_hwdevice_ctx_alloc /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/hwcontext.c:172:31
 #4 0x56228519ba53 in av_hwdevice_ctx_create /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/hwcontext.c:626:18
 #5 0x56228059b867 in hw_device_init_from_string /home/quink/work
 /ffmpeg-ci/build/ffmpeg/src/fftools/ffmpeg_hw.c:152:15
 #6 0x5622805ed98a in opt_init_hw_device /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/fftools/ffmpeg_opt.c:650:16
 #7 0x562280612d6f in write_option /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/fftools/cmdutils.c:346:15
 #8 0x562280613d61 in parse_optgroup /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/fftools/cmdutils.c:469:15
 #9 0x5622805e66a3 in ffmpeg_parse_options /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/fftools/ffmpeg_opt.c:1363:11
 #10 0x562280627afd in main /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/fftools/ffmpeg.c:1032:11
 #11 0x7fc6c9629d8f in __libc_start_call_main
 csu/../sysdeps/nptl/libc_start_call_main.h:58:16

 Indirect leak of 2520 byte(s) in 5 object(s) allocated from:
 #0 0x5622804ffd47 in posix_memalign (/home/quink/work/ffmpeg-
 ci/build/ffmpeg/ffmpeg_g+0x8f5d47) (BuildId:
 d8aea9f54becadafdf18355b740030f7094924bb)
 #1 0x56228520a9bf in av_malloc /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/mem.c:105:9
 #2 0x56228520b704 in av_mallocz /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/mem.c:256:17
 #3 0x5622851c2df1 in av_vk_frame_alloc /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/hwcontext_vulkan.c:3697:20
 #4 0x5622851dc619 in create_frame /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/hwcontext_vulkan.c:2054:20
 #5 0x5622851dea8f in vulkan_pool_alloc /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/hwcontext_vulkan.c:2218:11
 #6 0x56228514e3e9 in pool_alloc_buffer /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/buffer.c:362:26
 #7 0x56228514df38 in av_buffer_pool_get /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/buffer.c:401:15
 #8 0x5622851cb984 in vulkan_get_buffer /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/hwcontext_vulkan.c:2405:21
 #9 0x56228519a3ea in av_hwframe_get_buffer /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavutil/hwcontext.c:563:11
 #10 0x5622812ac4cd in ff_default_get_video_buffer2 /home/quink/work
 /ffmpeg-ci/build/ffmpeg/src/libavfilter/video.c:66:15
 #11 0x5622812acd6b in ff_default_get_video_buffer /home/quink/work
 /ffmpeg-ci/build/ffmpeg/src/libavfilter/video.c:109:12
 #12 0x5622812abf4f in ff_get_video_buffer /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavfilter/video.c:122:15
 #13 0x562280bfc1e1 in hwupload_filter_frame /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavfilter/vf_hwupload.c:182:14
 #14 0x56228074c1d5 in ff_filter_frame_framed /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavfilter/avfilter.c:998:11
 #15 0x56228074b3ec in ff_filter_frame_to_filter /home/quink/work
 /ffmpeg-ci/build/ffmpeg/src/libavfilter/avfilter.c:1155:11
 #16 0x562280746ce8 in ff_filter_activate_default /home/quink/work
 /ffmpeg-ci/build/ffmpeg/src/libavfilter/avfilter.c:1219:20
 #17 0x562280746822 in ff_filter_activate /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavfilter/avfilter.c:1380:11
 #18 0x562280751dc6 in ff_filter_graph_run_once /home/quink/work
 /ffmpeg-ci/build/ffmpeg/src/libavfilter/avfiltergraph.c:1514:12
 #19 0x562280768399 in push_frame /home/quink/work/ffmpeg-
 ci/build/ffmpeg/src/libavfilter/buffersrc.c:194:15
 #20 0x562280767ff2 in av_buffersrc_add_frame_flags /home/quink/work
 /ffmpeg-ci/build/ffmpeg/src/libavfilter/buffersrc.c:304:15
 #21 0x5622805

Re: [FFmpeg-trac] #10873(undetermined:new): Memory leaks with ffmpeg cmd when use hwupload to vulkan format

2024-02-20 Thread FFmpeg
#10873: Memory leaks with ffmpeg cmd when use hwupload to vulkan format
-+-
 Reporter:  quinkblack   |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Changes (by quinkblack):

 * Attachment "log.txt" added.

 sanitizer logs
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-trac] #10874(undetermined:new): Bug: ffmpeg/ffprobe/ffplay can't handle ts file with codec_name as 'png'

2024-02-20 Thread FFmpeg
#10874: Bug: ffmpeg/ffprobe/ffplay can't handle ts file with codec_name as 'png'
-+-
 Reporter:  Mike Zang| Type:  defect
   Status:  new  | Priority:  important
Component:   |  Version:  6.1
  undetermined   |
 Keywords:  leading 8|   Blocked By:
  bytes is png header.   |
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
 Summary of the bug:
 When run ffprobe 001.ts, the message as below, this ts file's codec_name
 is 'png', the leading 8 bytes is a png header, the video is started from
 9th byte, ffprobe/ffplay/ffmpeg should add this type of video file:
 {{{
 % ffprobe 001.ts
 ffprobe version 2023-11-13-git-67a2571a55-full_build-www.gyan.dev
 Copyright (c) 2007-2023 the FFmpeg developers
   built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
   configuration: --enable-gpl --enable-version3 --enable-static --pkg-
 config=pkgconf --disable-w32threads --disable-autodetect --enable-
 fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp
 --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-
 librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
 --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24
 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-
 libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-
 libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-
 libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-
 libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-
 libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun
 --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf
 --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec
 --enable-nvenc --enable-dxva2 --enable-d3d11va --enable-libvpl --enable-
 libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-
 libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-
 libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora
 --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-
 libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus
 --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b
 --enable-libflite --enable-libmysofa --enable-librubberband --enable-
 libsoxr --enable-chromaprint
   libavutil  58. 32.100 / 58. 32.100
   libavcodec 60. 33.100 / 60. 33.100
   libavformat60. 17.100 / 60. 17.100
   libavdevice60.  4.100 / 60.  4.100
   libavfilter 9. 13.100 /  9. 13.100
   libswscale  7.  6.100 /  7.  6.100
   libswresample   4. 13.100 /  4. 13.100
   libpostproc57.  4.100 / 57.  4.100
 [png @ 0196aa58e940] inflate returned error -3
 Input #0, png_pipe, from '001.ts':
   Duration: N/A, bitrate: N/A
   Stream #0:0: Video: png, pal8(pc, gbr/unknown/unknown), 800x800, 25 fps,
 25 tbr, 25 tbn
 }}}
 The message as below after skip leading 8 bytes:
 {{{
 % ffprobe 001-8bytes.ts
 ffprobe version 6.0 Copyright (c) 2007-2023 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/6.0_1 --enable-shared
 --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-
 ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom
 --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libjxl
 --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist
 --enable-librubberband --enable-libsnappy --enable-libsrt --enable-
 libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab
 --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp
 --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid
 --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r
 --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq
 --enable-libzimg --disable-libjack --disable-indev=jack --enable-
 videotoolbox --enable-audiotoolbox
  libavutil   58. 2.100 / 58. 2.100
  libavcodec   60. 3.100 / 60. 3.100
  libavformat  60. 3.100 / 60. 3.100
  libavdevice  60. 1.100 / 60. 1.100
  libavfilter   9. 3.100 / 9. 3.100
  libswscale   7. 1.100 / 7. 1.100
  libswresample  4. 10.100 / 4. 10.100
  libpostproc  57. 1.100 / 57. 1.100
 Input #0, mpegts, from ‘001-8bytes.ts’:
  Duration: 00:00:08.08, start: 1.48, bitrate: 1180 kb/s
  Program 1
   Metadata:
service_name  : Service01
service_provider: FFmpeg
  Stream #0:0[0x100]: Video: h264 (High

Re: [FFmpeg-trac] #10874(undetermined:new): Bug: ffmpeg/ffprobe/ffplay can't handle ts file with codec_name as 'png'

2024-02-20 Thread FFmpeg
#10874: Bug: ffmpeg/ffprobe/ffplay can't handle ts file with codec_name as 'png'
-+-
 Reporter:  Mike Zang|Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  important|Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  leading 8|   Blocked By:
  bytes is png header.   |
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Changes (by Mike Zang):

 * Attachment "001.ts" added.

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10874(undetermined:new): Bug: ffmpeg/ffprobe/ffplay can't handle ts file with codec_name as 'png'

2024-02-20 Thread FFmpeg
#10874: Bug: ffmpeg/ffprobe/ffplay can't handle ts file with codec_name as 'png'
-+-
 Reporter:  Mike Zang|Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  important|Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  leading 8|   Blocked By:
  bytes is png header.   |
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Changes (by Mike Zang):

 * Attachment "001-8bytes.ts" added.

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #9142(avformat:new): LIBSRT uses wrong write-readiness epoll on a listener socket

2024-02-20 Thread FFmpeg
#9142: LIBSRT uses wrong write-readiness epoll on a listener socket
-+-
 Reporter:  Mikołaj  |Owner:  (none)
  Małecki|
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:  avformat
  Version:  git-master   |   Resolution:
 Keywords:  libsrt   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by Mikołaj Małecki):

 Alright then. I take it as a good deal.
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #9142(avformat:new): LIBSRT uses wrong write-readiness epoll on a listener socket

2024-02-20 Thread FFmpeg
#9142: LIBSRT uses wrong write-readiness epoll on a listener socket
-+-
 Reporter:  Mikołaj  |Owner:  (none)
  Małecki|
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:  avformat
  Version:  git-master   |   Resolution:
 Keywords:  libsrt   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by Max):

 To avoid possible misunderstanding, the libSRT triggers the `SRT_EPOLL_IN`
 event on the accept-readiness. This means the patch is valid and can be
 merged without changes to libSRT.
 The libSRT, however, also signals the `SRT_EPOLL_OUT` event on accept-
 readiness, on which ffmpeg is currently relying. This behavior is wrong
 and is to be removed from libSRT.
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10873(undetermined:new): Memory leaks with ffmpeg cmd when use hwupload to vulkan format

2024-02-20 Thread FFmpeg
#10873: Memory leaks with ffmpeg cmd when use hwupload to vulkan format
-+-
 Reporter:  quinkblack   |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by quinkblack):

 Patch under review

 
https://patchwork.ffmpeg.org/project/ffmpeg/patch/tencent_13e356b59dd0e1c05ae63523813634793...@qq.com/
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #5456(undetermined:new): Videos produced with -shortest are longer than the audio

2024-02-20 Thread FFmpeg
#5456: Videos produced with -shortest are longer than the audio
-+-
 Reporter:  Igal |Owner:  (none)
  Tabachnik  |
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by areweAV1yet):

 I am still having issues creating 8k/4k videos with this. The interleave
 trick helped but was still leading to 50% longer videos (than the audio
 length)

 I found that converting to `aac` before and then doing a `copy` seemed to
 fix it

 ```for i in *.mp3;
  do (
 ffmpeg -i "$i" -b:a 256k "${i%.*}.aac";
 ffmpeg -r 0.01 -i image.jpg -i "${i%.*}.aac" -c:a copy -shortest
 -max_interleave_delta 500M -c:v libx265 -x265-params lossless=1 -pix_fmt
 yuvj420p -vf "loop=-1:1" -movflags faststart "${i%.*}.mp4");
 done```
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-trac] #10875(avfilter:new): scale_vulkan filter produces wrong colors

2024-02-20 Thread FFmpeg
#10875: scale_vulkan filter produces wrong colors
--+--
 Reporter:  bermond   | Type:  defect
   Status:  new   | Priority:  normal
Component:  avfilter  |  Version:  git-master
 Keywords:  vulkan|   Blocked By:
 Blocking:|  Reproduced by developer:  0
Analyzed by developer:  0 |
--+--
 Applying the `scale_vulkan` filter produces an output with
 blueish/greenish color tint.

 How to reproduce:
 {{{
 $ ffmpeg \
   -init_hw_device vulkan=hw:0 -filter_hw_device hw \
   -f lavfi -i 'color=color=White:size=1280x720' \
   -vf 'hwupload,scale_vulkan=w=640:h=480,hwdownload,format=yuv420p' \
   -c:v libx264 -preset:v ultrafast -movflags '+faststart' -t 40 -y test-
 out.mp4
 ffmpeg version N-113734-gcffadfe99a Copyright (c) 2000-2024 the FFmpeg
 developers
   built with gcc 13.2.1 (GCC) 20230801
   configuration: --prefix=/usr --extra-cflags=-I/opt/cuda/include --extra-
 ldflags=-L/opt/cuda/lib64 --enable-lto --disable-rpath --enable-gpl
 --enable-version3 --enable-nonfree --enable-shared --disable-static
 --disable-stripping --disable-htmlpages --enable-gray --enable-alsa
 --enable-avisynth --enable-bzlib --enable-chromaprint --enable-frei0r
 --enable-gcrypt --enable-gmp --enable-gnutls --enable-iconv --enable-
 ladspa --enable-lcms2 --enable-libaom --enable-libaribb24 --enable-
 libaribcaption --enable-libass --enable-libbluray --enable-libbs2b
 --enable-libcaca --enable-libcelt --enable-libcdio --enable-libcodec2
 --enable-libdav1d --enable-libdavs2 --enable-libdc1394 --enable-libfdk-aac
 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-
 libfribidi --enable-libharfbuzz --enable-libglslang --enable-libgme
 --enable-libgsm --enable-libiec61883 --enable-libilbc --enable-libjack
 --enable-libjxl --enable-libklvanc --enable-libkvazaar --enable-liblensfun
 --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libopencv --enable-libopenh264
 --enable-libopenjpeg --enable-libopenmpt --enable-libopenvino --enable-
 libopus --enable-libplacebo --enable-libpulse --enable-libqrencode
 --enable-librabbitmq --enable-librav1e --enable-librist --enable-librsvg
 --enable-librubberband --enable-librtmp --disable-libshaderc --enable-
 libshine --enable-libsmbclient --enable-libsnappy --enable-libsoxr
 --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1
 --enable-libsvthevc --enable-libsvtvp9 --disable-libtensorflow --enable-
 libtesseract --enable-libtheora --disable-libtls --enable-libtwolame
 --enable-libuavs3d --enable-libv4l2 --enable-libvidstab --enable-libvmaf
 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
 libwebp --enable-libx264 --enable-libx265 --enable-libxevd --enable-
 libxeve --enable-libxavs --enable-libxavs2 --enable-libxcb --enable-
 libxcb-shm --enable-libxcb-xfixes --enable-libxcb-shape --enable-libxvid
 --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi
 --enable-lv2 --enable-lzma --enable-decklink --disable-mbedtls --enable-
 libmysofa --enable-openal --enable-opencl --enable-opengl --disable-
 openssl --disable-pocketsphinx --enable-sndio --enable-sdl2 --enable-
 vapoursynth --enable-vulkan --enable-xlib --enable-zlib --enable-amf
 --enable-cuda-nvcc --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
 --enable-libdrm --enable-libvpl --enable-libnpp --enable-nvdec --enable-
 nvenc --enable-omx --enable-rkmpp --enable-v4l2-m2m --enable-vaapi
 --enable-vdpau
   libavutil  58. 39.100 / 58. 39.100
   libavcodec 60. 39.101 / 60. 39.101
   libavformat60. 21.101 / 60. 21.101
   libavdevice60.  4.100 / 60.  4.100
   libavfilter 9. 17.100 /  9. 17.100
   libswscale  7.  6.100 /  7.  6.100
   libswresample   4. 13.100 /  4. 13.100
   libpostproc57.  4.100 / 57.  4.100
 Input #0, lavfi, from 'color=color=White:size=1280x720':
   Duration: N/A, start: 0.00, bitrate: N/A
   Stream #0:0: Video: wrapped_avframe, yuv420p, 1280x720 [SAR 1:1 DAR
 16:9], 25 fps, 25 tbr, 25 tbn
 Stream mapping:
   Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 [libx264 @ 0x58048fbc3b80] using SAR=1/1
 [libx264 @ 0x58048fbc3b80] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX FMA3 BMI2 AVX2
 [libx264 @ 0x58048fbc3b80] profile Constrained Baseline, level 3.0, 4:2:0,
 8-bit
 [libx264 @ 0x58048fbc3b80] 264 - core 164 r3108 31e19f9 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options:
 cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1
 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=15
 lookahead_threads=2 sliced_thr

[FFmpeg-trac] #10876(avfilter:new): scale_vulkan filter does not accept an output format different than yuv420p

2024-02-20 Thread FFmpeg
#10876: scale_vulkan filter does not accept an output format different than 
yuv420p
--+--
 Reporter:  bermond   | Type:  defect
   Status:  new   | Priority:  normal
Component:  avfilter  |  Version:  git-master
 Keywords:  vulkan|   Blocked By:
 Blocking:|  Reproduced by developer:  0
Analyzed by developer:  0 |
--+--
 The `scale_vulkan` filter does not accept an output pixel format different
 than `yuv420p` in the `format` **option**.

 For example, when trying to use `nv12` in the `format` option, it fails
 with an error message of `Unsupported input format for conversion`:

 {{{
 $ ffmpeg \
   -init_hw_device vulkan=hw:0 -filter_hw_device hw \
   -f lavfi -i 'color=color=White:size=1280x720' \
   -vf
 
'hwupload,scale_vulkan=w=640:h=480:format=nv12,hwdownload,format=nv12,format=yuv420p'
 \
   -c:v libx264 -preset:v ultrafast -movflags '+faststart' -t 40 -y test-
 out.mp4
 ffmpeg version N-113734-gcffadfe99a Copyright (c) 2000-2024 the FFmpeg
 developers
   built with gcc 13.2.1 (GCC) 20230801
   configuration: --prefix=/usr --extra-cflags=-I/opt/cuda/include --extra-
 ldflags=-L/opt/cuda/lib64 --enable-lto --disable-rpath --enable-gpl
 --enable-version3 --enable-nonfree --enable-shared --disable-static
 --disable-stripping --disable-htmlpages --enable-gray --enable-alsa
 --enable-avisynth --enable-bzlib --enable-chromaprint --enable-frei0r
 --enable-gcrypt --enable-gmp --enable-gnutls --enable-iconv --enable-
 ladspa --enable-lcms2 --enable-libaom --enable-libaribb24 --enable-
 libaribcaption --enable-libass --enable-libbluray --enable-libbs2b
 --enable-libcaca --enable-libcelt --enable-libcdio --enable-libcodec2
 --enable-libdav1d --enable-libdavs2 --enable-libdc1394 --enable-libfdk-aac
 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-
 libfribidi --enable-libharfbuzz --enable-libglslang --enable-libgme
 --enable-libgsm --enable-libiec61883 --enable-libilbc --enable-libjack
 --enable-libjxl --enable-libklvanc --enable-libkvazaar --enable-liblensfun
 --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libopencv --enable-libopenh264
 --enable-libopenjpeg --enable-libopenmpt --enable-libopenvino --enable-
 libopus --enable-libplacebo --enable-libpulse --enable-libqrencode
 --enable-librabbitmq --enable-librav1e --enable-librist --enable-librsvg
 --enable-librubberband --enable-librtmp --disable-libshaderc --enable-
 libshine --enable-libsmbclient --enable-libsnappy --enable-libsoxr
 --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1
 --enable-libsvthevc --enable-libsvtvp9 --disable-libtensorflow --enable-
 libtesseract --enable-libtheora --disable-libtls --enable-libtwolame
 --enable-libuavs3d --enable-libv4l2 --enable-libvidstab --enable-libvmaf
 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
 libwebp --enable-libx264 --enable-libx265 --enable-libxevd --enable-
 libxeve --enable-libxavs --enable-libxavs2 --enable-libxcb --enable-
 libxcb-shm --enable-libxcb-xfixes --enable-libxcb-shape --enable-libxvid
 --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi
 --enable-lv2 --enable-lzma --enable-decklink --disable-mbedtls --enable-
 libmysofa --enable-openal --enable-opencl --enable-opengl --disable-
 openssl --disable-pocketsphinx --enable-sndio --enable-sdl2 --enable-
 vapoursynth --enable-vulkan --enable-xlib --enable-zlib --enable-amf
 --enable-cuda-nvcc --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
 --enable-libdrm --enable-libvpl --enable-libnpp --enable-nvdec --enable-
 nvenc --enable-omx --enable-rkmpp --enable-v4l2-m2m --enable-vaapi
 --enable-vdpau
   libavutil  58. 39.100 / 58. 39.100
   libavcodec 60. 39.101 / 60. 39.101
   libavformat60. 21.101 / 60. 21.101
   libavdevice60.  4.100 / 60.  4.100
   libavfilter 9. 17.100 /  9. 17.100
   libswscale  7.  6.100 /  7.  6.100
   libswresample   4. 13.100 /  4. 13.100
   libpostproc57.  4.100 / 57.  4.100
 Input #0, lavfi, from 'color=color=White:size=1280x720':
   Duration: N/A, start: 0.00, bitrate: N/A
   Stream #0:0: Video: wrapped_avframe, yuv420p, 1280x720 [SAR 1:1 DAR
 16:9], 25 fps, 25 tbr, 25 tbn
 Stream mapping:
   Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 [Parsed_scale_vulkan_1 @ 0x7b54f0005600] Unsupported input format for
 conversion
 [Parsed_scale_vulkan_1 @ 0x7b54f0005600] Failed to configure output pad on
 Parsed_scale_vulkan_1
 [vf#0:0 @ 0x5ee8fea51b00] Error reinitializing filters!
 [vf#0:0 @ 0x5ee8fea51b00] Task finished with error code: -22 (Invalid
 argument)
 [vf#0:0 @ 0x5ee8fea51b00] Terminating thread with return code -22 (I

[FFmpeg-trac] #10877(avcodec:new): D3D11 Hevc Rext Intel hardware decoding support.

2024-02-20 Thread FFmpeg
#10877: D3D11 Hevc Rext Intel hardware decoding support.
-+-
 Reporter:   | Type:
  Aleksoid1978   |  enhancement
   Status:  new  | Priority:  normal
Component:  avcodec  |  Version:
 Keywords:  D3D11 Hevc   |  unspecified
  Rext Intel |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
 If you are interested in adding this functionality, I can try to make a
 patch, I have almost everything ready except **d3d11va_transfer_data()**,
 and specifically modifications for **fill_texture_ptrs()**

 Or you can look in my project - https://github.com/Aleksoid1978/MPC-
 BE/tree/master/src/ExtLib/ffmpeg
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10735(avcodec:new): Bug: FFmpeg's qsv encoder wrappers broken with the -g parameter set, cannot enforce set keyframe interval

2024-02-20 Thread FFmpeg
#10735: Bug: FFmpeg's qsv encoder wrappers broken with the -g parameter set, 
cannot
enforce set keyframe interval
-+-
 Reporter:  Dennis E.|Owner:  (none)
  Mungai |
 Type:  defect   |   Status:  new
 Priority:  critical |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  quicksync|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by wenbin,chen):

 I cannot run the command you provide, so I make some changes to make it
 work

 {{{
 ffmpeg -thread_queue_size 5120 -nostdin -y -fflags +genpts -y \
 -init_hw_device vaapi=va:/dev/dri/renderD129 \
 -init_hw_device qsv=qs@va \
 -filter_hw_device qs \
 -extra_hw_frames 64 \
 -threads:v 2 -async 1 \
 -probesize 10M -analyzeduration 10M \
 -hwaccel vaapi -hwaccel_output_format vaapi \
 -f mpegts -fix_teletext_pts 1 -scan_all_pmts 1 -merge_pmt_versions 1 \
 -i "input.ts" \
 -vf
 
'hwmap=derive_device=qsv,format=qsv,vpp_qsv=deinterlace=2:scale_mode=0:async_depth=4'
 \
 -sc_threshold 0 -strict -1 -bitrate_limit:v 0 -g:v 50 -async_depth:v 4
 -look_ahead_depth:v 40 \
 -preset:v medium -refs:v 5 -extbrc:v 1 -bf:v 0 -low_power:v 1 -r:v 25 \
 -b:v 4500k -minrate:v 4500k -maxrate:v 4500k -bufsize:v 9000k
 -rc_init_occupancy:v 4500k -c:v h264_qsv \
 -c:a aac -ac 2 -b:a 128k \
 -flags -global_header+cgop -max_muxing_queue_size 2048
 -max_interleave_delta 0 -flush_packets 0 -fps_mode cfr -f mpegts \
 -y "out.ts"
 }}}
 I added "-hwaccel vaapi -hwaccel_output_format vaapi" options

 gop_size(-g) is measured by number of frames not by pts time. You should
 count frames between two I frames to verify it.

 I see you enabled extbrc. It will automatically enable adaptive_i which
 makes the result doesn't strictly obey the gop_size you set. It inserts I
 frame when it is needed, for example when scene change.
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".