Re: [FFmpeg-user] is ffmpeg using gpu???
On Jan 11, 2015, at 10:00 PM, Andy Furniss adf.li...@gmail.com wrote: Moritz Barsnick wrote: On Sun, Jan 11, 2015 at 17:22:39 +0800, Rick C. wrote: Can it be used though to speed things up? If so what command would I need to use? Thanks again for the help... May I point you to this thread and particular mail on this list: https://ffmpeg.org/pipermail/ffmpeg-user/2013-August/016698.html It only relates to OpenCL, I don't know if ffmpeg supports any other methods of using a GPU. On Linux if your GPU has h/w decode and the input file is the right type ffmpeg can use that. For me the command would be - ffmpeg -hwaccel vdpau -i infile ... It may not gain you much though as GPUs decode are designed for playing rather than going as fast as they can, there is also mention somewhere of having to read back the yuv reducing the gain. Maybe if you have a slow CPU then the reduced decode load will free more for the encode. On my 4x3.4GHz box there wasn't much difference IIRC. Just testing GPU vs s/w for bluray decode the CPU was way faster - as expected I guess. In this thread, Tom notes: Generally the consensus (at least on here, as far as I can tell) is that GPU assisted encoding is slow and gives crap results. YMMV. Not the same thing but there is a way to get libx264 to use some opencl, though I don't know what it's like as my radeonsi opencl isn't yet a complete enough implementation to work. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thanks all for the help I will look into this... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] is ffmpeg using gpu???
On Jan 9, 2015, at 8:43 PM, Jean-Yves Avenard jyaven...@gmail.com wrote: On 28 December 2014 at 16:21, Rick C. rickcort...@gmail.com wrote: hi, If I’m using a compiled ffmpeg binary on a mac does it make use of the GPU? Thanks! not if you want to encode ; if you want to decode... maybe. And if you just want to remux (e.g. change container) then no GPU is required ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user http://ffmpeg.org/mailman/listinfo/ffmpeg-user Can it be used though to speed things up? If so what command would I need to use? Thanks again for the help... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] is ffmpeg using gpu???
On Sun, Jan 11, 2015 at 17:22:39 +0800, Rick C. wrote: Can it be used though to speed things up? If so what command would I need to use? Thanks again for the help... May I point you to this thread and particular mail on this list: https://ffmpeg.org/pipermail/ffmpeg-user/2013-August/016698.html It only relates to OpenCL, I don't know if ffmpeg supports any other methods of using a GPU. In this thread, Tom notes: Generally the consensus (at least on here, as far as I can tell) is that GPU assisted encoding is slow and gives crap results. YMMV. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] is ffmpeg using gpu???
Moritz Barsnick wrote: On Sun, Jan 11, 2015 at 17:22:39 +0800, Rick C. wrote: Can it be used though to speed things up? If so what command would I need to use? Thanks again for the help... May I point you to this thread and particular mail on this list: https://ffmpeg.org/pipermail/ffmpeg-user/2013-August/016698.html It only relates to OpenCL, I don't know if ffmpeg supports any other methods of using a GPU. On Linux if your GPU has h/w decode and the input file is the right type ffmpeg can use that. For me the command would be - ffmpeg -hwaccel vdpau -i infile ... It may not gain you much though as GPUs decode are designed for playing rather than going as fast as they can, there is also mention somewhere of having to read back the yuv reducing the gain. Maybe if you have a slow CPU then the reduced decode load will free more for the encode. On my 4x3.4GHz box there wasn't much difference IIRC. Just testing GPU vs s/w for bluray decode the CPU was way faster - as expected I guess. In this thread, Tom notes: Generally the consensus (at least on here, as far as I can tell) is that GPU assisted encoding is slow and gives crap results. YMMV. Not the same thing but there is a way to get libx264 to use some opencl, though I don't know what it's like as my radeonsi opencl isn't yet a complete enough implementation to work. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] is ffmpeg using gpu???
On 28 December 2014 at 16:21, Rick C. rickcort...@gmail.com wrote: hi, If I’m using a compiled ffmpeg binary on a mac does it make use of the GPU? Thanks! not if you want to encode ; if you want to decode... maybe. And if you just want to remux (e.g. change container) then no GPU is required ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] is ffmpeg using gpu???
On Dec 31, 2014, at 10:59 AM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Rick C. rickcorteza at gmail.com writes: ffmpeg -i original.avi -strict -2 test.mp4 Complete, uncut console output missing. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user http://ffmpeg.org/mailman/listinfo/ffmpeg-user Sorry for the delay here you go: toms-Mac:~ mahalko$ /Users/mahalko/Desktop/ffmpeg -i /Users/mahalko/Desktop/original.avi -strict -2 /Users/mahalko/Desktop/test.mp4 ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers built on Dec 30 2014 11:31:18 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Input #0, avi, from '/Users/mahalko/Desktop/original.avi': Metadata: encoder : Lavf55.19.104 Duration: 00:03:43.90, start: 0.00, bitrate: 1147 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (DX50 / 0x30355844), yuv420p, 720x406 [SAR 255:254 DAR 45900:25781], 941 kb/s, SAR 406:405 DAR 16:9, 29.97 fps, 29.97 tbr, 29.97 tbn, 30k tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 192 kb/s [libx264 @ 0x7f8b3281ae00] using SAR=406/405 [libx264 @ 0x7f8b3281ae00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x7f8b3281ae00] profile High, level 3.0 [libx264 @ 0x7f8b3281ae00] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to '/Users/mahalko/Desktop/test.mp4': Metadata: encoder : Lavf56.15.102 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x406 [SAR 406:405 DAR 16:9], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc Metadata: encoder : Lavc56.13.100 libx264 Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc56.13.100 aac Stream mapping: Stream #0:0 - #0:0 (mpeg4 (native) - h264 (libx264)) Stream #0:1 - #0:1 (mp3 (native) - aac (native)) Press [q] to stop, [?] for help frame= 6708 fps=132 q=-1.0 Lsize= 27415kB time=00:03:43.91 bitrate=1003.0kbits/s dup=1342 drop=0 video:23698kB audio:3508kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.767622% [libx264 @ 0x7f8b3281ae00] frame I:360 Avg QP:18.42 size: 10840 [libx264 @ 0x7f8b3281ae00] frame P:5009 Avg QP:22.66 size: 3794 [libx264 @ 0x7f8b3281ae00] frame B:1339 Avg QP:22.79 size: 1015 [libx264 @ 0x7f8b3281ae00] consecutive B-frames: 71.0% 5.2% 5.3% 18.4% [libx264 @ 0x7f8b3281ae00] mb I I16..4: 47.7% 49.9% 2.4% [libx264 @ 0x7f8b3281ae00] mb P I16..4: 11.7% 16.6% 0.6% P16..4: 15.6% 4.1% 2.3% 0.0% 0.0%skip:49.0% [libx264 @ 0x7f8b3281ae00] mb B I16..4: 1.6% 2.8% 0.1% B16..8: 18.8% 2.1% 0.3% direct: 1.1% skip:73.3% L0:56.1% L1:38.9% BI: 5.1% [libx264 @ 0x7f8b3281ae00] 8x8 transform intra:56.1% inter:88.6% [libx264 @ 0x7f8b3281ae00] coded y,uvDC,uvAC intra: 40.1% 60.0% 10.1% inter: 7.7% 8.2% 0.9% [libx264 @ 0x7f8b3281ae00] i16 v,h,dc,p: 48% 36% 14% 2% [libx264 @ 0x7f8b3281ae00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 21% 37% 4% 2% 3% 2% 3% 4% [libx264 @ 0x7f8b3281ae00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 27% 20% 3% 3% 4% 3% 3% 2% [libx264 @ 0x7f8b3281ae00] i8c dc,h,v,p: 41% 31% 25% 4% [libx264 @ 0x7f8b3281ae00] Weighted P-Frames: Y:4.0% UV:3.0% [libx264 @ 0x7f8b3281ae00] ref P L0: 68.7% 14.4% 11.4% 5.3% 0.2% [libx264 @ 0x7f8b3281ae00] ref B L0: 83.4% 13.7% 2.9% [libx264 @ 0x7f8b3281ae00] ref B L1: 94.7% 5.3% [libx264 @ 0x7f8b3281ae00] kb/s:867.33 toms-Mac:~ mahalko$ ___
Re: [FFmpeg-user] is ffmpeg using gpu???
Rick C. rickcorteza at gmail.com writes: Thanks Carl I didn’t attach any output because it was just a general question This is why I gave a general answer. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] is ffmpeg using gpu???
On Dec 30, 2014, at 5:14 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Rick C. rickcorteza at gmail.com writes: Thanks Carl I didn’t attach any output because it was just a general question This is why I gave a general answer. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user http://ffmpeg.org/mailman/listinfo/ffmpeg-user I see Carl sorry about that now I understand. How about something like this: ffmpeg -i original.avi -strict -2 test.mp4 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] is ffmpeg using gpu???
Rick C. rickcorteza at gmail.com writes: ffmpeg -i original.avi -strict -2 test.mp4 Complete, uncut console output missing. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] is ffmpeg using gpu???
On Dec 28, 2014, at 7:03 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Rick C. rickcorteza at gmail.com writes: If I’m using a compiled ffmpeg binary on a mac does it make use of the GPU? Only if you request it / command line and complete, uncut console output missing. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thanks Carl I didn’t attach any output because it was just a general question :-) How could I request it? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] is ffmpeg using gpu???
Rick C. rickcorteza at gmail.com writes: If I’m using a compiled ffmpeg binary on a mac does it make use of the GPU? Only if you request it / command line and complete, uncut console output missing. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user