Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4419 closed defect (fixed)

ffmpeg nvenc -> h264 profile problem

Reported by: michbott Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: nvenc
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi,

have problem to set profile :

this is the script to build latest ffmpeg git whit necessary library :

http://www.mediafire.com/view/oc79wc94dvr6xf9/ffmpeg_nvenc.sh

when try to set profile i give this error :

ffmpeg -i "udp://@:1234?fifo_size=5000000&overrun_nonfatal=1" -map 0:p:7140:0 -map 0:p:7140:1 -acodec libfdk_aac -ac 2 -ar 44100 -ab 96k -vcodec nvenc -aspect 16:9 -s 1280x720 -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize:v 3000k -r 25 -g 150 -keyint_min 50 -profile:v Main -preset hq -f flv "rtmp://1.1.1.1.:1935/live/testa"

.....
[nvenc @ 0x3db1800] [Eval @ 0x7fffaff8aec0] Undefined constant or missing '(' in 'Main'
[nvenc @ 0x3db1800] Unable to parse option value "Main"
[nvenc @ 0x3db1800] Error setting option profile to value Main.
Output #0, flv, to 'rtmp://37.187.140.144:22544/live/testa':

Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 25 fps
Metadata:

encoder : Lavc56.32.100 nvenc

Stream #0:1(ita): Audio: aac, 0 channels, 128 kb/s
Metadata:

encoder : Lavc56.32.100 libfdk_aac

Stream mapping:

Stream #0:0 -> #0:0 (h264 (native) -> h264 (nvenc))
Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))

Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

if not set the profile work :

ffmpeg -i "udp://@:1234?fifo_size=5000000&overrun_nonfatal=1" -map 0:p:7140:0 -map 0:p:7140:1 -acodec libfdk_aac -ac 2 -ar 44100 -ab 96k -vcodec nvenc -aspect 16:9 -s 1280x720 -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize:v 3000k -r 25 -g 150 -keyint_min 50 -preset hq -f flv "rtmp://1.1.1.1:1935/live/test"

frame= 222 fps= 39 q=0.0 size= 1648kB time=00:00:10.08 bitrate=1339.6kbits/s

Any kind of help can be graded !

Change History (4)

comment:1 Changed 4 years ago by michbott

Hi,

have problem to set profile :

this is the script to build latest ffmpeg git whit necessary library :

http://www.mediafire.com/view/oc79wc94dvr6xf9/ffmpeg_nvenc.sh

when try to set profile i give this error :

ffmpeg -i "udp://@:1234?fifo_size=5000000&overrun_nonfatal=1" -map 0:p:7140:0 -map 0:p:7140:1 -acodec libfdk_aac -ac 2 -ar 44100 -ab 96k -vcodec nvenc -aspect 16:9 -s 1280x720 -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize:v 3000k -r 25 -g 150 -keyint_min 50 -profile:v Main -preset hq -f flv "rtmp://1.1.1.1.:1935/live/testa"

.....
[nvenc @ 0x3db1800] [Eval @ 0x7fffaff8aec0] Undefined constant or missing '(' in 'Main'
[nvenc @ 0x3db1800] Unable to parse option value "Main"
[nvenc @ 0x3db1800] Error setting option profile to value Main.
Output #0, flv, to 'rtmp://1.1.1.1:1935/live/test':

Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 25 fps
Metadata:

encoder : Lavc56.32.100 nvenc

Stream #0:1(ita): Audio: aac, 0 channels, 128 kb/s
Metadata:

encoder : Lavc56.32.100 libfdk_aac

Stream mapping:

Stream #0:0 -> #0:0 (h264 (native) -> h264 (nvenc))
Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))

Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

if not set the profile work :

ffmpeg -i "udp://@:1234?fifo_size=5000000&overrun_nonfatal=1" -map 0:p:7140:0 -map 0:p:7140:1 -acodec libfdk_aac -ac 2 -ar 44100 -ab 96k -vcodec nvenc -aspect 16:9 -s 1280x720 -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize:v 3000k -r 25 -g 150 -keyint_min 50 -preset hq -f flv "rtmp://1.1.1.1:1935/live/test"

frame= 222 fps= 39 q=0.0 size= 1648kB time=00:00:10.08 bitrate=1339.6kbits/s

Any kind of help can be graded !

comment:2 Changed 4 years ago by michbott

Ok now select profile "main" "high" "baseline" work!

fix OK.

https://github.com/FFmpeg/FFmpeg/commit/764f87b6ab8eb08f909a347fd3a804a935f5ea2b

comment:3 Changed 4 years ago by michbott

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords nvenc added
  • Priority changed from important to normal
Note: See TracTickets for help on using tickets.