Hallo,
ich wollte mich nun die Weihnachstage daran machen alte VHS-Kassetten zu digitalisieren (nachdem ich endlich einen VHS-Player gefunden habe).
Zuerst habe ich die Einstellungen mit qv4l2 getest, sodass ich einen stabilen Stream und Bild und Ton hatte
Mit der Befehlzeile (mplayer2) bekomme ich ein Bild mit Ton
1 2 | mplayer tv:// -tv driver=v4l2:width=720:height=576:outfmt=uyvy:device=/dev/video0:input=3:fps=25:alsa:amode=1:forcechan=2:audiorate=48000:adevice=plughw.1,0:forceaudio:immediatemode=0 -ao sdl,alsa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | playing tv://. Detected file format: TV Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski <olschewski@zpr.uni-koeln.de> comment: first try, more to come ;-) Selected device: LifeView FlyVIDEO3000 Tuner cap: STEREO LANG1 LANG2 Tuner rxs: MONO Capabilities: video capture video overlay VBI capture device tuner read/write streaming supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = PAL; 5 = PAL-BG; 6 = PAL-H; 7 = PAL-I; 8 = PAL-DK; 9 = PAL-M; 10 = PAL-N; 11 = PAL-Nc; 12 = PAL-60; 13 = SECAM; 14 = SECAM-B; 15 = SECAM-G; 16 = SECAM-H; 17 = SECAM-DK; 18 = SECAM-L; 19 = SECAM-Lc; inputs: 0 = Television; 1 = TV (mono only); 2 = Composite1; 3 = Composite2; 4 = S-Video; Current input: 3 Current format: YVU420 v4l2: current audio mode is : STEREO Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: No such file or directory [vdpau] Error when calling vdp_device_create_x11: 1 [ass] auto-open VIDEO: 720x576 25.000 fps 0.0 kbps ( 0.0 kB/s) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] [swscaler @ 0xb619aa40]using unscaled uyvy422 -> yuv420p special converter VO: [xv] 720x576 => 720x576 Planar YV12 Selected video codec: RAW UYVY [raw] Selected audio codec: Uncompressed PCM [pcm] AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000) [AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le AO: [sdl] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... A: 0.8 V: 0.5 A-V: 0.293 ct: 0.000 26/ 26 ??% ??% ??,?% 9 0 |
Nun möchte ich das ganze allerdings auch als stream speichern, und dachte daher an mencoder.
Dieser scheint allerdings unter Ubuntu 14.10 nicht mehr vorgesehen zu sein. Von daher dachte ich mir ich verwende einfach mpv in dem das abspeichern des Stream einfach sein soll. Nun habe ich damit allerdings Probleme auch den Ton zu bekommen.
Folgender String liefert mir ein Bild allerdings keinen Ton
1 | mpv tv:// -tv driver=v4l2:width=720:height=576:outfmt=YV12:device=/dev/video0:input=3:fps=25:alsa:amode=1:adevice=[plughw:1.0]:audioid=3:forcechan=2:forceaudio:audiorate=48000 |
Als Ausgabe bekomme ich
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | [tv] Selected driver: v4l2 [tv] name: Video 4 Linux 2 input [tv] Selected device: LifeView FlyVIDEO3000 [tv] Tuner cap: STEREO LANG1 LANG2 [tv] Tuner rxs: MONO [tv] Capabilities: video capture video overlay VBI capture device tuner read/write streaming [tv] supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = PAL; 5 = PAL-BG; 6 = PAL-H; 7 = PAL-I; 8 = PAL-DK; 9 = PAL-M; 10 = PAL-N; 11 = PAL-Nc; 12 = PAL-60; 13 = SECAM; 14 = SECAM-B; 15 = SECAM-G; 16 = SECAM-H; 17 = SECAM-DK; 18 = SECAM-L; 19 = SECAM-Lc; [tv] inputs: 0 = Television; 1 = TV (mono only); 2 = Composite1; 3 = Composite2; 4 = S-Video; [tv] Current input: 3 [tv] Current format: YVU420 [tv] v4l2: current audio mode is : STEREO [tv] Selected channel: - (freq: 0.000) [tv] v4l2: ioctl enum norm failed: Invalid argument [tv] Error: Cannot set norm! [stream] Video (+) --vid=1 (rawvideo) Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: No such file or directory [vo/vdpau] Error when calling vdp_device_create_x11: 1 Audio: no audio No video PTS! Making something up. V: 00:00:00 / 00:00:00 (0%) VO: [opengl] 720x576 => 720x576 yuv420p V: 00:00:00 / 00:00:00 (0%) |
Ich vermute mal stark es ist ein Syntax-Fehler, allerdings komme ich hier gerade nicht weiter und seh vermutliche den Wald vor lauter Bäumen nicht. Falls noch wer aktuell mal mpv verwendet hat zum VHS digitalisieren oder sonstige aktuelle Tips zum Vorgehen (auch codecs) hat, über diese wäre ich auch dankbar.
Mit freundlichen Grüßen und vielen Dank
Torsten