3D-Videos mit der Sony P200
3D-Videos using the Sony P200

Die inzwischen weit verbreitete Stereoadaptionen der Sony P200 (siehe z.B. RBT oder van Ekeren) ermöglichen auch die Aufnahme von bewegten Filmsequenzen.

Das Aufnahmeformat beträgt zwar nur bescheidene 640x480 Pixel, aber immerhin werden 30 Vollbilder pro Sekunde erzeugt - genug, um die eine oder andere Urlaubserinnerung auch "bewegt" festzuhalten!

Eine 2x1 GByte Speicherkarte erlaubt die Aufnahme von etwa 12-13 Minuten 3D-Film. Dies ergibt eine Informationsdichte von 0.16 Byte je Filmpixel (1024*1024*1024/12*60*30*480*640).

Zum Vergleich: eine Mini-DV (25Mbit/s) speichert 60 Minuten PAL-Video (720x576 Pixel bei 25 Bildern je Sekunde) auf etwa 11 GByte. Das sind 0.316 Byte je Filmpixel (11*1024*1024*1024/60*60*25*576*720), also eine etwa doppelt so hohe Informationsdichte bei einem etwas größeren Bildformat.

Trotzdem, ein Versuch lohnt sich und hier folgt eine kurze Beschreibung, wie mit der P200 ein 3D-Video hergestellt werden kann:

The stereo assembly of the meanwhile widespread Sony P200 (please see RBT or van Ekeren) also allow the shooting of mpg movie sequences.

The shooting format is just only 640x480 pixel, but anyhow, it's progressive with 30 frames per second - enough to keep the one or other holyday souvenir "moved".

A storage card of 2x1 GByte allows the shooting of about 12-13 minutes 3D-movie. This is an infomation density of 0.16 Byte per movie pixel (1024*1024*1024/12*60*30*480*640).

For comparison: a Mini-DV (25Mbit/s) stores 60 minutes PAL-Video (720x576 pixel with 25 frames per second) with the need of 11 GByte. That gives 0.316 Byte per movie pixel (11*1024*1024*1024/60*60*25*576*720), thus a two times higher information density with a somewhat larger images format.

Nevertheless, a try is worthwhile and needs only a handful of software steps and here is a brief recipe how to produce a 3D-video with the P200:

1. Zerlegung der Filmsequenzen in Einzelbilder
  1. 1.1 Programm TMPGEnc verwenden, entzippen und starten.
  2. 1.2 Wizard gegebenenfalls abbrechen.
  3. Zuerst das linke Movie in ein Unterverzeichnis \l\ zerlegen:
  4. 1.3 Video source - Browse - leftmovie.mpg - Öffnen
  5. 1.4 File - Output to file - Sequence BMP/PPM/TGA/JPG file
  6. 1.5 Directory - c:\cosima\l\ (nur Vorschlag)
    Dateiname - myname_l (nach Belieben)
    Dateityp - Sequence BMP file(*.bmp) - Speichern
    Ergebnis: myname_l-0000000.bmp bis myname_l-9999999.bmp
  7. Dann das rechte Movie in ein Unterverzeichnis \r\ zerlegen:
  8. 1.6 Video source - Browse - rightmovie.mpg - Öffnen
  9. 1.7 File - Output to file - Sequence BMP/PPM/TGA/JPG file
  10. 1.8 Directory - c:\cosima\r\ (nur Vorschlag)
    Dateiname - myname_r (nach Belieben)
    Dateityp - Sequence BMP file(*.bmp) - Speichern
    Ergebnis: myname_r-0000000.bmp bis myname_r-9999999.bmp
  11. 1.9 Kontrolle: in den Unterverzeichnissen c:\cosima\l\ und c:\cosima\r\ müssen exakt gleich viele Bilder vorhanden sein! Außerdem sollten sie keinerlei Zeitunterschiede aufweisen!
  12. Auch den Sound nicht vergessen!
  13. 1.10 File - Output to file - WAV file
  14. 1.11 Directory - c:\cosima\ (nur Vorschlag)
    Dateiname - myname (nach Belieben)
    Dateityp - Sequence WAV file(*.wav) - Speichern
  15. 1.12 TMPGEnc beenden.
