Author Topic: Audiodump?  (Read 1939 times)

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Audiodump?
« on: September 09, 2007, 08:43:48 AM »
Any chance of a console option or command line switch to dump the audio from the game into a .wav? Or is there already one of these? I've been working a lot on a much improved DP2Demo2AVI version which already fixes a large amount of huge bugs, allows selectable output bitrate and calculates disk space required. With this I could also incorporate good sound. I think this may already be possible on linux, but not many of us use linux for DP that much.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Audiodump?
« Reply #1 on: September 13, 2007, 07:11:48 PM »
There isn't currently an option for this, but I think you can get 3rd party utilities that will record the audio output stream (though other windows sounds would also be recorded).

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Audiodump?
« Reply #2 on: September 14, 2007, 09:37:22 AM »
I tried this but 1. it does indeed record other sounds 2. I can't find a program that will write to disk straight away instead of using RAM and 3. I need to be able to stop it without messing the headers in the file.

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Audiodump?
« Reply #3 on: September 14, 2007, 10:22:12 AM »
RAM or stdout?

Curiously, what program is that?

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Audiodump?
« Reply #4 on: September 14, 2007, 12:33:48 PM »
Basically, what I've tried, I have to end with PSKill, and the output file is always 0b. So I need something that writes to the HDD as it goes.

The program I've tried is http://www.bleucanard.co.uk/scripts/blueduck.php?Multimedia#Sound%20Capture, and actually I think I might have just found a way around the limitations.

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Audiodump?
« Reply #5 on: September 15, 2007, 01:50:14 AM »
How about... this:

http://liveincode.rm.pp.ru/?lineincode

Code: [Select]
LineInCode v2.10 (2003-12-31)
Copyright (C) 2003-2004 Roman Mamedov

This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; See the file LICENSE.txt for details.

DESCRIPTION:
  This program allows to encode live audio with any audio coder which accepts
  raw PCM data on STDIN. Tested with OGG Vorbis, LAME, FLAC and Speex.

USAGE:
  linco <options> | <encoder> <options>

OPTIONS:
  -B, --bits       Set number of bits per sample.
  -C, --channels   Set number of channels.
  -R, --rate       Set number of samples per second(sample rate).
  -D, --duration   Specify maximum record duration(h:m:s).
  -dev, --device   Specify the sound device to be used for recording.
  -lsdev           List the installed sound devices and exit.
  -ff              Support "flag-files".

EXAMPLES:
  linco -B 16 -C 1 -R 44100 | oggenc -r -B 16 -C 1 -R 44100 -q 1 - -o out.ogg
  linco -B 16 -C 2 -R 44100 | lame -r -x -s 44.1 --bitwidth 16 --r3mix - out.mp3

HINTS:
* Make sure you specify the same bits/channels/rate parameters to LineInCode
  AND to the encoder.
* After the recording starts, you may terminate it by pressing "Ctrl-C",
  or by killing "linco.exe" from the Task Manager.

HOMEPAGE:
  English -> http://rm.pp.ru/?1.lineincode
  Russian -> http://rm.pp.ru/?soft.lineincode

E-MAIL:
  Roman Mamedov <roman@rm.pp.ru>
Code: [Select]
Supports new option, "-ff"(also "--flag-files"), which allows to control
LineInCode by creating and removing certain files in its current directory.
Two flag files are supported for now:

    * Creating 'linco.pause.flag' will cause LineInCode to pause recording (and
      feeding data to the encoder) until this file is removed.
    * Creating 'linco.stop.flag' will cause LineInCode to stop recording and terminate.

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Audiodump?
« Reply #6 on: September 15, 2007, 05:25:25 AM »
Works like a dream!