lkakcm.blogg.se

Ffmpeg build alsa
Ffmpeg build alsa








ffmpeg build alsa

To encode silent audio you can add a graph input like this: This will encode a black 320x240 image at 10fps. Since you want an RTMP stream you should do this by replacing video or audio with a small black frame or with silence so you always have both audio and video in the multiplexed stream.įor example to reduce video load, use options like: Try running ffmpeg without the audio, and then without the video while monitoring the CPU usage and final bitrate to see if either is excessive. You can find the full list of video encoding options using ffmpeg -h encoder=h264_omx. You don't say anything about testsrc.Īll the video data in the RTMP multiplexed stream needs to be sent over your internet connection in a timely manner and data rate will have a big effect on the quality of your stream playback so you probably need to tune your video encoder. You only have -f lavfi -i testsrc -c:v h264_omx for the video options. It would first be a good idea to eliminate the video, especially as you're doing nothing obvious to set its bitrate or framerate. It could be with computational load or with excessive total bitstream rate. The main priority is to determine where the bottleneck applies. I don't know why #3 works but #2 and #1 cause problems. ~/special/ffmpeg/ffmpeg -report -re -i temp.v -f lavfi -i testsrc -c:v h264_omx -ac 2 -acodec aac -ab 32k -bufsize 32k -async 2 -f flv rtmp://209.85.230.23/live2/KEY This results in a coherent audio stream, but with skipping every 5 seconds or so.Īrecord recorded to a wav file, piped into FFMPEGĪrecord -Dmic_sv -c2 -r48000 -fS32_LE -twav temp.v & This results in constant stuttering and choppiness.Īrecord -Dmic_sv -c2 -r48000 -fS32_LE | ~/special/ffmpeg/ffmpeg -report -acodec pcm_s32le -i -f lavfi -i testsrc -c:v h264_omx -acodec aac -ab 32k -bufsize 32k -f flv rtmp://209.85.230.23/live2/KEY ~/special/ffmpeg/ffmpeg -report -f alsa -ar 48000 -ac 2 -acodec pcm_s32le -i mic_sv -f lavfi -i testsrc -c:v h264_omx -c:a aac -ab 32k -bufsize 32k -f flv rtmp://209.85.230.23/live2/KEY I would like to stream using FFMPEG and ALSA (which I have already compiled) but I'm running into stuttering issues. I am trying to stream audio from my Pi Zero and my I2s MEMS mic.










Ffmpeg build alsa