1. Separation of the movie sequences into single images
  1. 1.1 We use the program TMPGEnc, unzip and start.
  2. 1.2 Cancel the wizard.
  3. Separate at first the left movie into the path \l\:
  4. 1.3 Video source - Browse - leftmovie.mpg - Open
  5. 1.4 File - Output to file - Sequence BMP/PPM/TGA/JPG file
  6. 1.5 Directory - c:\cosima\l\ (only suggestion)
    File name - myname_l (as you like)
    File type - Sequence BMP file(*.bmp) - Store
    Result: myname_l-0000000.bmp up to myname_l-9999999.bmp
  7. Then separate the right movie into the path \r\:
  8. 1.6 Video source - Browse - rightmovie.mpg - Open
  9. 1.7 File - Output to file - Sequence BMP/PPM/TGA/JPG file
  10. 1.8 Directory - c:\cosima\r\ (only suggestion)
    File name - myname_r (as you like)
    File type - Sequence BMP file(*.bmp) - Store
    Result: myname_r-0000000.up to bis myname_r-9999999.bmp
  11. 1.9 Please check: in the sub directories c:\cosima\l\ and c:\cosima\r\ the same number of images must exist! Furthermore no time differences should be noticeable!
  12. And please don't forget the sound:
  13. 1.10 File - Output to file - WAV file
  14. 1.11 Directory - c:\cosima\ (only suggestion)
    File name - myname (as you like)
    File type - Sequence WAV file(*.wav) - Store
  15. 1.12 Exit TMPGEnc.
2. Bilder cosimieren

Die Parameterdatei cosima.ini anpassen. Achtung, zum späteren Encodieren sollte die Anzahl der Pixel an jeder Seite wieder durch 16 teilbar sein. Es sind nur die Änderungen zu den Defaultwerten angegeben (Cosima übernimmt die Defaultwerte der fehlenden Parameter und verlangt kurz nach dem Start eine Bestätigung):

  1. 2.1 Für einen Anaglyphenfilm:
    % === video_p200_anaglyph.ini ===
    CosimaVersion = 0.9d
    InputMode = 3
    RotMirInputLeft = 2
    LeftRightOutput = 0
    StereoOutput = 0
    AnaglyphOutput = 2
    OutputHeight = 480
    OutputWidth = 640
    ForceSize = 1
    % ===============================
  2. 2.2 Für die CoBox (Ekeren-Viewer):
    % === video_p200_cobox.ini ===
    CosimaVersion = 0.9d
    InputMode = 3
    RotMirInputLeft = 2
    LeftRightOutput = 0
    StereoOutput = 2
    AnaglyphOutput = 0
    RotMirOutputRight = 4
    OutputHeight = 480
    OutputWidth = 640
    ForceSize = 1
    FillHeight = 1024
    FillWidth = 1280
    % ===============================
  3. 2.3 Für die Beamer (falls 1024x768):
    % === video_p200_beamer.ini ===
    CosimaVersion = 0.9d
    InputMode = 3
    RotMirInputLeft = 2
    LeftRightOutput = 0
    StereoOutput = 2
    AnaglyphOutput = 0
    OutputHeight = 480
    OutputWidth = 640
    ForceSize = 1
    FillHeight = 768
    FillWidth = 1024
    % ===============================
  4. 2.4 Cosima starten und einen Kaffee trinken gehen. Eine Sekunde 3D-Video benötigt etwa 1 Minute CPU Zeit.

Wer will, kann die Bilder auch hochskalieren (aber besser werden sie davon auch nicht). Ergebnis nach Cosima: \cs\myname_l-0000000.bmp bis \cs\myname_l-9999999.bmp (Linker Name wird 1:1 übernommen, kein "_cs", "_ca" usw. für unmittelbare Weiterverarbeitung mit TMPGEnc/VirtualDub etc.)

2. Cosimation of the images

You have to edit your cosima.ini. Attention, for the later encoding process, the number of pixel must be divisible in both directions by 16. In the following, there are only changes to the default values given. If parameters are failing, Cosima takes their default values and asks shortly after the start for a confirmation (if StopAtError = 1).

  1. 2.1 For producing an anaglyph movie:
    % === video_p200_anaglyph.ini ===
    CosimaVersion = 0.9d
    InputMode = 3
    RotMirInputLeft = 2
    LeftRightOutput = 0
    StereoOutput = 0
    AnaglyphOutput = 2
    OutputHeight = 480
    OutputWidth = 640
    ForceSize = 1
    % ===============================
  2. 2.2 For using the Cobox (Ekeren-Viewer):
    % === video_p200_cobox.ini ===
    CosimaVersion = 0.9d
    InputMode = 3
    RotMirInputLeft = 2
    LeftRightOutput = 0
    StereoOutput = 2
    AnaglyphOutput = 0
    RotMirOutputRight = 4
    OutputHeight = 480
    OutputWidth = 640
    ForceSize = 1
    FillHeight = 1024
    FillWidth = 1280
    % ===============================
  3. 2.3 For the beamers (if 1024x768):
    % === video_p200_beamer.ini ===
    CosimaVersion = 0.9d
    InputMode = 3
    RotMirInputLeft = 2
    LeftRightOutput = 0
    StereoOutput = 2
    AnaglyphOutput = 0
    OutputHeight = 480
    OutputWidth = 640
    ForceSize = 1
    FillHeight = 768
    FillWidth = 1024
    % ===============================
  4. 2.4 Start Cosima and go for a cup of coffee. For 1 second movie, you will need about 1 minute processing time.

If you like, you can of course scale-up the images, but doing this, they won't got more details anyway. Result after the Cosimation: \cs\myname_l-0000000.bmp up to \cs\myname_l-9999999.bmp (The left name will taken 1:1, no "_cs", "_ca" and so on will be added, this is necessary for the further processing with TMPGEnc / VirtualDub etc.)

3. Encoding nach AVI

Es wird jetzt ein side-by-side avi mit dem Ligos XP 5.2 Codec hergestellt. Dieser ist Bestandteil des k-lite codec pack full. ('Startseite' - 'Codec-Packs' (links) - 'K-Lite Codec Pack' -'Full'). Beim Installieren bitte Kreuzchen machen bei Video - Indeo - Ligos-Indeo 5.2. Alle anderen default settings können bleiben.

  1. 3.1 Programm TMPGEnc starten (siehe oben)
  2. 3.2 Video source - Browse - c:\cosima\cs\myname_l-0000000.bmp - Öffnen Die Bilder müssen fortlaufende Endnummern besitzen!
  3. 3.3 Audio source - Browse - c:\cosima\myname.wav - Öffnen
  4. 3.4 Setting - Frame rate - 30fps
  5. 3.5 File - Output to file - AVI file
    Dateiname - c:\cosima\myname.avi
    Setting - Ligos XP 5.2 - Quality 95 (nur ein Vorschlag) - OK
    Speichern
3. Encoding to AVI

Now, a side-by-side avi using the Ligos XP 5.2 Codec will be produced. This Codec is contained in the k-lite codec pack (full). ('Startsite' - 'Codec-Packs' (at the left side) - 'K-Lite Codec Pack' -'Full'). When installing, please set marker at Video - Indeo - Ligos-Indeo 5.2. All other default settings you can let unaltered.

  1. 3.1 Start again the program TMPGEnc (see above)
  2. 3.2 Video source - Browse - c:\cosima\cs\myname_l-0000000.bmp - Open. The images must have continous ending numbers.
  3. 3.3 Audio source - Browse - c:\cosima\myname.wav - Open
  4. 3.4 Setting - Frame rate - 30fps
  5. 3.5 File - Output to file - AVI file
    File name - c:\cosima\myname.avi
    Setting - Ligos XP 5.2 - Quality 95 (only a suggestion) - OK
    Store
4. Encoding nach MPG
  1. 4.1 Programm TMPGEnc starten (siehe oben)
  2. 4.2 Video source - Browse - c:\cosima\cs\myname_l-0000000.bmp - Öffnen Die Bilder müssen fortlaufende Endnummern besitzen!
  3. 4.3 Audio source - Browse - c:\cosima\myname.wav - Öffnen
  4. 4.4 Settings:
    Stream type: MPEG-1 Video
    Size: 640x480 (Anaglyph), 2560x1024 (Cobox) oder 2048x768 (Beamer)
    Aspect ratio: 1:1 (VGA)
    Frame rate: 30fps
    Rate control mode: Constant quality
    Setting - Quality - 100 (nur ein Vorschlag)
    Setting- Maximum Bitrate 15000kbit/s (nur ein Vorschlag)
    Motion search precision - Highest quality (very slow) (nur ein Vorschlag)
  5. 4.5 Output file name - Browse - c:\cosima\myname.mpg
  6. 4.6 Start
