<p>I would try two solutions, obviously on backups of the files, not the originals. First there is the 'untrunc' tool which tries to copy over additional information from a working file into a broken file: <a href="https://github.com/ponchio/untrunc" rel="nofollow">https://github.com/ponchio/untrunc</a></p>

<p>Then there is AtomicParsley which allows you to view file information on Mov / mp4 files on a very detailed level. Probably you can compare a working and a broken file and try to manually add the codec information.</p>

<p><a href="http://atomicparsley.sourceforge.net" rel="nofollow">http://atomicparsley.sourceforge.net</a></p>

CC BY-SA 3.0
2016-03-31T05:40:44.613Z
2016-03-31T05:40:44.613Z
Hans Meiser
<p>You can try to repair the file with <a href="https://ffmpeg.org/download.html" rel="nofollow">ffmpeg</a>, a free command-line tool, like so</p>

<pre><code>ffmpeg -analyzeduration 1G -i input.mov -c copy -map 0 out.mov
</code></pre>

CC BY-SA 3.0
2016-03-30T08:06:44.670Z
2016-03-30T08:06:44.670Z
Gyan
<p>If you need the Avid DNxHD codec, Avid offer it for free, for Quicktime (Mac and Windows):
<a href="http://avid.force.com/pkb/articles/en_US/download/en423319" rel="nofollow">http://avid.force.com/pkb/articles/en_US/download/en423319</a></p>

CC BY-SA 3.0
2016-03-30T10:10:23.090Z
I don't need the codec itself, I need the codec data in the header of the file
markb
CC BY-SA 3.0
2016-03-30T08:18:27.683Z
2016-03-30T08:18:27.683Z
tomh
<p>I have a quicktime video recorded on a Atoms Shogun.</p>

<p>When I tried to play the file it is only playing the audio and no video is coming up at all.</p>

<p>Delving deeper, I found out that no codec for the video was embedded in the file, only audio.</p>

<p>Is there any way to add the file codec to it?</p>

<hr>

<pre><code>General
Complete name                    : L:\9e550a82-d3ed-460f-a10d-f25be5c87a03.mov
Format                           : MPEG-4
Format profile                   : QuickTime
Codec ID                         : qt  
File size                        : 33.3 GiB
Duration                         : 1h 52mn
Overall bit rate                 : 42.3 Mbps
Encoded date                     : UTC 2024-12-01 19:09:30
Tagged date                      : UTC 2024-12-01 19:09:30
Writing library                  : Apple QuickTime

Video
ID                               : 2
Duration                         : 1h 52mn
Bit rate mode                    : Constant
Bit rate                         : 36.0 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Constant
Frame rate                       : 25.000 fps
Bits/(Pixel*Frame)               : 0.694
Stream size                      : 28.4 GiB (85%)
Language                         : English
Encoded date                     : UTC 2024-12-01 19:09:30
Tagged date                      : UTC 2024-12-01 19:09:30

Audio
ID                               : 1
Format                           : PCM
Format settings, Endianness      : Big
Format settings, Sign            : Unsigned
Codec ID                         : in24
Duration                         : 1h 52mn
Bit rate mode                    : Constant
Bit rate                         : 4 608 Kbps
Channel(s)                       : 4 channels
Sampling rate                    : 48.0 KHz
Bit depth                        : 24 bits
Stream size                      : 3.63 GiB (11%)
Language                         : English
Encoded date                     : UTC 2024-12-01 19:09:30
Tagged date                      : UTC 2024-12-01 19:09:30
</code></pre>

CC BY-SA 3.0
2016-03-30T06:42:22.667Z
Open the file in [Mediainfo](http://www.mediaarea.net) and show its full readout here.
Gyan
CC BY-SA 3.0
2016-03-30T07:35:38.003Z
@Mulvya I have, which is where I saw the missing codec information. It is supposed to have Avid DNxHD but it is missing
markb
CC BY-SA 3.0
2016-03-30T07:36:12.067Z
Yes, you have, but paste it here.
Gyan
CC BY-SA 3.0
2016-03-30T07:52:13.460Z
@Mulvya sorry, its updated now
markb
CC BY-SA 3.0
2016-03-30T20:15:31.380Z
I think it would be helpful if you described what happened and how you broke the file. If I should guess, I would think you tried to take out the video stream of a mxf file and messed up the file structure - but that's just a guess. In any case, I don't understand why you think you need dnxhd if mediainfo outputs your file as mp4. As far as I know dnxhd is not a valid codec to be encapsulated in a  mp4 container.
Hans Meiser
CC BY-SA 3.0
2016-03-31T00:10:53.927Z
@HansMeiser we recorded the session, and now it isn't playable. there was nothing out of the ordinary to it. the reason we say the codec info is because another file from the same recorder has it listed in mediainfo, so the comparison between them is that's whats missing. and when you put the hard drive back in the recorder to just keeps alternating between dnxhd and prores because it doesn't know what format to play it as
markb
CC BY-SA 3.0
2016-03-31T06:19:38.230Z
Did you try ffmpeg repair?
Gyan
<video><codec><quicktime>
Missing video codec in Quicktime
markb
# Missing video codec in Quicktime

(Asked by: username_0 on 2016-03-30)

I have a quicktime video recorded on a Atoms Shogun.
When I tried to play the file it is only playing the audio and no video is coming up at all.
Delving deeper, I found out that no codec for the video was embedded in the file, only audio.
Is there any way to add the file codec to it?

General
Complete name                    : L:\9e550a82-d3ed-460f-a10d-f25be5c87a03.mov
Format                           : MPEG-4
Format profile                   : QuickTime
Codec ID                         : qt  
File size                        : 33.3 GiB
Duration                         : 1h 52mn
Overall bit rate                 : 42.3 Mbps
Encoded date                     : UTC 2024-12-01 19:09:30
Tagged date                      : UTC 2024-12-01 19:09:30
Writing library                  : Apple QuickTime

Video
ID                               : 2
Duration                         : 1h 52mn
Bit rate mode                    : Constant
Bit rate                         : 36.0 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Constant
Frame rate                       : 25.000 fps
Bits/(Pixel*Frame)               : 0.694
Stream size                      : 28.4 GiB (85%)
Language                         : English
Encoded date                     : UTC 2024-12-01 19:09:30
Tagged date                      : UTC 2024-12-01 19:09:30

Audio
ID                               : 1
Format                           : PCM
Format settings, Endianness      : Big
Format settings, Sign            : Unsigned
Codec ID                         : in24
Duration                         : 1h 52mn
Bit rate mode                    : Constant
Bit rate                         : 4 608 Kbps
Channel(s)                       : 4 channels
Sampling rate                    : 48.0 KHz
Bit depth                        : 24 bits
Stream size                      : 3.63 GiB (11%)
Language                         : English
Encoded date                     : UTC 2024-12-01 19:09:30
Tagged date                      : UTC 2024-12-01 19:09:30

**Tags:** video, codec, quicktime

> **Comments:**
> **username_1**: Open the file in [Mediainfo](http://www.mediaarea.net) and show its full readout here.  
> **username_0**: @Mulvya I have, which is where I saw the missing codec information. It is supposed to have Avid DNxHD but it is missing  
> **username_1**: Yes, you have, but paste it here.  
> **username_0**: @Mulvya sorry, its updated now  
> **username_2**: I think it would be helpful if you described what happened and how you broke the file. If I should guess, I would think you tried to take out the video stream of a mxf file and messed up the file structure - but that's just a guess. In any case, I don't understand why you think you need dnxhd if mediainfo outputs your file as mp4. As far as I know dnxhd is not a valid codec to be encapsulated in a  mp4 container.  
> **username_0**: @HansMeiser we recorded the session, and now it isn't playable. there was nothing out of the ordinary to it. the reason we say the codec info is because another file from the same recorder has it listed in mediainfo, so the comparison between them is that's whats missing. and when you put the hard drive back in the recorder to just keeps alternating between dnxhd and prores because it doesn't know what format to play it as  
> **username_1**: Did you try ffmpeg repair?  

---

## 3 answers

### Answer by username_2 on 2016-03-31. Score: 1

I would try two solutions, obviously on backups of the files, not the originals. First there is the 'untrunc' tool which tries to copy over additional information from a working file into a broken file: <https://github.com/ponchio/untrunc>

Then there is AtomicParsley which allows you to view file information on Mov / mp4 files on a very detailed level. Probably you can compare a working and a broken file and try to manually add the codec information.

<http://atomicparsley.sourceforge.net>


---

### Answer by username_1 on 2016-03-30. Score: 1

You can try to repair the file with ffmpeg, a free command-line tool, like so
ffmpeg -analyzeduration 1G -i input.mov -c copy -map 0 out.mov


---

### Answer by username_3 on 2016-03-30. Score: 0

If you need the Avid DNxHD codec, Avid offer it for free, for Quicktime (Mac and Windows):
<http://avid.force.com/pkb/articles/en_US/download/en423319>

> **Comments:**
> **username_0**: I don't need the codec itself, I need the codec data in the header of the file  

---

