Decode h.264 to YUV on GPU

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

Decode h.264 to YUV on GPU

Mahmood Naderan
Hi,
For this command

an input with this specification

./ffmpeg -vsync 0 -c:v h264_cuvid -i in.mp4 -f rawvideo out.mp4

and two input files
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], 8239 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
59.94 tbc (default)

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)



I see that GPU utilization for the first is less than 5% while for the
second is about 12%.

The difference is (High) and (Main). 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: Decode h.264 to YUV on GPU

Carl Eugen Hoyos-2
2019-01-24 22:25 GMT+01:00, Mahmood Naderan <[hidden email]>:

> ./ffmpeg -vsync 0 -c:v h264_cuvid -i in.mp4 -f rawvideo out.mp4
>
> and two input files
> Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
> 1920x1080 [SAR 1:1 DAR 16:9], 8239 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
> 59.94 tbc (default)
>
> 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)
>
> I see that GPU utilization for the first is less than 5% while for the
> second is about 12%.
>
> The difference is (High) and (Main). Do you think that is normal?

Your question is very difficult to understand:
Are you surprised that the values for the utilization are different?
Or do you find them too high? Or too low?

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: Decode h.264 to YUV on GPU

Mahmood Naderan
>Your question is very difficult to understand:
>Are you surprised that the values for the utilization are different?
>Or do you find them too high? Or too low?

Different and low.
The example is given in the Nvidia website.

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: Decode h.264 to YUV on GPU

AMIT KUMAR
Hi,
Actually at any time i get pair of audio and video file whereas both are
same name different extension whereas  audio as .wav and video as .webm.
So, both files have different different size or same size.Now the issue is
i have a pair of video and audio files whose video size is 7 mb and audio
size is 17 mb when they execute to create mp4 , then it success whose mp4
size is 5.18 MB.

At the same time again i have a pair of files whose size is 4.65 MB of
Video as .webm and 17 MB of Audio as .wav then, when they execute then Mp4
files are create but size becomes  0 MB.

so i need help why this becomes 0 MB.

Thanks & Regards
Amit Kumar

On Fri, Jan 25, 2019 at 1:19 PM Mahmood Naderan <[hidden email]>
wrote:

> >Your question is very difficult to understand:
> >Are you surprised that the values for the utilization are different?
> >Or do you find them too high? Or too low?
>
> Different and low.
> The example is given in the Nvidia website.
>
> 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".
_______________________________________________
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: Decode h.264 to YUV on GPU

Carl Eugen Hoyos-2
In reply to this post by Mahmood Naderan
2019-01-25 8:49 GMT+01:00, Mahmood Naderan <[hidden email]>:
>>Your question is very difficult to understand:
>>Are you surprised that the values for the utilization are different?
>>Or do you find them too high? Or too low?
>
> Different

Given that 3840x2160 is exactly four times as large as 1920x1080,
an increase factor of 2,5 seems not surprising to me.

> and low.

Only a very small part of the GPU is used for video decoding
and I believe the values you posted have very little significance.
They may only show that copying the raw video data has some
performance effect.

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: Decode h.264 to YUV on GPU

AMIT KUMAR
In reply to this post by Mahmood Naderan
Hi,
I need urgent basis solution for that why that becomes 0 kb.Please give me
the solution at High priority basis its urgent.My client get really
annoying.
Please.
The command line which i used that is :  [ -i
 407118_agentPL27_2018-09-26T16-18-17.webm
 407118_agentPL27_2018-09-26T16-18-17_in.mp4]
 407118.rar
<https://drive.google.com/file/d/1a2ysr9henxPlC1vHnyVdbKD5iSV0r1rD/view?usp=drive_web>

Thanks & regards
Amit Kumar

On Fri, Jan 25, 2019 at 1:19 PM Mahmood Naderan <[hidden email]>
wrote:

> >Your question is very difficult to understand:
> >Are you surprised that the values for the utilization are different?
> >Or do you find them too high? Or too low?
>
> Different and low.
> The example is given in the Nvidia website.
>
> 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".
_______________________________________________
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".