Hello, 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-boun...@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@ffmpeg.org> Betreff: Re: [Libav-user] Writing Audio AVPacket without resampling Am Do., 19. März 2020 um 18:57 Uhr schrieb <sebastian.wichm...@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@ffmpeg.org https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email libav-user-requ...@ffmpeg.org with subject "unsubscribe". _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email libav-user-requ...@ffmpeg.org with subject "unsubscribe".