How to encode damaged video

HandBrake for Mac support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
chrissyboy
Posts: 2
Joined: Mon Sep 30, 2019 7:34 pm

How to encode damaged video

Post by chrissyboy » Mon Sep 30, 2019 7:47 pm

I think my video camera has a fault which seems to be intermittent. I have a video with good picture quality but the picture stops after a few minutes. The audio plays continuously though. The sound is not great. HandBrake balks at encoding the video. It has encoded 2 minutes of the 18 minute video.

I shot with 2 cameras. The other camera did not record sound but the picture is ok. (Human error in that case)

So I want to get the sound from the dodgy video to my editor so he can clean up and amplify the sound and make a decent video from the two. How can I get it to encode.


HandBrake version 1.2.0

Mac OS X El Capitan Version 10.11.6
(Don't know how to get an activity log)

chrissyboy
Posts: 2
Joined: Mon Sep 30, 2019 7:34 pm

Re: How to encode damaged video

Post by chrissyboy » Mon Sep 30, 2019 8:29 pm

Can't see an edit function.

Here is the Activity log:[19:19:19] macgui: Handbrake Version: 1.2.0 (2018122200)
[19:19:22] hb_init: starting libhb thread
[19:19:22] hb_init: starting libhb thread
[19:20:17] macgui: trying to open a folder or file
[19:20:17] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[19:20:17] CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
[19:20:17] - Intel microarchitecture Ivy Bridge
[19:20:17] - logical processor count: 4
[19:20:17] hb_scan: path=/Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[19:20:17] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[19:20:17] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isomavc1mp42
creation_time : 2019-01-06T08:08:04.000000Z
original_format : DCIM
original_format-eng: DCIM
comment : DEMO1
comment-eng : DEMO1
Duration: 00:18:55.73, start: 0.000000, bitrate: 20253 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 2560x1440, 20075 kb/s, 30 fps, 30 tbr, 60k tbn, 60 tbc (default)
Metadata:
creation_time : 2019-01-06T08:08:04.000000Z
handler_name : VideoHandler
encoder : h264
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 96 kb/s (default)
Metadata:
creation_time : 2019-01-06T08:08:04.000000Z
handler_name : SoundHandler
[19:20:18] scan: decoding previews for title 1
[19:20:18] scan: audio 0x1: aac, rate=32000Hz, bitrate=96000 English (AAC LC) (1.0 ch)
[19:20:20] scan: 10 previews, 2560x1440, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:20:20] libhb: scan thread found 1 valid title(s)
[19:20:20] macgui: ScanCore scan done
[19:22:03] macgui: QueueCore prevented sleep
[19:22:03] macgui: QueueCore scanning specifically for title: 1
[19:22:03] CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
[19:22:03] - Intel microarchitecture Ivy Bridge
[19:22:03] - logical processor count: 4
[19:22:03] hb_scan: path=/Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[19:22:03] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[19:22:03] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isomavc1mp42
creation_time : 2019-01-06T08:08:04.000000Z
original_format : DCIM
original_format-eng: DCIM
comment : DEMO1
comment-eng : DEMO1
Duration: 00:18:55.73, start: 0.000000, bitrate: 20253 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 2560x1440, 20075 kb/s, 30 fps, 30 tbr, 60k tbn, 60 tbc (default)
Metadata:
creation_time : 2019-01-06T08:08:04.000000Z
handler_name : VideoHandler
encoder : h264
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 96 kb/s (default)
Metadata:
creation_time : 2019-01-06T08:08:04.000000Z
handler_name : SoundHandler
[19:22:03] scan: decoding previews for title 1
[19:22:03] scan: audio 0x1: aac, rate=32000Hz, bitrate=96000 English (AAC LC) (1.0 ch)
[19:22:05] scan: 10 previews, 2560x1440, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:22:05] libhb: scan thread found 1 valid title(s)
[19:22:05] macgui: QueueCore scan done
[19:22:05] macgui: QueueCore started encoding Aminos first segment - dodgy sound.mp4
[19:22:05] macgui: QueueCore with preset Fast 1080p30 (Modified)
[19:22:05] 1 job(s) to process
[19:22:05] starting job
[19:22:05] decomb filter thread started for segment 1
[19:22:05] decomb filter thread started for segment 0
[19:22:05] decomb filter thread started for segment 2
[19:22:05] decomb filter thread started for segment 3
[19:22:05] decomb check thread started for segment 0
[19:22:05] decomb check thread started for segment 1
[19:22:05] decomb check thread started for segment 2
[19:22:05] decomb check thread started for segment 3
[19:22:05] mask filter thread started for segment 0
[19:22:05] mask filter thread started for segment 1
[19:22:05] mask filter thread started for segment 2
[19:22:05] mask filter thread started for segment 3
[19:22:05] mask erode thread started for segment 0
[19:22:05] mask erode thread started for segment 1
[19:22:05] mask erode thread started for segment 2
[19:22:05] mask erode thread started for segment 3
[19:22:05] mask dilate thread started for segment 0
[19:22:05] mask dilate thread started for segment 1
[19:22:05] mask dilate thread started for segment 2
[19:22:05] mask dilate thread started for segment 3
[19:22:05] yadif thread started for segment 0
[19:22:05] yadif thread started for segment 1
[19:22:05] yadif thread started for segment 2
[19:22:05] yadif thread started for segment 3
[19:22:05] work: only 1 chapter, disabling chapter markers
[19:22:05] job configuration:
[19:22:05] * source
[19:22:05] + /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4
[19:22:05] + title 1, chapter(s) 1 to 1
[19:22:05] + container: mov,mp4,m4a,3gp,3g2,mj2
[19:22:05] + data rate: 20253 kbps
[19:22:05] * destination
[19:22:05] + /Users/chrisparkinson/Desktop/Aminos first segment - dodgy sound.mp4
[19:22:05] + container: MPEG-4 (libavformat)
[19:22:05] + align initial A/V stream timestamps
[19:22:05] * video track
[19:22:05] + decoder: h264
[19:22:05] + bitrate 20075 kbps
[19:22:05] + filters
[19:22:05] + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[19:22:05] + Decomb (mode=39)
[19:22:05] + Framerate Shaper (mode=2:rate=27000000/900000)
[19:22:05] + frame rate: 30.000 fps -> peak rate limited to 30.000 fps
[19:22:05] + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[19:22:05] + source: 2560 * 1440, crop (0/0/0/0): 2560 * 1440, scale: 1920 * 1080
[19:22:05] + Output geometry
[19:22:05] + storage dimensions: 1920 x 1080
[19:22:05] + pixel aspect ratio: 1 : 1
[19:22:05] + display dimensions: 1920 x 1080
[19:22:05] + encoder: H.264 (libx264)
[19:22:05] + preset: fast
[19:22:05] + profile: main
[19:22:05] + level: 4.0
[19:22:05] + quality: 32.00 (RF)
[19:22:05] + color profile: 1-1-1
[19:22:05] * audio track 1
[19:22:05] + decoder: English (AAC LC) (1.0 ch) (track 1, id 0x1)
[19:22:05] + bitrate: 96 kbps, samplerate: 32000 Hz
[19:22:05] + mixdown: Mono
[19:22:05] + dither: triangular
[19:22:05] + encoder: AAC (Apple AudioToolbox)
[19:22:05] + bitrate: 96 kbps, samplerate: 32000 Hz
[19:22:05] sync: expecting 34071 video frames
[19:22:06] encx264: min-keyint: 30, keyint: 300
[19:22:06] encx264: encoding at constant RF 32.000000
[19:22:06] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[19:22:06] sync: first pts video is 0
[19:22:06] sync: "Chapter 1" (1) at frame 1 time 0
[19:22:06] sync: first pts audio 0x1 is 0
error: av_read_frame error (-5): Input/output error
[19:32:12] reader: done. 1 scr changes
[19:32:21] work: average encoding speed for job is 6.575415 fps
[19:32:21] comb detect: heavy 0 | light 2 | uncombed 4034 | total 4036
[19:32:21] decomb: deinterlaced 0 | blended 2 | unfiltered 4034 | total 4036
[19:32:21] vfr: 4036 frames output, 0 dropped and 0 duped for CFR/PFR
[19:32:21] vfr: lost time: 0 (0 frames)
[19:32:21] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:32:21] aac-decoder done: 4210 frames, 0 decoder errors
[19:32:21] h264-decoder done: 4036 frames, 1 decoder errors
[19:32:21] sync: got 4036 frames, 34071 expected
[19:32:21] sync: framerate min 30.000 fps, max 30.000 fps, avg 30.000 fps
x264 [info]: frame I:14 Avg QP:28.41 size: 86971
x264 [info]: frame P:1281 Avg QP:31.94 size: 5464
x264 [info]: frame B:2741 Avg QP:33.48 size: 1301
x264 [info]: consecutive B-frames: 0.4% 22.7% 13.2% 63.6%
x264 [info]: mb I I16..4: 48.7% 0.0% 51.3%
x264 [info]: mb P I16..4: 4.3% 0.0% 0.5% P16..4: 14.9% 2.2% 1.1% 0.0% 0.0% skip:76.9%
x264 [info]: mb B I16..4: 1.3% 0.0% 0.0% B16..8: 5.7% 0.5% 0.0% direct: 0.7% skip:91.8% L0:38.2% L1:60.1% BI: 1.6%
x264 [info]: coded y,uvDC,uvAC intra: 8.2% 20.7% 4.4% inter: 0.9% 1.3% 0.0%
x264 [info]: i16 v,h,dc,p: 40% 25% 21% 15%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 20% 26% 4% 6% 5% 6% 4% 4%
x264 [info]: i8c dc,h,v,p: 77% 13% 8% 1%
x264 [info]: Weighted P-Frames: Y:3.5% UV:0.2%
x264 [info]: ref P L0: 71.6% 28.4%
x264 [info]: ref B L0: 83.2% 16.8%
x264 [info]: ref B L1: 94.4% 5.6%
x264 [info]: kb/s:700.68
[19:32:22] mux: track 0, 4036 frames, 11782575 bytes, 699.44 kbps, fifo 4096
[19:32:22] mux: track 1, 4213 frames, 1659174 bytes, 98.49 kbps, fifo 4096
[19:32:22] libhb: work result = 5
[19:32:22] macgui: QueueCore work failed
[19:32:22] macgui: Queue Done, there are no more pending encodes
[19:32:22] macgui: QueueCore stopped preventing sleep
[21:23:39] macgui: QueueCore prevented sleep
[21:23:39] macgui: QueueCore scanning specifically for title: 1
[21:23:39] CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
[21:23:39] - Intel microarchitecture Ivy Bridge
[21:23:39] - logical processor count: 4
[21:23:39] hb_scan: path=/Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4, title_index=1
disc.c:323: failed opening UDF image /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[21:23:39] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4
libdvdread: Could not open /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4
libdvdnav: vm: failed to open/read the DVD
[21:23:39] dvd: not a dvd - trying as a stream/file instead
[21:23:39] hb_stream_open: open /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4 failed
[21:23:39] scan: unrecognized file type
[21:23:39] libhb: scan thread found 0 valid title(s)
[21:23:39] macgui: QueueCore scan done
[21:23:39] macgui: Queue Done, there are no more pending encodes
[21:23:39] macgui: QueueCore stopped preventing sleep
[21:23:54] macgui: QueueCore prevented sleep
[21:23:54] macgui: QueueCore scanning specifically for title: 1
[21:23:54] CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
[21:23:54] - Intel microarchitecture Ivy Bridge
[21:23:54] - logical processor count: 4
[21:23:54] hb_scan: path=/Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4, title_index=1
disc.c:323: failed opening UDF image /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[21:23:54] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4
libdvdread: Could not open /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4
libdvdnav: vm: failed to open/read the DVD
[21:23:54] dvd: not a dvd - trying as a stream/file instead
[21:23:54] hb_stream_open: open /Volumes/Untitled 1/DCIM/Movie/Aminos first segment - dodgy sound.MP4 failed
[21:23:54] scan: unrecognized file type
[21:23:54] libhb: scan thread found 0 valid title(s)
[21:23:54] macgui: QueueCore scan done
[21:23:54] macgui: Queue Done, there are no more pending encodes
[21:23:54] macgui: QueueCore stopped preventing sleep

User avatar
BradleyS
Moderator
Posts: 1689
Joined: Thu Aug 09, 2007 12:16 pm

Re: How to encode damaged video

Post by BradleyS » Wed Oct 02, 2019 9:55 pm

error: av_read_frame error (-5): Input/output error

The file is damaged. Not a ton HandBrake can do here. If you're recording to an SD card or other media, you might consider replacing it.

User avatar
Ritsuka
HandBrake Team
Posts: 1074
Joined: Fri Jan 12, 2007 11:29 am

Re: How to encode damaged video

Post by Ritsuka » Wed Oct 09, 2019 7:00 am

Unrelated to your issue, but you should upgrade to HandBrake 1.2.2

Post Reply