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

Kaarlo Räihä kaarlo.raiha at gmail.com
Thu Jun 10 10:13:26 CEST 2010


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100610/5ac5b689/attachment.html>


More information about the vlc-devel mailing list