<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>I have hzvideo.wmv video file, first I use asfbin to see its key frames.</div><div><<<<<<<br></div><div>C:\videotools\asfbin1.8.2.903>asfbin -infokf -i hzvideo.wmv<br></div><div>.....<br></div><div>Parsing file C:\videotools\hzvideo.wmv:<br>0-100%:.....10.....20.....30.....40.....50.....60.....70.....80.....90.....100<br>File C:\videotools\hzvideo.wmv key samples:<br> Video Stream Numbers<br>Time [ms] HH.MM.SS.MMM 1<br> <span style="color: rgb(255, 0, 0);"> 0 00:00:00.000 X</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0,
0);"> 10000 00:00:10.000 X</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> 20000 00:00:20.000 X</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> 30000 00:00:30.000 X</span></div><div>>>>>>>>></div><div>From asfbin output info, there is one keyframe for every 10s.</div><div>Then I test the video using ffplay, when I set to play from 11s, we can see that it starts playing from 10s(key frame point). Seeking of ffplay is correct. See the following output:<br></div><div><<<<<<<br></div>[root@bogon ~]# ffplay -ss 11 hzvideo.wmv<br>ffplay version N-34849-g07c7ffc, Copyright (c) 2003-2011 the FFmpeg developers<br>...... <br>input #0, asf, from 'hzvideo.wmv':<br> Metadata:<br>
WM/Writer : <br> WMFSDKVersion : 10.00.00.4072<br> WMFSDKNeeded : 0.0.0.0000<br> IsVBR : 0<br> Duration: 00:00:37.99, start: 0.000000, bitrate: 755 kb/s<br> Stream #0:0(chi): Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 704x576, 700 kb/s, 25 tbr, 1k tbn, 1k tbc<br>[asf @ 0xb2101320] freeing incomplete packet size 3598, new 3421<br>[wmv2 @ 0xb21079c0] warning: first frame is no keyframe<br><span style="color: rgb(255, 0, 0);"> 10.80 A-V</span>: 0.000 fd= 0 aq= 0KB vq= 14KB sq= 0B f=0/0 0/0 <br>>>>>><br><br>I try hard to play the video using every version of vlc(vlc-1.1.11, vlc-1.2.0-rc1, vlc-1.3.0-git), every of them has the same
problem. They all can't seek to correct keyframe point. For example, I seek to 13s, player should play from 10s, but vlc starts playing from 0s. When I seek to 16s, vlc then seeks to 10s. VLC does start-time control wrongly. The error causes that the length of partially transcoded video is not correct.<br><br> </div></body></html>