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

Mehmet Kaplan mehmetkpln at gmail.com
Thu Jun 10 07:47:14 CEST 2010


Thanks, but in that link, there is only the information that I can fix
those files with VLC Player.
Also I wonder how i can detect broken avi files and fix those files in
my application using libvlc?


On Wed, Jun 9, 2010 at 8:38 PM, Kaarlo Räihä <kaarlo.raiha at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>



More information about the vlc-devel mailing list