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

Mehmet Kaplan mehmetkpln at gmail.com
Thu Jun 10 10:59:10 CEST 2010


vlc input.avi --sout=#std{access=file,mux=avi,dst=output.avi} fixes the file.
Last problem is how I decide avi file is broken or not?
How can I find indexing is problematic?

On Thu, Jun 10, 2010 at 11:13 AM, Kaarlo Räihä <kaarlo.raiha at gmail.com> wrote:
> AFAIK only way to permanently fix files with (lib)VLC is to remux them, but
> since VLC's AVI muxer is somewhat broken I would suggest other tools.
> Anyway it would be something like
> vlc input.avi --sout=#std{access=file,mux=avi,dst=output.avi}
> or
> vlc input.avi --sout=#std{access=file,mux=ffmpeg{mux=avi},dst=output.avi}
> (I am not sure if the ffmpeg version works)
>
> 2010/6/10 Mehmet Kaplan <mehmetkpln at gmail.com>
>>
>> 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
>> >
>> >
>> _______________________________________________
>> 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