Re: [Libav-user] How to solve 'container format requires global headers' problem?

2012-11-14 Thread Nicolas George
Le quartidi 24 brumaire, an CCXXI, FFMPEG a écrit : When I run my program, there's warning 'Codec for stream 0 does not use global headers but container format requires global headers' Look in doc/examples/muxing.c and search for global in it. Regards, -- Nicolas George signature.asc

[Libav-user] demuxing streams and mux them back to file

2012-11-14 Thread Wuerfel, Hannes
Hey all, I'm trying to write a simple program which decodes the video and audio frames and encodes and mux it back to a file. How can I generally accomplish that? decoding and encoding the videostream for itself works. decoding and encoding the audiostream for itself works. (as shown in the

Re: [Libav-user] demuxing streams and mux them back to file

2012-11-14 Thread Carl Eugen Hoyos
Wuerfel, Hannes Hannes.Wuerfel@... writes: I'm trying to write a simple program which decodes the video and audio frames and encodes and mux it back to a file. How can I generally accomplish that? Basically I took the demuxing.c example and wanted to mux the video and audio frames back

Re: [Libav-user] demuxing streams and mux them back to file

2012-11-14 Thread Wuerfel, Hannes
Hey Carl, thank you for your hint! With that I was able to create a video stream, an audio stream and muxed them into a file. But I guess I was too naive to think that I could decode the frames and encode them back to file as they come in without setting new presentation time stamps and so on.

Re: [Libav-user] when to call av_register_all()

2012-11-14 Thread Quy Pham Sy
do i need to unregister when there is no need of ffmpeg or before the program exit? On Thu, Nov 15, 2012 at 12:55 AM, Ron Woods rwo...@vaytek.com wrote: Call av_register_all() only at the beginning of your main program, not before each open file; but, depending on what you are doing, you may

[Libav-user] Can't find encoder

2012-11-14 Thread FFMPEG
Hi, My avcodec_find_encoder(CODEC_ID_THEORA) returns null ptr Is there anywhere I can check why this encoder is not supported? Thanks! ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

[Libav-user] How to correctly split AVFrame with audio samples on encoding

2012-11-14 Thread hatred
Hi List, I write live transcoder for our IP-cameras, in some cases audio straem also need to transcoder. But I have a problem with non-equal frame_size in input codec context and output codec context: 1. I read audio packet 2. I decode it with avcodec_decode_audio4() It provides AVFrame's with

Re: [Libav-user] Can't find encoder

2012-11-14 Thread Alan
There is noting else we can do to help you out, since you provide little valuable information. OK, firstly make sure that you already registered the codecs. check the API avcodec_register_all() On Thursday, November 15, 2012 02:17:44 PM FFMPEG wrote: Hi, My