Quantcast TMPGEnc: Simple Fade Out from an MPEG-1 File? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
03-12-2003, 10:43 PM
TKS TKS is offline
Free Member
 
Join Date: May 2002
Posts: 118
Thanks: 0
Thanked 0 Times in 0 Posts
Wasnt too sure where to post this, but does anyone know of a program that could help me do a simple fade out from an mpeg-1 file? Ive looked around and most of em will only do it with an .avi file..

thanks

tks
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
03-12-2003, 11:36 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
I guess you mean while encoding right
You can use the "Fade" functions in a avisynth script.
Read here: http://www.avisynth.org/index.php?page=Fade

-kwag
Reply With Quote
  #3  
03-12-2003, 11:41 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
hi TKS,

Avisynth has a FadeOut filter that will do that
Reply With Quote
  #4  
03-12-2003, 11:43 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Beat you by 5 minutes ren
Reply With Quote
  #5  
03-12-2003, 11:47 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Beat you by 5 minutes ren
Yep! I pushed the "post reply" button and thought for five minutes fade out for pre or post processing
Reply With Quote
  #6  
03-13-2003, 02:43 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts

hi to all....

please,i need a script sample of :

fade in and out for audio e video.

i never understood things like that:

"FadeIn(clip clip, int num_frames [, int color])
FadeIO(clip clip, int num_frames [, int color])
FadeOut(clip clip, int num_frames [, int color])

FadeIn2(clip clip, int num_frames [, int color])
FadeIO2(clip clip, int num_frames [, int color])
FadeOut2(clip clip, int num_frames [, int color])"

and my klinglish don't understand the avisynth site.
for me the site is out of orther,very confuse.
tons of links that goes to links that turn to the first link.
i can't find a simple example there!
only bla,bla and bore!

help me please!

thanks in advance!
Reply With Quote
  #7  
03-13-2003, 04:07 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi jorel,

If you add this to your script:
Code:
FadeIn(120)
Assuming your source is 23.976fps, the above would fade in your movie from black to full brightness in ~5 seconds.
Play with the values in FadeIn and FadeOut
You can experiment with things like "Trim(0,-1).FadeOut(240)", which will fade out to black the last ~10 seconds of your movie

-kwag
Reply With Quote
  #8  
03-13-2003, 04:11 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Hi jorel,

If you add this to your script:
Code:
FadeIn(120)
Assuming your source is 23.976fps, the above would fade in your movie from black to full brightness in ~5 seconds.
Play with the values in FadeIn and FadeOut
You can experiment with things like "Trim(0,-1).FadeOut(240)", which will fade out to black the last ~10 seconds of your movie

-kwag
thank you really much my friend Kwag

you know,i was waiting for this treasure here!!
very simple for who knows,fantastic help to who don't know!!

you're the one!
Reply With Quote
  #9  
03-13-2003, 07:31 PM
TKS TKS is offline
Free Member
 
Join Date: May 2002
Posts: 118
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the replies


But the file is already encoded as an mpeg-1.

Stupid question: but could i just frameserve the mpeg into vdub back into tmpgenc to make it fade out with some sorta vdub filter? if any..

tks
Reply With Quote
  #10  
03-13-2003, 08:07 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
hi TKS,

You can reencode the mpeg1 by using Avisynth and VDub to frameserve to TMPGenc if you want.

I would use MovieStacker or SwiftAVS to create the avisynth script. Then add Nic's MPEGDecoder plugin to load the mpeg1 (it replaces the MPEG2DEC.dll). Add the FadeOut filter. Then load the .avs into VDub and add any vdub filters you want and frameserve to TMPGenc.

ren
Reply With Quote
  #11  
03-13-2003, 11:29 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
hay guys..

An Mini Guide to adding "Filtering" to an already made MPEG-1 clip
------------------------------------------------------------------------------------------

you don't have to re-encode your MPEG-1 clip, and end up making it
even worse (than it already might be anyways) ..

Apps you'll need are:
1, Virtualdub
2, any MPEG-1 editor ie, M1, TMPG etc.

instead.. try this:

* first, load your MPEG-1 clip into vdub

* next, make sure you do NOT have "Video/Direct Stream Copy" enabled.
..rather, keep it on "Video/Full Processing mode"

* next, since you want to make a FadeOut at the END of your clip,
..select (highlight) the video via the time-line using the begin/end
..markers, ie, press Ctrl_Lt, and then select the /__ and then
..press Ctrl_Lt, and then back video like 2 seconds to your left with
..the Crsr_Lt and note the seconds readout on bottom of time-line.
..and then finally press the __\ button (this is your markout)
..NOTE.. remember to jot down the time-line's number readout, for
..later joining (hopefully, accurate)

* next, press delete..

* NOW, you have the last 2 seconds (or whatever time length you chose)
..in your video window. It's now time to SAVE this small video clip..
..so proceed to save segment - - could cost you anywheres from 25MB
..to 50MB (or more) depending on your captures' resolution size ie, 352x480
..or 720x480 etc. because it's saving it as an RGB format, NOT as an its
..original MPEG-1. vdub won't save back to MPEG-1. So do bare this in
..mind when working this way w/ MPEG-1 clips under vdub.

