Discussion:
[MPlayer-users] -vf fixpts=print Bad mp_image usage count
Bill Crockett
2016-07-11 01:49:40 UTC
Permalink
Using "-vf fixpts=print" causes Bad mp_image usage count, please report!

mplayer video.avi -vf fixpts=print

MPlayer r37853+g6d7f566-5.3.1
Playing video.avi.
libavformat version 57.30.100 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [MJPG] 1024x576 24bpp 25.000 fps 8659.3 kbps (1057.0 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
Opening video filter: [fixpts=print]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.34.100 (internal)
[mjpeg @ 01a52c60]using external huffman table
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
Clip info:
Software: MEncoder r37853+g6d7f566-5.3.1
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl] 1024x576 => 1024x576 Planar YV12
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl] 1024x576 => 1024x576 Planar YV12
PTS: 68.000000
Bad mp_image usage count, please report!
PTS: 68.040001
Bad mp_image usage count, please report!
PTS: 68.080002
Bad mp_image usage count, please report!
PTS: 68.120003
Bad mp_image usage count, please report!
PTS: 68.160004
Bad mp_image usage count, please report!
PTS: 68.199997
Bad mp_image usage count, please report!
PTS: 68.239998
Bad mp_image usage count, please report!
---------------------------------------------------------------------------------

This does not happen using previous revisions that are > 2 years older.
Bill Crockett
2016-07-13 07:33:14 UTC
Permalink
Now using r37875 - no difference.

-vf framestep=i,fixpts=print

Using framestep=i got rid of the "Bad mp_image usage count, please report!"
But the PTS still goes out of sync. At 25 fps, each frame should be
multiples of 40 milliseconds.

I!
PTS: 16.680000
I!
PTS: 16.719999
I!
PTS: 16.760000
I!
PTS: 16.799999
I!
PTS: 16.840000
I!
PTS: 16.879999
I!
PTS: 16.920000
I!
PTS: 16.959999
------------------------------------------------------------------------------
To get it in sync I have to use fixpts=fps=25

mplayer -vf framestep=i,fixpts=fps=25,fixpts=print test.avi

Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [direct3d] 1024x576 => 1024x576 Planar YV12
I!
PTS: 0.000000
I!
PTS: 0.040000
I!
PTS: 0.080000
I!
PTS: 0.120000
I!
PTS: 0.160000
I!
PTS: 0.200000
I!
PTS: 0.240000
I!
PTS: 0.280000
--------------------------------------------------------------------
I use this information to split AVI videos at the exact frame numbers. In
the past, all I needed was -vf fixpts=print

This bug - if it is a bug - may have started after r34401. Can it be fixed?
Loading...