====== VHS Videos mit USB-Live2 digitalisieren ======
USB-Live2 Infos
v4l2-ctl --device /dev/video1 --all
===== Videostream ansehen =====
Mit ffmgeg Modul video4linux2 (-f video4linux2 oder kürzer -f v4l2)\\
Videostream von VHS-Recorder ansehen, über USB-Live2 Device (dev/video1) Composite Video (gelber Chinch)
ffplay -f video4linux2 /dev/video1
Videostream von VHS-Recorder ansehen, über USB-Live2 Device (dev/video1) S-Video (DIN-Buchse)
ffplay -f v4l2 -standard PAL -channel 1 -i /dev/video1
Videostream von Laptop-Cam ansehen
ffplay -f video4linux2 /dev/video0
Film **video.mpeg** ansehen mit Frame und Zeit
ffplay -vf "drawtext=text='Time\:%{pts\:hms} Frame\: %{frame_num}':fontsize=28:box=1:x=(w-tw)/2:y=h-(2*lh)" video.mpeg
===== Videostream aufnehmen =====
RAW-Video + Sound
ffmpeg -f v4l2 -thread_queue_size 512 -standard PAL -channel 1 -i /dev/video1 -f alsa -thread_queue_size 512 -i hw:2,0 -c:v copy -pix_fmt yuv420p -acodec ac3 -ab 448k -channels 2 -ar 48000 vhs.avi
===== Video bearbeiten =====
RAW-Video in mpeg umwandeln Audio bleibt erhalten
ffmpeg -i vhs.avi -vf yadif -target pal-dvd -qscale:v 1 -s 720x576 -c:a copy vhs.mpeg
Video schneiden: auf Länge 14 Min, 45,14 Sec.
ffmpeg -i in.mpeg -t 14:45.140 -acodec copy -vcodec copy out.mpeg
Video schneiden: auf Länge 45 Min, 27,78 Sec. Start bei 3,7 Sec.
ffmpeg -i in.mpeg -ss 00:00:03.780 -t 00:45:27.780 -acodec copy -vcodec copy out.mpeg
====== Video Bildschirm capture ======
ffmpeg -video_size 3840x2160 -framerate 25 -f x11grab -i :0.0+3840+0 output.mp4
====== TV record ======
ffmpeg -i http://livestreams.br.de/i/bralpha_germany@119899/master.m3u8 -c:v copy -c:a copy -t 00:00:30 -y rec.mp4
-t 00:00:30 # 30s aufzeichnen