Hi,
x264 is installed on my system. If I use output_example like that it works fine
but without the good container:
./output_example test.h264
Yohann Martineau a écrit :
> Le mardi 17 juin 2008 à 11:33 +0200, David REGADE a écrit :
>> Hi,
>>
>> I try to produce h264 encoded videos in mp4 container using libav* instead
>> of
>> ffmpeg directly. I have compiled and tested output_example.c like that:
>>
>> ./output_example test.mp4
>>
>> But it produces mp4 file with mp4 encoded video stream. So I have modified
>> output_example.c to force CCODEC_ID_H264 instead of default codec
>> CODEC_ID_MPEG4:
>>
>> .....
>> /* allocate the output media context */
>> oc = av_alloc_format_context();
>> if (!oc) {
>> fprintf(stderr, "Memory error\n");
>> exit(1);
>> }
>>
>> /* need h264 codec */
>> fmt->video_codec = CODEC_ID_H264;
>> oc->oformat = fmt;
>>
>> snprintf(oc->filename, sizeof(oc->filename), "%s", filename);
>> .....
>>
>> But when I launch output_example like above the program crash with a
>> segfault.
>>
>> Does anyone know what else I have modify in output_example to produce h264
>> encoded video stream in mp4 file format ?
>>
>
> did you install x264? it's x264 which *encodes* to H264, not ffmpeg
> directly.
>
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
--
David REGADE
Ingénieur R&D / Chef de projet
Viewsurf S.A.S.
17 avenue des Mondaults
33270 Floirac - France
Tel: 05.57.22.54.40
Fax: 05.56.08.22.62
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user