Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing 'Movie Header' atom (mvhd) #287

Open
yhojann-cl opened this issue Jun 24, 2024 · 0 comments
Open

Missing 'Movie Header' atom (mvhd) #287

yhojann-cl opened this issue Jun 24, 2024 · 0 comments

Comments

@yhojann-cl
Copy link

yhojann-cl commented Jun 24, 2024

Can not repair mp4 file, untrunc says:

Missing 'Movie Header' atom (mvhd)

How to resolve this?, I made the mp4 from OBS and a outage of energy.

The header file:

$ head broken.mp4 | xxd
00000000: 0000 0020 6674 7970 6973 6f6d 0000 0200  ... ftypisom....
00000010: 6973 6f6d 6973 6f32 6176 6331 6d70 3431  isomiso2avc1mp41
00000020: 0000 0008 6672 6565 0000 0000 6d64 6174  ....free....mdat
00000030: 0000 02f5 0605 ffff f1dc 45e9 bde6 d948  ..........E....H
00000040: b796 2cd8 20d9 23ee ef78 3236 3420 2d20  ..,. .#..x264 - 
00000050: 636f 7265 2031 3634 2072 3331 3036 2065  core 164 r3106 e
00000060: 6161 3638 6661 202d 2048 2e32 3634 2f4d  aa68fa - H.264/M
00000070: 5045 472d 3420 4156 4320 636f 6465 6320  PEG-4 AVC codec 
00000080: 2d20 436f 7079 6c65 6674 2032 3030 332d  - Copyleft 2003-
00000090: 3230 3233 202d 2068 7474 703a 2f2f 7777  2023 - http://ww
000000a0: 772e 7669 6465 6f6c 616e 2e6f 7267 2f78  w.videolan.org/x
000000b0: 3236 342e 6874 6d6c 202d 206f 7074 696f  264.html - optio
000000c0: 6e73 3a20 6361 6261 633d 3120 7265 663d  ns: cabac=1 ref=
000000d0: 3120 6465 626c 6f63 6b3d 313a 303a 3020  1 deblock=1:0:0 
000000e0: 616e 616c 7973 653d 3078 333a 3078 3131  analyse=0x3:0x11
000000f0: 3320 6d65 3d68 6578 2073 7562 6d65 3d32  3 me=hex subme=2
00000100: 2070 7379 3d31 2070 7379 5f72 643d 312e   psy=1 psy_rd=1.
00000110: 3030 3a30 2e30 3020 6d69 7865 645f 7265  00:0.00 mixed_re
00000120: 663d 3020 6d65 5f72 616e 6765 3d31 3620  f=0 me_range=16 
00000130: 6368 726f 6d61 5f6d 653d 3120 7472 656c  chroma_me=1 trel
00000140: 6c69 733d 3020 3878 3864 6374 3d31 2063  lis=0 8x8dct=1 c
00000150: 716d 3d30 2064 6561 647a 6f6e 653d 3231  qm=0 deadzone=21
00000160: 2c31 3120 6661 7374 5f70 736b 6970 3d31  ,11 fast_pskip=1
00000170: 2063 6872 6f6d 615f 7170 5f6f 6666 7365   chroma_qp_offse
00000180: 743d 3020 7468 7265 6164 733d 3234 206c  t=0 threads=24 l
00000190: 6f6f 6b61 6865 6164 5f74 6872 6561 6473  ookahead_threads
000001a0: 3d38 2073 6c69 6365 645f 7468 7265 6164  =8 sliced_thread
000001b0: 733d 3020 6e72 3d30 2064 6563 696d 6174  s=0 nr=0 decimat
000001c0: 653d 3120 696e 7465 726c 6163 6564 3d30  e=1 interlaced=0
000001d0: 2062 6c75 7261 795f 636f 6d70 6174 3d30   bluray_compat=0
000001e0: 2063 6f6e 7374 7261 696e 6564 5f69 6e74   constrained_int
000001f0: 7261 3d30 2062 6672 616d 6573 3d33 2062  ra=0 bframes=3 b
00000200: 5f70 7972 616d 6964 3d32 2062 5f61 6461  _pyramid=2 b_ada
00000210: 7074 3d31 2062 5f62 6961 733d 3020 6469  pt=1 b_bias=0 di
00000220: 7265 6374 3d31 2077 6569 6768 7462 3d31  rect=1 weightb=1
00000230: 206f 7065 6e5f 676f 703d 3020 7765 6967   open_gop=0 weig
00000240: 6874 703d 3120 6b65 7969 6e74 3d31 3230  htp=1 keyint=120
00000250: 206b 6579 696e 745f 6d69 6e3d 3132 2073   keyint_min=12 s
00000260: 6365 6e65 6375 743d 3020 696e 7472 615f  cenecut=0 intra_
00000270: 7265 6672 6573 683d 3020 7263 5f6c 6f6f  refresh=0 rc_loo
00000280: 6b61 6865 6164 3d31 3020 7263 3d63 6272  kahead=10 rc=cbr
00000290: 206d 6274 7265 653d 3120 6269 7472 6174   mbtree=1 bitrat
000002a0: 653d 3630 3030 2072 6174 6574 6f6c 3d31  e=6000 ratetol=1
000002b0: 2e30 2071 636f 6d70 3d30 2e36 3020 7170  .0 qcomp=0.60 qp
000002c0: 6d69 6e3d 3020 7170 6d61 783d 3639 2071  min=0 qpmax=69 q
000002d0: 7073 7465 703d 3420 7662 765f 6d61 7872  pstep=4 vbv_maxr
000002e0: 6174 653d 3630 3030 2076 6276 5f62 7566  ate=6000 vbv_buf
000002f0: 7369 7a65 3d36 3030 3020 6e61 6c5f 6872  size=6000 nal_hr
00000300: 643d 6e6f 6e65 2066 696c 6c65 723d 3120  d=none filler=1 
00000310: 6970 5f72 6174 696f 3d31 2e34 3020 6171  ip_ratio=1.40 aq
00000320: 3d31 3a31 2e30 3000 8000 0000 1e67 6400  =1:1.00......gd.
00000330: 2aac d940 7802 27e5 c05a 8080 80a0 0000  *..@x.'..Z......
00000340: 0300 2000 000f 11e3 0632 c000 0000 0468  .. ......2.....h
00000350: efbc b000 0002 f506 05ff fff1 dc45 e9bd  .............E..
00000360: e6d9 48b7 962c d820 d923 eeef 7832 3634  ..H..,. .#..x264
00000370: 202d 2063 6f72 6520 3136 3420 7233 3130   - core 164 r310
00000380: 3620 6561 6136 3866 6120 2d20 482e 3236  6 eaa68fa - H.26
00000390: 342f 4d50 4547 2d34 2041 5643 2063 6f64  4/MPEG-4 AVC cod
000003a0: 6563 202d 2043 6f70 796c 6566 7420 3230  ec - Copyleft 20
000003b0: 3033 2d32 3032 3320 2d20 6874 7470 3a2f  03-2023 - http:/
000003c0: 2f77 7777 2e76 6964 656f 6c61 6e2e 6f72  /www.videolan.or
000003d0: 672f 7832 3634 2e68 746d 6c20 2d20 6f70  g/x264.html - op
000003e0: 7469 6f6e 733a 2063 6162 6163 3d31 2072  tions: cabac=1 r
000003f0: 6566 3d31 2064 6562 6c6f 636b 3d31 3a30  ef=1 deblock=1:0
00000400: 3a30 2061 6e61 6c79 7365 3d30 7833 3a30  :0 analyse=0x3:0
00000410: 7831 3133 206d 653d 6865 7820 7375 626d  x113 me=hex subm
00000420: 653d 3220 7073 793d 3120 7073 795f 7264  e=2 psy=1 psy_rd
00000430: 3d31 2e30 303a 302e 3030 206d 6978 6564  =1.00:0.00 mixed
00000440: 5f72 6566 3d30 206d 655f 7261 6e67 653d  _ref=0 me_range=
00000450: 3136 2063 6872 6f6d 615f 6d65 3d31 2074  16 chroma_me=1 t
00000460: 7265 6c6c 6973 3d30 2038 7838 6463 743d  rellis=0 8x8dct=
00000470: 3120 6371 6d3d 3020 6465 6164 7a6f 6e65  1 cqm=0 deadzone
00000480: 3d32 312c 3131 2066 6173 745f 7073 6b69  =21,11 fast_pski
00000490: 703d 3120 6368 726f 6d61 5f71 705f 6f66  p=1 chroma_qp_of
000004a0: 6673 6574 3d30 2074 6872 6561 6473 3d32  fset=0 threads=2
000004b0: 3420 6c6f 6f6b 6168 6561 645f 7468 7265  4 lookahead_thre
000004c0: 6164 733d 3820 736c 6963 6564 5f74 6872  ads=8 sliced_thr
000004d0: 6561 6473 3d30 206e 723d 3020 6465 6369  eads=0 nr=0 deci
000004e0: 6d61 7465 3d31 2069 6e74 6572 6c61 6365  mate=1 interlace
000004f0: 643d 3020 626c 7572 6179 5f63 6f6d 7061  d=0 bluray_compa
00000500: 743d 3020 636f 6e73 7472 6169 6e65 645f  t=0 constrained_
00000510: 696e 7472 613d 3020 6266 7261 6d65 733d  intra=0 bframes=
00000520: 3320 625f 7079 7261 6d69 643d 3220 625f  3 b_pyramid=2 b_
00000530: 6164 6170 743d 3120 625f 6269 6173 3d30  adapt=1 b_bias=0
00000540: 2064 6972 6563 743d 3120 7765 6967 6874   direct=1 weight
00000550: 623d 3120 6f70 656e 5f67 6f70 3d30 2077  b=1 open_gop=0 w
00000560: 6569 6768 7470 3d31 206b 6579 696e 743d  eightp=1 keyint=
00000570: 3132 3020 6b65 7969 6e74 5f6d 696e 3d31  120 keyint_min=1
00000580: 3220 7363 656e 6563 7574 3d30 2069 6e74  2 scenecut=0 int
00000590: 7261 5f72 6566 7265 7368 3d30 2072 635f  ra_refresh=0 rc_
000005a0: 6c6f 6f6b 6168 6561 643d 3130 2072 633d  lookahead=10 rc=
000005b0: 6362 7220 6d62 7472 6565 3d31 2062 6974  cbr mbtree=1 bit
000005c0: 7261 7465 3d36 3030 3020 7261 7465 746f  rate=6000 rateto
000005d0: 6c3d 312e 3020 7163 6f6d 703d 302e 3630  l=1.0 qcomp=0.60
000005e0: 2071 706d 696e 3d30 2071 706d 6178 3d36   qpmin=0 qpmax=6
000005f0: 3920 7170 7374 6570 3d34 2076 6276 5f6d  9 qpstep=4 vbv_m
00000600: 6178 7261 7465 3d36 3030 3020 7662 765f  axrate=6000 vbv_
00000610: 6275 6673 697a 653d 3630 3030 206e 616c  bufsize=6000 nal
00000620: 5f68 7264 3d6e 6f6e 6520 6669 6c6c 6572  _hrd=none filler
00000630: 3d31 2069 705f 7261 7469 6f3d 312e 3430  =1 ip_ratio=1.40
00000640: 2061 713d 313a 312e 3030 0080 0001 2556   aq=1:1.00....%V
00000650: 6588 8400 bff1 0274 dc9f c0ee c470 cd33  e......t.....p.3
00000660: 4fe3 d215 a91c cd7e f6ee a28d df9c 33f1  O......~......3.
00000670: 5430 8470 fe50 8843 24f3 0549 c940 4d71  T0.p.P.C$..I.@Mq
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant