how to code mp4 that virtualdub will convert video and sound

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
okitaxchizuru
Joined: Sat Dec 04, 2010 6:17 am
Org Profile

how to code mp4 that virtualdub will convert video and sound

Post by okitaxchizuru » Sun Sep 18, 2011 6:41 am

sometimes I succeed to open a mp4 video into virtual dub but sometimes it doesn't succeed.
But I can't ever open the sound into virtualdub. I know because i code the anime as follows.

Code: Select all

FFVideoSource("F:\[...]No.6 - 10[...].mkv")
I know FFVideoSource doesn't allow to open the sound into virtualdub.
But I can't save those files in other way than FFVideoSource, otherwise i wouldn't get the video at all.
Does anyone know by chance a good converter wich makes it impossible to open the file into virtualdub with video and sound.
maybe anyone knows I have to download somthing first, before I can open mp4 files with sound into virtualdub or maybe I coded in the wrong way.

[Kariudo: Trimmed the filename there. I know it wasn't your intent, but please refrain from posting stuff about fansub/raw groups]

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: how to code mp4 that virtualdub will convert video and s

Post by mirkosp » Sun Sep 18, 2011 8:44 am

Use FFCopyrightInfringement instead of FFVideoSource.
That said, loading audio through avisynth is bad, you should just demux the audio and work with it otherwise; try to avoid re-encoding it if possible, too.
Image

okitaxchizuru
Joined: Sat Dec 04, 2010 6:17 am
Org Profile

Re: how to code mp4 that virtualdub will convert video and s

Post by okitaxchizuru » Sun Sep 18, 2011 8:59 am

maybe i sound stupid, but what does demux actually mean?

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: how to code mp4 that virtualdub will convert video and s

Post by Scintilla » Sun Sep 18, 2011 9:03 am

Short for demultiplex, it means to split one or more streams from your original file into its own separate file. In this case, Mirkosp is suggesting saving the audio alone as a new file, and then working with that.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

okitaxchizuru
Joined: Sat Dec 04, 2010 6:17 am
Org Profile

Re: how to code mp4 that virtualdub will convert video and s

Post by okitaxchizuru » Sun Sep 18, 2011 2:32 pm

is there a much difference when you save the audio as a file itself.
When you save the video with it sound compare to two different files( one is video and the other one is only audio)
Which is better?

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: how to code mp4 that virtualdub will convert video and s

Post by Scintilla » Sun Sep 18, 2011 6:41 pm

Implicit in the word "demux" is no conversion of the stream being demuxed (if it was being converted, you'd usually use "decode" or "transcode" instead). In other words, the audio data should be exactly the same in the demuxed file as it was in your original file.
So, they should sound exactly the same, no loss of fidelity.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

LUCHOO
Joined: Sat Dec 27, 2008 6:40 pm
Org Profile

Re: how to code mp4 that virtualdub will convert video and s

Post by LUCHOO » Thu Sep 22, 2011 7:47 am

Code: Select all

Does anyone know by chance a good converter wich makes it impossible to open the file into virtualdub with video and sound.
Video and audio with :

Code: Select all

V=FFVideoSource("F:\[...]No.6 - 10[...].mkv")
A=FFAudioSource("F:\[...]No.6 - 10[...].mkv")
AudioDub(V, A)

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: how to code mp4 that virtualdub will convert video and s

Post by Mister Hatt » Mon Sep 26, 2011 7:34 am

Please do yourself a favour and learn basic video codec/container theory before trying to fuck with what is for all intents and purposes a programming language that requires this basic knowledge. You won't ever figure it out if you don't understand what you're doing or need to do.

@LUCHOO nice of you to try but FFMS2 does that internally, see mirko's post. Audio is bad anyway so you shouldn't encourage these practices.

User avatar
TEKnician
Joined: Thu Mar 04, 2010 4:40 pm
Status: Not reading the spoilers or manga
Location: Smack in the middle of the Pacific Ocean
Org Profile

Re: how to code mp4 that virtualdub will convert video and s

Post by TEKnician » Fri Nov 18, 2011 12:45 pm

When you use DGindex for your vobs you should've gotten an avs file and some other audio file like ac3 (or something other than the avs and d2v). Basically, you need a converter for that audio file to make it a wav or aac (or mp3, but its a lossy codec). Then you can open the avs in VDub and select "audio" at the top menu>audio from another file>select the audio file you just converted. Then just finish up your timecode cuts and compression and then save avi first then do whatever you do to get it into an MP4 (though i can't imagine why you'd go straight to mp4 BEFORE editing unless you just want to have it for playback only)

I hope that helps a bit (pardon my tardiness)
Almost as hard as fighting a Holy Paladin.

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: how to code mp4 that virtualdub will convert video and s

Post by Mister Hatt » Sun Dec 18, 2011 9:54 pm

Why would you do any of that? :V

Locked

Return to “AviSynth Help”