INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Login:   Username:  Password:   Log me on automatically    
Register I forgot my password I forgot my username Resend the activation key

Trying to add intro to AVI

Forum Index -> Video -> Editing Printer-friendly version
Goto page Previous  1, 2, 3  Next
Reply to topic
Author Message
n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 07, 2009 23:47 Posts Comp View users profile Send private message Reply with quote

[quote="Comfort Addict"][quote="n00bNeedsHelp"]The Audio compression menu item is greyed out. [/quote]

Select "Full Processing Mode" in the Audio menu.[/quote]

That did it. Thanks


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Oct 07, 2009 23:47 Posts View users profile Send private message Reply with quote

^ Yes, thanks comfort addict smile.gif

Select full processing mode in the audio menu


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 07, 2009 23:52 Posts Comp View users profile Send private message Reply with quote

looking good... saved a avi that's working great and tiny file size.

Now to try mpeg4modifier...


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 07, 2009 23:56 Posts Comp View users profile Send private message Reply with quote

mpeg4modifier is telling me that it is already unpacked

Packed bitstream: No


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Oct 07, 2009 23:57 Posts View users profile Send private message Reply with quote

ok, I forgot you used no b-frames....that makes sense! sorry false alarm!

Last edited by poisondeathray on Oct 07, 2009 23:58, edited 1 time in total


Comfort Addict
Member


Joined: 07 Oct 2009
Location: Amsterdam

Post Posted: Oct 07, 2009 23:57 Posts Comp View users profile Send private message Reply with quote

n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 08, 2009 00:03 Posts Comp View users profile Send private message Reply with quote

Cannot append segment "L1.avi": The video streams have incompatible data formats.

(Mismatch detected in opaque codec data at byte 21 of the format data.)


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Oct 08, 2009 00:05 Posts View users profile Send private message Reply with quote

Try avidemux

Open the 1st file, then file=>append select main video

Set video & audio to "copy" , format to "avi", press save and enter extension (e.g. "mynewvideo.avi")

If that doesn't work, use mpeg4modifier to change the user data to match DivX versions

e.g. DivX503b etc. etc..


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 08, 2009 00:16 Posts Comp View users profile Send private message Reply with quote

IT WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thanks for your help!!!!

When the video is done I'll post a link for you to check it out.


Comfort Addict
Member


Joined: 07 Oct 2009
Location: Amsterdam

Post Posted: Oct 08, 2009 00:16 Posts Comp View users profile Send private message Reply with quote

What about converting the second file in vdub using the same settings as for the intro before appending... Or would it cause quality loss ?

poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Oct 08, 2009 00:19 Posts View users profile Send private message Reply with quote

Comfort Addict wrote:
What about converting the second file in vdub using the same settings as for the intro before appending... Or would it cause quality loss ?


Yes would incur some quality loss , but that would have been the next plan if the append using the various "tricks" didn't work (or reencode the whole thing in 1 step, using the avisynth script to join)

In my experience, vdub is more "finicky" than avidemux for appending. Even simple things like header information can screw up the append


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 10, 2009 09:31 Posts Comp View users profile Send private message Reply with quote

Here is the vid you helped create.

It is full of inside jokes about the game Duels.com.

There's a player named The Unbeatable Larry who accidentally created his avatar as a female. In his quest to correct his gender other players had some fun and told him he would require a certain amount of fictional material called Noblestone:Coal. Larry's journey brings him to the offices of the game's creators who have recently abandoned their games.

http://www.youtube.com/watch?v=gAOWhvNexrs

WARNING - video does have naughty language.

Thanks again for your help!


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 22, 2009 12:51 Posts Comp View users profile Send private message Reply with quote

New question:

Is there a way for avisynth to move around a picture like a slide show does?
I want to be able to pan across the still images in the intro.
I just need a hint on what the command is, then I can look it up and hopefully find an example I can copy.

Thanks


Gavino
Member


Joined: 10 Jul 2009
Location: Spain

Post Posted: Oct 22, 2009 13:30 Posts Comp View users profile Send private message Reply with quote

n00bNeedsHelp wrote:
Is there a way for avisynth to move around a picture like a slide show does?
I want to be able to pan across the still images in the intro.
I just need a hint on what the command is, then I can look it up and hopefully find an example I can copy.