.
Ok, so now that we've finally saved our last 2 seconds clip, it's now
time to proceed to the next step..
.

* open an AVIsynth (*.AVS) script file or start a NEW one for just this
..project, and maybe call this script, FadeOut.avs and bring in this new
..fade.avi clip into the script

* now include in your AVS script, this line:
..making any adjustments to number bewtween () per your cut length
Code:
FadeOut(70)
* SAVE this script ie, fade.avs

.
ok, NOW we JOIN our original MPEG-1 clip plus our new fade.avs but..
here's the trick he he.. don't loose me here..
.

* open your MPEG-1 editor (whatever you use for MPEG-1 edits/cuts/joins)

* first, bring in the original MPEG-1 clip

* then, remembering those numbers in the time-line (above) proceed to CUT
..the last 2 seconds out (or whatever seconds you used in YOURS)
..this is where you'll replace the last 2 seconds w/ your fade.avi clip.

* so, using your MPEG-1 editor, highlight the last 2 seconds and CUT that
..out -- ( i ment the video clip he he.. )

* next, insert or import your fade.AVS script (note, or if encoded to an
..MPEG-1 clip, should work then)

* now, proceed to re-SAVE..

* Vualla.. you're done. well, almost..

I don't know for sure (untested) if your MPEG-1 editor will JOIN that
last 2 second *.AVS script. It may have to be encoded to MPEG-1 first,
THEN for SURE, you'll be able to JOIN the two together. and again, Vualla..
a nice fade out at the end of your MPEG-1 clip.

Note 1, of course, this could be adapted to MPEG-2 clips as well. Just
do a little experimenting on a few first. I can't speak for every MPEG-1
editor and their features out their. Only you know what works or not.
But this is the easyiest, quickest way (w/out re-encoding the whole clip)

Note 2, you could ALSO apply other filtering ideas to this process.

Note 3, who cares about "quality" for the last 2 seconds!! At least your
99.99 % MPEG-1 clip will be whole.

Let me know if this works (for anyone)
Good luck to you guys.
-vhelp
Reply With Quote
  #12  
03-26-2003, 05:25 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
@ Kwag, friendalunit, vhelp and everybody:

fade in and fade out works really cool!!!!
thank you!!

but...
and the audio fading?

how can i fade in and out the audio in the script?

of course i was in avisynth page and for me there is very complicated cos using the search,the only thing that i got was:
links going to other links.....no answer. i'm tired...read too much.
i read ALL the readme of avisynth....maybe was my klinglish,
i don't see how can i do it!

help me,please???!!!

thanks in advance!

please,please!!

ps:
i did a search in doom9 too.
not found!
Reply With Quote
  #13  
03-26-2003, 11:10 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
@jorel:

Fadeout does fadeout both the audio and video, I use it with my TV caps.

If you want to fadeout the audio without fading out the video, you'll have to process the video and audio streams separately in the script and then bring them back together after the processing. I'm sure the lads here can tell you the correct syntax, I've never done any audio dubbing in Avisynth.

Edit: Fadeout(250) would for example fadeout the last 250 frames of the clip that is loaded. I've usually used it with Trim as Trim(0,10000).Fadeout(100) or something like that.
Reply With Quote
  #14  
03-26-2003, 11:16 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Boulder
@jorel:

Fadeout does fadeout both the audio and video, I use it with my TV caps.

If you want to fadeout the audio without fading out the video, you'll have to process the video and audio streams separately in the script and then bring them back together after the processing. I'm sure the lads here can tell you the correct syntax, I've never done any audio dubbing in Avisynth.

Edit: Fadeout(250) would for example fadeout the last 250 frames of the clip that is loaded. I've usually used it with Trim as Trim(0,10000).Fadeout(100) or something like that.
thanks vm friend Boulder!!

now i see how it works.


wait,i see but don't know how can i do it.

can someone post a sample script or something,please!

Reply With Quote
  #15  
03-26-2003, 11:29 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Hmm..now that I think of it a bit more, if you do a normal DVD->KVCD conversion, you'll have to save the audio track as WAV, process it in some audio editing tool to do the fadeout and then encode it to MP2. You can't edit the AC3 file in Avisynth at the moment. If you convert a DivX or XviD clip or any TV captures, fadeout will work for both video and audio.
Reply With Quote
  #16  
03-26-2003, 12:34 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts


very cool my friend.

i was thinking in some like this but now you show me the road!!!



thank you friend Boulder, it will work very fine!

Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-fade or Blend mp3 file? black prince Audio Conversion 12 08-01-2005 07:06 AM
Fade In/ Fade Out no script: como? FlavioMetal Conversão e Codificação de Vídeo (Português) 6 07-21-2004 08:27 AM
After TMPGenc does simple multiplex, the file is now 1.1gb? EightBall Video Encoding and Conversion 13 10-02-2003 06:38 AM
Simple File Prediction gd_nimrod Avisynth Scripting 12 03-09-2003 07:02 PM
Avisynth: Fade in / fade out not working? TKS Avisynth Scripting 0 11-07-2002 10:20 PM




 
All times are GMT -5. The time now is 06:06 PM  —  vBulletin © Jelsoft Enterprises Ltd