[FFmpeg-user] Can't select appropriate encoder
Hi, I am piping a buffer to ffmpeg in my c code. I am using ffmpeg version 3.2.10-1~deb9u1+rpt1 on the raspberry pi. Ffmpeg is giving me issues with the following line. pipeout = popen("ffmpeg -y -f s32be -ar 131072 -ac 1 -i -c:a pmc_s32be hydro.wav, "w"); When I run the code, ffmpeg does not like the "-c:a pmc_s32e" part. I get an error stating: "-c:a Protocol not found. Did you mean file:-c:a?". When I change my code to "file:-c:a" I then get the error: "file:-c:a: No such file or directory". The reason I need this piece is because ffmpeg defaults to outputting pcm_s16le audio when I need pcm_s32be. I have tried "-c:a copy" as well. No luck. Any help would be appreciated. Thanks. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] piping raw audio data from c buffer
Hi, I have written C code that subscribes to a UDP multicast group, and stores the raw (hex) incoming audio data into a buffer. I was wondering if there is a way of piping this buffer with the raw audio data to ffmpeg within the C code in order to play the audio. I have seen examples of .wav files being piped to ffmpeg within C files, but not a buffer. I am not experienced with ffmpeg and any help/tips would be greatly appreciated. Thank you. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] down sampling
Hi, Hopefully this is an appropriate question for the forums. My goal is to receive a live audio stream that is being sampled at 131,072 Hz and re-sample it at 44.1 kHz before outputting it through my computers speakers. Is this a task ffmpeg can perform? Thank you. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".