This is a test video showcasing hrecord.
What’s going on…
Haiku 64bit Nightly running on bare metal.
I’m playing rakarrack in realtime,
MidiSynth is running and feeding back Bass,
A drum mp3 is playing also,
hrecord is recording a live stream of the desktop and all the audio.
Even though it is in realtime per my hda.settings file, there is still some lag.
But even so, being able to record live music on Haiku even in this quality has got me a buttery and smooth inside
Worth mentioning for anyone trying out hrecord and rakarrack, as I just found this out this morning after uploading the video last night, is that rakarracks code has a quark in it that creates lag if hrecord is started and stopped and started a 2nd time while rakarrack remains open. To fix the rakarrack lag just make sure you restart rakarrack anytime you stop and restart hrecord. Otherwise your rakarrack session will have a noticeable 1-2 delay making it super hard to play live music and record at the same time.
Unrelated to hrecord, but just updated rakarrack source with a fix for the latency bug when restarting hrecord.
The issue was caused by a one shot latency killer which only fired once during rakarracks startup.
New code makes it re-triggerable instead of one-shot.
Another demo. Freestyle mode, nothing professional
Here I did two takes:
Play drum track with preferred audio player, then play backup bass guitar using rakarrack ( effects muted ) but MIDI out to MidiSynth and use bass sound fonts.
hrecord --allaudio --realtime --audioonly, so no live screen capture.
Then repeat but on the second pass include the bass and drum ogg recording while playing lead guitar with rakarrack.
hrecord --allaudio --realtime --audioonly
Then convert the final ogg file to include a video track so youtube and facebook will accept it. *I used cover.jpg per the license agreement for the drum track
Another demo video.. This is on Haiku Bare metal, no vm, and with hrecord, my Haiku screen and multi-audio source real-time mixing app. I’m trying to squeeze out as much latency as possible without it sounding like static so an occasional pop here and there is heard.
With the help of Claude, I went through several trails to find a nice screen recording engine that would not bog down the mouse yet deliver a nice recording.
Thanks to RemoteDesktop source code for the inspiration and help for this update.
There are other screen recording engine you can experiment with
–screen-capture-rcserver-method is real good one if you need extreme responsiveness and are not moving a lot of windows around.
–raw-capture was the default. Barely usable even though it does capture at a much higher quality, you can barely move the mouse around.
–experimental-screen-capture focuses on windows that are open and has a slightly less drag on the mouse than --raw-capture
–hybrid-capture is a mix between --experimental-screen-capture and --screen-capture-rcserver-method, not much difference but worth the shot
–tiled-capture ended up being a mix of --raw-capture and --screen-capture-rcserver-method which has decent quality and very good responsiveness.
Other than that, the audio side of the engine got a nice tweak. It now detects automatically if you have real-time audio enabled and updates the engine for it for recording audio.
It’s pretty good all things considering it is a bit choppy with the mouse, but I understand it’s pretty hard to get decent video recording quality without hardware acceleration i think
I tried your hrecord and found out it doesnt record from microfone.
Then i found openal test app called alrecord and modified that to get that annoying 10s timelimit away and compiled it again. Now it records forever if needed..
Then made a python gui, which uses hrecord and my version of alrecord. It asks filename and there is start and stop buttons, time counter and it renames both video and audio files according to given filename.. pretty simple.
Works pretty good now, video and audio is always sync when files imported to openshot. One problem though with hrecord video fps, high profile gives 10fps, medium 20fps and low 30fps. In cad videos i would prefer high quality for video and 30fps. Cpu usage is pretty low when recording, so maybe i am missing some options..
That sounds like a fun project! Yeah, implementing a microphone node is no easy task, but not too too difficult either.
rakarrack for haiku can also tap into your microphone/line input and help you there too! You don’t have to use any of the effects but the engine needs to be 'On". rakarrack also can utilize real-time audio just like hrecord.