[vlc-devel] fixing broken avi files to get correct length of video

Kaarlo Räihä kaarlo.raiha at gmail.com
Wed Jun 9 19:38:35 CEST 2010


The AVI file has prolly a broken index info.
http://wiki.videolan.org/WindowsFAQ-1.0.x#Can_I_fix_those_broken_AVI_files_permanently.3F

2010/6/9 Mehmet Kaplan <mehmetkpln at gmail.com>

> Hi all,
> I'm developing a video player application using libvlc 1.1.0.
> I have an avi video file with format MJPG.
> libvlc_media_player_get_length function returns 1 second for the total
> length of video. But original length is 19 seconds.
> When I try to open video file with installed VLC Player (1.0.2) on my
> computer, program pops up following dialog:
>
> *******************************************************************
> ---------------------------
> AVI Index
> ---------------------------
> This AVI file is broken. Seeking will not work correctly.
> Do you want to try to fix it?
>
> This might take a long time.
> *******************************************************************
>
> When I choose to fix the video file, seeking is correct and video
> length is shown 19 seconds on VLC Player.
> But when i choose not to fix, length is 1 second such as in my program.
> What is the problem in this avi video file, how VLC Player fixes this
> file and how can I do the same thing VLC Player does?
>
> Thanks in advance.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100609/43585d7c/attachment.html>


More information about the vlc-devel mailing list