[Libav-user] Writing Audio AVPacket without resampling

sebastian.wichmann at karlsruhe-it-solutions.com sebastian.wichmann at karlsruhe-it-solutions.com
Fri Mar 20 17:47:22 EET 2020


I'm very new to this subject, so I'm not sure what you mean.
At the moment I can't even tell you the codec of the read AVPacket. 
I can tell you that I'm trying to resample it to AV_SAMPLE_FMT_FLTP.

The problem that I'm currently facing is that I cant get the codec from an AVPacket. Is there anyway to gain access to this?

Best regards
Sebastian Wichman

-----Ursprüngliche Nachricht-----
Von: Libav-user <libav-user-bounces at ffmpeg.org> Im Auftrag von Carl Eugen Hoyos
Gesendet: Donnerstag, 19. März 2020 19:01
An: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. <libav-user at ffmpeg.org>
Betreff: Re: [Libav-user] Writing Audio AVPacket without resampling

Am Do., 19. März 2020 um 18:57 Uhr schrieb
<sebastian.wichmann at karlsruhe-it-solutions.com>:
> Hello,
> I’m trying to record the microphone on windows via dshow and ffmpeg in real time.
> The problem is, my code is to slow.
> At the moment I get a
> AVPacket
> Resample it
> And write it to a file
> The codec is unimportant for me at this stage of the program.
> So is it possible to write the received AVPacket to a mp4 file?

Did you try to write pcm_s16be?

Carl Eugen
Libav-user mailing list
Libav-user at ffmpeg.org

To unsubscribe, visit link above, or email libav-user-request at ffmpeg.org with subject "unsubscribe".

More information about the Libav-user mailing list