How did you count frames ? After parser or after decode ?
Counting frames after parser (demuxer) _will_ produce wrong results for all mpeg streams. For avi it is usually correct. Right now the last frame may get missed in both cases since I did not look into this issue before.
Dmitry/

----- Original Message ----- From: "Jeffery Cheng" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, January 10, 2006 12:08 PM
Subject: [Pymedia-users] framecount mismatch between pymedia and ffmpeg/mplayer


I have an mpeg2 file that I would like to count the number of frames
for using pymedia.  After modifying dump_video.py to just count
frames, I get 544 frames.  However, if I use ffmpeg or mplayer, they
tell me that it has 548 frames.  If I convert the file to an avi using
"ffmpeg -i test.mpg -sameq -vcodec copy -an test.avi" and feed the avi
to dump_video.py, I get 547 frames.  Which is correct, pymedia or
ffmpeg/mplayer?  Why are they different?  Why is the framecount
different between the mpg and the avi?  Any help would be greatly
appreciated.  Thanks in advance.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users

Reply via email to