This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:linux:video_capture [2019/03/31 13:29] gcooper |
computing:linux:video_capture [2019/04/01 21:13] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Capture and Digitize VHS Analog Video ====== | ====== Capture and Digitize VHS Analog Video ====== | ||
- | **Linux**: https:// | + | **Linux**: |
+ | |||
+ | https:// | ||
**Beginners**: | **Beginners**: | ||
Line 10: | Line 12: | ||
* Computer with USB 2.0 and Linux | * Computer with USB 2.0 and Linux | ||
+ | < | ||
+ | sudo apt install qv4l2 ffmpeg | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | qv4l2 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | cat / | ||
+ | </ | ||
+ | |||
+ | ===== Capture a NTSC VHS Tape ===== | ||
+ | |||
+ | * USB video capture device is ''/ | ||
+ | * USB audio capture device is number 1 '' | ||
+ | * Captured and encoded in one go | ||
+ | * Small resultant file size | ||
+ | |||
+ | < | ||
+ | ffmpeg -f v4l2 -standard NTSC -thread_queue_size 512 -i /dev/video0 -f alsa -thread_queue_size 512 -i hw:1,0 -vcodec libx264 -preset superfast -crf 25 -s 720x576 -r 25 -aspect 4:3 -acodec libmp3lame -b:a 128k -channels 2 -ar 48000 yourvideo.mp4 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ffmpeg -i input -vf " | ||
+ | </ | ||
+ | |||
+ | ===== Trim a Video Without Encoding ===== | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | < | ||
+ | ffmpeg -ss 00:00:10 -i yourvideo.mp4 -to 02:47:10 -c copy yourvideo_trimmed.mp4 | ||
+ | </ | ||