#1  
11-14-2010, 11:47 PM
NJRoadfan NJRoadfan is offline
Premium Member
 
Join Date: Sep 2010
Posts: 1,178
Thanked 370 Times in 303 Posts
Just wondering if this is possible. Basically I want to frame serve part of an AVI file from frame X to frame Y to an encoder without splitting the files. Its would be easier (in theory anyway!) to create a bunch of AVISynth scripts for each video segment and do a batch encode. It'll also save me a ton of disc space and time not having to save each segment as an AVI file just to encode.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
11-15-2010, 12:12 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 14,247
Thanked 2,586 Times in 2,198 Posts
Frame serving from what to what? In VirtualDub, you could load a file, then mark in/out your selected area. I do this all the time. As far as Avisynth goes, there is probably a way to mark the in/out via some sort of frame referencing, but I'm not entirely sure of what that is, having never done it.

You could possibly do it with this method: http://avisynth.org/mediawiki/SelectEvery

Code:
# Selects the frames 0 to 13, 280 to 293, 560 to 573, etc.
SelectRangeEvery(clip, 280, 14)
It's not direct, but workaround is possible.
If your full video is 100,000 frames, and you only want the first 20,000, then you could set it up to do:

Code:
# Selects the frames 0 to 20000, 99999-end
SelectRangeEvery(clip, 99999, 20000)
I could be wrong, but it makes sense in my head. Experiment with it.

The only other suggestion I have is to ask some of the folks in the doom9.org Avisynth forum, but be wary of attitude -- not the friendliest places for posting in the past few years, since "Mr. Doom9" stopped participating. There's also doom10.org, but can't say I'm certain of the expertise level of those members there, as I don't visit it often. Not many Avisynth users at Afterdawn or Videohelp anymore.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #3  
11-15-2010, 12:08 PM
NJRoadfan NJRoadfan is offline
Premium Member
 
Join Date: Sep 2010
Posts: 1,178
Thanked 370 Times in 303 Posts
I would likely be frame serving from AVISynth, as it appears that VirtualDub can only frame serve one file segment at a time (I'm trying to automate this process). My encoder will likely be TMPGEnc, which I still have to download and play with. Hopefully it can batch encode a list of files. I'm basically looking for a solution where I can start the encode and leave it running while at work.

Whats interesting is AVISynth seems to lack a basic SelectRange command. Must be those darn programmers again, solving the complicated problems and forgetting the basic ones. A command like SelectRange(clip,startframe,endframe) would be perfect for this. I guess I'll have to play with SelectRangeEvery(), looks like it can be kludged into doing the above behavior in a roundabout way.
Reply With Quote
  #4  
11-15-2010, 03:00 PM
NJRoadfan NJRoadfan is offline
Premium Member
 
Join Date: Sep 2010
Posts: 1,178
Thanked 370 Times in 303 Posts
Ah-HA! got it!

The Trim command does exactly what I need.
Reply With Quote
  #5  
11-15-2010, 06:42 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 14,247
Thanked 2,586 Times in 2,198 Posts
Excellent.

So how did you learn about trim() -- by reading a post or article somewhere, or scouring the Avisynth wiki?
There's more details on thr trim() command at http://avisynth.org/mediawiki/Trim

Looks pretty straight-forward. To encode frames 1 to 20,000, you'd do this:
Code:
Trim(0,20000)

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #6  
11-15-2010, 11:03 PM
NJRoadfan NJRoadfan is offline
Premium Member
 
Join Date: Sep 2010
Posts: 1,178
Thanked 370 Times in 303 Posts
Found it browsing the wiki. This will make converting the raw files to MPEG-2 a snap. I logged all timecode using exact frames marking the beginning and end of each chapter, so its just a matter of creating a bunch of Avisynth scripts and plugging them into TMPGEnc. From what I have read, TMPGEnc simply demuxes the audio to a WAV file? If so, that should make life easy for audio processing, just batch encode it to AC3 using ffmpegGUI.
Reply With Quote
  #7  
11-15-2010, 11:15 PM
kpmedia's Avatar
kpmedia kpmedia is offline
Site Staff | Web Hosting, Photo
 
Join Date: Feb 2004
Posts: 4,311
Thanked 376 Times in 342 Posts
I would suggest using the TMPGEnc Sound Editor, if you have it. FFMPEG AC3 encoding is ""unofficial" and there can be issues with unofficial AC3 encodes.

More on AC3 encoding help at http://www.digitalFAQ.com/forum/show...-ac3-1465.html

- Did my advice help you? Then become a Premium Member and support this site.
- Please Like Us on Facebook | Follow Us on Twitter

- Need a good web host? Ask me for help! Get the shared, VPS, semi-dedicated, cloud, or reseller you need.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Extend Video Editing with Different File Formats in Timeline tedwan Edit Video, Audio 1 01-15-2010 02:22 PM
What lenses go on full frame DSLR's? beavereater Photo Cameras: Buying & Shooting 1 01-02-2009 02:17 AM
VOB file time frame wrong in Arcsoft preview!@! geekfemme Edit Video, Audio 2 06-29-2006 03:09 PM
Frame drop every 100 seconds exactly awow69 Capture, Record, Transfer 3 04-14-2006 08:15 AM
Bad Burns, Part Deux Neuroslicer Blank Media 7 09-17-2005 07:23 AM

Thread Tools Search this Thread
Search this Thread:

Advanced Search



 
All times are GMT -5. The time now is 06:50 PM