VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. I am unable to open some mov files that I took with my Fuji Finepix HS25EXR. The first 4 open with no problem but the last 14 will not open and when I try opening them with Videos in Linux Mint I get an error message that says it was unable to determine the stream type. I normally have the camera in EXR mode but after I found I had a problem I found the camera was in advanced mode. I don't know what effect that would have on videos. I ran FFMPEG against one of the bad files and this is what it told me:

    ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
    built on Nov 20 2013 08:04:32 with gcc 4.8 (Debian 4.8.2-5)
    configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-libiec61883 --enable-libfdk-aac --enable-vaapi --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu
    libavutil 52. 48.101 / 52. 48.101
    libavcodec 55. 39.101 / 55. 39.101
    libavformat 55. 19.104 / 55. 19.104
    libavdevice 55. 5.100 / 55. 5.100
    libavfilter 3. 90.100 / 3. 90.100
    libswscale 2. 5.101 / 2. 5.101
    libswresample 0. 17.104 / 0. 17.104
    libpostproc 52. 3.100 / 52. 3.100
    [adp @ 0xaabb00] Format adp detected only with low score of 25, misdetection possible!
    Input #0, adp, from 'Videos/Eugene/DSCF0889.MOV':
    Duration: 09:28:30.69, start: 0.000000, bitrate: 438 kb/s
    Stream #0:0: Audio: adpcm_dtk, 48000 Hz, stereo, s16p
    [mp4 @ 0xab86a0] track 0: could not find tag, codec not currently supported in container
    Output #0, mp4, to 'out.mp4':
    Metadata:
    encoder : Lavf55.19.104
    Stream #0:0: Audio: adpcm_dtk, 48000 Hz, stereo
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted

    I ran Untrunc against the file giving it a good file also it it ran for 10 hours before I finally stopped it with no results.

    I have posted on Linuxquestions.org also. Does anyone have a suggestion on how to fix these files? Thank you.

    Running Mediainfo against the file that won't open and one that will that should have been very similar gave me this:

    kuser@khost:~/Videos/Eugene$ mediainfo DSCF0889.MOV
    General
    Complete name : DSCF0889.MOV
    File size : 1.74 GiB


    kuser@khost:~/Videos/Eugene$ mediainfo DSCF0871.MOV
    General
    Complete name : DSCF0871.MOV
    Format : MPEG-4
    Format profile : QuickTime
    Codec ID : qt
    File size : 1.89 GiB
    Duration : 19mn 8s
    Overall bit rate : 14.1 Mbps
    Movie name/More : FUJIFILM DIGITAL CAMERA FinePix HS25EXR
    Encoded date : UTC 2016-07-21 10:45:24
    Tagged date : UTC 2016-07-21 10:45:24
    Origin : Digital Camera

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.0
    Format settings, CABAC : No
    Format settings, ReFrames : 1 frame
    Format settings, GOP : M=1, N=15
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 19mn 8s
    Bit rate : 12.6 Mbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 29.970 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.202
    Stream size : 1.68 GiB (89%)
    Language : English
    Encoded date : UTC 2016-07-21 10:45:24
    Tagged date : UTC 2016-07-21 10:45:24

    Audio
    ID : 2
    Format : PCM
    Format settings, Endianness : Little
    Format settings, Sign : Signed
    Codec ID : sowt
    Duration : 19mn 8s
    Bit rate mode : Constant
    Bit rate : 768 Kbps
    Channel count : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Stream size : 105 MiB (5%)
    Language : English
    Encoded date : UTC 2016-07-21 10:45:24
    Tagged date : UTC 2016-07-21 10:45:24
    Last edited by rstuff; 25th Jul 2016 at 19:08. Reason: Adding Mediainfo results
    Quote Quote  
  2. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Sounds like damaged or missing header. Have you tried recover_mp4_to_h264?
    Quote Quote  
  3. I have not used recover_mp4_to_h264. I don't have Windows. I did try Untrunc which does use a good file to help restore a bad file but it seemed to get stuck in a loop.
    Quote Quote  
  4. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    It's a console app so you may be able to run it in DOSBox.
    Quote Quote  
  5. I did get Dosbox and Recover_Mp4 installed but I am now having other issues with running out of space on my harddrive. I saw this coming quite some time ago but never fixed it. Video's eat up space pretty fast. I am also looking at updating my operating system. I saw where Dosbox breaks the video into separate audio and video componets and then you have to put them back together with another program like FFMPEG. I may need some help with the FFMPEG parameters when I get there. Thank you.
    Quote Quote  
  6. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Something's odd about the audio: 2ch x 48kHz x 16bit LPCM should equal double your 768kbps.

    Scott
    Quote Quote  
  7. That is encouraging because it worked for me. Thank you.
    Quote Quote  
  8. I got my space problems resolved and found that recover_mp4_to_h264 does not run under DOS. I tried running it under Wine and I got a lot of errors which I am trying to resolve. The output follows.

    kuser@khost:~$ wine Windows/recover_mp4_to_h264.exe Videos/Eugene/DSCF0871.MOV --analyze
    err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
    fixmeervicecmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
    fixmeervicecmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 2
    fixme:heap:HeapSetInformation (nil) 1 (nil) 0
    recover_mp4_to_h264 v1.44 (C) 2011-2016 Dmitry Vasilyev <slydiman@mail.ru>
    http://slydiman.me

    Cannot map file 'Videos/Eugene/DSCF0871.MOV', MapViewOfFile error 8
    WARNING: Used slow file read method
    Analyzing file 'Videos/Eugene/DSCF0871.MOV':

    'ftyp' 0x0 [20] Major Brand: 'qt ', Minor Version: 0x0
    Compatible brands: 'qt '
    'moov' 0x14 [1017252]
    'mvhd' 0x1C [108] Movie Header: Time scale 30000, Duration 34444410 (1148.15 sec)
    Rate 1, Volume 1
    Creating time: 2016/7/21 10:45:24
    Modification time: 2016/7/21 10:45:24
    Next Track ID: 3
    'trak' 0x88 [922150]
    'tkhd' 0x90 [92] Track #1, Duration 34444410
    Resolution: 1920x1080
    Creating time: 2016/7/21 10:45:24
    Modification time: 2016/7/21 10:45:24
    'edts' 0xEC [36]
    Unprocessed 28 bytes
    'mdia' 0x110 [922014]
    'mdhd' 0x118 [32] Media Header: Time scale 30000, Duration 34444410 (1148.15 sec)
    Creating time: 2016/7/21 10:45:24
    Modification time: 2016/7/21 10:45:24
    'hdlr' 0x138 [33] Component Type: 'mhlr', Subtype: 'vide'
    'minf' 0x159 [921941]
    'vmhd' 0x161 [20]
    'dinf' 0x175 [36]
    'dref' 0x17D [28]
    'url ' 0x18D [12]
    Unprocessed 4 bytes 00 00 00 01
    'stbl' 0x199 [921877]
    'stsd' 0x1A1 [153]
    'avc1' 0x1B1 [137] Video Sample 1920x1080, 24 bits, AVC Coding
    'avcC' 0x207 [51] AVC video 1920x1080, High Profile, Level 4.0
    'stts' 0x23A [24] Time-to-Sample[1] (#: Count * Duration):
    0: 34410 * 1001
    'stsc' 0x252 [28] Sample-to-Chunk[1] (#: FirstChunk / SamplesPerChunk / SampleDescIndex):
    0: 1 / 30 / 1
    'free' 0x26E [12]
    'stsz' 0x27A [137660] Sample Size[34410] (#: Sample Size):
    0: 0x2e740
    1: 0x92c0
    2: 0x9040
    3: 0x8d80
    4: 0x8ac0
    5: 0xa600
    6: 0x9b40
    7: 0x9ac0
    8: 0x9a00
    9: 0x9440
    10: 0x9440
    ...
    'free' 0x21C36 [726360]
    'stco' 0xD318E [4604] Chunk Offset[1147] (#: Chunk Offset):
    0: 0x127480
    1: 0x2da9c0
    2: 0x483a00
    3: 0x632800
    4: 0x7e0440
    5: 0x98f1c0
    6: 0xb41100
    7: 0xcef280
    8: 0xe9f900
    9: 0x104d100
    10: 0x11ffac0
    ...
    'free' 0xD438A [24212]
    'stss' 0xDA21E [4604] Sync Sample[1147] (#: SamplesNumber):
    0: 1
    1: 31
    2: 61
    3: 91
    4: 121
    5: 151
    6: 181
    7: 211
    8: 241
    9: 271
    10: 301
    ...
    'free' 0xDB41A [24212]
    'trak' 0xE12AE [29229]
    'tkhd' 0xE12B6 [92] Track #2, Duration 34444410
    Creating time: 2016/7/21 10:45:24
    Modification time: 2016/7/21 10:45:24
    'edts' 0xE1312 [36]
    Unprocessed 28 bytes
    'mdia' 0xE1336 [29093]
    'mdhd' 0xE133E [32] Media Header: Time scale 48000, Duration 55111056 (1148.15 sec)
    Creating time: 2016/7/21 10:45:24
    Modification time: 2016/7/21 10:45:24
    'hdlr' 0xE135E [33] Component Type: 'mhlr', Subtype: 'soun'
    'minf' 0xE137F [29020]
    'smhd' 0xE1387 [16]
    'dinf' 0xE1397 [36]
    'dref' 0xE139F [28]
    'url ' 0xE13AF [12]
    Unprocessed 4 bytes 00 00 00 01
    'stbl' 0xE13BB [28960]
    'stsd' 0xE13C3 [52]
    'sowt' 0xE13D3 [36] Sound Sample v0, 2ch, 16 bits, 48000 Hz
    'stts' 0xE13F7 [24] Time-to-Sample[1] (#: Count * Duration):
    0: 55111056 * 1
    'stsc' 0xE140F [28] Sample-to-Chunk[1] (#: FirstChunk / SamplesPerChunk / SampleDescIndex):
    0: 1 / 48048 / 1
    'free' 0xE142B [12]
    'stsz' 0xE1437 [20] Sample Size[0] (#: Sample Size = 0x2):
    'stco' 0xE144B [4604] Chunk Offset[1147] (#: Chunk Offset):
    0: 0xf85c0
    1: 0x2abb00
    2: 0x454b40
    3: 0x603940
    4: 0x7b1580
    5: 0x960300
    6: 0xb12240
    7: 0xcc03c0
    8: 0xe70a40
    9: 0x101e240
    10: 0x11d0c00
    ...
    'free' 0xE2647 [24212]
    'udta' 0xE84DB [65757]
    '?fmt' 0xE84E7 [26] Digital Camera
    '?inf' 0xE8501 [68] FUJIFILM DIGITAL CAMERA FinePix HS25EXR
    'FFMV' 0xE8541 [38]
    Unprocessed 30 bytes
    'MVTG' 0xE8567 [10214]
    Unprocessed 10206 bytes
    'free' 0xEAD4D [55403]
    'mdat' 0xF85B8 [2025705480]
    ----------------------

    File 'avcc.hdr' created succesfully
    File 'mp4a.hdr' created succesfully
    ----------------------

    Video statistics:
    Sample Size: Min 0x2b40, Avg 0xa5c0, Max 0x33d80
    Samples Per Chunk: Min 30, Avg 30, Max 30

    Count 1147, [ 65 88 82] Size Min 0x1fc7c, Avg 0x2aefc, Max 0x3393c
    Count 1147, [ 41 9a 10] Size Min 0x4dbc, Avg 0xa67c, Max 0x16ffc
    Count 1147, [ 41 9a 21] Size Min 0x4e3c, Avg 0x9dbc, Max 0x1333c
    Count 1147, [ 41 9a 31] Size Min 0x46fc, Avg 0x983c, Max 0x13a3c
    Count 1147, [ 41 9a 42] Size Min 0x4abc, Avg 0x993c, Max 0x1553c
    Count 1147, [ 41 9a 52] Size Min 0x3bfc, Avg 0x9d3c, Max 0x1db3c
    Count 1147, [ 41 9a 63] Size Min 0x357c, Avg 0x9f7c, Max 0x1a07c
    Count 1147, [ 41 9a 73] Size Min 0x34bc, Avg 0xa0fc, Max 0x14a3c
    Count 1147, [ 41 9a 84] Size Min 0x2b3c, Avg 0x9ebc, Max 0x1313c
    Count 1147, [ 41 9a 94] Size Min 0x4bfc, Avg 0x9e7c, Max 0x139bc
    Count 1147, [ 41 9a a5] Size Min 0x437c, Avg 0x9ffc, Max 0x1327c
    Count 1147, [ 41 9a b5] Size Min 0x4d3c, Avg 0xa0fc, Max 0x12d7c
    Count 1147, [ 41 9a c6] Size Min 0x503c, Avg 0xa13c, Max 0x125fc
    Count 1147, [ 41 9a d6] Size Min 0x5bbc, Avg 0xbc3c, Max 0x15e3c
    Count 1147, [ 41 9a e7] Size Min 0x4e7c, Avg 0xac7c, Max 0x1583c
    Count 1147, [ 61 88 bd] Size Min 0x235fc, Avg 0x2b27c, Max 0x33d7c
    Count 1147, [ 41 9b 08] Size Min 0x537c, Avg 0xa3fc, Max 0x14b3c
    Count 1147, [ 41 9b 18] Size Min 0x4abc, Avg 0x9c7c, Max 0x16c7c
    Count 1147, [ 41 9b 29] Size Min 0x487c, Avg 0x9a7c, Max 0x132fc
    Count 1147, [ 41 9b 39] Size Min 0x47fc, Avg 0x997c, Max 0x13b7c
    Count 1147, [ 41 9b 4a] Size Min 0x4fbc, Avg 0x9cbc, Max 0x135fc
    Count 1147, [ 41 9b 5a] Size Min 0x47bc, Avg 0x9d7c, Max 0x1297c
    Count 1147, [ 41 9b 6b] Size Min 0x4abc, Avg 0xa13c, Max 0x1a93c
    Count 1147, [ 41 9b 7b] Size Min 0x48bc, Avg 0xa03c, Max 0x1a17c
    Count 1147, [ 41 9b 8c] Size Min 0x46fc, Avg 0xa07c, Max 0x15cfc
    Count 1147, [ 41 9b 9c] Size Min 0x4dfc, Avg 0xa03c, Max 0x1757c
    Count 1147, [ 41 9b ad] Size Min 0x58fc, Avg 0x9ffc, Max 0x139bc
    Count 1147, [ 41 9b bd] Size Min 0x4b3c, Avg 0x9ffc, Max 0x133bc
    Count 1147, [ 41 9b ce] Size Min 0x56bc, Avg 0xbefc, Max 0x151bc
    Count 1147, [ 41 9b de] Size Min 0x58fc, Avg 0xb1bc, Max 0x1587c
    ----------------------

    Sound statistics:
    Sample Size: Min 0x2, Avg 0x2, Max 0x2
    Samples Per Chunk: Min 48048, Avg 48048, Max 48048

    Now run the following command to start recovering:
    recover_mp4_to_h264.exe corrupted_file result.h264 result.wav --qt

    Then use ffmpeg to mux the final file:
    ffmpeg.exe -r 29.970 -i result.h264 -i result.wav -c:v copy -c:a copy result.mov
    kuser@khost:~$ ^C
    kuser@khost:~$ wine Windows/recover_mp4_to_h264.exe Videos/Eugene/DSCF0889.MOV result.h264 result.wav --qt
    err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
    fixmeervicecmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
    fixmeervicecmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 2
    fixme:heap:HeapSetInformation (nil) 1 (nil) 0
    recover_mp4_to_h264 v1.44 (C) 2011-2016 Dmitry Vasilyev <slydiman@mail.ru>
    http://slydiman.me

    Writing H264 video file 'result.h264'...
    Video format: AVC video 1920x1080, High Profile, Level 4.0
    Assuming max AVC NAL unit size 0xEA3800
    Used AVC templates: QuickTime MOV
    WARNING: Cannot find 'esds' atom inside audio header 'mp4a.hdr'.
    Writing audio file 'result.wav'...
    Audio format: Assuming audio stream is PCM, 48000Hz 2ch 16bit
    Searching 'mdat' atom in 'Videos/Eugene/DSCF0889.MOV'...
    Cannot find 'mdat' atom in first 64MB of 'Videos/Eugene/DSCF0889.MOV'
    FATAL ERROR: The file 'Videos/Eugene/DSCF0889.MOV' cannot be recovered. The entire file is filled by FF byte!
    Video=0.000
    'result.h264' created, size 40 (0.000%)
    Audio=0.000
    'result.wav' created, size 46 (0.000%)
    kuser@khost:~$ ffmpeg.exe -r 29.970 -i result.h264 -i result.wav -c:v copy -c:a copy result.mov
    ffmpeg.exe: command not found
    kuser@khost:~$ ffmpeg -r 29.970 -i result.h264 -i result.wav -c:v copy -c:a copy result.mov
    ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
    built on Nov 20 2013 08:04:32 with gcc 4.8 (Debian 4.8.2-5)
    configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-libiec61883 --enable-libfdk-aac --enable-vaapi --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu
    libavutil 52. 48.101 / 52. 48.101
    libavcodec 55. 39.101 / 55. 39.101
    libavformat 55. 19.104 / 55. 19.104
    libavdevice 55. 5.100 / 55. 5.100
    libavfilter 3. 90.100 / 3. 90.100
    libswscale 2. 5.101 / 2. 5.101
    libswresample 0. 17.104 / 0. 17.104
    libpostproc 52. 3.100 / 52. 3.100
    [h264 @ 0x1dd1b00] Format h264 detected only with low score of 1, misdetection possible!
    [h264 @ 0x1dd2560] missing picture in access unit with size 40
    [h264 @ 0x1dd2560] no frame!
    [h264 @ 0x1dd1b00] decoding for stream 0 failed
    [h264 @ 0x1dd1b00] Could not find codec parameters for stream 0 (Video: h264): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    result.h264: could not find codec parameters
    Quote Quote  
  9. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Looks like your MOV is not recoverable with this tool. Did you try "increasing the value for the 'analyzeduration' and 'probesize' options"?
    Quote Quote  
  10. I have not tried bumping up the duration or probe size. My kids have Mac's and Window PC's and I plan on seeing them this weekend so I will see if a Mac or Windows PC has any better luck with them.
    Quote Quote  
  11. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Oops, that was bad advice I gave you. The last messages are from FFmpeg, which didn't have anything valid to work on because recover_mp4_to_h264 couldn't find the media streams. It said your file was filled with FF bytes (all 1s) which is very bad news. I doubt the platform errors had anything to do with it. But give it a try on Windows and good luck!
    Quote Quote  
  12. I saw another post on here. https://forum.videohelp.com/threads/379840-Mov-file-corrupted-and-won-t-play-Help%21?p=...16#post2455316 I checked the files with Virtualdub hex editor and they were filled with high values like you said. I am surprised that the camera did not complain about the card but I guess the card may have failed after the last video. The camera tells me to format the card now.
    Thank you.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!