Author Topic: Multiple video files  (Read 1297 times)

Offline djodars

  • Member
  • Posts: 1
    • View Profile
Multiple video files
« on: February 05, 2010, 10:43:42 AM »
Hello everyone, I'm fairly new to editing/encoding videos and I had a couple questions for my latest project.

I recorded a ~8 minutes video using Fraps and it created 5 .avi files. I want to encode those files using x264 codec (native resolution of the video is 1920x1080). What should I do to put them all together?

Do I have to encode each file separatly and then put them together using vegas or movie maker?
or Do I have to put them together first and then encode it?

Any help is appreciated, what software to use, what settings to choose etc...

Thanks!
« Last Edit: February 05, 2010, 11:15:04 AM by djodars »

Offline JEEB

  • fushizenなDTVエンコーダー
  • Administrator
  • Member
  • *****
  • Posts: 103
    • View Profile
    • Yet Another x264 Builder
Re: Multiple video files
« Reply #1 on: February 05, 2010, 01:01:33 PM »
Doesn't have much to do with x264 itself, but here goes. Basic usage of avisynth on windows should help you get going.

  • Get Avisynth 2.58 (or if there's something newer that's not alpha or beta)
  • Get AvsP
  • Get newest x264 from x264.nl
  • Write some AviSource()s and put them together and save as something.avs
  • Open up the script in AvsP (yes, you can also write and edit scripts in AvsP very nicely) and check that you're getting output with the preview (the little triangle in the bottom left corner)
  • Run x264 with something in the likes of 'x264 something.avs --preset <your favourite preset> --crf <the highest crf value that gives ok quality to your eyes> -o output.mkv (/mp4/264)' Feel free to add any other tuning you feel like needing. (check 'x264 --help' for some parameters; or the x264 settings wiki page)
  • Either use VirtualDub, avs2wav or some app to get the audio out of that avs script as WAV (File->Save as WAV) and use neroaacenc to encode the audio if you need it.
  • Mux with mkvtoolnix's mkvmergegui, or alternatively with mp4box.
  • ??
  • Profit.

Example of an avisynth script that does what you want:
Code: [Select]
1 = AviSource("hurf.avi")
2 = AviSource("hurf2.avi")
3 = AviSource("hurf3.avi")
4 = AviSource("hurf4.avi")
5 = AviSource("hurf5.avi")
1++2++3++4++5

Offline Dstln

  • Member
  • Posts: 30
    • View Profile
Re: Multiple video files
« Reply #2 on: February 06, 2010, 01:44:09 AM »
I have no idea why fraps still doesn't at least give you the option to record >4 gig files, it's definitely annoying.

And while you'll probably want to follow most of those steps anyway, it's a lot simpler to me if you just combine the segments first.  You can do this in virtualdub by opening the first, appending the rest, setting both video/audio to direct stream copy and saving the new one.