PiBoSo Official Forum

GP Bikes => Media => Topic started by: doubledragoncc on May 20, 2016, 10:00:36 AM

Title: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 10:00:36 AM
Hi guys.

Many ask about video recording software for YoyTube etc, well I was having a real problem trying to do one in AC without getting fps hits and input lag.

On an off chance of trying anything I had I remembered OBS allows local recording and not just streaming, gave it a shot and BAM, NO fps hits, input lag oor any problems and great quality.

Its free so grab it here:https://obsproject.com/ (https://obsproject.com/)

It works on Windows, Mac and Linux!!!

DD

EDIT: Make sure you set the recordings to mp4 format in settings and it will make an mp4 you can send straight to YT if you dont want to edit it.
Title: Re: OBS for video recording
Post by: HornetMaX on May 20, 2016, 10:39:11 AM
Quote from: doubledragoncc on May 20, 2016, 10:00:36 AM
EDIT: Make sure you set the recordings to mp4 format in settings and it will make an mp4 you can send straight to YT if you dont want to edit it.
There's one bad point in using mp4 though: if your game or OBS crashes while recording, you lose the whole recording.
If you use the other alternative (.flv), in case of a crash the recording just stops, but it is not lost.

Once you save as .flv, in OBS you can convert to mp4 in with a couple of clicks (no re-encoding needed).

So you'd probably record as .flv an convert it within PBS as soon as the recording is done.
Title: Re: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 11:44:25 AM
True Max I am just lazy lol.

I have so much to do if it saves me time Im in lol. Good advice though bro.

Need to get brain out of neutral lol

DD
Title: Re: OBS for video recording
Post by: Hawk on May 20, 2016, 11:50:40 AM
Is it me(most likely. lol) but I've found in the past that converting from a flash movie to an mp4 doesn't give good results?  :-\

Hawk.
Title: Re: OBS for video recording
Post by: HornetMaX on May 20, 2016, 11:53:22 AM
Quote from: Hawk on May 20, 2016, 11:50:40 AM
Is it me(most likely. lol) but I've found in the past that converting from a flash movie to an mp4 doesn't give good results?  :-\
As far as I know there's no er-encoding involved in the case of OBS. Many video formats are just containers (meaning that the true video data is/can be essentially the same).

But for sure if you need to decode and re-encode, then this could be bad (especially if the original video format is of average quality from the beginning).
Title: Re: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 11:54:08 AM
Everytime you convert a video format to another you lose a bit of quality, THATS why I like to be lazy if I can.

DD
Title: Re: OBS for video recording
Post by: Hawk on May 20, 2016, 11:58:16 AM
Quote from: HornetMaX on May 20, 2016, 11:53:22 AM
Quote from: Hawk on May 20, 2016, 11:50:40 AM
Is it me(most likely. lol) but I've found in the past that converting from a flash movie to an mp4 doesn't give good results?  :-\
As far as I know there's no er-encoding involved in the case of OBS. Many video formats are just containers (meaning that the true video data is/can be essentially the same).

But for sure if you need to decode and re-encode, then this could be bad (especially if the original video format is of average quality from the beginning).

Ah! That was probably the problem for me then, cause I downloaded a video from youtube and converted it to mp4 and the quality was disgusting(very blocky), but from what I gather, YouTube does strip-out a lot of the detail quality in any uploads before publishing them?

Hawk.
Title: Re: OBS for video recording
Post by: HornetMaX on May 20, 2016, 12:04:00 PM
Youtube takes your video and may decide to re-encode it.
But when you download from Youtube you typically have the choice in a few resolution and formats to download, possibly including the original one (unless they decided to re-encode that too).
Title: Re: OBS for video recording
Post by: Hawk on May 20, 2016, 12:13:16 PM
Quote from: HornetMaX on May 20, 2016, 12:04:00 PM
Youtube takes your video and may decide to re-encode it.
But when you download from Youtube you typically have the choice in a few resolution and formats to download, possibly including the original one (unless they decided to re-encode that too).

If I'm not mistaken, even a 1080p quality on youtube doesn't hold all the information as the original 1080p quality that was uploaded as information can be stripped out that really doesn't showup too much with the viewing quality, but when it comes to converting stuff it makes a bike difference as you say. But I cannot remember seeing a setting for original quality on youtube. That's not to say they don't do it, just I've never seen it in the quality settings and I watch a lot of youtube stuff.