4. Encoding to MPG
  1. 4.1 Start again the program TMPGEnc (see above)
  2. 4.2 Video source - Browse - c:\cosima\cs\myname_l-0000000.bmp - Open The images must have continous ending numbers.
  3. 4.3 Audio source - Browse - c:\cosima\myname.wav - Open
  4. 4.4 Settings:
    Stream type: MPEG-1 Video
    Size: 640x480 (Anaglyph), 2560x1024 (Cobox) or 2048x768 (Beamer)
    Aspect ratio: 1:1 (VGA)
    Frame rate: 30fps
    Rate control mode: Constant quality
    Setting - Quality - 100 (only a suggestion)
    Setting- Maximum Bitrate 15000kbit/s (only a suggestion)
    Motion search precision - Highest quality (very slow) (only a suggestion)
  5. 4.5 Output file name - Browse - c:\cosima\myname.mpg
  6. 4.6 Start
5. Player

Im Prinzip kann jeder beliebige Player verwendet werden, gute Erfahrungen habe ich mit dem freien (Privatanwendung) BSPlayer gemacht. (Der Stereoscopic Player ist besonders bei Doppelstream Videos eine nähere Betrachtung wert, da er Doppelkernprozessoren (nicht Doppelkorn-Prozessoren!) unterstützt.)
Nachtrag: Die letzte uneingeschränkt freie Version des BSPlayers ist die Version 131.819 (also besorgen Sie sich diese Version, z.B. bei http://www.codec-download.de, dort nach 'BSPlayer' suchen, oder gleich die neue Vollversion BSPlayer PRO kaufen).
Im folgenden eine Konfigurationsempfehlung für den BSPlayer:

  1. Einstellungen Allgemein und Dateitypen:
  2.  - Wiederholung aus (im Hauptfenster)
  3.  - Automatisch abspielen
  4.  - WinLRC nicht benutzen
  5.  - Video pausieren bei Mausklick
  6.  - History deaktivieren
  7.  - Hauptfenster automatisch verstecken
  8.  - Datei nach Ende des Films schliessen
  9.  - Prozessorpriorität Hoch (bei Vorführung)
  10.  - mit avi und mpg verknüpfen
  11. Einstellungen Video:
  12.  - Immer im Vollbildmode starten
  13.  - Rahmenloses Videofenster
  14.  - Originale Videogröße im Vollbild
  15.  - Video Fenster Position nicht merken
  16.  - Deaktiviere OSD!
  17.  - VideoAusgabe: Auf vertikale Sync warten
  18.  - YV12 nicht deaktivieren
  19. Einstellungen Video:
  20.  - Untertitel deaktivieren

Ein Doppelklick auf die avi/mpg-Datei spielt das 3D-Video ab. Viel Spaß! Eine kurze Beispielszene aus Wernigerode (Schmalspurdampflok mitten in der Stadt) kann man hier herunterladen (3.7 MByte)!

5. Player

Player to your choice - principally every player can be used. I made fine experiences with the free (personal use) BSPlayer. (For double stream videos you may try the Stereoscopic Player, which supports dual core CPUs.)
Supplement: The last completely free version of the BSPlayer is version 131.819 (therefore try to get this version, e.g. at http://www.codec-download.de, search there for 'BSPlayer', or buy the new full version BSPlayer PRO).
Here is a configuration recommendation for the BSPlayer:

  1. Preferences General and File types:
  2.  - Repeat off (main window)
  3.  - Auto play
  4.  - Don't use WinLRC
  5.  - Pause movie on single click
  6.  - Disable history
  7.  - Auto hide main window
  8.  - Close file when finished
  9.  - Processor priority high (for performances)
  10.  - register extensions avi and mpg
  11. Preferences Video:
  12.  - Always start in full screen mode
  13.  - Borderless play window
  14.  - Don't resize video in full screen
  15.  - Don't remember movie window position
  16.  - Disable OSD!
  17.  - Video rendering: Wait for vertical blank
  18.  - Don't disable YV12 format
  19. Preferences Subtitles:
  20.  - Subtitles disabled

A double click on the avi- or mpg-file then starts the 3D-video. Enjoy! A short example scenery (narrow-gauge steam engine in the middle of the town) can be downloaded here (3.7 MByte)!



© Gerhard P. Herbig, September 2006,     back to cosima homepage