ffcapture --audio-mode="noencode" --audio-encoding="aac" ERROR

kvk

New Member
What is the format of the audio stream output from an RTMP OBS stream? According to the documentation, it should be 'AAC', but not sure where the problem lies.

OBS 26.02, Windows 10. Passing RTMP stream via ffmpeg to remote server in the terminal. Works perfectly until attempting to use ffcapture instead of ffencode; ffcapture requires explicit definitions of the video and audio containers.. Video works fine with

ffcapture --video-mode="noencode" --video-codec="VP8" --video-encoding="H264"

Audio is rejected as:

ffcapture --audio-mode="noencode" --audio-codec="Opus" --audio-encoding="AAC"

and returns error as

Option 'audio-encoding' is defined with a bad format.

I've gone through the list of ffmpeg supported audio codecs but am unable to find the proper syntax or format.

Thanks so much!!
 

kvk

New Member
Follow-up:

I found the issue. The problem wasn't the ffmpeg flag, it was that the software sending the RTMP directly from OBS to the WebRTC server did not include an AAC decoder. So the error message was NOT from ffmpeg, as I had assumed; it was operating perfectly, passing the raw frames from OBS to the server and it was the server that was unable to handle an AAC container.

Nothing to see here. Carry on. :-p
 
Top