how to code mp4 that virtualdub will convert video and sound

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

how to code mp4 that virtualdub will convert video and sound

Postby 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]
okitaxchizuru
 
Joined: 04 Dec 2010

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

Postby 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
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

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

Postby okitaxchizuru » Sun Sep 18, 2011 8:59 am

maybe i sound stupid, but what does demux actually mean?
okitaxchizuru
 
Joined: 04 Dec 2010

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

Postby 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:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

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

Postby 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?
okitaxchizuru
 
Joined: 04 Dec 2010

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

Postby 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:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

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

Postby 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)
LUCHOO
 
Joined: 27 Dec 2008

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

Postby 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.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

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

Postby 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.
User avatar
TEKnician
 
Joined: 04 Mar 2010
Location: Smack in the middle of the Pacific Ocean
Status: Not reading the spoilers or manga

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

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

Why would you do any of that? :V
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 2 guests