Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Adi Shavit
Hi Alex, See http://ffmpeg.gusari.org/viewtopic.php?f=12t=624. For ffmpeg command line, you can specify the UDP buffer size in the URL, e.g. udp://localhost:5002?fifo_size=100. Thanks. I did actually see this post, though I get errors from the overrun_nonfatal argument. Buy if you get

Re: [Libav-user] Reducing the Frame-Rate of a Network Video Stream

2013-07-30 Thread Adi Shavit
Then you don't need avfilter, IMHO. When you receive a decoded frame from avcodec, simply check if the last frame was received more than 40 ms ago. Actually, I'm not sure how to do this for the following reason: I prefer to decode and process frames even before they would have been

Re: [Libav-user] Reducing the Frame-Rate of a Network Video Stream

2013-07-30 Thread mikeversteeg
Check the PTS of each frame and use that to decide whether to throw it out or not. That way there is no need to decode frames you won't be using. -- View this message in context:

Re: [Libav-user] Reducing the Frame-Rate of a Network Video Stream

2013-07-30 Thread Adi Shavit
Hi Mike, On Tue, Jul 30, 2013 at 11:13 AM, mikeversteeg m...@mikeversteeg.com wrote: Check the PTS of each frame and use that to decide whether to throw it out or not. Ah, thanks. These will give me the play-timestamps, right? That way there is no need to decode frames you won't be using.

[Libav-user] High bitrate in AVCONV converted MPG file causes DVD reading problem

2013-07-30 Thread Ivaylo Spasov
I convert AVI to MPEG with folowing command: avconv -i file.avi -c:v mpeg2video -b:v 6000k -c:a mp2 -b:a 384k file.mpg When the MPG file has been burned to DVD it is hard to read afterthat. The DVD on the computer starts to make noise and to read slow the DVD. Also it is hard to watch directly -

Re: [Libav-user] High bitrate in AVCONV converted MPG file causes DVD reading problem

2013-07-30 Thread Ivaylo Spasov
Thanks! On Tue, Jul 30, 2013 at 1:24 PM, Robert Krüger krue...@lesspain.de wrote: Hi, On Tue, Jul 30, 2013 at 12:19 PM, Ivaylo Spasov ivaylo@gmail.com wrote: I convert AVI to MPEG with folowing command: avconv -i file.avi -c:v mpeg2video -b:v 6000k -c:a mp2 -b:a 384k file.mpg I know

Re: [Libav-user] Reducing the Frame-Rate of a Network Video Stream

2013-07-30 Thread Alex Cohn
On Tue, Jul 30, 2013 at 12:35 PM, Adi Shavit adisha...@gmail.com wrote: Hi Mike, On Tue, Jul 30, 2013 at 11:13 AM, mikeversteeg m...@mikeversteeg.com wrote: Check the PTS of each frame and use that to decide whether to throw it out or not. Ah, thanks. These will give me the

Re: [Libav-user] Reducing the Frame-Rate of a Network Video Stream

2013-07-30 Thread Alex Cohn
On Tue, Jul 30, 2013 at 10:20 AM, Adi Shavit adisha...@gmail.com wrote: Then you don't need avfilter, IMHO. When you receive a decoded frame from avcodec, simply check if the last frame was received more than 40 ms ago. Actually, I'm not sure how to do this for the following reason: I

Re: [Libav-user] Reducing the Frame-Rate of a Network Video Stream

2013-07-30 Thread Adi Shavit
Hi Alex, You must decode all frames, or skip to the next IDR frame, if you want to avoid artifacts. Yes PTS is play timestamp. The units may depend on your stream format, and are generally expressed in terms of the timebase. That's what I thought. How do I detect an IDR (or non-IDR) frame?

Re: [Libav-user] Reducing the Frame-Rate of a Network Video Stream

