I've got a video I exported from a video editor which is corrupted, I'm not exactly sure (technically) what's wrong with the video, however the sound and video image are out of sync, the sound plays first with a bank screen then once the clip has ended the video plays in slow motion. The file size is correct.
Do you think it would be possible to use handbrake to fix the clip?
Here is the video in question (10MB): http://gofile.me/6wixf/DEQQA1o9P
Here is a videoinfo of the file:
Code: Select all
General
Complete name : test.mp4
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 10.3 MiB
Duration : 15s 580ms
Overall bit rate : 5 532 Kbps
Performer : KineMaster
Encoded date : UTC 2017-12-12 18:31:08
Tagged date : UTC 2017-12-12 18:31:08
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L4.1
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 15s 331ms
Bit rate : 5 438 Kbps
Maximum bit rate : 27.2 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 30.000 fps
Minimum frame rate : 29.412 fps
Maximum frame rate : 30.303 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.087
Stream size : 9.94 MiB (97%)
Language : English
Encoded date : UTC 2017-12-12 18:31:08
Tagged date : UTC 2017-12-12 18:31:08
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 15s 580ms
Bit rate mode : Constant
Bit rate : 132 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 249 KiB (2%)
Language : English
Encoded date : UTC 2017-12-12 18:31:08
Tagged date : UTC 2017-12-12 18:31:08
Code: Select all
HandBrakeCLI -i test.mp4 -o converted-1.MP4 --preset "Fast 1080p30"
[23:58:13] hb_init: starting libhb thread
[23:58:13] thread 724ac6fba700 started ("libhb")
HandBrake 1.0.4 (2017040900) - Linux x86_64 - https://handbrake.fr
4 CPUs detected
Opening test.mp4...
[23:58:13] CPU: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
[23:58:13] - Intel microarchitecture Broadwell
[23:58:13] - logical processor count: 4
[23:58:13] hb_scan: path=test.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image test.mp4
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[23:58:13] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
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
[23:58:13] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
Metadata:
major_brand : 3gp4
minor_version : 512
compatible_brands: 3gp43gp53g2a
creation_time : 2017-12-12 18:31:08
Duration: 00:29:54.24, start: 0.000000, bitrate: 48 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) [avc1 / 0x31637661]
yuv420p, 1920x1080, 5439 kb/s
30 fps, 1k tbn (default)
Metadata:
creation_time : 2017-12-12 18:31:08
handler_name : vide
Stream #0:1(eng): Audio: aac (LC) [mp4a / 0x6134706D]
44100 Hz, stereo, fltp, 131 kb/s (default)
Metadata:
creation_time : 2017-12-12 18:31:08
handler_name : soun
[23:58:13] scan: decoding previews for title 1
[23:58:13] scan: audio 0x1: aac, rate=44100Hz, bitrate=131077 English (AAC) (2.0 ch)
Scanning title 1 of 1, preview 2, 20.00 %[23:58:13] Warning: Could not read data for preview 2, skipped
[23:58:13] scan: 1 previews, 1920x1080, 30.005 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[23:58:13] Title is likely interlaced or telecined (0 out of 1 previews). You should do something about that.
[23:58:13] scan: decoding previews for title 1
Scanning title 1 of 1, preview 10, 100.00 %[23:58:14] scan: 10 previews, 1920x1080, 30.005 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[23:58:14] libhb: scan thread found 1 valid title(s)
+ Using preset: Fast 1080p30
+ title 1:
+ stream: test.mp4
+ duration: 00:29:54
+ size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 30.005 fps
+ autocrop: 0/0/0/0
+ support opencl: no
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:29:54
+ audio tracks:
+ 1, English (AAC) (2.0 ch) (iso639-2: eng)
+ subtitle tracks:
[23:58:14] 1 job(s) to process
[23:58:14] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": "stereo",
"NormalizeMixLevel": false,
"PresetEncoder": "av_aac",
"Quality": -3.0,
"Samplerate": "auto",
"Track": 0
}
],
"CopyMask": [
"copy:aac"
],
"FallbackEncoder": "av_aac"
},
"Destination": {
"ChapterList": [
{
"Name": ""
}
],
"ChapterMarkers": false,
"File": "converted-1.MP4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "m4v"
},
"Filters": {
"FilterList": [
{
"ID": 3,
"Settings": {
"block-height": "16",
"block-thresh": "40",
"block-width": "16",
"filter-mode": "2",
"mode": "3",
"motion-thresh": "1",
"spatial-metric": "2",
"spatial-thresh": "1"
}
},
{
"ID": 4,
"Settings": {
"mode": "7"
}
},
{
"ID": 6,
"Settings": {
"mode": 2,
"rate": "27000000/900000"
}
},
{
"ID": 11,
"Settings": {
"crop-bottom": 0,
"crop-left": 0,
"crop-right": 0,
"crop-top": 0,
"height": 1080,
"width": 1920
}
}
]
},
"Metadata": {},
"PAR": {
"Den": 1,
"Num": 1
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "test.mp4",
"Range": {
"End": 1,
"Start": 1,
"Type": "chapter"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"ColorMatrixCode": 0,
"Encoder": "x264",
"Level": "4.0",
"OpenCL": false,
"Options": "",
"Preset": "fast",
"Profile": "main",
"QSV": {
"AsyncDepth": 4,
"Decode": false
},
"Quality": 22.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[23:58:14] starting job
[23:58:14] decomb filter thread started for segment 1
[23:58:14] decomb filter thread started for segment 2
[23:58:14] decomb filter thread started for segment 3
[23:58:14] decomb check thread started for segment 0
[23:58:14] decomb check thread started for segment 1
[23:58:14] decomb check thread started for segment 2
[23:58:14] decomb check thread started for segment 3
[23:58:14] mask filter thread started for segment 0
[23:58:14] mask filter thread started for segment 1
[23:58:14] mask filter thread started for segment 2
[23:58:14] decomb filter thread started for segment 0
[23:58:14] mask filter thread started for segment 3
[23:58:14] mask erode thread started for segment 0
[23:58:14] mask erode thread started for segment 1
[23:58:14] mask erode thread started for segment 2
[23:58:14] mask erode thread started for segment 3
[23:58:14] mask dilate thread started for segment 0
[23:58:14] mask dilate thread started for segment 1
[23:58:14] mask dilate thread started for segment 2
[23:58:14] mask dilate thread started for segment 3
[23:58:14] yadif thread started for segment 0
[23:58:14] yadif thread started for segment 1
[23:58:14] yadif thread started for segment 2
[23:58:14] yadif thread started for segment 3
[23:58:14] job configuration:
[23:58:14] * source
[23:58:14] + test.mp4
[23:58:14] + title 1, chapter(s) 1 to 1
[23:58:14] + container: mov,mp4,m4a,3gp,3g2,mj2
[23:58:14] + data rate: 48 kbps
[23:58:14] * destination
[23:58:14] + converted-1.MP4
[23:58:14] + container: MPEG-4 (libavformat)
[23:58:14] * video track
[23:58:14] + decoder: h264
[23:58:14] + bitrate 5439 kbps
[23:58:14] + filters
[23:58:14] + 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)
[23:58:14] + Decomb (mode=39)
[23:58:14] + Framerate Shaper (mode=2:rate=27000000/900000)
[23:58:14] + frame rate: 30.005 fps -> peak rate limited to 30.000 fps
[23:58:14] + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[23:58:14] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[23:58:14] + Output geometry
[23:58:14] + storage dimensions: 1920 x 1080
[23:58:14] + pixel aspect ratio: 1 : 1
[23:58:14] + display dimensions: 1920 x 1080
[23:58:14] + encoder: H.264 (libx264)
[23:58:14] + preset: fast
[23:58:14] + profile: main
[23:58:14] + level: 4.0
[23:58:14] + quality: 22.00 (RF)
[23:58:14] * audio track 1
[23:58:14] + decoder: English (AAC) (2.0 ch) (track 1, id 0x1)
[23:58:14] + bitrate: 131 kbps, samplerate: 44100 Hz
[23:58:14] + mixdown: Stereo
[23:58:14] + encoder: AAC (libavcodec)
[23:58:14] + bitrate: 160 kbps, samplerate: 44100 Hz
[23:58:14] sync: expecting 53835 video frames
[23:58:14] encx264: min-keyint: 30, keyint: 300
[23:58:14] encx264: encoding at constant RF 22.000000
[23:58:14] encx264: unparsed options: 8x8dct=0:weightp=1:level=4.0:ref=2: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 AVX2 FMA3 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[23:58:14] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 0.00 %[23:58:14] sync: first pts video is 160102260
[23:58:14] sync: Chapter 1 at frame 1 time 160102260
Encoding: task 1 of 1, 0.72 % (11.30 fps, avg 13.55 fps, ETA 01h05m45s)[23:58:43] reader: done. 1 scr changes
Encoding: task 1 of 1, 0.78 % (10.64 fps, avg 13.26 fps, ETA 01h07m07s)[23:58:58] work: average encoding speed for job is 13.264745 fps
[23:58:58] comb detect: heavy 4 | light 22 | uncombed 434 | total 460
[23:58:58] decomb: deinterlaced 4 | blended 22 | unfiltered 434 | total 460
[23:58:58] vfr: 460 frames output, 0 dropped and 0 duped for CFR/PFR
[23:58:58] vfr: lost time: 0 (0 frames)
[23:58:58] vfr: gained time: 0 (0 frames) (0 not accounted for)
Encoding: task 1 of 1, 0.78 % (10.64 fps, avg 13.26 fps, ETA 01h07m07s)[23:58:58] aac-decoder done: 671 frames, 0 decoder errors
[23:58:58] h264-decoder done: 460 frames, 0 decoder errors
[23:58:58] sync: got 460 frames, 53835 expected
[23:58:58] sync: framerate min 10.753 fps, max 30.010 fps, avg 22.817 fps
x264 [info]: frame I:2 Avg QP:27.42 size: 74654
x264 [info]: frame P:261 Avg QP:20.02 size: 29185
x264 [info]: frame B:197 Avg QP:24.52 size: 6094
x264 [info]: consecutive B-frames: 42.2% 0.9% 3.9% 53.0%
x264 [info]: mb I I16..4: 61.9% 0.0% 38.1%
x264 [info]: mb P I16..4: 3.4% 0.0% 2.5% P16..4: 39.6% 8.0% 5.3% 0.0% 0.0% skip:41.2%
x264 [info]: mb B I16..4: 0.8% 0.0% 0.0% B16..8: 33.3% 2.8% 0.1% direct: 5.7% skip:57.3% L0:48.1% L1:47.9% BI: 4.0%
x264 [info]: coded y,uvDC,uvAC intra: 39.6% 27.8% 3.5% inter: 10.0% 10.5% 0.1%
x264 [info]: i16 v,h,dc,p: 27% 32% 14% 28%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 20% 19% 5% 6% 6% 6% 5% 5%
x264 [info]: i8c dc,h,v,p: 60% 19% 15% 5%
x264 [info]: Weighted P-Frames: Y:0.8% UV:0.0%
x264 [info]: ref P L0: 88.4% 11.6%
x264 [info]: ref B L0: 95.4% 4.6%
x264 [info]: ref B L1: 97.3% 2.7%
x264 [info]: kb/s:39.87
[23:58:58] mux: track 0, 460 frames, 8967029 bytes, 39.87 kbps, fifo 512
[23:58:58] mux: track 1, 671 frames, 338249 bytes, 1.50 kbps, fifo 1024
[23:58:58] libhb: work result = 0
Encode done!
HandBrake has exited.