Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Quality Of Processed File, Direc stream copy degrades video quality
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
tma0
Posted: Sep 19 2014, 09:43 AM


Newbie


Group: Members
Posts: 3
Member No.: 38276
Joined: 19-September 14



I need remove ads from movie captured from DVB. So I open AVI file, mark then and cut off. Next I save to file again (File/Save as AVI[/]). Because I do not need any processing I choose [I]Audio&Video Direct stream copy. Problem that output file quality is low - many dropouts etc. (not following cut position) When I play original AVI then it's perfect. What settings affects output quality and is there some processing ? Maybe buffer size or it depends on length of original file ? The file is being saved to USB disk, i.e. machine load goes up. But I think I had the same problem even without USB.

VirtualDub 1.10.4@Windows XP 4GB memory.

Thanks
 
     Top
Abrazo
Posted: Sep 19 2014, 05:39 PM


Advanced Member


Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10



When you select pieces to cut them out of the video, just try to end the selection to just before a Keyframe. The start of the selection is not important.

If this is not (always) possible, you can set the Video-menu to Fast Recompress, and make that (also in the Video-menu) Smart Rendering is active.
In that way only the part that really need to be recompressed are treated, all the rest is via Direct Copy.
You just need to verify that the codec that has been used for the AVI, is being select via the Video-menu, Compression...

The length of the video should not play a role in this.
And when there is no recompression, the quality should stay the same as it was originally.
 
     Top
tma0
Posted: Sep 20 2014, 08:01 AM


Newbie


Group: Members
Posts: 3
Member No.: 38276
Joined: 19-September 14



Thanks, it's helpful information.

But the saved file still contains drop outs (mainly when there is sudden image change) and also I can hear audio interruptions in irregular intervals. Tested on the file where start and end are cut off at frame boundaries.
AVI properties are equivalent for source and target files. Compress method is reported as XVID.
 
     Top
Abrazo
Posted: Sep 21 2014, 06:40 AM


Advanced Member


Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10



I do not have an immediate idea where the problem is coming from.

A few things I have in mind:

1) Verify in the Audio-menu > Interleaving, if Enable audio/video interleaving is checked
(it should best be active/checked)

2) Try with a "Full processing mode" for both video and audio (for a piece of your movie where have you have a few cut outs)
Does that make the result better ?

3) Try with a "Full processing mode" into an other video codec like x264vfw for instance.
Does that make the result better ?

4) Try with a "Direct stream copy" while not changing anything at all
This result should be absolutely equal to the original ...
If not, then cause of the problem should not be in the codec, nor edit-related.
 
     Top
dloneranger
Posted: Sep 21 2014, 10:03 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Check the decoders used for the origional and then the edited version, could be that the codecs used by the avi just don't play the streams from the source file properly

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
DarrellS
Posted: Sep 25 2014, 04:17 AM


Advanced Member


Group: Members
Posts: 567
Member No.: 1061
Joined: 28-November 02



Yes. Check original codec in file information and then choose Video > Full Processing Mode > Compression > same codec as original > Smart rendering > File > Save as avi

This will encode only the area around the cuts and direct stream copy the rest.

 
     Top
tma0
Posted: Nov 15 2014, 06:56 PM


Newbie


Group: Members
Posts: 3
Member No.: 38276
Joined: 19-September 14



I've finally retested AVI edit of particular AVI. Who don't want to read all steps the source of problem is at the end.

The movie was reedited without any dropouts (Direct video/audio copy), the same procedure as I did before.

But I've looked in former edited AVI file (mad from the same source) in VirtualDub and even there is no cut nearby then sudenly the frame starts to corrupt (in incremental frame). Seems like frame tries get some part of picture from next frame. It may be fixed in next [K] frame. But I can see sometimes [K] frame is the first one which is corrupted.

There is no obvious reason why it happens. Maybe some random memory overflow, leak or RAM problem ? Very strange.

When I run scanning for unreadable frames (11550/32787) then crashes. 11549 incremenatal frame start dropouting.
CODE

An out-of-bounds memory access (access violation) occurred in module 'xvidcore'...
...writing address 01F626E0...
...while decompressing video frame 11631 (VideoSource.cpp:2155)...
...while using input buffer at 036e7b50-036e9d2f (VideoSource.cpp:2154)...
...while using output buffer at 02350080-024e5083 (VideoSource.cpp:2153).


or in next run suddenly accelerates and crashes slightly later

CODE

An out-of-bounds memory access (access violation) occurred in module 'xvidcore'...
...reading address 042201AC...
...while decompressing video frame 11961 (VideoSource.cpp:2155)...
...while using input buffer at 027e5740-027e7ff1 (VideoSource.cpp:2154)...
...while using output buffer at 02a80080-02c15083 (VideoSource.cpp:2153).


Test passes OK for file without droputs.

So I start investigating external USB disk with MD5 checksums on AVI files compared to internal disk and I can see MD5 is changing. Finally I identified it's problem in USB/SATA driver which is not able drive probably long data flow and adds some random garbage. When I tested on second external USB harddisk it works perfectly. Also the disk itself seems ok.
 
     Top
dloneranger
Posted: Nov 16 2014, 01:50 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Thanks for the reply

Hardware problems like that can be a complete pain to recognise
Ah, the fun I had a long time ago with a network card that set every 65536'th byte to 255
Soooo much silently corrupted data saved to the servers.....

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
7 replies since Sep 19 2014, 09:43 AM Track this topic | Email this topic | Print this topic

<< Back to General Discussion