How can I check the integrity of an avi file and repair it automatically in Linux?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







5















I have an avi file and tried to check it as suggested here. But after a short while I just got a segmentation fault, without any other information!



How is it possible to fix/repair this avi file? Watching this file with mplayer just works fine, using it with ffmpeg or kdenlive is causing errors!



System: Ubuntu 13.10
Size file: 4.2 GB



Addition:



Here is part of the output(begin and end) when running the command (the FULL output is about 1 MB of text!)



ffmpeg -v error -i file.avi -f null -

Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
[dvvideo @ 0x21f39c0] AC EOB marker is absent pos=64
Last message repeated 1 times
.....
(These kind of lines repeat over and over and over. I really do not see a point providing them all. There are no build information. Interlaced in the output are lines like:
frame= 124 fps= 0 q=0.0 size= -0kB time=4.00 bitrate= -0.0kbits/s
)
....
Last message repeated 3 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=69
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
Last message repeated 1 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=75
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=64
Last message repeated 2 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=70
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=67
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
Segmentation fault (core dumped)









share|improve this question




















  • 1





    What's wrong with the avi file? Why don't you show the actual errors? Can you provide a small sample file that will allow us to attempt to duplicate whever issue you are experiencing? Your ffmpeg command and the complete console output are important information.

    – llogan
    Jan 31 '14 at 0:36













  • As mentioned in the question, I got a segmentation fault, without any other message output. Maybe I can enable some debugging for ffmpeg? If so, how?

    – Alex
    Feb 4 '14 at 11:29











  • I have updated the question with some of the output ffmpeg` created. If people want to have a sample: How to create this sample?

    – Alex
    Feb 12 '14 at 19:24











  • Yes, I do not think this is possible. Its about 1 Megabyte! If you give your email address, I can email you the complete 1 Mega-Byte output of the command !!!

    – Alex
    Feb 12 '14 at 19:31






  • 1





    In this thread at least the errors of "AC EOB marker is absent" was caused by the x264 that ffmpeg was using, which was fixed by installing gpac-devel-static (on fedora).

    – harrymc
    Feb 12 '14 at 19:46


















5















I have an avi file and tried to check it as suggested here. But after a short while I just got a segmentation fault, without any other information!



How is it possible to fix/repair this avi file? Watching this file with mplayer just works fine, using it with ffmpeg or kdenlive is causing errors!



System: Ubuntu 13.10
Size file: 4.2 GB



Addition:



Here is part of the output(begin and end) when running the command (the FULL output is about 1 MB of text!)



ffmpeg -v error -i file.avi -f null -

Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
[dvvideo @ 0x21f39c0] AC EOB marker is absent pos=64
Last message repeated 1 times
.....
(These kind of lines repeat over and over and over. I really do not see a point providing them all. There are no build information. Interlaced in the output are lines like:
frame= 124 fps= 0 q=0.0 size= -0kB time=4.00 bitrate= -0.0kbits/s
)
....
Last message repeated 3 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=69
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
Last message repeated 1 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=75
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=64
Last message repeated 2 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=70
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=67
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
Segmentation fault (core dumped)









share|improve this question




















  • 1





    What's wrong with the avi file? Why don't you show the actual errors? Can you provide a small sample file that will allow us to attempt to duplicate whever issue you are experiencing? Your ffmpeg command and the complete console output are important information.

    – llogan
    Jan 31 '14 at 0:36













  • As mentioned in the question, I got a segmentation fault, without any other message output. Maybe I can enable some debugging for ffmpeg? If so, how?

    – Alex
    Feb 4 '14 at 11:29











  • I have updated the question with some of the output ffmpeg` created. If people want to have a sample: How to create this sample?

    – Alex
    Feb 12 '14 at 19:24











  • Yes, I do not think this is possible. Its about 1 Megabyte! If you give your email address, I can email you the complete 1 Mega-Byte output of the command !!!

    – Alex
    Feb 12 '14 at 19:31






  • 1





    In this thread at least the errors of "AC EOB marker is absent" was caused by the x264 that ffmpeg was using, which was fixed by installing gpac-devel-static (on fedora).

    – harrymc
    Feb 12 '14 at 19:46














5












5








5


2






I have an avi file and tried to check it as suggested here. But after a short while I just got a segmentation fault, without any other information!



How is it possible to fix/repair this avi file? Watching this file with mplayer just works fine, using it with ffmpeg or kdenlive is causing errors!



System: Ubuntu 13.10
Size file: 4.2 GB



Addition:



Here is part of the output(begin and end) when running the command (the FULL output is about 1 MB of text!)



