You can skip all the ranting below. Except, just note that 5 minutes of video are missing at the end. The audio is not missing.
General Complete name : Vladimir Horowitz - Der letzte Romantiker.AVC.AC3.720p.1985.avi Format : AVI Format/Info : Audio Video Interleave Format profile : OpenDML File size : 2.81 GiB Duration : 1h 21mn Overall bit rate : 4 913 Kbps Writing application : Lavf53.6.0
Video ID : 0 Format : AVC Format/Info : Advanced Video Codec Format profile : [email protected] Format settings, CABAC : Yes Format settings, ReFrames : 4 frames Codec ID : H264 Duration : 1h 21mn Bit rate : 4 600 Kbps Width : 960 pixels Height : 720 pixels Display aspect ratio : 4:3 Frame rate : 50.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.133 Stream size : 2.62 GiB (93%) Writing library : x264 core 123 r2189 35cf912 Encoding settings : cabac=1 / ref=3 / deblock=1:1:0 / analyse=0x3:0x113 / me=hex / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=4600 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.20
Audio ID : 1 Format : AC-3 Format/Info : Audio Coding 3 Mode extension : CM (complete main) Format settings, Endianness : Big Codec ID : 2000 Duration : 1h 21mn Bit rate mode : Constant Bit rate : 320 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 44.1 KHz Bit depth : 16 bits Compression mode : Lossy Stream size : 188 MiB (7%) Alignment : Aligned on interleaves Interleave, duration : 35 ms (1.74 video frames)
[RANT] Once again, another video as the result of fiddling around and trying to learn something about one thing which then leads to another. In this case, the film is a documentary hard-subtitled in German - which is a miracle in itself - and spoken in English. Well Horowitz is, and never was German anyway so there's no real argument for "overdubbing" as the Germans almost always do, leaving a trail of artistic wreckage in their wake as they spoil every audio-visual work they manage to get their grubby little fingers on.
Can't they read?
So that was on the plus side. Another thing on the plus side is the fact that I've learned even more about Mpeg4/10 or x264 or H264 or whatever you want to call it. Nowadays it's simply called AVC which is an acronym for "Advanced Video Codec". So I am able to do now what I could never have done in the past which is to take an interlaced source file (this one was an MP2.MP2, interlaced AVI file). I could show you the details of the source quickly …
Brief version:
Video Format : MPEG Video (ID 224 (0xE0)) Format version : Version 2 ([email protected]) Bit rate : 2 395 Kbps Width : 576x480 pixels Display aspect ratio : 4:3 (25.000 fps) Scan type : Interlaced
Audio Format : MPEG Audio (ID 192 (0xC0)) Format version : Version 1, Layer 2 Mode : Joint stereo (Intensity Stereo) Duration : 1h 22mn Bit rate : 192 Kbps (Constant, 2 channels) Sampling rate : 44.1 KHz
Okay?
Now if you take that AVI file and just try saving it with avidemux it doesn't do the happy thing and make it a progressive scan type as it does with, say, an MPEG-TS file. It just leaves it as interlaced.
And I was looking for a good project to work on to see how to de-interlace a video that's not great quality and try to bring it up to HD 720p quality @ 2x frame rate. I tried it and fiddled with the settings and came up with what I think was a very good comprimise between sharpness and blockiness and smoothing. Took a few hours to find a good command line which in fact is (according to Media Info):
cabac=1 / ref=3 / deblock=1:1:0 / analyse=0x3:0x113 / me=hex / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=4600 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.20
Important bits:
• deblock=1:1:0 [intrnl deblock: -3=sharpest(more blocks), 2=softest(less blocks)] • rc=2pass, bitrate=4600 [2x input data rate] • aq=1:1.20 [very high adaptive "quantization"] • keyint_min=25 (=src FPS), keyint=250 (10*keyint_min) • trellis=1 ==> Decimate OFF [don't mix these 2]
And in this case the rest didn't matter. I simply chose Donald Graft Bob Deinterlace (2x frames, 2x rate) and then rescaled the image for quite a nice visual output.
Now the only remaining problem, I figured, was the audio (which was terrible). Well these encodings take so long that there's lots of time to experiment with other things while your machine is basically on the verge of overheating for 10 to 12 hours. What I do is take it at 10 minute chunks so that A) I can stop the process and resume another day or later in the case of a power failure and B) so that I can get a look at what's coming out before the 12 hours are up. Which I did. In fact, I even uploaded some samples to YouTube to see how they looked over there. Not too bad but again the audio sucked.
It never ceases to amaze me how pathetic the free software out there actually is in terms of assisting the user in any way whatsoever so that this thing (the software) which is something a person or group been working on for ages might actually be of use to someone else who didn't program it. The problem in this case was a type of noise that anyone would recognize. It's like a "buzz" sound that would indicate the recording was made at a higher volume than the receiver could handle. So what you hear is not only the sound but also the microphone vibrations which feed back (at a very high frequency) causing the buzz.
Now that phenomenon is so commonplace that to remove the effect should be little more than pushing a button. Maybe even the default? Right?
Nope. There is something called "noise removal" but it's very difficult to use. What you have to do is find a "sample" of the noise that you want removed and then apply it for the whole audio stream. So, like a hiss say. That's fine for a hiss because a hiss is actually noise … I mean in the "mathematical" sense.
A hiss is not anywhere close to a single tone. So, you know, you find some "hiss" record it (build profile) and then remove it. Only problem is, it's damn near impossible to find a "clean" sample of a particular hiss because usually there's music (even soft music) that gets mixed up with your sample and then suddenly your audio loses all C# sounds or something.
But again, that should be a SINGLE BUTTON. "Find Noise And Remove It".
This is 2014 don't ya know? You'd think someone might have written some software to find audio samples that are evenly distributed in frequency inside a sound file right? And if you can't, then at leat don't add the pure tones to the "noise profile", 'cause that's never noise. A sample that has a high peak in the φ plane is NOT NOISE. Visually that would be like removing blue from an image because the user selected an area that had lots of blue in it (and lots of extraneous noise).
So that's another big failure of mankind.
Next, they have a thing called "Isolate Noise" which I figured would be PERFECT because if I find an example of the hiss, then have it attempt to isolate the hiss all I need to do is subtract that off by "Inverting" the amplitudes (there is such a thing) and mixing the inverted noise with a copy of the original. Much like what Dolby does.
But nope. Doesn't work.
Instead what you have to do is recall your post-grad university physics courses and realize that nearly all noise (hisses, buzzes, feedback etc) will typically be at 2 or 3x the source frequency (they come from harmonics in recording equipment or other objects). ie. Almost all noise is VERY high frequency (VHF) so then you pull out the equalizer and take your best "guess" what "high" means, then cut off sounds above that frequency by fiddling with those little sliders and voila! The noise disappears. The hisses and the buzzes and the feedback. All gone.
But I had to guess.
Again, not the end of the story and I won't finish it because this is an incredible waste of time. But I did have this thing down below here already, so I'll leave it in.
Re: avidemux and time: It's funny because avidemux, for all the great things it can do, isn't so great when it comes to that little time selection interface they never really implemented. So in this case I could not select the entire video for encoding, I could only select up to 1:17 whereas the actual video runs 1:22, a difference of 5 minutes!
And of course, after an entire day of encoding I get to the last chunk, and can't pull any further past 1:17 for GOD KNOWS WHAT REASON, and so I snip it all together and it turns out (at the end) he's right in the middle of "Chopin Polonaise N⁰2 Op. 53" when it cuts off.
Well I did have the entire audio, which I'd re-encoded to mp3 so I could do some editing (noise removal) so if only I could just "stretch" the end part and even though you can't watch it, at least you could hear it. But how to do that? The video properties have to match up to the BIT. Well, I figured, I'll clip out a bit from what I have already. Just use direct stream copy and build myself 5 minutes worth of the correct video type. No problem. Works like a charm! But now of course there's the audio. It won't let me add it if it doesn't have any audio, and if there is audio IT HAS TO BE EXACTLY THE SAME FORMAT AS THE OTHER PIECE. So, I overwrite the audio with any old mp3, for the video and the extension. Glue them together to make a 3rd file that's the right length and then re-overwrite the audio for that extended video to overwrite the audio I never needed in the first place!
[/RANT]