Re: Change the Stream Info and Codec of MP4 file using FFMPEG muxing / remuxing code
I just thought I should answer my own question, in case anyone comes across it.
The whole re-initialization of the AVCodecContext by using avcodec_free_context, av_codec_alloc_context3, and avcodec_open2 takes anywhere from 0.2 seconds to 0.8 seconds from my measurements. Doing it sequentially during the encoding loop causes the skip.
So, just do it in another thread, then swap the AVCodecContext in when done.
From: Libav-user [mailto:[hidden email]] On Behalf Of Ganesh kumar
Sent: Sunday, April 02, 2017 6:19 PM
To: [hidden email] Subject: [Libav-user] Change the Stream Info and Codec of MP4 file using FFMPEG muxing / remuxing code
I was working project to change the Stream information and Codec
information of mp4 file. is it really possible change the stream
information and codec information using ffmpeg muxing/remuxing code?
consider the file type
1. major brand:isom
2. compatible brand: isommp42
3. resolution: 1280*780