Re: [Libav-user] Field order

2015-05-18 Thread Nisar Ahmed
In all of the movies I have, this field is not set so what do i do to find the field order and fix the artifact? On Mon, May 18, 2015 at 4:25 PM, Hendrik Leppkes wrote: > On Mon, May 18, 2015 at 1:17 PM, Nisar Ahmed wrote: > > While decoding, libav is producing a different field

[Libav-user] Field order

2015-05-18 Thread Nisar Ahmed
While decoding, libav is producing a different field order for some movies which is resulting in interlacing artefacts on the output screen. I tried finding field order information inside AVCodecContext->field_order and AVFrame->top_field_first but both values are always set to AV_FIELD_BT and 0 re

Re: [Libav-user] Packed variant of PIX_FMT_YUV420P

2015-04-24 Thread Nisar Ahmed
Please ignore last sentence relating to memcpy, I chose wrong pixel format, correct pixel format is AV_PIX_FMT_UYVY422 On Fri, Apr 24, 2015 at 1:09 PM, Nisar Ahmed wrote: > I am demuxing and decoding a quicktime movie file using libav, the decoder > always produces a frame in YUV420P

Re: [Libav-user] Packed variant of PIX_FMT_YUV420P

2015-04-24 Thread Nisar Ahmed
15 at 9:04 PM, Carl Eugen Hoyos wrote: > Nisar Ahmed writes: > > > Where is packed variant of planar YUV420P format, > > I need packed version instead of planar while > > demuxing when libav > > Can you explain your usecase? I don't remember > seeing pac

[Libav-user] Packed variant of PIX_FMT_YUV420P

2015-04-23 Thread Nisar Ahmed
Where is packed variant of planar YUV420P format, I need packed version instead of planar while demuxing when libav, can someone please point me to the right direction, I don't want to swscale to ARGB because I think it will take extra CPU resources... Thanks? _

Re: [Libav-user] number of audio samples while demuxing

2013-11-13 Thread Nisar Ahmed
Most of the time it will be LPCM but it can be AAC as well. Thanks On Wed, Nov 13, 2013 at 6:23 PM, Nicolas George wrote: > Le tridi 23 brumaire, an CCXXII, Nisar Ahmed a écrit : > > While demuxing a QuickTime movie the number of audio samples returned by > > the av_read_frame

[Libav-user] number of audio samples while demuxing

2013-11-13 Thread Nisar Ahmed
Hello, While demuxing a QuickTime movie the number of audio samples returned by the av_read_frame is always 1024 per channel, is it possible to increase this number to higher value such as 1920 or 48000? Thanks ___ Libav-user mailing list Libav-user@ffm

Re: [Libav-user] muxing h264/aac stream

2013-08-22 Thread Nisar Ahmed
advance Nisar On Sat, Aug 17, 2013 at 11:05 AM, Nisar Ahmed wrote: > Thanks for your answer, when I set timestamp of decoder, the frame rate > jumps up to a very large value > > pts/dts = (2002/0, 0/0, 1001/0, 5005/0, 3003/0...) > > am I setting the time_base to correct val

Re: [Libav-user] muxing h264/aac stream

2013-08-16 Thread Nisar Ahmed
, 2013 at 2:10 AM, Anshul maheshwari < er.anshul.maheshw...@gmail.com> wrote: > - > > On Aug 16, 2013 7:30 PM, "Nisar Ahmed" wrote: > > > > I am muxing h264/aac stream to mp4 coming from an encoder and having > issues syncing audio and video streams. > &

[Libav-user] muxing h264/aac stream

2013-08-16 Thread Nisar Ahmed
I am muxing h264/aac stream to mp4 coming from an encoder and having issues syncing audio and video streams. I suspect that the problem is with PTS and DTS but I am not sure what values should i set to properly sync both streams. I have set the time_base of video stream's AVCodecContext to 1001/3

[Libav-user] writing h.264 raw frames to mp4 movie

2013-08-07 Thread Nisar Ahmed
Dear list, I am writing my first libav program and facing problem in muxing h.264 raw frames to mp4. I referred to muxing.c sample but that sample encodes frames to h.264 before writing to file however in my case I dont have to encoding, the frames are already compressed. I need to know the what