2024.11.26 06:31 jakebeau How to utilize the GPU to resize batch images?
Hello!
I am looking to resize a large batch (~1000) images at once using FFMPEG, which I currently have split into batches of 100 per process, and I want to try and speed it up using the GPU.
I want to include the binary with my app and call it on systems with both NVIDIA and AMD GPUs.
I have tried the command:
./ffmpeg -v debug -init_hw_device vulkan=vk0 -i nasa.png -vf scale_vulkan=1920:1080 output.jpg
And it fails. Any help would be appreciated. Thank you so much.
Ouput:
ffmpeg version N-117899-g3c3bf6c109-20241125 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 14.2.0 (crosstool-NG 1.26.0.120_4d36f27)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-libxml2 --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-libzmq --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libvvenc --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs=-lgomp --extra-ldflags=-pthread --extra-ldexeflags= --cc=x86_64-w64-mingw32-gcc --cxx=x86_64-w64-mingw32-g++ --ar=x86_64-w64-mingw32-gcc-ar --ranlib=x86_64-w64-mingw32-gcc-ranlib --nm=x86_64-w64-mingw32-gcc-nm --extra-version=20241125
libavutil 59. 47.101 / 59. 47.101
libavcodec 61. 25.103 / 61. 25.103
libavformat 61. 9.100 / 61. 9.100
libavdevice 61. 4.100 / 61. 4.100
libavfilter 10. 6.101 / 10. 6.101
libswscale 8. 12.100 / 8. 12.100
libswresample 5. 4.100 / 5. 4.100
libpostproc 58. 4.100 / 58. 4.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'vulkan=vk0'.
Reading option '-i' ... matched as input url with argument 'nasa.png'.
Reading option '-vf' ... matched as option 'vf' (alias for -filter:v (apply filters to video streams)) with argument 'scale_vulkan=1920:1080'.
Reading option 'output.jpg' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option init_hw_device (initialise hardware device) with argument vulkan=vk0.
[AVHWDeviceContext @ 000001c3b7fea1c0] Supported layers:
[AVHWDeviceContext @ 000001c3b7fea1c0] VK_LAYER_NV_optimus
[AVHWDeviceContext @ 000001c3b7fea1c0] GalaxyOverlayVkLayer
[AVHWDeviceContext @ 000001c3b7fea1c0] GalaxyOverlayVkLayer_VERBOSE
[AVHWDeviceContext @ 000001c3b7fea1c0] GalaxyOverlayVkLayer_DEBUG
[AVHWDeviceContext @ 000001c3b7fea1c0] VK_LAYER_VALVE_steam_overlay
[AVHWDeviceContext @ 000001c3b7fea1c0] VK_LAYER_VALVE_steam_fossilize
[AVHWDeviceContext @ 000001c3b7fea1c0] VK_LAYER_OBS_HOOK
Last message repeated 1 times
[AVHWDeviceContext @ 000001c3b7fea1c0] VK_LAYER_EOS_Overlay
Last message repeated 1 times
[AVHWDeviceContext @ 000001c3b7fea1c0] VK_LAYER_ROCKSTAR_GAMES_social_club
[AVHWDeviceContext @ 000001c3b7fea1c0] Using instance extension VK_KHR_portability_enumeration
[AVHWDeviceContext @ 000001c3b7fea1c0] GPU listing:
[AVHWDeviceContext @ 000001c3b7fea1c0] 0: NVIDIA GeForce RTX 3090 (discrete) (0x2204)
[AVHWDeviceContext @ 000001c3b7fea1c0] 1: NVIDIA GeForce GT 1030 (discrete) (0x1d01)
[AVHWDeviceContext @ 000001c3b7fea1c0] Device 0 selected: NVIDIA GeForce RTX 3090 (discrete) (0x2204)
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_push_descriptor
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_EXT_descriptor_buffer
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_EXT_shader_atomic_float
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_cooperative_matrix
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_NV_optical_flow
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_EXT_shader_object
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_video_maintenance1
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_EXT_external_memory_host
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_external_memory_win32
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_external_semaphore_win32
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_video_queue
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_video_encode_queue
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_video_decode_queue
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_video_encode_h264
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_video_decode_h264
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_video_encode_h265
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_video_decode_h265
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device extension VK_KHR_video_decode_av1
[AVHWDeviceContext @ 000001c3b7fea1c0] Queue families:
[AVHWDeviceContext @ 000001c3b7fea1c0] 0: graphics compute transfer sparse (queues: 16)
[AVHWDeviceContext @ 000001c3b7fea1c0] 1: transfer sparse (queues: 2)
[AVHWDeviceContext @ 000001c3b7fea1c0] 2: compute transfer sparse (queues: 8)
[AVHWDeviceContext @ 000001c3b7fea1c0] 3: transfer decode sparse (queues: 1)
[AVHWDeviceContext @ 000001c3b7fea1c0] 4: transfer encode sparse (queues: 1)
[AVHWDeviceContext @ 000001c3b7fea1c0] 5: transfer sparse optical_flow (queues: 1)
[AVHWDeviceContext @ 000001c3b7fea1c0] Using device: NVIDIA GeForce RTX 3090
[AVHWDeviceContext @ 000001c3b7fea1c0] Alignments:
[AVHWDeviceContext @ 000001c3b7fea1c0] optimalBufferCopyRowPitchAlignment: 1
[AVHWDeviceContext @ 000001c3b7fea1c0] minMemoryMapAlignment: 64
[AVHWDeviceContext @ 000001c3b7fea1c0] nonCoherentAtomSize: 64
[AVHWDeviceContext @ 000001c3b7fea1c0] minImportedHostPointerAlignment: 4096
[AVHWDeviceContext @ 000001c3b7fea1c0] Using queue family 0 (queues: 16) for graphics
[AVHWDeviceContext @ 000001c3b7fea1c0] Using queue family 2 (queues: 8) for compute
[AVHWDeviceContext @ 000001c3b7fea1c0] Using queue family 1 (queues: 2) for transfers
[AVHWDeviceContext @ 000001c3b7fea1c0] Using queue family 3 (queues: 1) for decode
[AVHWDeviceContext @ 000001c3b7fea1c0] Using queue family 4 (queues: 1) for encode
Successfully parsed a group of options.
Parsing a group of options: input url nasa.png.
Successfully parsed a group of options.
Opening an input file: nasa.png.
[AVFormatContext @ 000001c3cfb092c0] Opening 'nasa.png' for reading
[file @ 000001c3b803c9c0] Setting default whitelist 'file,crypto,data'
[png_pipe @ 000001c3cfb092c0] Format png_pipe probed with size=2048 and score=99
[png_pipe @ 000001c3cfb092c0] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:1
[png_pipe @ 000001c3cfb092c0] Probe buffer size limit of 5000000 bytes reached
[png_pipe @ 000001c3cfb092c0] After avformat_find_stream_info() pos: 13343388 bytes read:13343388 seeks:0 frames:1
Input #0, png_pipe, from 'nasa.png':
Duration: N/A, bitrate: N/A
Stream #0:0, 1, 1/25: Video: png, 1 reference frame, rgba(pc, gbunknown/unknown), 4928x3279 [SAR 2835:2835 DAR 4928:3279], 0/1, 25 fps, 25 tbr, 25 tbn
Successfully opened the file.
Parsing a group of options: output url output.jpg.
Applying option vf (alias for -filter:v (apply filters to video streams)) with argument scale_vulkan=1920:1080.
Successfully parsed a group of options.
Opening an output file: output.jpg.
[out#0/image2 @ 000001c3c9865180] No explicit maps, mapping streams automatically...
[vost#0:0/mjpeg @ 000001c3c9907300] Created video stream from input stream 0:0
[AVFilterGraph @ 000001c3b803bf40] Setting 'w' to value '1920'
[AVFilterGraph @ 000001c3b803bf40] Setting 'h' to value '1080'
detected 32 logical cores
Successfully opened the file.
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> mjpeg (native))
[vost#0:0/mjpeg @ 000001c3c9907300] Starting thread...
[vf#0:0 @ 000001c3ba08cec0] Starting thread...
[vist#0:0/png @ 000001c3ba68cfc0] [dec:png @ 000001c3ba24dc40] Starting thread...
[in#0/png_pipe @ 000001c3cfa913c0] Starting thread...
Press [q] to stop, [?] for help
[in#0/png_pipe @ 000001c3cfa913c0] EOF while reading input
[in#0/png_pipe @ 000001c3cfa913c0] Terminating thread with return code 0 (success)
[vist#0:0/png @ 000001c3ba68cfc0] [dec:png @ 000001c3ba24dc40] Decoder thread received EOF packet
[vist#0:0/png @ 000001c3ba68cfc0] [dec:png @ 000001c3ba24dc40] Decoder returned EOF, finishing
[vist#0:0/png @ 000001c3ba68cfc0] [dec:png @ 000001c3ba24dc40] Terminating thread with return code 0 (success)
[AVFilterGraph @ 000001c3d0665440] Setting 'w' to value '1920'
[AVFilterGraph @ 000001c3d0665440] Setting 'h' to value '1080'
[graph -1 input from stream 0:0 @ 000001c3d05d9840] w:4928 h:3279 pixfmt:rgba tb:1/25 fr:25/1 sar:2835/2835 csp:gbr range:pc
[format @ 000001c3d05d91c0] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p|yuv420p|yuv422p|yuv444p'
[format @ 000001c3d05d91c0] Setting 'color_ranges' to value 'pc'
[auto_scale_0 @ 000001c3d05d9300] w:iw h:ih flags:'' interl:0
[Parsed_scale_vulkan_0 @ 000001c3d05d9e80] auto-inserting filter 'auto_scale_0' between the filter 'graph -1 input from stream 0:0' and the filter 'Parsed_scale_vulkan_0'
Impossible to convert between the formats supported by the filter 'graph -1 input from stream 0:0' and the filter 'auto_scale_0'
[vf#0:0 @ 000001c3ba08cec0] Error reinitializing filters!
[vf#0:0 @ 000001c3ba08cec0] Task finished with error code: -40 (Function not implemented)
[vf#0:0 @ 000001c3ba08cec0] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/mjpeg @ 000001c3c9907300] [enc:mjpeg @ 000001c3b803ca80] Encoder thread received EOF
[vost#0:0/mjpeg @ 000001c3c9907300] [enc:mjpeg @ 000001c3b803ca80] Could not open encoder before EOF
[vost#0:0/mjpeg @ 000001c3c9907300] Task finished with error code: -22 (Invalid argument)
[vost#0:0/mjpeg @ 000001c3c9907300] Terminating thread with return code -22 (Invalid argument)
[out#0/image2 @ 000001c3c9865180] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A
[in#0/png_pipe @ 000001c3cfa913c0] Input file #0 (nasa.png):
[in#0/png_pipe @ 000001c3cfa913c0] Input stream #0:0 (video): 1 packets read (13343388 bytes); 1 frames decoded; 0 decode errors;
[in#0/png_pipe @ 000001c3cfa913c0] Total: 1 packets (13343388 bytes) demuxed
[AVIOContext @ 000001c3d041c100] Statistics: 13343388 bytes read, 0 seeks
Conversion failed!
submitted by jakebeau to ffmpeg [link] [comments]
2024.11.26 06:31 Boh9889 Il contest si chiuderà a breve...
E nessuno ha fatto niente, peccato, c'era un premio speciale...
submitted by Boh9889 to vita_da_animali [link] [comments]
2024.11.26 06:31 1Castiel1 Weeeeeeeeeee
submitted by 1Castiel1 to AnythingEvrything [link] [comments]
2024.11.26 06:31 Lukesky1313 Question on how much would it cost to make a body for this guitar hero controller.
submitted by Lukesky1313 to Luthier [link] [comments] |
2024.11.26 06:31 Visual-Quarter8998 What do you want to see expanded on in the Backrooms series?
Personally, I want to see more about the nature of the Backrooms. How it interacts with our world, and what exactly it is.
That sounds generic, but I'd also like to see more of ASYNC's "colonization" efforts. I don't like calling it "colonizing" since its more or less just remodeling and renovating to make it "livable", as livable as the Backrooms can be.
submitted by Visual-Quarter8998 to KanePixelsBackrooms [link] [comments]
2024.11.26 06:31 RogueAmora I don’t understand. 😭
Birth charts are so confusing. Someone please help me understand me.
submitted by RogueAmora to astrologyreadings [link] [comments]
2024.11.26 06:31 Street_Holiday_5740 Miles Canton blog posts
His blog posts didn’t get much attention, probably because scrolling through that trash took actual effort. But screw it—I’ve got time this month.
Why was he doing this? No idea. He wasn’t a model scout. Fingersxcrossed wasn’t a brand or anything that made money. It was just a blog where he and his equally loser friends posted whatever they thought was cool at the time.
Sure, he also posted about shoes and sweaters so I guess he’s a well-rounded unemployed. But he treated women like objects. And even if this had been his job (it wasn’t), what kind of 30 year old obsesses over who teenage girls are dating? Honestly, he probably wrote these posts with one hand while jerking off with the other.
Miles Canton, McFly, whatever you call yourself—if you’re reading this (and you will, because Reddit’s SEO is solid) FUCK you and your bum friends.
https://web.archive.org/web/20150206174303/http://fingersxcrossed.com/?cat=174 https://beverlyhighlights.com/14033/culture/fingers-x-crossed/
submitted by Street_Holiday_5740 to canceledpod [link] [comments]
2024.11.26 06:31 National-Influence17 18 [M4F] Looking for a constant that likes to send pics
Helloooooo, I'm looking for a constant that I can chat and be friends with, but at the same time have a dirty side too 🤭🤭 I wanna find someone that likes sending pics (or vids), sfw or nsfw! Of course I'll be sending too don't worry 🙏🙏
About me:
-6'3 🚶♂️🚶♂️
-chinito
-fun to talk to!
-many people say I'm cute HAHAHA
-interested in video games
-green school 💚💚
Don't be shy to hmu!
submitted by National-Influence17 to PHR4Rhookups [link] [comments]
2024.11.26 06:31 Swiftblade2022 Marines of Reddit, do you think solid brotherhood can be found in other branches?
I just turned 26 and I’m at a bit of a crossroads right now.
This past year, I lost my former partner to suicide. Soon after, I lost my job. I’m on unemployment right now and have about 6-7 months to figure my shit out.
I relocated to Los Angeles 3.5 year to be with him, so his loss is really felt since he was all I had for a while.
One of the things I want to heal right now is the isolation I’m feeling, and I’d love to join a branch in the Reserves while I try to get back on my feet professionally.
It would be great to hear about what others think would be a good route for me perhaps socially and professionally while I workshop how I navigate my future.
I have a clean background. No criminal record. A 3.3 GPA with a bachelors in IR, and am completely healthy and athletic. I’d rather put my youth to good use while I still have it.
submitted by Swiftblade2022 to USMCboot [link] [comments]
2024.11.26 06:31 Teddy_Invest I see continuous institutional buyings.
submitted by Teddy_Invest to redwire [link] [comments]
2024.11.26 06:31 cowmissing This was the backstage entrance door to Stage 1 at NBC Studios in Burbank, now known as The Burbank Studios, where The Tonight Show with Jay Leno was filmed. #TheTonightShow #NBCStudios #NBCBurbank
submitted by cowmissing to ThemeParkGeeks [link] [comments] |
2024.11.26 06:31 sattam1213456 What is this?
This post contains content not supported on old Reddit. Click here to view the full post
submitted by sattam1213456 to Pixelary [link] [comments]
2024.11.26 06:31 sistoast Less than 50/50 odds on the Auto 2nd Coin flip?
Has anyone else noticed that with attacks that prompt you to “Flip 2 coins”, if you flip the first and it’s tails, the second flip completed for you by the game is disproportionately tails again?
I started a tally and found that when I flip heads, there is around a 50 percent chance that the second computer-completed flip will be heads. But when I flip tails, there is only around a 15% chance that the second flip will be heads.
My sample size is obviously small with only 160 games since I started keeping a tally so really I’m just wondering if others have seen this anecdotally.
submitted by sistoast to PTCGP [link] [comments]
2024.11.26 06:31 rip_rft Should I rent out or sell?
I was given a very generous property for my wedding by my grandparents. The property was bought for $1.05M in my name but probably only worth 900-950k looking at nearby comps. They overpaid but I didn't know until they already made the decision, and I really didn't want to say this part to them since I was being gifted this.
Now I'm looking at the finances, I can likely rent for $4k/month (though tough time to find renters rn), but maintenance is quite high. 1.5-2% property taxes, $350 in HOA and solar, property management and insurance. I'm estimating that I can yield about $45,100 in revenue assuming 90% occupancy, with about $24,392 in costs, gross $20,708. That's a relatively low cash flow for $1M... 2%
However, if i sell, I'm fairly confident I can only sell for 900-950k, plus I need to pay commission. In addition, I would lose out on 100-150k of capital gains since I would sell at a loss.
I'm leaning towards holding for a few years until the property is at least over $1.05M then selling, what are your thoughts reddit?
p.s. I already own my home and have no plans to move into the new house. also I live in a VHCOL area and I have no interest to buy out of state.
submitted by rip_rft to Rich [link] [comments]
2024.11.26 06:31 TrackEfficient1613 How do I screen out Tesla drivers from picking me up?
For obvious reasons I’m not interested in riding in a Tesla. Is there a way to screen or block out drivers with those kind of cars from responding to my request for an Uber?
submitted by TrackEfficient1613 to uber [link] [comments]
2024.11.26 06:31 LowOnVeggies Who is this person with Yachty and what is his hair called ?
submitted by LowOnVeggies to KaiCenat [link] [comments] |
2024.11.26 06:31 ZestycloseAd188 Give me nl messages on session 05f84f7230ddb209e27f22d86da4c11e91d550dc003a24f61cbc32bd4de2771212
submitted by ZestycloseAd188 to Snapchatgerman [link] [comments]
2024.11.26 06:31 No_Sir7709 മണ്ടന്മാരായ കസ്റ്റമറാണെങ്കിൽ അവരെ സീറോയിലേക്ക് എത്തിക്കും.. എല്ലാം വിൽക്കാൻ പറഞ്ഞ് കാശ് വാങ്ങിക്കും
submitted by No_Sir7709 to Kerala [link] [comments] |
2024.11.26 06:31 macoaguero Solid Week
submitted by macoaguero to Fliff [link] [comments] |
2024.11.26 06:31 Dry_Procedure4138 Looking for sales advice
I’m 19 I currently work in D2D/B2B sales in Australia selling for automotive businesses but i don’t see much potential in growth in the business as it’s commision only and struggles to hold onto new employees which makes it hard to build a team. I’m looking for a change and some general advice, I’m wanting to either start my own face to face sales business but not sure what to sell/clients to work with or just looking for a job change but unsure what sales have a big progression opportunity. If anyone has any advice that would be great,
submitted by Dry_Procedure4138 to salestechniques [link] [comments]
2024.11.26 06:31 IceyPanda444 Can someone please identify what star/planet this is? My app doesnt identify it.
submitted by IceyPanda444 to Astronomy [link] [comments] |
2024.11.26 06:31 yonBonbonbon Jenna is all of us to a degree
submitted by yonBonbonbon to 30ROCK [link] [comments] |
2024.11.26 06:31 bgfitness12 looking for supervisor
submitted by bgfitness12 to Monopoly_GO [link] [comments]
2024.11.26 06:31 d_kanna Macbook pro vs air. Which one to choose?
Hi folks..I am in a dilemma to choose between "macbook pro 14"/M4 pro chip 12-core cpu 16-core gpu/24gb ram/512gb ssd" and "macbook air 15"/M3 chip 8 core cpu 10 core GPU/24gb ram/512gb ssd". Which one would be better. pls help.
Also there is another variant - M4 chip with 10 core cpu and 10 core GPU. Would there be a significant drop in performance compared to M4 pro chip?
submitted by d_kanna to macbookpro [link] [comments]
2024.11.26 06:31 Agile_Scientist6168 Do nurses make good money
Interested in pursing this career path but I hear varying things on pay. Any insight would be great.
submitted by Agile_Scientist6168 to Salary [link] [comments]