[FFmpeg-user] Multicore CPU run

Dennis Mungai dmngaie at gmail.com
Sat Feb 2 19:14:22 EET 2019


On Sat, 2 Feb 2019 at 19:39, Mahmood Naderan <mahmood.nt at gmail.com> wrote:

> >Using your sample above:
> >
> >./ffmpeg -init_hw_device cuda=0 -i ../4k_normal.mp4 -vf
> >format=nv12,hwupload,scale_npp=1280:720 -c:v h264_nvenc 720p1.mp4
> >
> >Try that and report back.
> >
> >
>
> It fails
>
>
> $ time ./ffmpeg -init_hw_device cuda=0 -i ../4k_normal.mp4 -vf
> format=nv12,hwupload,scale_npp=1280:720 -c:v h264_nvenc 720p1.mp4
> ffmpeg version N-93005-gd92f06eb66 Copyright (c) 2000-2019 the FFmpeg
> developers
>   built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
>   configuration: --enable-cuda --enable-cuvid --enable-nvenc
> --enable-nonfree --enable-filter=scale_cuda --enable-cuda-sdk
> --enable-libnpp --extra-cflags=-I/usr/local/cuda/include
> --extra-ldflags=-L/usr/local/cuda/lib64
>   libavutil      56. 26.100 / 56. 26.100
>   libavcodec     58. 44.100 / 58. 44.100
>   libavformat    58. 26.100 / 58. 26.100
>   libavdevice    58.  6.101 / 58.  6.101
>   libavfilter     7. 48.100 /  7. 48.100
>   libswscale      5.  4.100 /  5.  4.100
>   libswresample   3.  4.100 /  3.  4.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../4k_normal.mp4':
>   Metadata:
>     major_brand     : isom
>     minor_version   : 512
>     compatible_brands: isomiso2avc1mp41
>     encoder         : Lavf57.71.100
>   Duration: 00:01:31.91, start: 0.000000, bitrate: 32684 kb/s
>     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
> 3840x2160 [SAR 1:1 DAR 16:9], 32482 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
> 59.94 tbc (default)
>     Metadata:
>       handler_name    : VideoHandler
>     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
> stereo, fltp, 195 kb/s (default)
>     Metadata:
>       handler_name    : SoundHandler
> Stream mapping:
>   Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
>   Stream #0:1 -> #0:1 (aac (native) -> aac (native))
> Press [q] to stop, [?] for help
> [hwupload @ 0x56031cbe3d80] A hardware device reference is required to
> upload frames to.
> [Parsed_hwupload_1 @ 0x56031d237980] Query format failed for
> 'Parsed_hwupload_1': Invalid argument
> Error reinitializing filters!
> Failed to inject frame into filter network: Invalid argument
> Error while processing the decoded data for stream #0:0
> [aac @ 0x560319e54400] Qavg: 138.484
> [aac @ 0x560319e54400] 2 frames left in the queue on closing
> Conversion failed!
>
>
>
>
> Regards,
> Mahmood
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


Correction:

./ffmpeg -init_hw_device cuda=0 -filter_hw_device 0 -i ../4k_normal.mp4 -vf
format=nv12,hwupload,scale_npp=1280:720 -c:v h264_nvenc 720p1.mp4


More information about the ffmpeg-user mailing list