Advertisement
GenesisFan64

CaptureStuff

Mar 31st, 2021
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. # *** VIEW ***
  2. mplayer tv:// -tv driver=v4l2:norm=NTSC:device=/dev/video0:immediatemode=0:forceaudio:alsa:adevice=hw.2,0:audiorate=48000 -fps 29.95
  3.  
  4. # ***CAPTURE***
  5. VIDEO_DEVICE="/dev/video0"
  6. AUDIO_DEVICE="hw:2,0"
  7. OUTPUT_FILE="OUTPUT.mp4"
  8. # v4l2-ctl --set-standard=ntsc --set-input=0 --set-ctrl=mute=0
  9. v4l2-ctl --device "$VIDEO_DEVICE" --set-standard=1 --set-fmt-video=width=640,height=480 --set-ctrl=mute=0 --set-input=0
  10. ffmpeg -thread_queue_size 2048 -f v4l2 -i "$VIDEO_DEVICE" -thread_queue_size 2048 -f alsa -i "$AUDIO_DEVICE" -c:v h264 -c:a aac "$OUTPUT_FILE"
  11.  
  12. # ***DEINTERLACE 60fps***
  13. ffmpeg -i OUTPUT.mp4 -vf yadif=1:0,scale=iw*1.5:ih*1.5 -c:v libx264 OUTPUT_ydf.mp4
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement