Hi, I'm doing some resizing with VirtualDubMod and I was wondering whether it would be better to decompress the video first, then re-encode the resulting uncompressed file. Or does it not make a difference whether you decompress it first?
+ Reply to Thread
Results 1 to 21 of 21
-
-
No.
And you can't really "decompress" video, you can only reconvert it. -
The process of resizing the frame always consists of first decompressing the video, resizing, then compressing (or not) the video. So VirtualDubMod is automatically decompressing the video before applying the resize filter. Saving as uncompressed would be redundant and a waste of time and drive space.
-
What Baldrick means is that you can't restore details that were lost by the compression. The same applies to audio.
-
Then this applies to both video and audio files? So when re-encoding a VBR audio stream from a video file into CBR, there's no point in first saving it as an "uncompressed WAV"? What exactly does it then mean by uncompressed, and If nothing is being restored, why are the file sizes so huge?
EDIT: Why does it instruct to save it as a WAV first?
Last edited by FrozenInferno; 26th Feb 2011 at 00:47.
-
Take a list of 1000 zeros:
0000000....000
repeat zero 1000 times
Apply decompression:
0000000....000
Now suppose there were a few ones in that string of zeros:
0001000....010
repeat zero 1000 times (you'll barely notice a few ones are missing)
0000000....000Last edited by jagabo; 18th Feb 2011 at 07:58.
-
Ok, so your point is that compression degrades quality, and you won't get it back by decompressing.
Do you then know why VirtualDubMod is prescribing to decompress the audio stream first, before re-encoding with a CBR in the screenshot I provided? Really curious about all this. -
Like the VirtualDub message says: better compatibility. Depending on the playback hardware and/or software employed, VBR (variable bitrate) audio has the tendency to drift out of sync with the video. For keeping picture and sound in lockstep, it is usually best to have CBR (constant bitrate) audio. Simple as that.
-
VirtualDubMod often has problems with VBR audio streams. By decompressing and saving as WAV it will be easier for the program to deal with.
-
-
Yup, what he said.
IMO, there's no point in having VBR audio around, anyway. There's so many things it's not compatible with, it often drifts out of sync, and DANG IT!, it doesn't really help compress that much more. Audio is already a great deal smaller than the video if you're doing CBR; why complicate things.
Now, of course, I'm guessing you probably didn't CREATE this clip you're having to deal with...
Scott -
-
For me it's more like 100%. I can't even remember a single time it didn't work. And answering 'Yes' leads only to disaster, unless you happen to like out-of-synch audio. But then I don't download garbage from the Internet and create all my VBR MP3s myself.
-
So what would be the difference between first saving it as an uncompressed WAV file, then recompressing it versus recompressing right off the bat? Didn't you say it decompresses the stream automatically anyway?
You'd be guessing right. I usually just go for CBR, seems a lot more straight-forward.
I don't really get what you mean by this. Just genuinely curious.Last edited by FrozenInferno; 19th Feb 2011 at 02:01.
-
When VirtualDub is converting audio and video at the same time it doesn't decompress all the video and all the audio all at once. It works frame by frame, decompressing as necessary. It has to locate the audio that corresponds to each video frame. The audio isn't necessarily multiplexed on a frame per frame basis so it can be difficult to determine exactly which audio goes with a particular frame. If you decompress the audio first it can just start at the beginning and read through the audio data, saving it as a CBR uncompressed WAV. With CBR data locating what you want is as easy as:
position = rate * timeLast edited by jagabo; 19th Feb 2011 at 06:28.
-
-
I assume I didn't get a reply because I didn't word my comment as a question. Video aside, is there any difference between setting the audio stream to uncompressed, saving it as a WAV, then re-importing the WAV and recompressing, versus just recompressing the original stream? If not, why does VirtualDub recommend doing this? And if there is a difference, why doesn't the same apply for video?
Last edited by FrozenInferno; 23rd Feb 2011 at 01:59.
-
VirtualDub is a video editor. It does things based on the timing of video frames. Whether you're recompressing the video or not, it has to locate the audio that corresponds to each video frame to mux them properly.
If you're talking about using only the audio functions, ie,
import video, export audio as uncompressed WAV, import uncompressed WAV, save as recompressed WAV
vs.
import video, export recompressed WAV
there may be little difference since it's not trying to coordinate video frames and audio chunks. You'll have to try it. Or write the author.
Similar Threads
-
Can't decompress Ripbot264
By ranchhand in forum DVD RippingReplies: 3Last Post: 10th Apr 2011, 22:02 -
Simply can't hardcode text into x264 encoded videos or decompress them
By sincostan45 in forum Video ConversionReplies: 5Last Post: 19th Jan 2011, 21:25 -
the decompression codec cannot decompress to an rgb format
By flemmo in forum Video ConversionReplies: 11Last Post: 19th Jul 2009, 09:23 -
Decompress AVI
By anirban in forum Newbie / General discussionsReplies: 4Last Post: 19th Jul 2008, 19:25 -
VirtualDub can't decompress the sound.
By KOJV in forum Newbie / General discussionsReplies: 5Last Post: 12th Jun 2007, 18:59