Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # *** VIEW ***
- mplayer tv:// -tv driver=v4l2:norm=NTSC:device=/dev/video0:immediatemode=0:forceaudio:alsa:adevice=hw.2,0:audiorate=48000 -fps 29.95
- # ***CAPTURE***
- VIDEO_DEVICE="/dev/video0"
- AUDIO_DEVICE="hw:2,0"
- OUTPUT_FILE="OUTPUT.mp4"
- # v4l2-ctl --set-standard=ntsc --set-input=0 --set-ctrl=mute=0
- v4l2-ctl --device "$VIDEO_DEVICE" --set-standard=1 --set-fmt-video=width=640,height=480 --set-ctrl=mute=0 --set-input=0
- 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"
- # ***DEINTERLACE 60fps***
- ffmpeg -i OUTPUT.mp4 -vf yadif=1:0,scale=iw*1.5:ih*1.5 -c:v libx264 OUTPUT_ydf.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement