Re: [FFmpeg-user] Using GPU with ffmpeg
On 11/30/2020 4:52 PM, madderek--- via ffmpeg-user wrote: What does on 'cuda mean', and how do you do it? google again? (Search cuda ffmpeg, also look at the list archives for a lot of discussion about it.) z! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
-Original Message- From: ffmpeg-user On Behalf Of andrei ka Sent: 01 December 2020 00:40 To: FFmpeg user questions Subject: Re: [FFmpeg-user] Using GPU with ffmpeg Thanks What does on 'cuda mean', and how do you do it? Derek btw, i really wonder thy why want to bechnmark fflmpeg with your tiffs if your "software will output to jpegs" :-) internally ffmpeg with convert your tiffs anyway. convert 20s of your tiffs to jpegs (imagemagic batch), leave threads to 0 and si if ffmpeg will be faster. and next try mjpeg codec on cuda, make .ts and then repackage it to mkv, maybe it'll be faster again... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
btw, i really wonder thy why want to bechnmark fflmpeg with your tiffs if your "software will output to jpegs" :-) internally ffmpeg with convert your tiffs anyway. convert 20s of your tiffs to jpegs (imagemagic batch), leave threads to 0 and si if ffmpeg will be faster. and next try mjpeg codec on cuda, make .ts and then repackage it to mkv, maybe it'll be faster again... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
Am Mo., 30. Nov. 2020 um 09:21 Uhr schrieb madderek--- via ffmpeg-user : > Sorry, despite investigating I don't understand the top posting. Did you try the following? https://www.google.com/search?q=top+posting You most likely don't want a framerate of 29.97 but 3/1001 and please only specify the input frame rate for image input, not the output frame rate. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
-Original Message- From: ffmpeg-user On Behalf Of Rodney Baker Sent: 30 November 2020 13:27 To: ffmpeg-user@ffmpeg.org Subject: Re: [FFmpeg-user] Using GPU with ffmpeg Thanks! Got ot! C:\WINDOWS\system32>ffmpeg -framerate 29.97 -start_number 35000 -i Q:\wsp\%06d.tif -c:v libx264 -preset veryslow -tune film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 -r 29.97 -threads 2 L:\WindsorSafariVideo8sholrt_4_16tiff.mkv ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 9.1.1 (GCC) 20190807 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat58. 29.100 / 58. 29.100 libavdevice58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc55. 5.100 / 55. 5.100 Input #0, image2, from 'Q:\wsp\%06d.tif': Duration: 00:02:32.42, start: 0.00, bitrate: N/A Stream #0:0: Video: tiff, rgb48le, 1280x960, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (tiff (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 010f4b66f700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 010f4b66f700] profile High, level 4.1, 4:2:0, 8-bit [libx264 @ 010f4b66f700] 264 - core 158 r2984 3759fcb - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=6 deblock=1:-1:-1 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=2 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'L:\WindsorSafariVideo8sholrt_4_16tiff.mkv': Metadata: encoder : Lavf58.29.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1280x960, q=-1--1, 29.97 fps, 1k tbn, 29.97 tbc Metadata: encoder : Lavc58.54.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 frame= 4568 fps=5.1 q=-1.0 Lsize= 228565kB time=00:02:32.32 bitrate=12292.6kbits/s speed=0.169x video:228527kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.016403% [libx264 @ 010f4b66f700] frame I:24Avg QP:18.07 size:132139 [libx264 @ 010f4b66f700] frame P:1026 Avg QP:21.25 size: 79737 [libx264 @ 010f4b66f700] frame B:3518 Avg QP:23.53 size: 42362 [libx264 @ 010f4b66f700] consecutive B-frames: 1.6% 3.3% 7.7% 24.4% 24.7% 30.6% 5.7% 1.6% 0.4% [libx264 @ 010f4b66f700] mb I I16..4: 2.6% 79.4% 17.9% [libx264 @ 010f4b66f700] mb P I16..4: 2.0% 46.5% 7.4% P16..4: 23.7% 14.9% 4.9% 0.2% 0.0%skip: 0.5% [libx264 @ 010f4b66f700] mb B I16..4: 0.4% 7.1% 1.5% B16..8: 34.1% 15.6% 4.2% direct:22.0% skip:15.0% L0:41.6% L1:36.2% BI:22.2% [libx264 @ 010f4b66f700] 8x8 transform intra:81.5% inter:81.4% [libx264 @ 010f4b66f700] direct mvs spatial:99.9% temporal:0.1% [libx264 @ 010f4b66f700] coded y,uvDC,uvAC intra: 92.3% 62.5% 10.2% inter: 62.9% 41.8% 0.3% [libx264 @ 010f4b66f700] i16 v,h,dc,p: 17% 26% 1% 55% [libx264 @ 010f4b66f700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 13% 3% 7% 14% 13% 14% 11% 13% [libx264 @ 010f4b66f700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 12% 2% 6% 17% 16% 14% 10% 11% [libx264 @ 010f4b66f700] i8c dc,h,v,p: 23% 39% 21% 17% [libx264 @ 010f4b66f700] Weighted P-Frames: Y:16.0% UV:6.4% [libx264 @ 010f4b66f700] ref P L0: 44.4% 15.4% 16.0% 9.5% 7.3% 6.2% 1.1% 0.0% [libx264 @ 010f4b66f700] ref B L0: 87.4% 6.2% 3.7% 1.8% 0.8% [libx264 @ 010f4b66f700] ref B L1: 98.4% 1.6% [libx264 @ 010f4b66f700] kb/s:12282.51 Derek On Monday, 30 November 2
Re: [FFmpeg-user] Using GPU with ffmpeg
On Monday, 30 November 2020 23:49:55 ACDT Rodney Baker wrote: > On Monday, 30 November 2020 18:51:28 ACDT madderek--- via ffmpeg-user wrote: > [...] > What the dev's are requesting is the complete, uncut console output that > ffmpeg prints to the command-line window when you executate the command, Typo! Of course I meant, "execute the command"; no idea how that happened! -- == Rodney Baker VK5ZTV rodney.ba...@iinet.net.au CCNA #CSCO12880208 == ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
On Monday, 30 November 2020 18:51:28 ACDT madderek--- via ffmpeg-user wrote: > Do you want the actual video file? This will be several GB. How do I post > this? I didn't think it was necessary since I'm only asking if it's > possible to speed up the process using GPU. If you do I'll prepare a > smaller file. > > Sorry, despite investigating I don't understand the top posting. > > Derek > Top posting means you post your reply at the top of the message, before the text you're replying to, instead of inline like this (trimming unnecessary content) to maintain the flow of conversation. What the dev's are requesting is the complete, uncut console output that ffmpeg prints to the command-line window when you executate the command, from the time you enter the command to the time it finishes (including the banners showing version information). They don't need the sample input files or resulting output file unless specifically requested. Regards, Rodney (not a dev but a long-time user). -- == Rodney Baker VK5ZTV rodney.ba...@iinet.net.au CCNA #CSCO12880208 == ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
-Original Message- From: ffmpeg-user On Behalf Of madderek--- via ffmpeg-user Sent: 30 November 2020 08:21 To: 'FFmpeg user questions' Cc: madde...@ntlworld.com Subject: Re: [FFmpeg-user] Using GPU with ffmpeg I've made a short video: https://www.asuswebstorage.com/navigate/a/#/s/91A6FA9826A34D65BDBF9F3FE57D170EW The command line was ffmpeg -framerate 29.97 -start_number 35000 -i Q:\wsp\%06d.tif -c:v libx264 -preset veryslow -tune film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 -r 29.97 -threads 2 L:\WindsorSafariVideo8sholrt_4_16tiff.mkv Derek -Original Message- From: ffmpeg-user On Behalf Of Carl Zwanzig Sent: 30 November 2020 06:36 To: ffmpeg-user@ffmpeg.org Subject: Re: [FFmpeg-user] Using GPU with ffmpeg On 11/29/2020 10:07 PM, madderek--- via ffmpeg-user wrote: > ffmpeg -framerate 29.97 -start_number 70001 -i > L:\baf1400_70001-9\%06d.tif -c:v libx264 -preset veryslow -tune > film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 -r 29.97 > -threads 2 L:\baf140070001916tiff.mkv Output? (need to see that) And please don't top-post on this list. z! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
Do you want the actual video file? This will be several GB. How do I post this? I didn't think it was necessary since I'm only asking if it's possible to speed up the process using GPU. If you do I'll prepare a smaller file. Sorry, despite investigating I don't understand the top posting. Derek -Original Message- From: ffmpeg-user On Behalf Of Carl Zwanzig Sent: 30 November 2020 06:36 To: ffmpeg-user@ffmpeg.org Subject: Re: [FFmpeg-user] Using GPU with ffmpeg On 11/29/2020 10:07 PM, madderek--- via ffmpeg-user wrote: > ffmpeg -framerate 29.97 -start_number 70001 -i > L:\baf1400_70001-9\%06d.tif -c:v libx264 -preset veryslow -tune > film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 -r 29.97 > -threads 2 L:\baf140070001916tiff.mkv Output? (need to see that) And please don't top-post on this list. z! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
On 11/29/2020 10:07 PM, madderek--- via ffmpeg-user wrote: ffmpeg -framerate 29.97 -start_number 70001 -i L:\baf1400_70001-9\%06d.tif -c:v libx264 -preset veryslow -tune film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 -r 29.97 -threads 2 L:\baf140070001916tiff.mkv Output? (need to see that) And please don't top-post on this list. z! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
ffmpeg -framerate 29.97 -start_number 70001 -i L:\baf1400_70001-9\%06d.tif -c:v libx264 -preset veryslow -tune film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 -r 29.97 -threads 2 L:\baf140070001916tiff.mkv Derek -Original Message- From: ffmpeg-user On Behalf Of Carl Eugen Hoyos Sent: 29 November 2020 23:58 To: FFmpeg user questions Subject: Re: [FFmpeg-user] Using GPU with ffmpeg Am So., 29. Nov. 2020 um 21:36 Uhr schrieb madderek--- via ffmpeg-user : > The process is slow. Please show us the command line you tested together with the complete, uncut console output to allow us to better understand what your issue is. > Is there a simple way of using the GPU ram? Hardware acceleration (which is typically provided by third-party libraries) allows to use GPU resources, ffmpeg itself cannot (and doesn't need to) use GPU ram. Please find out what top-posting means and avoid it here, Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
Am So., 29. Nov. 2020 um 21:36 Uhr schrieb madderek--- via ffmpeg-user : > The process is slow. Please show us the command line you tested together with the complete, uncut console output to allow us to better understand what your issue is. > Is there a simple way of using the GPU ram? Hardware acceleration (which is typically provided by third-party libraries) allows to use GPU resources, ffmpeg itself cannot (and doesn't need to) use GPU ram. Please find out what top-posting means and avoid it here, Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
Thanks for reply. About 4.6 hours! The software that I am using to enhance videos will output to jpeg, I'm outputting to uncompressed 16bit TIFFs at the moment. Derek -Original Message- From: ffmpeg-user On Behalf Of andrei ka Sent: 29 November 2020 21:21 To: FFmpeg user questions Subject: Re: [FFmpeg-user] Using GPU with ffmpeg 20k frames are a mere 800s of a 25fps movie... how slow is cpu process ? afaik nvenc can only do mjpeg_cuvid for stitching images, it won't work with tiffs... e.g. ffmpeg -vsync 0 -hwaccel cuvid -c:v mjpeg_cuvid -framerate NN -i image_%04d.jpg -c:v h264_nvenc x.mp4... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Using GPU with ffmpeg
20k frames are a mere 800s of a 25fps movie... how slow is cpu process ? afaik nvenc can only do mjpeg_cuvid for stitching images, it won't work with tiffs... e.g. ffmpeg -vsync 0 -hwaccel cuvid -c:v mjpeg_cuvid -framerate NN -i image_%04d.jpg -c:v h264_nvenc x.mp4... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Using GPU with ffmpeg
Hi I'm using ffmpeg to combine a large number of TIFF files into a single video. The TIFFs are the result of upscaling videos. They are large in number, typically 2 or 3. The process is slow. Is there a simple way of using the GPU ram? I have a NVIDIA 2080 TI with 11GBof RAM. Derek Clements ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".