[FFmpeg-trac] #2145(avformat:new): avi files >1G do not seek with WMP
FFmpeg
trac at avcodec.org
Fri Mar 22 23:40:59 CET 2013
#2145: avi files >1G do not seek with WMP
------------------------------------+------------------------------------
Reporter: cehoyos | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: avi | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by tateu):
I don't know if it's the same issue as I am having, it sounds similar. I
cannot even open AVI's > 1GB in Windows Media Player if they are bgr24
rawvideo. I have found a fix for my issue. On line 270 of
libavformat/avienc.c it currently says "/* suggested buffer size */
//FIXME set at the end to largest chunk" but no one has ever added the
FIXME.
I've attached two patches which work for me. The first one I think is
definitely needed and changes the dwSuggestedBufferSize attribute of the
strh header. The 2nd one doesn't seem 100% necessary but it sets the
dwMaxBytesPerSec and dwSuggestedBufferSize attributes of the avih header
to 0. VirtualDub and Mencoder both set this dwSuggestedBufferSize
attribute to 0. VirtualDub sets this dwMaxBytesPerSec attribute to a value
very close to (strh->dwSuggestedBufferSize * frame_rate) and Mencoder sets
it to 0.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2145#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list