Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

GPU Acceleration for UDP stream

Discussions about problems encountered using ffmpeg.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

GPU Acceleration for UDP stream

Postby dinesh24 » Fri Sep 22, 2017 9:40 am

Hello,

We need enable GPU acceleration for multibitrate UDP stream. We have installed the NVIDIA GeForce GTX 1080 graphic on my worksystem.

I have use the below FFMPEG command to generate mutibitrate UDP stream.

We parameter should i mention so ffmpeg processs the video using GPU acceleration.

Code: Select all
ffmpeg.exe -re -i "C:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.7.1/content/sample.mp4"  -vcodec libx264 -s 1920x1080  -vb 4500k -r 30 -g 60 -vprofile main -level 5 -pix_fmt yuv420p -acodec aac -ab 64k -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f mpegts udp://127.0.0.1:1111/ -vcodec libx264 -s 1280x720  -vb 3000k -r 30 -g 60 -vprofile main -level 5 -pix_fmt yuv420p -acodec aac -ab 64k -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f mpegts udp://127.0.0.1:1112/ -vcodec libx264 -s 854x480  -vb 1200k -r 30 -g 60 -vprofile main -level 5 -pix_fmt yuv420p -acodec aac -ab 64k -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f mpegts udp://127.0.0.1:1113


Thanks
Dinesh
dinesh24
 
Posts: 51
Joined: Fri May 06, 2016 4:26 pm

Re: GPU Acceleration for UDP stream

Postby llogan » Fri Sep 22, 2017 5:46 pm

See:
https://trac.ffmpeg.org/wiki/HWAccelIntro
https://trac.ffmpeg.org/wiki/HWAccelIntro#NVENC
https://trac.ffmpeg.org/wiki/HWAccelInt ... IDNvDecode

I have performed little hardware accelerated decoding or encoding so I won't be able to provide anything more than those links.

Unrelated to this posts question:
I doubt you need "-strict experimental": that's for old ffmpeg for use with the native AAC encoder.

You can make your command somewhat more efficient by using the tee muxer to encode the audio only once. See the example in:
https://trac.ffmpeg.org/wiki/Creating%2 ... eudo-muxer
But if your current command works fine as is using tee may make it needlessly more complex.
Get an answer more quickly by providing your actual ffmpeg command and the complete console output. Use the code button to format your command and output or your question will be ignored.
llogan
 
Posts: 2360
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska


Return to ffmpeg

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 6 guests