ffmpeg -v error -i file.avi -f null -

Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
[dvvideo @ 0x21f39c0] AC EOB marker is absent pos=64
Last message repeated 1 times
.....
(These kind of lines repeat over and over and over. I really do not see a point providing them all. There are no build information. Interlaced in the output are lines like:
frame= 124 fps= 0 q=0.0 size= -0kB time=4.00 bitrate= -0.0kbits/s
)
....
Last message repeated 3 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=69
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
Last message repeated 1 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=75
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=64
Last message repeated 2 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=70
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=67
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
Segmentation fault (core dumped)









share|improve this question
















I have an avi file and tried to check it as suggested here. But after a short while I just got a segmentation fault, without any other information!



How is it possible to fix/repair this avi file? Watching this file with mplayer just works fine, using it with ffmpeg or kdenlive is causing errors!



System: Ubuntu 13.10
Size file: 4.2 GB



Addition:



Here is part of the output(begin and end) when running the command (the FULL output is about 1 MB of text!)



ffmpeg -v error -i file.avi -f null -

Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
[dvvideo @ 0x21f39c0] AC EOB marker is absent pos=64
Last message repeated 1 times
.....
(These kind of lines repeat over and over and over. I really do not see a point providing them all. There are no build information. Interlaced in the output are lines like:
frame= 124 fps= 0 q=0.0 size= -0kB time=4.00 bitrate= -0.0kbits/s
)
....
Last message repeated 3 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=69
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
Last message repeated 1 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=75
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=64
Last message repeated 2 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=70
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=67
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
Segmentation fault (core dumped)






linux ffmpeg video-conversion






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 12 '14 at 19:42







Alex

















asked Jan 30 '14 at 20:07









AlexAlex

8831538




8831538








  • 1





    What's wrong with the avi file? Why don't you show the actual errors? Can you provide a small sample file that will allow us to attempt to duplicate whever issue you are experiencing? Your ffmpeg command and the complete console output are important information.

    – llogan
    Jan 31 '14 at 0:36













  • As mentioned in the question, I got a segmentation fault, without any other message output. Maybe I can enable some debugging for ffmpeg? If so, how?

    – Alex
    Feb 4 '14 at 11:29











  • I have updated the question with some of the output ffmpeg` created. If people want to have a sample: How to create this sample?

    – Alex
    Feb 12 '14 at 19:24











  • Yes, I do not think this is possible. Its about 1 Megabyte! If you give your email address, I can email you the complete 1 Mega-Byte output of the command !!!

    – Alex
    Feb 12 '14 at 19:31






  • 1





    In this thread at least the errors of "AC EOB marker is absent" was caused by the x264 that ffmpeg was using, which was fixed by installing gpac-devel-static (on fedora).

    – harrymc
    Feb 12 '14 at 19:46














  • 1





    What's wrong with the avi file? Why don't you show the actual errors? Can you provide a small sample file that will allow us to attempt to duplicate whever issue you are experiencing? Your ffmpeg command and the complete console output are important information.

    – llogan
    Jan 31 '14 at 0:36













  • As mentioned in the question, I got a segmentation fault, without any other message output. Maybe I can enable some debugging for ffmpeg? If so, how?

    – Alex
    Feb 4 '14 at 11:29











  • I have updated the question with some of the output ffmpeg` created. If people want to have a sample: How to create this sample?

    – Alex
    Feb 12 '14 at 19:24











  • Yes, I do not think this is possible. Its about 1 Megabyte! If you give your email address, I can email you the complete 1 Mega-Byte output of the command !!!

    – Alex
    Feb 12 '14 at 19:31






  • 1





    In this thread at least the errors of "AC EOB marker is absent" was caused by the x264 that ffmpeg was using, which was fixed by installing gpac-devel-static (on fedora).

    – harrymc
    Feb 12 '14 at 19:46








1




1





What's wrong with the avi file? Why don't you show the actual errors? Can you provide a small sample file that will allow us to attempt to duplicate whever issue you are experiencing? Your ffmpeg command and the complete console output are important information.

– llogan
Jan 31 '14 at 0:36







What's wrong with the avi file? Why don't you show the actual errors? Can you provide a small sample file that will allow us to attempt to duplicate whever issue you are experiencing? Your ffmpeg command and the complete console output are important information.

– llogan
Jan 31 '14 at 0:36















As mentioned in the question, I got a segmentation fault, without any other message output. Maybe I can enable some debugging for ffmpeg? If so, how?

– Alex
Feb 4 '14 at 11:29





As mentioned in the question, I got a segmentation fault, without any other message output. Maybe I can enable some debugging for ffmpeg? If so, how?

– Alex
Feb 4 '14 at 11:29













I have updated the question with some of the output ffmpeg` created. If people want to have a sample: How to create this sample?

– Alex
Feb 12 '14 at 19:24





I have updated the question with some of the output ffmpeg` created. If people want to have a sample: How to create this sample?

