Tecnologia e non solo

maggio 9, 2013

FFmpeg, OpenCL sui filtri deshake e unsharp, test.

Filed under: Debian,Video — telperion @ 2:30 pm

Oltre a x264, anche ffmpeg 1.2+git ha incluso l’accelerazione OpenCL,
per ora su due filtri deshake e unsharp.

Info sui commit qui.

Vediamo il test su Debian sid 64, CPU Intel Q8300, GPU NVIDIA GT 440.

Deshake senza OpenCL.

~time ffmpeg -y -i /media/scambio/Amazing_Caves_1080.wmv \
-vf deshake=opencl=0 \
-threads 0 -c:v libx264 \
-preset fast -tune film -an \
-f matroska -b:v 1800k video.mkv

ffmpeg version N-52849-gacc4a7e Copyright (c) 2000-2013 the FFmpeg developers
built on May 7 2013 14:10:09 with gcc 4.7 (Debian 4.7.2-5)

Input #0, asf, from '/media/scambio/Amazing_Caves_1080.wmv':
Duration: 00:01:25.50, start: 0.000000, bitrate: 8295 kb/s

[libx264 @ 0x1c6a580] using SAR=4/3
[libx264 @ 0x1c6a580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x1c6a580] profile High, level 4.0

Stream mapping:
Stream #0:1 -> #0:0 (wmv3 -> libx264)
Press [q] to stop, [?] for help
frame= 2037 fps=7.9 q=-1.0 Lsize= 17159kB time=00:01:24.87 bitrate=1656.1kbits/s
video:17143kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.091572%

real 4m19.541s

Deshake con OpenCL.

~time ffmpeg -y -i /media/scambio/Amazing_Caves_1080.wmv \
-vf deshake=opencl=1 \
-threads 0 -c:v libx264 \
-preset fast -tune film -an \
-f matroska -b:v 1800k video.mkv

ffmpeg version N-52849-gacc4a7e Copyright (c) 2000-2013 the FFmpeg developers
built on May 7 2013 14:10:09 with gcc 4.7 (Debian 4.7.2-5)

Input #0, asf, from '/media/scambio/Amazing_Caves_1080.wmv':
Duration: 00:01:25.50, start: 0.000000, bitrate: 8295 kb/s

[libx264 @ 0x1d4f580] using SAR=4/3
[libx264 @ 0x1d4f580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x1d4f580] profile High, level 4.0

Stream mapping:
Stream #0:1 -> #0:0 (wmv3 -> libx264)
Press [q] to stop, [?] for help
frame= 2037 fps= 15 q=-1.0 Lsize= 17158kB time=00:01:24.87 bitrate=1656.1kbits/s
video:17143kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.091568%

real 2m12.312s

Unsharp senza OpenCL.

~time ffmpeg -y -i /media/scambio/Amazing_Caves_1080.wmv \
-vf unsharp=opencl=0 \
-threads 0 -c:v libx264 \
-preset fast -tune film -an \
-f matroska -b:v 1800k video.mkv

ffmpeg version N-52849-gacc4a7e Copyright (c) 2000-2013 the FFmpeg developers
built on May 7 2013 14:10:09 with gcc 4.7 (Debian 4.7.2-5)

Input #0, asf, from '/media/scambio/Amazing_Caves_1080.wmv':
Duration: 00:01:25.50, start: 0.000000, bitrate: 8295 kb/s

[libx264 @ 0x18be580] using SAR=4/3
[libx264 @ 0x18be580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x18be580] profile High, level 4.0

Stream mapping:
Stream #0:1 -> #0:0 (wmv3 -> libx264)
Press [q] to stop, [?] for help
frame= 2037 fps= 23 q=-1.0 Lsize= 17035kB time=00:01:24.87 bitrate=1644.2kbits/s
video:17020kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.092012%

real 1m28.516s

Unsharp con OpenCL.

~time ffmpeg -y -i /media/scambio/Amazing_Caves_1080.wmv \
-vf unsharp=opencl=1 \
-threads 0 -c:v libx264 \
-preset fast -tune film -an \
-f matroska -b:v 1800k video.mkv

ffmpeg version N-52849-gacc4a7e Copyright (c) 2000-2013 the FFmpeg developers
built on May 7 2013 14:10:09 with gcc 4.7 (Debian 4.7.2-5)

Input #0, asf, from '/media/scambio/Amazing_Caves_1080.wmv':
Duration: 00:01:25.50, start: 0.000000, bitrate: 8295 kb/s

[libx264 @ 0x2f9c580] using SAR=4/3
[libx264 @ 0x2f9c580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x2f9c580] profile High, level 4.0

Stream mapping:
Stream #0:1 -> #0:0 (wmv3 -> libx264)
Press [q] to stop, [?] for help
frame= 2037 fps= 23 q=-1.0 Lsize= 17035kB time=00:01:24.87 bitrate=1644.2kbits/s
video:17020kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.092012%

real 1m29.834s

Risultati controversi,
accelerazione quasi del 100% sullo stabilizzatore deskake,
mentre il più utile unsharp è anche leggermente più lento con OpenGL.
Mah.

Annunci

%d blogger hanno fatto clic su Mi Piace per questo: