Multicore CPU run

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Multicore CPU run

Mahmood Naderan
Hi,
I want to run a multicore CPU job with ffmpeg and I think the command
should be

./ffmpeg  -i ../4k_normal.mp4 -vf scale_npp=1280:720 720p1.mp4

but it fails

./ffmpeg  -i ../4k_normal.mp4 -vf scale_npp=1280:720 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) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Impossible to convert between the formats supported by the filter 'graph 0
input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
[aac @ 0x5614c4890340] Qavg: 138.484
[aac @ 0x5614c4890340] 2 frames left in the queue on closing
Conversion failed!


May I ask what is missing?

Regards,
Mahmood
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Carl Eugen Hoyos-2
2019-01-31 20:39 GMT+01:00, Mahmood Naderan <[hidden email]>:

> I want to run a multicore CPU job with ffmpeg and I think
> the command should be
>
> ./ffmpeg  -i ../4k_normal.mp4 -vf scale_npp=1280:720 720p1.mp4

I believe if you want to use the cuda scaling filter you should also
use cuda decoding.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Mahmood Naderan
>I believe if you want to use the cuda scaling filter you should also
>use cuda decoding.

The original cuda compatible run is

./ffmpeg -hwaccel cuvid -c:v h264_cuvid -i ../4k_normal.mp4 -vf
scale_npp=1280:720 -c:v h264_nvenc 720p1.mp4

I want to do that with multicore CPU. That command basically scales a video
to 720p. So, that should be a normal job for CPU.


Regards,
Mahmood
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Carl Eugen Hoyos-2
2019-01-31 21:06 GMT+01:00, Mahmood Naderan <[hidden email]>:
>>I believe if you want to use the cuda scaling filter you should also
>>use cuda decoding.
>
> The original cuda compatible run is
>
> ./ffmpeg -hwaccel cuvid -c:v h264_cuvid -i ../4k_normal.mp4 -vf
> scale_npp=1280:720 -c:v h264_nvenc 720p1.mp4
>
> I want to do that with multicore CPU.

Then don't use the cuda filter.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Mahmood Naderan
>Then don't use the cuda filter.

So, my time measurements show that

CPU:  ./ffmpeg  -i ../4k_normal.mp4 -vf scale=1280:720 720p1.mp4
real    0m23.748s

GPU: ./ffmpeg -hwaccel cuvid -c:v h264_cuvid -i ../4k_normal.mp4 -vf
scale_npp=1280:720 -c:v h264_nvenc 720p1.mp4
real    0m20.889s



Do you think that is normal?

Regards,
Mahmood
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Brainiarc7
In reply to this post by Mahmood Naderan
On Thu, Jan 31, 2019, 22:45 Mahmood Naderan <[hidden email] wrote:

> Hi,
> I want to run a multicore CPU job with ffmpeg and I think the command
> should be
>
> ./ffmpeg  -i ../4k_normal.mp4 -vf scale_npp=1280:720 720p1.mp4
>
> but it fails
>
> ./ffmpeg  -i ../4k_normal.mp4 -vf scale_npp=1280:720 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) -> mpeg4 (native))
>   Stream #0:1 -> #0:1 (aac (native) -> aac (native))
> Press [q] to stop, [?] for help
> Impossible to convert between the formats supported by the filter 'graph 0
> input from stream 0:0' and the filter 'auto_scaler_0'
> Error reinitializing filters!
> Failed to inject frame into filter network: Function not implemented
> Error while processing the decoded data for stream #0:0
> [aac @ 0x5614c4890340] Qavg: 138.484
> [aac @ 0x5614c4890340] 2 frames left in the queue on closing
> Conversion failed!
>
>
> May I ask what is missing?
>
> Regards,
> Mahmood
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".



Pretty obvious.

You're missing a device upon which to run the scaler on.
In this case, you should initialise a device type cuda and then call if up
for scaling.

I'll provide an example of this when I'm on the computer.

You don't need to use NVDEC (and infact I cannot recommend it in production
because the decoder will gradually be saturated and bottleneck the encoder
when many simultaneous decodes are running. Note that hardware accelerated
decode is targeted for real time PLAYBACK without using any CPU resources,
and does not necessarily imply to be faster than a software based decode.)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Mahmood Naderan
>Note that hardware accelerated
>decode is targeted for real time PLAYBACK without using any CPU resources,
>and does not necessarily imply to be faster than a software based decode.

If I got the point, you are saying that GPU version is somehow used to free
CPU cores, so that CPU cores are ready for non-gpu task. However, we know
that video processing is GPU friendly due to the nature of that.
How that can be justified?



Regards,
Mahmood
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Brainiarc7
In reply to this post by Mahmood Naderan
On Sat, 2 Feb 2019 at 18:47, Mahmood Naderan <[hidden email]> wrote:

> >Then don't use the cuda filter.
>
> So, my time measurements show that
>
> CPU:  ./ffmpeg  -i ../4k_normal.mp4 -vf scale=1280:720 720p1.mp4
> real    0m23.748s
>
> GPU: ./ffmpeg -hwaccel cuvid -c:v h264_cuvid -i ../4k_normal.mp4 -vf
> scale_npp=1280:720 -c:v h264_nvenc 720p1.mp4
> real    0m20.889s
>
>
>
> Do you think that is normal?
>
> Regards,
> Mahmood
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


And yes, what you're seeing here is normal.

The scale filter is software based (and doesn't thread so well).
The scale_npp (and scale_cuda) run on the GPU and should be slightly faster
for single transcodes, and much faster with 1:N transcodes.
There's a patch set on this mailing list that speeds up 1:N transcodes when
paired with multiple scalers behind -filter_complex, via a new abr_pipeline
option...

For initializing the device for filtering, pass this to ffmpeg before the
-i section:

-init_hw_device cuda=0 -filter_hw_device 0


Assuming you're also running the NVENC encoder on that GPU number (via the
-gpu 0 ) option, etc, when you have multiple NVENC capable GPUs.

And for the scaler, you'll want to call up a hwupload+format filter chain
as shown:

format=nv12,hwupload,scale_npp=w=1280:h=720


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.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Brainiarc7
In reply to this post by Mahmood Naderan
On Sat, 2 Feb 2019 at 19:09, Mahmood Naderan <[hidden email]> wrote:

> >Note that hardware accelerated
> >decode is targeted for real time PLAYBACK without using any CPU resources,
> >and does not necessarily imply to be faster than a software based decode.
>
> If I got the point, you are saying that GPU version is somehow used to free
> CPU cores, so that CPU cores are ready for non-gpu task. However, we know
> that video processing is GPU friendly due to the nature of that.
> How that can be justified?
>
>
>
> Regards,
> Mahmood
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".



For DECODE: Yes. GPU-based hwaccel guarantees that no CPU resources will be
used for DECODE, where supported. See notes below.
Video processing is NOT necessarily "GPU friendly". It can however, be
significantly FASTER depending on the accelerator in use AND the encoder
implementation in place.
Also, others, such as VAAPI and Intel's QuickSync will also require a bit
more setup due to limited format support, etc. This implies that
performance will differ significantly on the content you're encoding and
the presets available to the encoder.

See the wiki for more details:
1. https://trac.ffmpeg.org/wiki/Hardware/QuickSync
2. https://trac.ffmpeg.org/wiki/Hardware/VAAPI
3. https://trac.ffmpeg.org/wiki/HWAccelIntro
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Mahmood Naderan
In reply to this post by Brainiarc7
>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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Brainiarc7
On Sat, 2 Feb 2019 at 19:39, Mahmood Naderan <[hidden email]> 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
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Multicore CPU run

Mahmood Naderan
>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




OK that is good

$ time ./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
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
File '720p1.mp4' already exists. Overwrite ? [y/N] y
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
Output #0, mp4, to '720p1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.26.100
    Stream #0:0(und): Video: h264 (h264_nvenc) (Main) (avc1 / 0x31637661),
cuda, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 29.97 fps, 30k tbn,
29.97 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc58.44.100 h264_nvenc
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay:
-1
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc58.44.100 aac
frame=   51 fps=0.0 q=17.0 size=     256kB time=00:00:02.15 bitrate=
971.3kbits/s speed=4frame=  156 fps=153 q=19.0 size=    1280kB
time=00:00:05.66 bitrate=1850.8kbits/s speed=5frame=  261 fps=171 q=19.0
size=    2048kB time=00:00:09.17 bitrate=1829.2kbits/s speed=6frame=  365
fps=180 q=35.0 size=    3584kB time=00:00:12.63 bitrate=2324.4kbits/s
speed=6frame=  464 fps=184 q=23.0 size=    4352kB time=00:00:15.92
bitrate=2238.2kbits/s speed= frame=  566 fps=187 q=23.0 size=    4608kB
time=00:00:19.34 bitrate=1951.6kbits/s speed=6frame=  671 fps=190 q=20.0
size=    5376kB time=00:00:22.84 bitrate=1927.5kbits/s speed=6frame=  771
fps=191 q=20.0 size=    5888kB time=00:00:26.19 bitrate=1841.6kbits/s
speed=6frame=  877 fps=193 q=18.0 size=    6656kB time=00:00:29.72
bitrate=1834.6kbits/s speed=6frame=  979 fps=194 q=22.0 size=    7680kB
time=00:00:33.11 bitrate=1900.1kbits/s speed=6frame= 1086 fps=196 q=21.0
size=    8448kB time=00:00:36.68 bitrate=1886.4kbits/s speed=6frame= 1185
fps=196 q=20.0 size=    9216kB time=00:00:39.96 bitrate=1889.3kbits/s
speed= frame= 1289 fps=197 q=22.0 size=   10496kB time=00:00:43.46
bitrate=1978.1kbits/s speed=6frame= 1392 fps=197 q=23.0 size=   11520kB
time=00:00:46.90 bitrate=2012.0kbits/s speed=6frame= 1499 fps=198 q=22.0
size=   12288kB time=00:00:50.48 bitrate=1994.1kbits/s speed=6frame= 1605
fps=199 q=23.0 size=   13568kB time=00:00:54.00 bitrate=2058.0kbits/s
speed= frame= 1708 fps=200 q=19.0 size=   14080kB time=00:00:57.42
bitrate=2008.7kbits/s speed=6frame= 1813 fps=200 q=19.0 size=   15104kB
time=00:01:00.95 bitrate=2030.0kbits/s speed=6frame= 1917 fps=200 q=20.0
size=   15872kB time=00:01:04.41 bitrate=2018.6kbits/s speed=6frame= 2023
fps=201 q=19.0 size=   16896kB time=00:01:07.96 bitrate=2036.5kbits/s
speed=6frame= 2120 fps=201 q=20.0 size=   17408kB time=00:01:11.19
bitrate=2003.1kbits/s speed=6frame= 2225 fps=201 q=21.0 size=   18688kB
time=00:01:14.69 bitrate=2049.5kbits/s speed=6frame= 2328 fps=201 q=20.0
size=   19456kB time=00:01:18.13 bitrate=2039.8kbits/s speed=6frame= 2434
fps=202 q=21.0 size=   20480kB time=00:01:21.66 bitrate=2054.4kbits/s
speed=6frame= 2542 fps=202 q=23.0 size=   21504kB time=00:01:25.26
bitrate=2066.1kbits/s speed=6frame= 2632 fps=201 q=27.0 size=   22784kB
time=00:01:28.25 bitrate=2114.8kbits/s speed=6frame= 2738 fps=202 q=22.0
size=   23808kB time=00:01:31.81 bitrate=2124.3kbits/s speed=6frame= 2755
fps=202 q=24.0 Lsize=   24066kB time=00:01:31.89 bitrate=2145.4kbits/s
speed=6.73x
video:22548kB audio:1441kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.322354%
[aac @ 0x56136ee35d40] Qavg: 135.844

real    0m15.387s
user    1m50.342s
sys    0m1.897s


15 seconds compared to 20 seconds which I achieved before.


Regards,
Mahmood
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".