FFmpeg libav tutorial - learn how media works from basic to transmuxing, transcoding and more. Translations: πΊπΈ π¨π³ π°π· πͺπΈ π»π³ π§π·
Thanks for putting this tutorial together. This help is extremely valuable!
I've adapted transcode.c to take a video and audio input using avfoundation (specifically from a webcam and inbuilt microphone). Instead of an output file I also want to stream to a rtmp server with the audio converted from PCM to AAC.
The video packets are successfully received and transcoded. However, the audio packets appear empty? AVPacket->side_data is null and AVPacket->buf->data is an empty pointer. Think this is causing avcodec_send_frame to crash with an empty AVFrame in encode_audio?
Hi @joshprewer what settings are you using for AAC? maybe you can try to isolate the problem trying to convert PCM to AAC files and see if the issue remains.
Hi there!
Thanks for putting this tutorial together. This help is extremely valuable!
I've adapted
transcode.c
to take a video and audio input using avfoundation (specifically from a webcam and inbuilt microphone). Instead of an output file I also want to stream to a rtmp server with the audio converted from PCM to AAC.The video packets are successfully received and transcoded. However, the audio packets appear empty?
AVPacket->side_data
is null andAVPacket->buf->data
is an empty pointer. Think this is causingavcodec_send_frame
to crash with an empty AVFrame inencode_audio
?Any tips/help will be much appreciated!