– Alex
Feb 12 '14 at 19:24













Yes, I do not think this is possible. Its about 1 Megabyte! If you give your email address, I can email you the complete 1 Mega-Byte output of the command !!!

– Alex
Feb 12 '14 at 19:31





Yes, I do not think this is possible. Its about 1 Megabyte! If you give your email address, I can email you the complete 1 Mega-Byte output of the command !!!

– Alex
Feb 12 '14 at 19:31




1




1





In this thread at least the errors of "AC EOB marker is absent" was caused by the x264 that ffmpeg was using, which was fixed by installing gpac-devel-static (on fedora).

– harrymc
Feb 12 '14 at 19:46





In this thread at least the errors of "AC EOB marker is absent" was caused by the x264 that ffmpeg was using, which was fixed by installing gpac-devel-static (on fedora).

– harrymc
Feb 12 '14 at 19:46










2 Answers
2






active

oldest

votes


















6





+50









try using mencoder (the encoding part of mplayer) like this:



mencoder -idx problemfile.avi -ovc copy -oac copy -o reindexedfile.avi


(via http://www.kahunaburger.com/2010/01/30/fixing-an-avi-index-with-mencoder/)






share|improve this answer

































    2














    Force index



    mencoder -forceidx input.avi -o output.avi -oac copy -ovc copy  


    Copy all



    mencoder -ovc copy -oac copy input.file -o output.file  


    Also see https://stackoverflow.com/questions/894903/how-can-i-validate-a-video-file-from-a-script






    share|improve this answer


























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f709313%2fhow-can-i-check-the-integrity-of-an-avi-file-and-repair-it-automatically-in-linu%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6





      +50









      try using mencoder (the encoding part of mplayer) like this:



      mencoder -idx problemfile.avi -ovc copy -oac copy -o reindexedfile.avi


      (via http://www.kahunaburger.com/2010/01/30/fixing-an-avi-index-with-mencoder/)






      share|improve this answer






























        6





        +50









        try using mencoder (the encoding part of mplayer) like this:



        mencoder -idx problemfile.avi -ovc copy -oac copy -o reindexedfile.avi


        (via http://www.kahunaburger.com/2010/01/30/fixing-an-avi-index-with-mencoder/)






        share|improve this answer




























          6





          +50







          6





          +50



          6




          +50





          try using mencoder (the encoding part of mplayer) like this:



          mencoder -idx problemfile.avi -ovc copy -oac copy -o reindexedfile.avi


          (via http://www.kahunaburger.com/2010/01/30/fixing-an-avi-index-with-mencoder/)






          share|improve this answer















          try using mencoder (the encoding part of mplayer) like this:



          mencoder -idx problemfile.avi -ovc copy -oac copy -o reindexedfile.avi


          (via http://www.kahunaburger.com/2010/01/30/fixing-an-avi-index-with-mencoder/)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 6 at 1:17









          JakeGould

          32.9k10100142




          32.9k10100142










          answered Feb 13 '14 at 15:35









          Costin GușăCostin Gușă

          596519




          596519

























              2














              Force index



              mencoder -forceidx input.avi -o output.avi -oac copy -ovc copy  


              Copy all



              mencoder -ovc copy -oac copy input.file -o output.file  


              Also see https://stackoverflow.com/questions/894903/how-can-i-validate-a-video-file-from-a-script






              share|improve this answer






























                2














                Force index



                mencoder -forceidx input.avi -o output.avi -oac copy -ovc copy  


                Copy all



                mencoder -ovc copy -oac copy input.file -o output.file  


                Also see https://stackoverflow.com/questions/894903/how-can-i-validate-a-video-file-from-a-script






                share|improve this answer




























                  2












                  2








                  2







                  Force index



                  mencoder -forceidx input.avi -o output.avi -oac copy -ovc copy  


                  Copy all



                  mencoder -ovc copy -oac copy input.file -o output.file  


                  Also see https://stackoverflow.com/questions/894903/how-can-i-validate-a-video-file-from-a-script






                  share|improve this answer















                  Force index



                  mencoder -forceidx input.avi -o output.avi -oac copy -ovc copy  


                  Copy all



                  mencoder -ovc copy -oac copy input.file -o output.file  


                  Also see https://stackoverflow.com/questions/894903/how-can-i-validate-a-video-file-from-a-script







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 23 '17 at 12:41









                  Community

                  1




                  1










                  answered Feb 15 '14 at 10:26









                  tottitotti

                  829611




                  829611






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f709313%2fhow-can-i-check-the-integrity-of-an-avi-file-and-repair-it-automatically-in-linu%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Plaza Victoria

                      In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                      How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...