Page 1 of 2

DashCam - Record In-Game Video!

Posted: Sat Jan 14, 2017 12:16 am
by atom0s
DashCam
Record in-game video!

What is DashCam?
  • DashCam allows players to record in-game video with ease.

    Videos will be saved to your Ashita folder within the /videos/ directory.
    Videos are named in the following format:

    Code: Select all

    charname_year.day.month_hhmmss.avi
Commands
  • DashCam currently includes the following commands:
    • /dashcam start [codec] [fps] [quality] - Starts a recording.
    • /dashcam stop - Stops a recording.
    • /dashcam codec - Lists the available codecs.
    • /dashcam codecs - Lists the available codecs.
    DashCam will respond to the following commands:
    • /dashcam
    • /record
    • /video
    You can use any three of these with the commands above (ie. /record stop).
Codecs
  • DashCam allows you to use the encoding codec of your choice that is installed on your system.
    This allows users to customize the way they record things in the encoding type of their preference.

    Please note:
    • DashCam is not guaranteed to work with all codecs!
      DashCam may have adverse effects with some codecs!
      Some codecs may use more CPU than others. Please be mindful not to fry your hardware using an intensive codec!
      By default, DashCam will try to make use of XVid. You can download the official XVid codec here: https://www.xvid.com/

Re: DashCam - Record In-Game Video!

Posted: Wed Mar 08, 2017 6:45 am
by Tru14
Having some problems with starting dashcam:

is /dashcam start [xvid] [24] [low] proper formating? I do not understand how the brackets work or the syntax of what should be in the brackets. For example, your example shows [quality] but I don't know the parameters for what "quality" would be. Low/Med/High, Low/Medium/High, Poor/Fair/Good/Great? I don't know. I tried multiple variables and always received an error that it did not work.


Also, If I do "/dashcam start" it says "could not be formatted" or something. But there is an AVI video in my /videos folder. I also do not get an ingame chat log message when I do "/dashcam stop" to know if it stopped. Or maybe it doesn't give a message because the video was never recorded just the placeholder was created (0 bytes).

Re: DashCam - Record In-Game Video!

Posted: Wed Mar 08, 2017 7:31 pm
by atom0s
Quality is a number between 0 and 100 and depends on the codec being used.

Are you able to take a screenshot of the error you are getting? I did not code any error that prints out like that, so seeing how it fully looks like may help figure out where its failing for you.

Re: DashCam - Record In-Game Video!

Posted: Thu Mar 09, 2017 7:58 am
by Tru14
No screenshot but it looks exactly like this:

I enter:
1. "/load dashcam"
2. "/dashcam start [xvid] [24] [50]"

Chatlog displays:

"[Dashcam] Failed to create the compressed stream."

Re: DashCam - Record In-Game Video!

Posted: Thu Mar 09, 2017 9:48 am
by atom0s
Try 30 instead of 24 for the FPS.

Re: DashCam - Record In-Game Video!

Posted: Thu Mar 09, 2017 11:14 am
by Tru14
Okay, is it set to only utilize 30 and 60?

Re: DashCam - Record In-Game Video!

Posted: Thu Mar 09, 2017 1:13 pm
by atom0s
It's set to allow whatever you give it, but I don't think the API allows for non-whole number FPS amounts. I'm not too familiar with the API, I just found an example of how to make use of it and put it into a plugin.

Re: DashCam - Record In-Game Video!

Posted: Thu Mar 09, 2017 5:12 pm
by Tru14
30 didn't work. Is there supposed to be a space between [x] [x] or is it supposed to be [x][x]? I feel like I'm mimicking the OP exactly.

However, usually I overlook things that are very obvious. I did redownload xvid to make sure. So, hopefully that's not it.

Re: DashCam - Record In-Game Video!

Posted: Thu Mar 09, 2017 11:19 pm
by atom0s
Ooooh.. I think I see your issue. Don't include the brackets [ ] in your arguments. They are just there to signify what the argument is.

You should be entering things like this:
/dashcam start xvid 30 50

Re: DashCam - Record In-Game Video!

Posted: Fri Mar 10, 2017 6:48 am
by Tru14
wow.. haha okay. Glad I know what the brackets represent, now. However, I get a new error message.

"[DashCam] Failed to set the stream format."