I personally think the best converters are the online youtube converters.... they can definitely convert to whatever format you require and the quality always seems to be good.... So yeah I'm sure if you know what your doing(unlike myself. Lol) then it can be done for sure.  :)

Hawk.
Title: Re: OBS for video recording
Post by: HornetMaX on May 20, 2016, 12:32:51 PM
Video encoding / transcoding --> Handbrake. Period.

Online converters ?!? Example ?
Title: Re: OBS for video recording
Post by: Hawk on May 20, 2016, 04:01:54 PM
Quote from: HornetMaX on May 20, 2016, 12:32:51 PM
Video encoding / transcoding --> Handbrake. Period.

Online converters ?!? Example ?

http://www.clipconverter.cc/ (http://www.clipconverter.cc/)

Hawk.
Title: Re: OBS for video recording
Post by: HornetMaX on May 20, 2016, 06:41:11 PM
Hmm, I prefer to do the conversion myself (when needed). Just download: http://keepvid.com/ (http://keepvid.com/)
Title: Re: OBS for video recording
Post by: Vini on May 20, 2016, 07:03:42 PM
Quote from: doubledragoncc on May 20, 2016, 11:54:08 AM
Everytime you convert a video format to another you lose a bit of quality, THATS why I like to be lazy if I can.
True unless you use lossless (but not uncompressed) codecs (like Lagarith, FFV1 or ULH), which is what I do unless I have a shadowplay mp4 that does not require further editing (then the raw file goes straight to YT).
YouTube always re-encodes no matter what you upload and fast movements combined with a wide FoV can cause quite low image quality.
Especially problematic are the asphalt textures on some tracks (with nose cam) because they merge into the whole frame, creating horrible graining everywhere.


I am pretty sure that you can recover aborted H.264 streams, at least I remember doing something like this when re-encoding a 3D-Bluray failed on the last 3 seconds.
Anyway, this is what I did in that case: Index the mp4/mkv/h.264-stream with ffmsindex and then read the file with an AviSynth script and the ffmpegsource2 function (and parse it to an encoder).
Title: Re: OBS for video recording
Post by: Hawk on May 20, 2016, 07:08:23 PM
Quote from: HornetMaX on May 20, 2016, 06:41:11 PM
Hmm, I prefer to do the conversion myself (when needed). Just download: http://keepvid.com/ (http://keepvid.com/)

Thanks Max.... I'll give this a try.  ;) 8)

Hawk
Title: Re: OBS for video recording
Post by: HornetMaX on May 20, 2016, 07:09:16 PM
But it's a hell of a job when you could just record as flv and convert (without re-encoding) as mp4, no ?

Lossless is good, but if you have a loong session, the file size will hurt (and enconding it after will not be a matter of 30min).
Title: Re: OBS for video recording
Post by: Vini on May 20, 2016, 07:35:46 PM
Yeah, just saying, don't delete the files if the recording crashed.

Also, h.264 is not supported by flv, only by it's later extension f4v, which was not very popular, meaning that not many programs support it.
Are you sure there is a difference between how flash handles aborted h.264 streams and how mp4 does it?
Never really bothered messing much with flv/f4v.

Can OBS record mkv files? If so, that would be my container format of choice.

Yep, lossless codecs will obviously produce very large files but it's worth it for me because I really don't want to make YouTube's processing any worse than it already is.
...The 27 min. 1080p60 helmet view video I posted was a 66GB upload.
Title: Re: OBS for video recording
Post by: HornetMaX on May 20, 2016, 07:40:48 PM
Out of memory no .mkv, only .flv and .mp4, and I'm pretty sure about the problem about aborted .mp4 (problem not being there when using .flv).

But OBS is WIP, so maybe new features have appeared since I checked (4-6 months ago at least).
Title: Re: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 07:56:57 PM
And dont forget, all the advice is useless if your GPU is shit!!!

Part joke and part reality. I have to live with it due to having a between the idea of development GPU, it SUCKS!!!

