[Libav-user] Encode frames with h264 and muxing to mp4
Riccardo Corsi
riccardo.corsi at kairos3d.it
Tue Apr 12 16:19:48 CEST 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160412/63bef0c2/attachment.html>
More information about the Libav-user
mailing list