There is no built-in Avisynth function to do this explicitly, but it can be done by applying Animate to any of the resizers, dynamically changing the resizer parameters to select a different part of the image for each frame.

Alternatively, you could look at the Zoom plugin or the KenBurnsEffect function.


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 22, 2009 18:04 Posts Comp View users profile Send private message Reply with quote

Thanks

Which folder do I unzip the zoom zip into?
AviSynth 2.5/plugins?
AviSynth 2.5\FilterSDK\include?
or some files in one place and some in another?
Should the avisynth.h in the zip overwrite the avisynth.h in AviSynth 2.5\FilterSDK\include?

Then I copy the code for KenBurnsEffect(), ZoomBox(), ZoomBoxIt(), CalcBox() into the avs file?
Or do I add them to some other file where I can call them from the avs file?

Thanks


Gavino
Member


Joined: 10 Jul 2009
Location: Spain

Post Posted: Oct 22, 2009 18:27 Posts Comp View users profile Send private message Reply with quote

You only need zoom.dll from the zoom zip - the other files (including avisynth.h) are source files, for reference only, but you probably want to look at the documentation in zoom.txt.
The simplest thing is to unzip zoom.dll into AviSynth 2.5\Plugins, that way it will be loaded automatically by Avisynth. However, you can put it anywhere and load it explicitly with LoadPlugin if you want.

The KenBurnsEffect code can be copied into your avs file if you like, but it's probably tidier to put them in a separate file and use Import to make them available to your script - that way you can reuse them more easily in other scripts.


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 22, 2009 20:33 Posts Comp View users profile Send private message Reply with quote

New problem - back to the original one.

I just made an intro with exactly 20 seconds of mp3 intro. This worked fine for my first 2 videos but now there is a problem with the 3rd.

If I play the intro3.avi it's fine. It's perfect.

But once I append the movie and watch it the intro plays about one extra second of the mp3 at the end - that is, right at the transition from intro to movie you hear the first second or half second of the mp3 repeated.

example "Some blah blah blah blah ----------------------------- blah blah blah End Some" movie starts

What do I do to prevent that?

Thanks


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 23, 2009 22:00 Posts Comp View users profile Send private message Reply with quote

bump for help plz

Gavino
Member


Joined: 10 Jul 2009
Location: Spain

Post Posted: Oct 24, 2009 04:39 Posts Comp View users profile Send private message Reply with quote

Are the video and audio durations of intro3.avi (as shown by GSpot or MediaInfo) the same?
Is the MP3 CBR or VBR?

What program are you using to append the intro to the movie?
If using Avisynth, post your script here.


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 24, 2009 11:42 Posts Comp View users profile Send private message Reply with quote

Format : MPEG Audio
File size : 313 KiB
Duration : 20s 35ms
Overall bit rate : 128 Kbps
Genre : Blues

Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Duration : 20s 35ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Resolution : 16 bits
Stream size : 313 KiB (100%)


I did the append with Avidemux


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Oct 24, 2009 11:49 Posts View users profile Send private message Reply with quote

Your audio and video probably don't match lengths. You probably have flush ends on the ones that worked, but you didn't do the 3rd one correctly

n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 24, 2009 11:51 Posts Comp View users profile Send private message Reply with quote

Wow - I just noticed it say 20s 35 ms duration.

When I cut the clip using Audacity it said 20.000000 seconds. Now I open it back up in Audacity and it's bigger than the 20.000000 I cut, pasted, and saved. It looks like 20.009774.

I'll try to recut it.

Thanks!


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 24, 2009 12:19 Posts Comp View users profile Send private message Reply with quote

Audacity is driving me nuts.
What program should I be using?


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Oct 24, 2009 12:22 Posts View users profile Send private message Reply with quote

I would do it all with avisynth and audiodub() as shown on page 1. You can make the segment longer, then use Trim() to cut it. It should be perfectly flush then

n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 24, 2009 12:41 Posts Comp View users profile Send private message Reply with quote