You can have all (I do) the best software, but if your GPU dont talk a certain language, its like a 12 year old white boy in a New Orleans strip club!!! Yep I think that sums it up lol

DD
Title: Re: OBS for video recording
Post by: Vini on May 20, 2016, 08:18:22 PM
It really doesn't have much to do with the GPU, although ShadowPlay is obviously a lot easier to use/set up.

If you have a half decent CPU, it will be no problem.
It's about finding the right balance with the codec settings.
Too much compression (visual quality per amount of data, not the reduction rate of data) and your CPU won't be able to keep up, resulting in lower performance/framerate (lags).
Not enough compression and your HDD won't be able to keep up with the high bitrate.


Since GPB has very low system requirements, you should be able to use relatively high compression.
Title: Re: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 08:38:58 PM
Sorry, but yes it has to do with the GPU, if the thing wont allow certain codecs to be used.

No codec, no particular format to record in!!! Simple.

Not only that, but you can use Shadowplay, I cant, my GPU wont let me and yes its Nvidea.

The GPU decides all over what you can and cant do in the end with the graphics. I have an i7, woopee doo it dont let me use shadowplay or certain codecs or the GPU will slap the shit outta it.

DD
Title: Re: OBS for video recording
Post by: Vini on May 20, 2016, 08:49:37 PM
The GPU is not doing the encoding in your case, though.

Your GPU is purely calculating the game's visual output (it's original purpose) while your CPU grabs that raw uncompressed visual data and encodes it into a (compressed) videofile.

As far as I know, OBS basically supports every VFW ("on-the-fly"/live) codec, you will just have to install them manually.
There are a lot of things to try out, maybe your HDD can even handle lossless codecs (ULH, Lagarith), who knows (not relevant for livestreaming, though).
Title: Re: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 08:57:38 PM
vin, my system is good apart from the GPU, it is just an old GTX670M and the go between poor lil thing is lacking in many respects. you say the GPU is just for the visual output, but that visual output can work in certain ways. If it can not use hardware coding and it depends on software to do what other GPU's do in the hardware it reduces quality and increases CPU and memory use to make up in its lack of hardware support. Once you start taking up more CPU than you would with a good GPU you start to effect the whole system.

I have fast HDD and memory but my GPU is my bottleneck. ASUS G75 ROG systems are pure gaming systems but even at just a few years old, the GPU is shite lol. Typical.

DD

I am also watching the new Marvel Ironman vs Cpt USA and saw a hot chick lol, dang cant think of her name..............goggled it, Marisa Tomei just hits the spot lol

Oh and by the way I am shit at trying to explain what I mean with this type of stuff lol.

Title: Re: OBS for video recording
Post by: Vini on May 20, 2016, 09:24:22 PM
Quote from: doubledragoncc on May 20, 2016, 08:57:38 PMIf it can not use hardware coding and it depends on software to do what other GPU's do in the hardware it reduces quality and increases CPU and memory use to make up in its lack of hardware support. Once you start taking up more CPU than you would with a good GPU you start to effect the whole system.
Right, your CPU is doing what newer GPUs are doing with their integrated, dedicated hardware video encoders. The GPU itself is not affected by this at all because it does not have to do any additional work (compared to just playing without recording).
Now the good thing is, GPB's CPU usage is relatively low so that this additional work for your CPU should not create problems.
It all comes down to how you configure the software encoder.

Really, try some different codecs and most importantly play with the settings. At the same time, keep monitoring system usage (CPU, GPU, RAM, HDD) to know in which direction to go.
Also, this will show you that recording produces no additional load for the GPU, only the CPU usage will jump up, which only becomes a problem when it begins hitting 99%/100%.

A 670M is plenty for GPB mate :D
Title: Re: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 09:50:22 PM
The GPU is fine for GPB but not for how I like my videos lol. I want 1080p all the way lol/

DD
Title: Re: OBS for video recording
Post by: HornetMaX on May 20, 2016, 09:50:48 PM
In fact the developer of MSI Afterburner (Unwinder) has stated plenty of times that the actual video encoding (the process of compressing to e.g. h264) is not what takes more time, no matter if it's done on a GPU (NVidia NVEC or AMD VCE) or on a CPU (software h264 or Intel QuickSync). What bogs you down if the actual frame capture.

