Only VLC can index broken AVI correctly

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
posix
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2010 00:33

Only VLC can index broken AVI correctly

Postby posix » 05 Aug 2012 00:21

I have an AVI with DX50 video and MP3 CBR audio streams whose index appears to be broken. It's over an hour long but shows only 45min in AviDemux or PotPlayer. Reaching the end will make it continue to play with time running in negative numbers. Opening the AVI with VLC brings up the fixing AVI index dialogue which after completion plays the full video correctly.

After the initial head scratch why AviDemux would fail to properly rebuild the index, I tried DivFix++ which errors into an infinite loop upon completing its process. A previously reported bug as I read after some googling. I saved the temporary file DivFix++ created though but it was still erroneous, so I ran it through DivFix++ again. It created a playable AVI with correct length but long keyframe intervals and bad seekability. Lots of colour overlays until the next keyframe appears which make everything look terrible.

The way VLC plays the AVI is best and what I want. No colour overlays. I've search quite a bit to find hints at streaming via "Open (advanced)" to save the rebuilt AVI but I can't seem to succeed with this solution as nothing is ever saved anywhere.

Would someone know how to save the properly rebuilt AVI index VLC creates?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Only VLC can index broken AVI correctly

Postby Jean-Baptiste Kempf » 05 Aug 2012 12:15

You can use the streaming wizard and just remux, not encoding.
Or using the command line, with something like this vlc.exe file.avi --sout file_new.avi
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

posix
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2010 00:33

Re: Only VLC can index broken AVI correctly

Postby posix » 05 Aug 2012 18:28

Jean-Baptiste, the wizard left me unsure where to find the options you mentioned, but the CLI did the job just perfectly. Thanks so much.

So many times I think VLC has all these amazing things people hardly ever learn about. You should be proud of your project.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Only VLC can index broken AVI correctly

Postby Jean-Baptiste Kempf » 05 Aug 2012 20:09

I am glad you were able to use the CLI :)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

netskink
Blank Cone
Blank Cone
Posts: 17
Joined: 07 Aug 2012 15:25

Re: Only VLC can index broken AVI correctly

Postby netskink » 10 Aug 2012 16:52

You can use the streaming wizard and just remux, not encoding.
Or using the command line, with something like this vlc.exe file.avi --sout file_new.avi
This command does not fix it for me. Do you need to save it afterwards?

bulsara
New Cone
New Cone
Posts: 1
Joined: 23 Aug 2012 07:52

Re: Only VLC can index broken AVI correctly

Postby bulsara » 23 Aug 2012 08:13

You can use the streaming wizard and just remux, not encoding.
Or using the command line, with something like this vlc.exe file.avi --sout file_new.avi
Thanks Jean, I've been use another tools with no satisfaction.
I've try your tips and it's work great!
You can use the streaming wizard and just remux, not encoding.
Or using the command line, with something like this vlc.exe file.avi --sout file_new.avi
This command does not fix it for me. Do you need to save it afterwards?
Hello netskink, it's maybe something with Protection Access in your folder.

posix
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2010 00:33

Re: Only VLC can index broken AVI correctly

Postby posix » 14 Oct 2012 21:12

So more CLI related stuff.

I want to deinterlace an H264 stream with AC3 audio in an .MTS container and output it as raw RGB and Wave .AVI. How would I go about this?

I read the help in the wiki to find the parameters:

--deinteralce=1

--deinterlace-mode=yadif2x (the method I want)


How do I do the uncompression?

--sout ... is used to output a new file from the input file, right?

Could someone help me on the correct syntax? I can't seem to get there, especially regarding the uncompression.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 66 guests