Repairing corrupt MP4












23















I took a video from my Android phone (Sony Xperia P, if you need to know), and before I could stop recording it, the phone memory got full and the phone got hanged too. I rebooted the phone, the video was there, but I couldn't play it from any media player on Android. It's in mp4 format.



So I tried to open it on PC and Mac with different video player, like VLC, quick Time, Windows Media Player etc., but none of them can play it. I know that the video is corrupted, but I believe it's repairable, since it got more than a GB in size. Is there anything that I can try to repair the video file? The video is really important.










share|improve this question





























    23















    I took a video from my Android phone (Sony Xperia P, if you need to know), and before I could stop recording it, the phone memory got full and the phone got hanged too. I rebooted the phone, the video was there, but I couldn't play it from any media player on Android. It's in mp4 format.



    So I tried to open it on PC and Mac with different video player, like VLC, quick Time, Windows Media Player etc., but none of them can play it. I know that the video is corrupted, but I believe it's repairable, since it got more than a GB in size. Is there anything that I can try to repair the video file? The video is really important.










    share|improve this question



























      23












      23








      23


      7






      I took a video from my Android phone (Sony Xperia P, if you need to know), and before I could stop recording it, the phone memory got full and the phone got hanged too. I rebooted the phone, the video was there, but I couldn't play it from any media player on Android. It's in mp4 format.



      So I tried to open it on PC and Mac with different video player, like VLC, quick Time, Windows Media Player etc., but none of them can play it. I know that the video is corrupted, but I believe it's repairable, since it got more than a GB in size. Is there anything that I can try to repair the video file? The video is really important.










      share|improve this question
















      I took a video from my Android phone (Sony Xperia P, if you need to know), and before I could stop recording it, the phone memory got full and the phone got hanged too. I rebooted the phone, the video was there, but I couldn't play it from any media player on Android. It's in mp4 format.



      So I tried to open it on PC and Mac with different video player, like VLC, quick Time, Windows Media Player etc., but none of them can play it. I know that the video is corrupted, but I believe it's repairable, since it got more than a GB in size. Is there anything that I can try to repair the video file? The video is really important.







      video mpeg4






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 20 '13 at 5:00









      Sathyajith Bhat

      53k29157253




      53k29157253










      asked Jan 20 '13 at 0:36









      noobnoob

      4644924




      4644924






















          3 Answers
          3






          active

          oldest

          votes


















          18














          If you have ffmpeg, from the command-line you can try:



          ffmpeg -i input.mp4 -c copy output.mp4


          If the problem is just with the container, this will fix it.



          If that doesn't work, please post the complete terminal message, as it could give a clue as to how to fix the file.






          share|improve this answer
























          • Sorry, I forgot about that video. I'll try your method tonight. Can you let me know of any link from where I can get to know how to install ffmpeg. They just give zip or tar archives. Thanks anyways

            – noob
            Jan 31 '13 at 9:32








          • 11





            Sorry for the late reply. This is the error I am getting while using ffmpeg command - [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88f9018e00] moov atom not found input.mp4: Invalid data found when processing input

            – noob
            Mar 17 '13 at 20:31






          • 1





            did you ever resolve this? getting the same problem. Think it was caused by more or less the same thing too

            – Horse
            Oct 8 '14 at 16:19






          • 1





            I got the same problem and the same output. I could resolve it with this: grauonline.de/cms2/?page_id=5 but you have to pay for it if you want the other half of the video. Is there any other software that somebody can suggest to fix my mp4 file?

            – VaTo
            Jun 6 '15 at 5:30






          • 1





            Have you tried recover_mp4_to_h264? stackoverflow.com/questions/23202611/…

            – Mint
            Sep 12 '16 at 3:37



















          7














          This is an old question, but I just ran into the same situation and I figured I would post the solution that worked for me.



          When you see the message "moov atom not found", that typically means that whatever was creating the video was not able to write terminal metadata that contains information about things like the codecs used in the video and so forth. Without this "moov atom", most players will reject the video.



          If you have another video that was generated by the same device, you can use the untrunc program to generate a new moov atom that will in most cases render the file playable.



          You will need to compile the untrunc program yourself. I built it in an Ubuntu 12.04 docker container, and needed to install the following prerequisites to get it to build:



          sudo apt-get install libavformat-dev libavcodec-dev 
          libavutil-dev libqt4-dev make g++ libz-dev





          share|improve this answer



















          • 1





            Doesn't work for large (~1 GB) files.

            – Ken Sharp
            Apr 15 '17 at 21:04



















          0














          This answer applies to m4a audio files, but I had a similar issue and maybe this helps someone.



          Using ffpemg, I also ran into the issue of moov atom not found



          To fix this, this answer on Sound Design Stackexchange helped me:
          How to recover audio from an incomplete or corrupted AAC/m4a



          The answer containts the steps outlined on SysFrontier: How to fix corrupted voice memo m4a files




          • First, using a Hex Editor, delete the beginning of the file until the 't' of 'mdat'. I used HexFiend on macOS.


          • Then decode the file using faad, which can be installed using homebrew: brew install faad2


          • usage of faad in terminal: faad corruptfile.m4a



          This should hopefully result in a playable wav file in the same directory as the corrupt file.






          share|improve this answer






















            protected by slhck Sep 3 '13 at 19:49



            Thank you for your interest in this question.
            Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



            Would you like to answer one of these unanswered questions instead?














            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            18














            If you have ffmpeg, from the command-line you can try:



            ffmpeg -i input.mp4 -c copy output.mp4


            If the problem is just with the container, this will fix it.



            If that doesn't work, please post the complete terminal message, as it could give a clue as to how to fix the file.






            share|improve this answer
























            • Sorry, I forgot about that video. I'll try your method tonight. Can you let me know of any link from where I can get to know how to install ffmpeg. They just give zip or tar archives. Thanks anyways

              – noob
              Jan 31 '13 at 9:32








            • 11





              Sorry for the late reply. This is the error I am getting while using ffmpeg command - [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88f9018e00] moov atom not found input.mp4: Invalid data found when processing input

              – noob
              Mar 17 '13 at 20:31






            • 1





              did you ever resolve this? getting the same problem. Think it was caused by more or less the same thing too

              – Horse
              Oct 8 '14 at 16:19






            • 1





              I got the same problem and the same output. I could resolve it with this: grauonline.de/cms2/?page_id=5 but you have to pay for it if you want the other half of the video. Is there any other software that somebody can suggest to fix my mp4 file?

              – VaTo
              Jun 6 '15 at 5:30






            • 1





              Have you tried recover_mp4_to_h264? stackoverflow.com/questions/23202611/…

              – Mint
              Sep 12 '16 at 3:37
















            18














            If you have ffmpeg, from the command-line you can try:



            ffmpeg -i input.mp4 -c copy output.mp4


            If the problem is just with the container, this will fix it.



            If that doesn't work, please post the complete terminal message, as it could give a clue as to how to fix the file.






            share|improve this answer
























            • Sorry, I forgot about that video. I'll try your method tonight. Can you let me know of any link from where I can get to know how to install ffmpeg. They just give zip or tar archives. Thanks anyways

              – noob
              Jan 31 '13 at 9:32








            • 11





              Sorry for the late reply. This is the error I am getting while using ffmpeg command - [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88f9018e00] moov atom not found input.mp4: Invalid data found when processing input

              – noob
              Mar 17 '13 at 20:31






            • 1





              did you ever resolve this? getting the same problem. Think it was caused by more or less the same thing too

              – Horse
              Oct 8 '14 at 16:19






            • 1





              I got the same problem and the same output. I could resolve it with this: grauonline.de/cms2/?page_id=5 but you have to pay for it if you want the other half of the video. Is there any other software that somebody can suggest to fix my mp4 file?

              – VaTo
              Jun 6 '15 at 5:30






            • 1





              Have you tried recover_mp4_to_h264? stackoverflow.com/questions/23202611/…

              – Mint
              Sep 12 '16 at 3:37














            18












            18








            18







            If you have ffmpeg, from the command-line you can try:



            ffmpeg -i input.mp4 -c copy output.mp4


            If the problem is just with the container, this will fix it.



            If that doesn't work, please post the complete terminal message, as it could give a clue as to how to fix the file.






            share|improve this answer













            If you have ffmpeg, from the command-line you can try:



            ffmpeg -i input.mp4 -c copy output.mp4


            If the problem is just with the container, this will fix it.



            If that doesn't work, please post the complete terminal message, as it could give a clue as to how to fix the file.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 20 '13 at 18:39









            evilsoupevilsoup

            8,93714465




            8,93714465













            • Sorry, I forgot about that video. I'll try your method tonight. Can you let me know of any link from where I can get to know how to install ffmpeg. They just give zip or tar archives. Thanks anyways

              – noob
              Jan 31 '13 at 9:32








            • 11





              Sorry for the late reply. This is the error I am getting while using ffmpeg command - [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88f9018e00] moov atom not found input.mp4: Invalid data found when processing input

              – noob
              Mar 17 '13 at 20:31






            • 1





              did you ever resolve this? getting the same problem. Think it was caused by more or less the same thing too

              – Horse
              Oct 8 '14 at 16:19






            • 1





              I got the same problem and the same output. I could resolve it with this: grauonline.de/cms2/?page_id=5 but you have to pay for it if you want the other half of the video. Is there any other software that somebody can suggest to fix my mp4 file?

              – VaTo
              Jun 6 '15 at 5:30






            • 1





              Have you tried recover_mp4_to_h264? stackoverflow.com/questions/23202611/…

              – Mint
              Sep 12 '16 at 3:37



















            • Sorry, I forgot about that video. I'll try your method tonight. Can you let me know of any link from where I can get to know how to install ffmpeg. They just give zip or tar archives. Thanks anyways

              – noob
              Jan 31 '13 at 9:32








            • 11





              Sorry for the late reply. This is the error I am getting while using ffmpeg command - [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88f9018e00] moov atom not found input.mp4: Invalid data found when processing input

              – noob
              Mar 17 '13 at 20:31






            • 1





              did you ever resolve this? getting the same problem. Think it was caused by more or less the same thing too

              – Horse
              Oct 8 '14 at 16:19






            • 1





              I got the same problem and the same output. I could resolve it with this: grauonline.de/cms2/?page_id=5 but you have to pay for it if you want the other half of the video. Is there any other software that somebody can suggest to fix my mp4 file?

              – VaTo
              Jun 6 '15 at 5:30






            • 1





              Have you tried recover_mp4_to_h264? stackoverflow.com/questions/23202611/…

              – Mint
              Sep 12 '16 at 3:37

















            Sorry, I forgot about that video. I'll try your method tonight. Can you let me know of any link from where I can get to know how to install ffmpeg. They just give zip or tar archives. Thanks anyways

            – noob
            Jan 31 '13 at 9:32







            Sorry, I forgot about that video. I'll try your method tonight. Can you let me know of any link from where I can get to know how to install ffmpeg. They just give zip or tar archives. Thanks anyways

            – noob
            Jan 31 '13 at 9:32






            11




            11





            Sorry for the late reply. This is the error I am getting while using ffmpeg command - [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88f9018e00] moov atom not found input.mp4: Invalid data found when processing input

            – noob
            Mar 17 '13 at 20:31





            Sorry for the late reply. This is the error I am getting while using ffmpeg command - [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88f9018e00] moov atom not found input.mp4: Invalid data found when processing input

            – noob
            Mar 17 '13 at 20:31




            1




            1





            did you ever resolve this? getting the same problem. Think it was caused by more or less the same thing too

            – Horse
            Oct 8 '14 at 16:19





            did you ever resolve this? getting the same problem. Think it was caused by more or less the same thing too

            – Horse
            Oct 8 '14 at 16:19




            1




            1





            I got the same problem and the same output. I could resolve it with this: grauonline.de/cms2/?page_id=5 but you have to pay for it if you want the other half of the video. Is there any other software that somebody can suggest to fix my mp4 file?

            – VaTo
            Jun 6 '15 at 5:30





            I got the same problem and the same output. I could resolve it with this: grauonline.de/cms2/?page_id=5 but you have to pay for it if you want the other half of the video. Is there any other software that somebody can suggest to fix my mp4 file?

            – VaTo
            Jun 6 '15 at 5:30




            1




            1





            Have you tried recover_mp4_to_h264? stackoverflow.com/questions/23202611/…

            – Mint
            Sep 12 '16 at 3:37





            Have you tried recover_mp4_to_h264? stackoverflow.com/questions/23202611/…

            – Mint
            Sep 12 '16 at 3:37













            7














            This is an old question, but I just ran into the same situation and I figured I would post the solution that worked for me.



            When you see the message "moov atom not found", that typically means that whatever was creating the video was not able to write terminal metadata that contains information about things like the codecs used in the video and so forth. Without this "moov atom", most players will reject the video.



            If you have another video that was generated by the same device, you can use the untrunc program to generate a new moov atom that will in most cases render the file playable.



            You will need to compile the untrunc program yourself. I built it in an Ubuntu 12.04 docker container, and needed to install the following prerequisites to get it to build:



            sudo apt-get install libavformat-dev libavcodec-dev 
            libavutil-dev libqt4-dev make g++ libz-dev





            share|improve this answer



















            • 1





              Doesn't work for large (~1 GB) files.

              – Ken Sharp
              Apr 15 '17 at 21:04
















            7














            This is an old question, but I just ran into the same situation and I figured I would post the solution that worked for me.



            When you see the message "moov atom not found", that typically means that whatever was creating the video was not able to write terminal metadata that contains information about things like the codecs used in the video and so forth. Without this "moov atom", most players will reject the video.



            If you have another video that was generated by the same device, you can use the untrunc program to generate a new moov atom that will in most cases render the file playable.



            You will need to compile the untrunc program yourself. I built it in an Ubuntu 12.04 docker container, and needed to install the following prerequisites to get it to build:



            sudo apt-get install libavformat-dev libavcodec-dev 
            libavutil-dev libqt4-dev make g++ libz-dev





            share|improve this answer



















            • 1





              Doesn't work for large (~1 GB) files.

              – Ken Sharp
              Apr 15 '17 at 21:04














            7












            7








            7







            This is an old question, but I just ran into the same situation and I figured I would post the solution that worked for me.



            When you see the message "moov atom not found", that typically means that whatever was creating the video was not able to write terminal metadata that contains information about things like the codecs used in the video and so forth. Without this "moov atom", most players will reject the video.



            If you have another video that was generated by the same device, you can use the untrunc program to generate a new moov atom that will in most cases render the file playable.



            You will need to compile the untrunc program yourself. I built it in an Ubuntu 12.04 docker container, and needed to install the following prerequisites to get it to build:



            sudo apt-get install libavformat-dev libavcodec-dev 
            libavutil-dev libqt4-dev make g++ libz-dev





            share|improve this answer













            This is an old question, but I just ran into the same situation and I figured I would post the solution that worked for me.



            When you see the message "moov atom not found", that typically means that whatever was creating the video was not able to write terminal metadata that contains information about things like the codecs used in the video and so forth. Without this "moov atom", most players will reject the video.



            If you have another video that was generated by the same device, you can use the untrunc program to generate a new moov atom that will in most cases render the file playable.



            You will need to compile the untrunc program yourself. I built it in an Ubuntu 12.04 docker container, and needed to install the following prerequisites to get it to build:



            sudo apt-get install libavformat-dev libavcodec-dev 
            libavutil-dev libqt4-dev make g++ libz-dev






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 5 '16 at 18:08









            larskslarsks

            2,8821521




            2,8821521








            • 1





              Doesn't work for large (~1 GB) files.

              – Ken Sharp
              Apr 15 '17 at 21:04














            • 1





              Doesn't work for large (~1 GB) files.

              – Ken Sharp
              Apr 15 '17 at 21:04








            1




            1





            Doesn't work for large (~1 GB) files.

            – Ken Sharp
            Apr 15 '17 at 21:04





            Doesn't work for large (~1 GB) files.

            – Ken Sharp
            Apr 15 '17 at 21:04











            0














            This answer applies to m4a audio files, but I had a similar issue and maybe this helps someone.



            Using ffpemg, I also ran into the issue of moov atom not found



            To fix this, this answer on Sound Design Stackexchange helped me:
            How to recover audio from an incomplete or corrupted AAC/m4a



            The answer containts the steps outlined on SysFrontier: How to fix corrupted voice memo m4a files




            • First, using a Hex Editor, delete the beginning of the file until the 't' of 'mdat'. I used HexFiend on macOS.


            • Then decode the file using faad, which can be installed using homebrew: brew install faad2


            • usage of faad in terminal: faad corruptfile.m4a



            This should hopefully result in a playable wav file in the same directory as the corrupt file.






            share|improve this answer




























              0














              This answer applies to m4a audio files, but I had a similar issue and maybe this helps someone.



              Using ffpemg, I also ran into the issue of moov atom not found



              To fix this, this answer on Sound Design Stackexchange helped me:
              How to recover audio from an incomplete or corrupted AAC/m4a



              The answer containts the steps outlined on SysFrontier: How to fix corrupted voice memo m4a files




              • First, using a Hex Editor, delete the beginning of the file until the 't' of 'mdat'. I used HexFiend on macOS.


              • Then decode the file using faad, which can be installed using homebrew: brew install faad2


              • usage of faad in terminal: faad corruptfile.m4a



              This should hopefully result in a playable wav file in the same directory as the corrupt file.






              share|improve this answer


























                0












                0








                0







                This answer applies to m4a audio files, but I had a similar issue and maybe this helps someone.



                Using ffpemg, I also ran into the issue of moov atom not found



                To fix this, this answer on Sound Design Stackexchange helped me:
                How to recover audio from an incomplete or corrupted AAC/m4a



                The answer containts the steps outlined on SysFrontier: How to fix corrupted voice memo m4a files




                • First, using a Hex Editor, delete the beginning of the file until the 't' of 'mdat'. I used HexFiend on macOS.


                • Then decode the file using faad, which can be installed using homebrew: brew install faad2


                • usage of faad in terminal: faad corruptfile.m4a



                This should hopefully result in a playable wav file in the same directory as the corrupt file.






                share|improve this answer













                This answer applies to m4a audio files, but I had a similar issue and maybe this helps someone.



                Using ffpemg, I also ran into the issue of moov atom not found



                To fix this, this answer on Sound Design Stackexchange helped me:
                How to recover audio from an incomplete or corrupted AAC/m4a



                The answer containts the steps outlined on SysFrontier: How to fix corrupted voice memo m4a files




                • First, using a Hex Editor, delete the beginning of the file until the 't' of 'mdat'. I used HexFiend on macOS.


                • Then decode the file using faad, which can be installed using homebrew: brew install faad2


                • usage of faad in terminal: faad corruptfile.m4a



                This should hopefully result in a playable wav file in the same directory as the corrupt file.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 23 at 15:10









                intagliintagli

                1454




                1454

















                    protected by slhck Sep 3 '13 at 19:49



                    Thank you for your interest in this question.
                    Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                    Would you like to answer one of these unanswered questions instead?



                    Popular posts from this blog

                    If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                    Alcedinidae

                    Can an atomic nucleus contain both particles and antiparticles? [duplicate]