various encoder specific settings ( aac and aac_at).various audio filters (resample, manual dither bit depth to 16 thinking that the 32>16bit was the problem etc).various buffer settings including lookahead settings.The codecs 264_videotoolbox and aac_at are Apple-specific hardware encoders. I've spent a couple of hours trying everything I can think of and have been all over the ffmpeg documentation. I thought this was initially a RTMP server or playback jitter buffer kind of issue, but with the problem appearing in the output file it clearly is an encoding issue. It sounds like the audio is arriving out of order, creating lots of clipping and distortion when it is re-assembled. This is the output log (pastebin link because reddit formatting).flv file (dropbox link) using the following ffmpeg settings:įfmpeg -f avfoundation -i "2:6" -s 1920x1080 -r 60 -vcodec h264_videotoolbox -pix_fmt nv12 -b:v 14000K -f flv -acodec aac_at -ar 44100 -t 10 output.flv This has been successful with video only (20% GPU and 18% CPU) managing 200ms lag with ffplay on the streaming PC (600ms in OBS itself), but I cannot figure out how to solve the audio choppiness which to me sounds like the audio stream is being rendered out of order. I'm streaming software development on Twitch and OBS was killing my system resources (iGPU usage introduced thermal throttling and saturated PCI bus), so I'm trying to cast my screen and desktop audio to RTMP over the network for OBS on a seperate computer to release resources on the development machine (Macbook Intel i5 running macOS Ventura 13).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |