News:

ポストを行うにはアカウントの登録を行ってください
Please register account, if you want to post.

Main Menu

How to split videos every 4Gb

Started by WickedCat, September 09, 2014, 10:16:25 PM

Previous topic - Next topic

WickedCat

Hey,

I would like to split my records every 4Gb, to re-encode them easier afterwards.

Any thoughts ?

zerowalker

Not possible, Dxtory will record in 1 file, and it's locked while writing, making it impossible to do anything until it's finished. It would have to be implemented.

There should however be no real reason for you to need the 4gb segments.

If you use Avisynth (If you want to simple Cut/Trim the videos), you won't need to resave it or anything, and just encode whatever part you want.

You can for example encode 10min in the middle of a 5 hour File without having to cut it into parts (which is Very time consuming).

WickedCat

Ok then there is no possibility of splitting the video into segments while recording... Thank you for the info.

Then I am looking for any heads up to encode WHILE recording.

To make it clear, I am recording on a ramdisk which can get full quite fast.
So my concern is to prevent the ramdisk to be full of raw video, I would miss all of the footage once it is full.

dxtory raw video on RamDisk   -- encode -->   re-encoded video on HDD

Any ideas ?

Malix

#3
your plan kinda hinges on the factor that you can move out stuff faster than you can put in your ramdrive, otherwise you'd just end up with full disk.
+ you're basically running two encoders (dxtory capture + whatever encoder you use to compress), resulting in higher resources usage.

so: ...why? just encode with high compression codec straight out from dxtory if you really need on the fly encoding?

WickedCat

#4
I have no idea how to do it...

Yes that's the point exactly, emptying my ramdisk faster than it fills up.
The point is I am making 2.57Gb / minute...

I just tested it out in my game, doing nothing but moving the camera around for 60 seconds, here's the result:



That's why I thought "Hey I need to re-encode on the fly to make small files out of this"

I am using the Lagarith Lossless Codec (YV12 Mode).
Although I find 2.57Gb per minute astoundingly large...

How can I "encode with high compression codec straight out from dxtory" ?
My experience on the recording/encoding field is very limited...

Malix

Quote from: WickedCat on September 11, 2014, 11:17:12 PM
Yes that's the point exactly, emptying my ramdisk faster than it fills up.
I'm fairly confident this isn't even remotely possible.
1. the 4GB clip needs to reside in ramdrive during encoding, unless you move it to HDD, in which case, you gain nothing by using ramdrive as you'd be writing to disk the same data anyway.
2. encoding video to smaller size takes longer than to fill the space with captured footage, in pretty much every case
3. running 2 codecs, lagarith + whatever you would use to compress the footage on the fly will result in A LOT higher load on your system -> lower game fps

Quote from: WickedCat on September 11, 2014, 11:17:12 PM
How can I "encode with high compression codec straight out from dxtory" ?

use a different codec like x264vfw with dxtory. (also, be mindfull that dxtory only outputs to .avi container, it doesn't support all the goodies x264 can offer).

BUT.

Lagarith == lossless, the image quality will not degrade when capturing
x264/h264 or other lossy codecs degrade image quality to make it fit to smaller space -> if you plan on editing videos, you will get more encoding aftifacts (lower image quality).

High compression means higher resource usage, so your ingame fps will most likely be somewhat lower while capturing. Having alot of cpu cores can help.
This can be avoided if you use hardware assisted encoding (x264 variant with opencl/amd support exists, see this topic).

If you're nvidia user, you might consider playclaw, it has nvenc (ie. nvidia gpu accelerated video encoding) built in. but, that's a different app and I'm not sure how ExKoder feels about mentioning competing software on the forum :D