[Libav-user] Encode frames with h264 and muxing to mp4
Riccardo Corsi
riccardo.corsi at kairos3d.it
Fri Apr 15 16:05:16 CEST 2016
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 <suprith1230 at gmail.com>
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 <
> riccardo.corsi at kairos3d.it> 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
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160415/41606883/attachment.html>
More information about the Libav-user
mailing list