For ddcc, I suspect that all this is just bad in your case as you're on a laptop. As Vin said, on a desktop PC, even with a crappy GPU, you can record on the fly if you have a decent CPU.
But on a M GPU, even if it is more than powerful enough to run GPB, the frame capture could really penalize you too much, no matter how good your laptop GPU.

Laptop for gaming = bad
Laptop for gaming and live recording = extra bad
Laptop for gaming and live recording and live streaming and server hosting = well, you're really seeking trouble there :)
Title: Re: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 09:56:26 PM
Yep, my laptop is fine with any game to play full 1080p high quality but recording is a bitch due to the fact laptop motherboards function a bit differently.

There is much stuff I cant use, Shadowplay, MSI afterburner recording etc etc due to the simple fact only NEW laptops have the ability to act like a desktop. It is the same for audio, many things are not possible on a laptop even if it is high end like mine.

I am also a bitch as I insist on a 40inch flatscreen and 1080p so I have to have good quality videos for my own playback lol. Or it looks like poo on me shoe all squidgy and yuk.

DD
Title: Re: OBS for video recording
Post by: Vini on May 20, 2016, 09:59:27 PM
Could you elaborate, Max?
I mean it's not like digitizing VHS tapes where you sometimes have to wait for frames because of physical inconsistencies.
Do you think the (motherboard) data busses cannot handle the additional data transfer between CPU and GPU?
Title: Re: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 10:12:33 PM
Quote from: HornetMaX on May 20, 2016, 09:50:48 PM
Laptop for gaming = bad
Laptop for gaming and live recording = extra bad
Laptop for gaming and live recording and live streaming and server hosting = well, you're really seeking trouble there :)

Got to disagree bro. I can run most games in high graphics at 1080p ask CDX. I have very fast internet capabilities including the hosting and streaming, great audio and the motherboard is pure rock and fucking roll for data transfer of it all. My only downfall is what codecs can be used due to GPU hardware limitation, that's it.

The days of the word laptop= all you say are gone with modern gaming laptops. The new ASUS G700 water cooled can blow the doors off most desktop systems!!!

Thats why I am ROG all the way.
Title: Re: OBS for video recording
Post by: HornetMaX on May 20, 2016, 10:24:32 PM
Quote from: vin97 on May 20, 2016, 09:59:27 PM
Could you elaborate, Max?
I mean it's not like digitizing VHS tapes where you sometimes have to wait for frames because of physical inconsistencies.

Do you think the (motherboard) data busses cannot handle the additional data transfer between CPU and GPU?
Read his own explanation here: http://forums.guru3d.com/showpost.php?p=4687310&postcount=61 (http://forums.guru3d.com/showpost.php?p=4687310&postcount=61)

Some info is now outdated (e.g. Shadowplay = no windowed mode), but the general concept stays.

Quote from: doubledragoncc on May 20, 2016, 10:12:33 PM
Got to disagree bro. I can run most games in high graphics at 1080p ask CDX. I have very fast internet capabilities including the hosting and streaming, great audio and the motherboard is pure rock and fucking roll for data transfer of it all. My only downfall is what codecs can be used due to GPU hardware limitation, that's it.
OBS (and any other video recorder) has at least one h264 encoder the does not use the GPU, but only the CPU.
So run a CPU-based encoder and tell me if it's any better for you. But I bet it will not :)
Title: Re: OBS for video recording
Post by: doubledragoncc on May 20, 2016, 11:28:03 PM
Yeah OBS states that in settings but when I run my intel extreme tuning program OBS takes quite a bit out of the CPU but the i7 handles it really well. Can get up to 90% and stay rock steady.

Most CPU usage is Sony Vega Pro13, runs the poor thing up to 97% lol.

DD
Title: Re: OBS for video recording
Post by: Vini on May 23, 2016, 05:33:16 PM
very interesting read, max.

so, the GPU is the limiting factor, just in a slightly different way.
Title: Re: OBS for video recording
Post by: HornetMaX on May 23, 2016, 05:47:53 PM
Sort of. It's more in the internal pipeline of the GPU plus the API it exposes.
It doesn't sound as a matter of raw power, more of smart design (taking into account live recording).