Cannot save avi with direct copy
An enhanced version of the original VirtualDub
Brought to you by:
shekhjkl
I loaded an .avi video file into VirtualDub2 then cut some parts out of it and finally tried to save the remaining video with direct copy (=Menu File--->Save as...) to the hard disk.
Much to my surprise VD2 tells me an error "Direct stream copy cannot be used with this video stream. You may want to select different Input Driver" (see first attached snapshot).
The file spec looks like the second attached snapshot.
If I do the same with the good old VD v1.10.4 then everything works.
So whats wrong?
Anonymous
You have to use File -> Export -> Stream Copy.
Save as with Direct Stream only works with videos that have no delta frames.
It was brought up easlier by someone else: https://sourceforge.net/p/vdfiltermod/tickets/124/
More Info on Direct Copy: https://sourceforge.net/p/vdfiltermod/wiki/direct_copy/
VD2 uses different/Updated input Drivers.
Ok, so the behavior from old VD v1.10.4 changed.
In this old version File---->Save as ... was possible
The behavior change was unavoidable, the choice basically is:
1) continue to open AVI with internal driver and keep failing with H264 in AVI and other things like that
2) open everything through FFmpeg-based driver and sacrifice direct copy mode
This is merely a choice of what is presented by default (out of the box). If you prefer choice 1, all you need is select internal driver for AVI once.
Ok, thank you
How do I "select internal driver for AVI"?
H264 and others modern codecs are put/used mostly in non-AVI-containers like MP4 or MKV.
So internal drivers could be choice.
If you folowed the wiki link above:
How to change input driver: see this link, select different option in "Open using".
There is something to reconsider about AVI files. But my queue of things to do urgently is long, some issues are slowed down.
Related
Wiki: OpenVideo
Hmm, the Dropdown here in FileOpenDialog is disabled.
I cannot select "Caching input drivers" or something else.
Have a look at the attached snapshot
You need to select a file first.
This dialog interacts with selected file, you have to select a file of interest first so the dialog will determine its type (AVI, MKV and so on), then you can change the option. Different option is remembered for different file types.
So ok, I loaded the AVI file through menu
File---> Open video File
Yes, "Open using: Caching input driver" is active.
then I cut a small test interval from it and finally I tried menu
File--->Save as....
and the remaining AVI file is NOT just saved as promised but fully re-encoded.
So the "Caching input drivers" does not help when trying to save an AVI without re-encoding.
Old VD can do that!
Any other suggestions?
To match old VD you need "Audio Video Interleaved" driver obviously because this is the same as in old VD. Also it seems you don't set mode to direct stream copy.
I did this but then I got (when trying to save as...):
"Direct stream copy cannot be used with this video stream. You may want to select different Input Driver"
To confirm that you select the proper driver do the following:
After yo have opened source video click menu Video->Decode format: top line shows driver name.
Another: click menu File->File Information: shows many useful infos.
If you still have doubts or problem, make screenshots of both these dialogs and show it to me.
Ok have a look at the following screen recording (download *.mp4 video):
https://www7.zippyshare.com/v/qCUNd9Zc/file.html
Last edit: pxstein 2018-06-24
Ok. You need "Audio/Video interleave" driver for this task, not "Caching input driver".
You move mouse over the right dropdown around frame 186 in your recording. The thing you need to do is click it, and change to "Audio/Video interleave input driver (internal)". Only after that you click "Open" button.
If I click in menu
File--->Open---->Open using: "Audio/Video interleave input driver (internal)".
and proceed and try to save edit video then a re-encoding occurs.
I want to save the cut video NOT with re-encoding (just as in old VD).
So gain: How does that work?
You need to do both things in the same process:
1) Open using: "Audio/Video interleave input driver (internal)"
2) select Video->Direct stream copy
(just same as in old VD)
I suggest changing the error text to something like: " Direct stream copy cannot be used with this video stream. You have to select the 'Caching input driver' in the file open dialog. See:
https://sourceforge.net/p/vdfiltermod/wiki/direct_copy/"
That would help a lot for users that did not know about the background of that error.