<div dir="ltr">Hi Ricky,<div><br></div><div>Which version of ffmpeg you are using.</div><div>use <span style="font-family:tahoma,sans-serif;font-size:12.8px">AVStream.time_base</span><span style="font-family:tahoma,sans-serif;font-size:12.8px"> , then your mp4 is readable.</span></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br><div>Thanks</div><div>suprith</div></div></div>
<br><div class="gmail_quote">On Tue, Apr 12, 2016 at 7:49 PM, Riccardo Corsi <span dir="ltr"><<a href="mailto:riccardo.corsi@kairos3d.it" target="_blank">riccardo.corsi@kairos3d.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>