Menu

#145 Cannot save avi with direct copy

open
nobody
None
question
2019-07-04
2018-06-09
pxstein
No

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?

1 Attachments

Discussion

  • Revan

    Revan - 2018-06-09

    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.

     
    • pxstein

      pxstein - 2018-06-10

      Ok, so the behavior from old VD v1.10.4 changed.
      In this old version File---->Save as ... was possible

       
      • Anton Shekhovtsov

        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.

         
  • Anonymous

    Anonymous - 2018-06-10

    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.

     
    • Anton Shekhovtsov

      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

      • pxstein

        pxstein - 2018-06-10

        Hmm, the Dropdown here in FileOpenDialog is disabled.
        I cannot select "Caching input drivers" or something else.

        Have a look at the attached snapshot

         
        • Revan

          Revan - 2018-06-10

          You need to select a file first.

           
        • Anton Shekhovtsov

          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.

           
          • pxstein

            pxstein - 2018-06-19

            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?

             
            • Anton Shekhovtsov

              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.

               
              • pxstein

                pxstein - 2018-06-21

                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"

                 
                • Anton Shekhovtsov

                  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.

                   
  • pxstein

    pxstein - 2018-06-24

    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
    • Anton Shekhovtsov

      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.

       
      • pxstein

        pxstein - 2018-07-12

        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?

         
        • Anton Shekhovtsov

          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)

           
  • Anonymous

    Anonymous - 2019-07-04

    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.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB