Discussion:
The quantization parameter QP (s-> qscale) in FFmpeg-"mpeg4videodec.c"-
Moad Toutou
2012-08-01 14:51:22 UTC
Permalink
Hello,
I'm still looking for my quantization parameter QP. I located a set of files that manipulates this variable QP:

1-/ffmpeg/libavcodec/cavsdec.c
2-/ffmpeg/libavcodec/bink.c
3-/ffmpeg/libavcodec/libx264.c
4-/libavcodec/proresenc_anatoliy.c
5-/ffmpeg/libavcodec/mpeg4videodec.c

The file that interests me most is "mpeg4videodec.c" because I'm more interested in MPEG video decoding.

For me, the value of qp in the file "mpeg4videodec.c" equal to "s-> qscale".

My first question: is "qp" equals "s-> qscale"?

I brought a modéfications to the file "mpeg4videodec.c" and my second question is: what is the ffmpeg command for which, the execution of this command, the program will go through by the file instructions "mpeg4 video dec.c"?

This is the kind of instructions that i added in the file "mpeg4videodec.c" :

-av_log(s->avctx, AV_LOG_DEBUG, "the value of qp is %d", s->qscale);
-av_log(s->avctx, AV_LOG_ERROR, "the value of qp is %d", s->qscale);
-av_log(s->avctx, AV_LOG_INFO, "the value of qp is %d", s->qscale);
-av_log(s->avctx, AV_LOG_INFO, "the value of qp is %d", s->qscale);

Finally, in what place, i'm going to get the results ? (in the consol or in the log files?

Thank you kindly answer these three questions.


Sincerely,
--
Toufik
Michael Niedermayer
2012-08-03 14:50:32 UTC
Permalink
Post by Moad Toutou
Hello,
1-/ffmpeg/libavcodec/cavsdec.c
2-/ffmpeg/libavcodec/bink.c
3-/ffmpeg/libavcodec/libx264.c
4-/libavcodec/proresenc_anatoliy.c
5-/ffmpeg/libavcodec/mpeg4videodec.c
The file that interests me most is "mpeg4videodec.c" because I'm more interested in MPEG video decoding.
For me, the value of qp in the file "mpeg4videodec.c" equal to "s-> qscale".
My first question: is "qp" equals "s-> qscale"?
mostly yes
Post by Moad Toutou
I brought a modéfications to the file "mpeg4videodec.c" and my second question is: what is the ffmpeg command for which, the execution of this command, the program will go through by the file instructions "mpeg4 video dec.c"?
it will when decoding a mpeg4 video
Post by Moad Toutou
-av_log(s->avctx, AV_LOG_DEBUG, "the value of qp is %d", s->qscale);
-av_log(s->avctx, AV_LOG_ERROR, "the value of qp is %d", s->qscale);
-av_log(s->avctx, AV_LOG_INFO, "the value of qp is %d", s->qscale);
-av_log(s->avctx, AV_LOG_INFO, "the value of qp is %d", s->qscale);
Finally, in what place, i'm going to get the results ? (in the consol or in the log files?
this depends on the used log callback, see how av_log() is implemented
if it interrests you. see the header where av_log is declared for a
documentation of its API


[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
Loading...