Capture audio/video from two different files
Posted: 05 Jan 2010 16:58
Hi!
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:
VLC with the following keys:
VLC doesn't want to read raw audio from /tmp/audio fifo. Is there a way to capture audio and video from two separate inputs?
P.S. Capture example has the following command sample:
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