Re: [Libav-user] Setting libx264 bitrate via API

2012-07-23 Thread Rakesh Shivayya Guttedar -ERS, HCL Tech
Hi, I am also facing a similar issue. When I set the bit rate using out_vcodec-bit_rate = 20; the quality of the video goes very bad. But when I set qmin and qmax, the bitrate setting is ignored. Only when i set a high value (approx 100MB) for the bit rate, the quality of the

[Libav-user] bit rate control

2012-07-23 Thread Steffen . Roeber
Hi, I'm newbie in mpeg coding. Can anybody explain the relationship between the rc_max_rate and the rc_buffer_size. Both change the output file size and bit rate. Hella Aglaia Mobile Vision GmbH Steffen Roeber Firmware Tools Treskowstr. 14, D-13089 Berlin Amtsgericht Berlin-Charlottenburg HRB

[Libav-user] avcodec_encode_video2

2012-07-23 Thread Steffen . Roeber
Hi, tried using the avcodec_encode_video2 function. my problem is thhat if I call this function once per frame, the video has a small bitrate and looks bad. If I call this function twice AVCodecContext *c;... c-me_method = ME_EPZS; c-width = img-getWidth(); c-height =

Re: [Libav-user] bit rate control

2012-07-23 Thread Carl Eugen Hoyos
Steffen.Roeber@... writes: I'm newbie in mpeg coding. Can anybody explain the relationship between the rc_max_rate and the rc_buffer_size. Both change the output file size and bit rate. Didn't Michael already answered this question?

Re: [Libav-user] sws_setColorspaceDetails parameters for colorspace conversions

2012-07-23 Thread Robert Krüger
On Wed, Jul 18, 2012 at 9:30 PM, Michael Niedermayer michae...@gmx.at wrote: On Sun, Jul 08, 2012 at 01:04:17PM +0200, Robert Krüger wrote: Hi, I'm trying to do a colorspace conversion using libswscale. The documentation for sws_setColorspaceDetails doesn't have all params documented:

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-07-23 Thread Michael Bradshaw
On Thu, Jul 19, 2012 at 2:01 PM, Michael Bradshaw mbrads...@sorensonmedia.com wrote: [...] I guess we should define what would be considered erroneous seeking to make sure I'm on the same page as everyone, as it's possible I'm not. Would these be considered problematic: 1) Seek is performed,

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-07-23 Thread Carl Eugen Hoyos
Michael Bradshaw mbradshaw@... writes: Anyone have any answers on these two things? If the answer to the above would be yes can anyone else verify that ffmpeg -dump -loglevel debug -ss 38 -i 704x480-m2v-ac3.mpg -vframes 1 out.jpg does not seek to a keyframe? As said, afaict it does seek to a

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-07-23 Thread Michael Bradshaw
On Mon, Jul 23, 2012 at 11:12 AM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Michael Bradshaw mbradshaw@... writes: Anyone have any answers on these two things? If the answer to the above would be yes can anyone else verify that ffmpeg -dump -loglevel debug -ss 38 -i 704x480-m2v-ac3.mpg

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-07-23 Thread Hendrik Leppkes
On Mon, Jul 23, 2012 at 7:12 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Michael Bradshaw mbradshaw@... writes: Anyone have any answers on these two things? If the answer to the above would be yes can anyone else verify that ffmpeg -dump -loglevel debug -ss 38 -i 704x480-m2v-ac3.mpg

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-07-23 Thread Carl Eugen Hoyos
Hendrik Leppkes h.leppkes@... writes: Anyone have any answers on these two things? If the answer to the above would be yes can anyone else verify that ffmpeg -dump -loglevel debug -ss 38 -i 704x480-m2v-ac3.mpg -vframes 1 out.jpg does not seek to a keyframe? As said, afaict it does seek

Re: [Libav-user] Using LibX264 with ffmpeg libraries

2012-07-23 Thread noahzarc
Nicolas George-2 wrote Le quartidi 24 messidor, an CCXX, Noah Arc a écrit : In the past, libx264 variables such as crf was a part of AVCodecContext. However, looks like in version 0.11 it has been deprecated and was moved to libx264.c as a private variable. But for my project, I'm used to

Re: [Libav-user] Using LibX264 with ffmpeg libraries

2012-07-23 Thread noahzarc
Nicolas George-2 wrote Le quartidi 24 messidor, an CCXX, Noah Arc a écrit : In the past, libx264 variables such as crf was a part of AVCodecContext. However, looks like in version 0.11 it has been deprecated and was moved to libx264.c as a private variable. But for my project, I'm used to

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-07-23 Thread Michael Bradshaw
On Mon, Jul 23, 2012 at 12:50 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: [...] You are probably right, I assumed that from a users' perspective, the only relevant question is if above command line returns a gray frame or the next keyframe. Ah, I see. I think that's where the confusion is

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-07-23 Thread Don Moir
- Original Message - From: Michael Bradshaw mbrads...@sorensonmedia.com To: This list is about using libavcodec, libavformat, libavutil,libavdevice and libavfilter. libav-user@ffmpeg.org Sent: Monday, July 23, 2012 3:10 PM Subject: Re: [Libav-user] Why does av_seek_frame() not seek to a

Re: [Libav-user] Using LibX264 with ffmpeg libraries

2012-07-23 Thread Nicolas George
Le sextidi 6 thermidor, an CCXX, noahzarc a écrit : Apologies for top posting, it's my very first time using a mailing list. No problem, you fixed it. Apologies, it's my very first time using a mailing list. Would this be the correct way of setting priv_data? AVDictionary

Re: [Libav-user] Setting libx264 bitrate via API

2012-07-23 Thread jettoblack
rsg wrote Hi, I am also facing a similar issue. When I set the bit rate using out_vcodec-bit_rate = 20; the quality of the video goes very bad. But when I set qmin and qmax, the bitrate setting is ignored. Only when i set a high value (approx 100MB) for the bit rate,