2013-07-30 Thread Adi Shavit
Yes, I understand now. Thanks. Adi Well, when I wrote 40 ms ago I actually mean 40 ms after the previous frame. Often, you can use PTS for that measurement. But it may also be not bad to register time of arrival of each frame, and base your processing strategy on these timestamps. Regards,

Re: [Libav-user] Creating a .mkv with H.264

2013-07-30 Thread Marika Marszalkowski
Hello people, could anyone provide a minimal example of how to encode a .mkv video using H.264 Encoding from QImages? I have tried a lot of different settings and can not make it work. This would be great! Thanks in advance! ___ Libav-user mailing list

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Alex Cohn
On Tue, Jul 30, 2013 at 9:37 AM, Adi Shavit adisha...@gmail.com wrote: Note that overrun_nonfatal will break the video output. If the network is very bad, and you have IDR frames sent often enough, or if you use an intra-refresh stream. Sorry, I don't understand what this means. Basically,

Re: [Libav-user] Problem reading motion vectors

2013-07-30 Thread Paul B Mahol
On 7/30/13, Luis Brocan Broki brocanh...@gmail.com wrote: Hi everyone! I'm currently developing a program that reads the motion_val table in each frame for doing some computations. The problem if since i've upgraded to ffmpeg 2.0 (i come from avcodec-53 version), the second level of

Re: [Libav-user] Problem reading motion vectors

2013-07-30 Thread Luis Brocan Broki
It's a deprecated parameter in AVFrame structure (as well as motion val 3-dimensional array), which i use to compute motion vectors in old versions of ffmpeg. If these parameteres has gone from codebase, how i can get now the motion vectors? Thanks in advance! 2013/7/30 Paul B Mahol

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Adi Shavit
snip You can skip h264 post-processing to save decoding time. How do I do this programatically? I didn't actually configure and codec explicitly, it was automatically selected. I don't even know when the stream will be H.264. Other than that, if you detect that your process takes too long,

Re: [Libav-user] Encoding from file

2013-07-30 Thread Tariqul Islam
Hi Tushar Paithankar Used mono clip(produced by audacity) for decoding purpose and again getting noise. My code is exact of the decoding_encoding.c except the main function. Can you provide me any tutorial? Regards Tariqul Islam On Mon, Jul 29, 2013 at 4:19 PM, Tushar Paithankar

Re: [Libav-user] Encoding from file

