Hi Suprith, thanks to your suggestion I've realized that I was using and version of the muxing.c example not matching the library I was linking against. I've downloaded consistent releases and now everything works (time_base was one among several differences...).
Ricky On Wed, Apr 13, 2016 at 5:55 AM, Suprith Gowda <[email protected]> wrote: > Hi Ricky, > > Which version of ffmpeg you are using. > use AVStream.time_base , then your mp4 is readable. > > > Thanks > suprith > > On Tue, Apr 12, 2016 at 7:49 PM, Riccardo Corsi < > [email protected]> wrote: > >> Hi all, >> >> I'm trying to code in my application a way to encode some frames I have >> in memory into an h264 mp4 video, which is exactly what I get from ffmpeg >> tool with the frames dumped to images and with following command: >> ffmpeg -f image2 -framerate 30 -i frame_%04d.jpg -vcodec libx264 -b:v >> 9600k samplevideo.mp4 >> >> Now I achieved to encode a raw stream with h264 by following the >> decoding_encoding.c example. >> >> I'm lost with the muxing. >> Even the simple muxing.c example gives me some warning (here below) and >> then hangs forever... if I kill it, the produced mp4 is not readable. >> >> --- warnings ---------------------------------------- >> Stream #0:0: Video: h264 (libx264), yuv420p, 352x288, q=-1--1, 400 kb/s, >> 25 tbc >> Stream #0:1: Audio: aac (LC), 44100 Hz, 2 channels, fltp, 64 kb/s >> [mp4 @ 00000188e56e64c0] Using AVStream.codec.time_base as a timebase >> hint to the muxer is deprecated. Set AVStream.time_base instead. >> [mp4 @ 00000188e56e64c0] Using AVStream.codec.time_base as a timebase >> hint to the muxer is deprecated. Set AVStream.time_base instead. >> -------------------------------------------------------- >> >> Besides that, I'm not sure how to combine the encoding example with the >> muxing one - can you provide a good example showing how to mix encoding + >> muxing? >> >> Thank you, >> Ricky >> >> >> >> _______________________________________________ >> Libav-user mailing list >> [email protected] >> http://ffmpeg.org/mailman/listinfo/libav-user >> >> > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
