<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi all,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">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:</div><div class="gmail_default" style="font-family:tahoma,sans-serif">ffmpeg -f image2 -framerate 30 -i frame_%04d.jpg -vcodec libx264 -b:v 9600k  samplevideo.mp4</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Now I achieved to encode a raw stream with h264 by following the decoding_encoding.c example.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I'm lost with the muxing. </div><div class="gmail_default" style="font-family:tahoma,sans-serif">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.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">--- warnings ----------------------------------------</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><div class="gmail_default"> Stream #0:0: Video: h264 (libx264), yuv420p, 352x288, q=-1--1, 400 kb/s, 25 tbc</div><div class="gmail_default">    Stream #0:1: Audio: aac (LC), 44100 Hz, 2 channels, fltp, 64 kb/s</div><div class="gmail_default">[mp4 @ 00000188e56e64c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.</div><div class="gmail_default">[mp4 @ 00000188e56e64c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.</div><div class="gmail_default">--------------------------------------------------------</div></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><div class="gmail_default">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?</div><div class="gmail_default"><br></div><div class="gmail_default">Thank you,</div><div class="gmail_default">Ricky</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div></div></div>