[quote="poisondeathray"]I would do it all with [url=http://www.videohelp.com/tools/Avisynth]avisynth[/url] and audiodub() as shown on page 1. You can make the segment longer, then use Trim() to cut it. It should be perfectly flush then[/quote]

This is my code for the creation of Intro

[code]a = ImageSource("a.png", fps=25, end=99)
b = ImageSource("b.png", fps=25, end=149)
c = ImageSource("e.png", fps=25, end=249)
a++b++c
ConvertToYV12()
vid=last

aud=DirectShowSource("audio3.mp3").SSRC(48000)

AudioDub(vid,aud)
[/code]

So am I going to take the audio3.mp3 and make it say 30 seconds instead of ~20 seconds, run the code above, watch it in VDub to see which frame to cut on, and then re-run the code above with an added command of Trim(0,x)?


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Oct 24, 2009 12:46 Posts View users profile Send private message Reply with quote

Adding Trim(0,249) after audiodub would give you flush ends, but that is 20seconds. The last frame was given by the last still at 249 in that script

You would have to make the stills longer in duration to match, ending at 299 to match the new 30 sec audio, otherwise they will mismatch

e.g. use end 100, end 200, end 299 for each instead

If you want the audio to sync up you can shift it by using DelayAudio(). DelayAudio(0.5) is 500ms or 0.5sec. Negative values shift it the other direction


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 24, 2009 13:15 Posts Comp View users profile Send private message Reply with quote

[code]a = ImageSource("a.png", fps=25, end=99)
b = ImageSource("b.png", fps=25, end=149)
c = ImageSource("e.png", fps=25, end=249)
a++b++c
ConvertToYV12()
vid=last

aud=DirectShowSource("audio3dlong.mp3").SSRC(48000)

AudioDub(vid,aud)

Trim(0,249)[/code]

I don't get it.
I run this and get a 10 second intro avi.

I took the mp3 and cut it to about 23.516393 sec

I figured if in my end video the audio is restarting then it must not be filling the whole 20 seconds, so I take a longer cut, build it and trim it at 20 seconds - but I guess I don't get it.

Starting off - how do I cut the audio right? I still want a 20sec intro not 30sec.

I'll try the delay command and see what it does.

Thanks


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Oct 24, 2009 13:24 Posts View users profile Send private message Reply with quote

yes my math sucks smile.gif

25fps , so 10 sec is 250 frames
20 sec is 500 frames => Trim(0,499)
30 sec is 750 frames => Trim(0,749)

Code:

a = ImageSource("a.png", fps=25, end=250)
b = ImageSource("b.png", fps=25, end=500)
c = ImageSource("e.png", fps=25, end=749)
a++b++c
ConvertToYV12()
vid=last

aud=DirectShowSource("audio3dlong.mp3").SSRC(48000)

AudioDub(vid,aud)

Trim(0,749)


That would give 30 seconds, assuming your mp3 audio track was around 30sec or longer


Last edited by poisondeathray on Oct 24, 2009 13:26, edited 1 time in total


n00bNeedsHelp
Member


Joined: 07 Oct 2009
Location: United States

Post Posted: Oct 24, 2009 13:24 Posts Comp View users profile Send private message Reply with quote

[code]a = ImageSource("a.png", fps=25, end=99)
b = ImageSource("b.png", fps=25, end=149)
c = ImageSource("e.png", fps=25, end=249)
a++b++c
ConvertToYV12()
vid=last

aud=DirectShowSource("audio3.mp3").SSRC(48000)

AudioDub(vid,aud)

DelayAudio(0.5)[/code]

I ran this. It gives me intro.avi with the last word of the song missing.
When I append the movie to the intro, it plays with the intro missing the last 2.5 words.


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Oct 24, 2009 13:26 Posts View users profile Send private message Reply with quote

I edited my post above^. You have to make the stills longer in duration to match

Don't use DelayAudio() unless you have overhanging ends on both sides of the audio,otherwise you can get silence gaps

e.g. the audio is 40 seconds, but the the section you want is 30 seconds in the middle (5 sec ends on each side). Then you would use delayaudio to shift it insync (but you would need more video at the beginning as well, and you would have to use a nonzero start for the trim e.g. Trim(100,850) )


Reply to topic All times are GMT - 6 Hours
Goto page Previous  1, 2, 3  Next
Forum Index -> Video -> Editing Page 2 of 3





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
DVDFab DVD to DVD lets you backup DVDs to DVDr, AVI or MP4 for portable devices. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics