I need capture and transcode video from HDMI via Intensity Pro
Capture tool from BlackmagicDesign SDK can output raw video (YUV) in one file, and raw audio in another file.
To transcode on-the-fly i created two fifos, /tmp/video and /tmp/audio and run Capture with following keys:
Code: Select all
Capture -m 6 -f /tmp/video -a /tmp/audio
Code: Select all
vlc \
-vvvvv \
-I dummy \
--demux rawvideo \
--rawvid-fps 50 \
--rawvid-width 1280 \
--rawvid-height 720 \
--rawvid-chroma=UYVY \
--repeat \
stream:///tmp/video \
--input-slave 'stream:///tmp/audio:demux=rawaudio'\
--pidfile=/tmp/vlc.pid \
--sout='#transcode{venc=x264{non-deterministic=yes,keyint=75,direct=auto,nohurry-up,nf,deblock="3:-3",me=umh,verbose,psnr},vb=8192,fps=25,width=1280,height=720,ab=128,acodec=mp4a,channels=2}:std{access=http,mux=ts,dst=:5000/stream/sdi.ts}'
P.S. Capture example has the following command sample:
Code: Select all
Capture -m2 -n 50 -f video.raw -a audio.raw
mplayer video.raw -demuxer rawvideo -rawvideo pal:uyvy -audiofile audio.raw -audio-demuxer 20 -rawaudio rate=48000