gorecord: Unterschied zwischen den Versionen

Aus Mikiwiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
Der [[Shell-Befehl]] <b>gorecord</b> erfasst Video- und Audiodaten von einem WIS GO7007-Videoencoder und schreibt sie in eine [[AVI]]-Datei. Das Erfassen dauert so lange, bis ein angegebene Frame-Grenze erreicht wurde oder die maximale AVI-Dateigrösse erreicht ist.
Der [[Shell-Befehl]] <b>gorecord</b> unterstützt die Programmierschnittstelle [[Video4linux]]. Er erfasst Video- und Audiodaten von einem WIS GO7007-Videoencoder und schreibt sie in eine [[AVI]]-Datei. Das Erfassen dauert so lange, bis ein angegebene Frame-Grenze erreicht wurde oder die maximale AVI-Dateigrösse erreicht ist.


== Optionen ==
== Optionen ==

Version vom 17. August 2009, 11:46 Uhr

Der Shell-Befehl gorecord unterstützt die Programmierschnittstelle Video4linux. Er erfasst Video- und Audiodaten von einem WIS GO7007-Videoencoder und schreibt sie in eine AVI-Datei. Das Erfassen dauert so lange, bis ein angegebene Frame-Grenze erreicht wurde oder die maximale AVI-Dateigrösse erreicht ist.

Optionen

Option Beschreibung
Videoeingang
-input zahl Aufnahme von Eingangsport zahl (Standard: 0). Mögliche Werte sind:
  • 0 für Composite (NTSC, PAL/SECAM)
  • 1 für S-Video (NTSC, PAL/SECAM)
-mode wert Auswahl des Modus für den Videoeingang (Standard: ntsc). Mögliche Werte sind:
  • Basisbandmodi: ntsc, pal, secam
  • Fernsehmodi: pal-bg, pal-i, pal-dk, secam-l, ntsc, ntsc-j
-tvchan frequenzbereich:kanal Einstellung auf Fernsehkanal kanal in Frequenzbereich frequenzbereich. Mögliche Werte sind:
  • Frequenzbereiche: ntsc-bcast, ntsc-cable, ntsc-hrc, ntsc-bcast-jp, ntsc-cable-jp, europe, france, russia
-tvaudio modus Auswahl des Fernseh-Audiomodus (Standard: stereo). Mögliche Werte sind:
  • Fernseh-Audiomodi: mono, stereo, lang1, lang2
Aufnahmeregler
-brightness zahl Helligkeit zwischen 0 und 255, Standardwert ist 128.
-contrast zahl Kontrast zwischen 0 und 127, Standardwert ist 64.
-saturation zahl Sättigung zwischen 0 und 127, Standardwert ist 64.
-hue zahl Farbton zwischen -128 und 127, Standardwert ist 0.
Usage: gorecord [OPTION]... -frames <n> [<AVI file name>]

Control options:
  -verbose                      Verbosely describe all operations
  -duration <n>                 Stop capturing after <n> seconds
  -frames <n>                   Stop capturing after <n> video frames
  -maxsize <n>                  Stop capturing after <n> Megabytes (2^20 bytes)
  -noaudio                      Do not capture audio; only video
  -nowrite                      Do not write captured video/audio to a file
  -vdevice <V4L2 device path>   Explicitly specify the V4L2 device to use
  -adevice <OSS device path>    Explicitly specify the OSS device to use

Output stream options:
  -width <n>                    Specify encoded image width (default: 640)
  -height <n>                   Specify encoded image height (default: 480)
  -fpsdrop <n>                  Specify encoded frame rate downscale ratio
  -bitrate <n>                  Specify a video bitrate (default: 1500 kbps)
  -format <format>              Encode video in <format> (default: mpeg4)
                                  Formats: mpeg1, mpeg2, mpeg2-dvd,
                                           mpeg4, mjpeg
Other Options:
  Use "%d" in the filename in conjunction with the -maxsize option to
  create a new file every <n> Megabytes. eg. gorecord filename-"%d".avi


  Making long recordings

Note: This shouldn't be needed anymore when using the new version of gorecord because there is no longer is a filesize limit. The "%d" option is still provided but must be used with the -maxsize option to have any effect.

Because of the filesize limitation by the old gorecord program, you can't make really long recordings that are stored in one big avi file. The workaround is to use gorecord's %d option to continue recording to a new file after hitting the limit. We can then put the files back together again into one big avi using mencoder.

gorecord [options] filename-"%d".avi
mencoder -oac copy -ovc copy filename-*.avi -o final_video.avi

    * Note: The individual files might not be playable until you string them back together with mencoder. 

Verwendung

Erfasst MJPEG-Videodaten und PCM-Audiodaten in der Datei "capture.avi".

$ gorecord -duration 60 -format mjpeg capture.avi

Erfasst MPEG4-Videodaten und PCM-Audiodaten bei 800 kbps, schreibt sie aber nicht auf die Festplatte.

$ gorecord -frames 3000 -bitrate 800 -nowrite