Stas Oskin-2 wrote:
> 
> Check the qscale parameters - lower is higher, and you can use them to
> force
> more quality.
> 

Sorry for the noob question but where is this qscale parameter (what data
structure), or better what is it?

About the solution for recording, here goes.

I set the timebase to 1/1000 which is 1 millisecond, and then just specify
in which millisecond I want for certain frame (picture or AVPacket) to be
presented to the user.
That is I calculate time difference (milliseconds) in frames camera gives me
and then add that much milliseconds to AVPacket's pts.

In detail:

I remember last AVPacket pts in variable (first is of course 0)

int64_t last_pts = 0;

and then at each next AVPacket->pts I add the time difference between frames
to the last pts value

pkt.pts= last_pts + frame_time_diff;
-- 
View this message in context: 
http://www.nabble.com/Reading-MJPEG-stream-problem-tp23481361p23559158.html
Sent from the libav-users mailing list archive at Nabble.com.

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to