2013-07-30 Thread Tariqul Islam
Hi Mr. Tushar Decoding part is complete, fault was not removing header part from raw data. Audacity is giving clear sound for raw data of any mp2 file. But still working with encoding :( Regards, Tariqul Islam On Tue, Jul 30, 2013 at 5:17 PM, Tariqul Islam tariqul.i...@gmail.comwrote: Hi

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Alex Cohn
On Tue, Jul 30, 2013 at 2:16 PM, Adi Shavit adisha...@gmail.com wrote: You can skip h264 post-processing to save decoding time. How do I do this programatically? I didn't actually configure and codec explicitly, it was automatically selected. I don't even know when the stream will be H.264.

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Alex Cohn
On Tue, Jul 30, 2013 at 2:16 PM, Adi Shavit adisha...@gmail.com wrote: How do I detect an IDR (or non-IDR frame)? Can I freely discard non-IDR frames without decoding them? Look for AV_PKT_FLAG_KEY in packet-flags Alex ___ Libav-user mailing list

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Adi Shavit
How do I do this programatically? I didn't actually configure and codec explicitly, it was automatically selected. I don't even know when the stream will be H.264. See, for example, http://ffmpeg.org/pipermail/ffmpeg-devel/2011-October/115966.html. Thanks. You can also try to use

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Adi Shavit
Great! If I want to drop a particular frame, and (0 == AV_PKT_FLAG_KEY packet-flags) then I can just skip the whole packet and no even decode it.Cool. On Tue, Jul 30, 2013 at 5:15 PM, Alex Cohn alexc...@netvision.net.il wrote: On Tue, Jul 30, 2013 at 2:16 PM, Adi Shavit adisha...@gmail.com

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Alex Cohn
On Tue, Jul 30, 2013 at 5:31 PM, Adi Shavit adisha...@gmail.com wrote: Great! If I want to drop a particular frame, and (0 == AV_PKT_FLAG_KEY packet-flags) then I can just skip the whole packet and no even decode it.Cool. Wrong. If you drop a frame, then you must drop all frames after it

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Kalileo
On Jul 30, 2013, at 21:26 , Adi Shavit wrote: You can also try to use multithreaded decoder. But this is not going to help if you have more video streams in parallel than CPU cores. I can give it a shot. How do I set it up? I think Alex means something like this, here as an example with

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Adi Shavit
Wrong. If you drop a frame, then you must drop all frames after it until you have (0 != AV_PKT_FLAG_KEY packet-flags). Aha, thanks for the clarification. Not as useful as I had hoped... Adi ___ Libav-user mailing list Libav-user@ffmpeg.org

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Vahid Kowsari
Doesnt the decoder do this as default? If I just use the API to decode a video it creates multiple threads automatically. Kalileo wrote: On Jul 30, 2013, at 21:26 , Adi Shavit wrote: You can also try to use multithreaded decoder. But this is not going to help if you have more video streams

Re: [Libav-user] Encoding from file

2013-07-30 Thread tushar
Hi , Good now its very simple. You have to read a row frame. There is simple calculation for calculating raw frame size. For mono audio I.e pcm file frame size is 1024*2*1. (1024*bit depth*no of channels ). For 16 bit pcm bit depth is 2. So for mono input yor have to give (1024*2*1) bytes

Re: [Libav-user] Circular buffer overrun error when reading UDP stream

2013-07-30 Thread Kalileo
On Jul 30, 2013, at 22:18 , Vahid Kowsari wrote: Kalileo wrote: I think Alex means something like this, here as an example with 2 threads: AVDictionary *opts = NULL; av_dict_set(opts, threads, 2, 0); if (avcodec_open2(pVideoCodecCtx, pVideoCodec, opts) … Doesnt the decoder do

[Libav-user] SIGBUS when using ffmpeg on QNX armv7

2013-07-30 Thread Pavel Vazharov
Hi, I ported an application, with ffmpeg, which is working on QNX x86 to QNX armv7. I cross compiled the ffmpeg on a linux machine with the QNX momentics suite tools. I can't compile the library directly on the QNX armv7 device so I had to cross compile it. My configure was following:

Re: [Libav-user] SIGBUS when using ffmpeg on QNX armv7

2013-07-30 Thread Carl Eugen Hoyos
Pavel Vazharov pvazharov@... writes: ./configure --enable-gpl \ --enable-nonfree Unrelated: The only effect that this option has in your configure line is that you are not allowed to distribute any binaries based on this compile, so please remove it. [...] When I started the application

Re: [Libav-user] High bitrate in AVCONV converted MPG file causes DVD reading problem

2013-07-30 Thread Carl Eugen Hoyos
Ivaylo Spasov ivaylo.pif@... writes: I convert AVI to MPEG with folowing command: avconv To elaborate: avconv contains several hundred known bugs that are not reproducible with ffmpeg, some of them security relevant, please understand that we therefore cannot support it here. See

Re: [Libav-user] Creating a .mkv with H.264

2013-07-30 Thread Carl Eugen Hoyos
Marika Marszalkowski marikaner@... writes: I have tried a lot of different settings and can not make it work. Command line including complete, uncut console output / source code missing. Carl Eugen ___ Libav-user mailing list

[Libav-user] What exactly is AVFilterPad and AVFilterInOut within libavfilter?

2013-07-30 Thread sunswang
Hi all, I am currently trying to figure out how to resolve the output pad no source found error from a modification of the ffmpeg audio filter example because I am using a filter that requires 2 or more inputs. However, I am having trouble understanding exactly what AVFilterPad,