Capture audio/video from two different files

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Chooh
New Cone
New Cone
Posts: 2
Joined: 05 Jan 2010 16:32

Capture audio/video from two different files

Postby Chooh » 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:

Code: Select all

Capture -m 6 -f /tmp/video -a /tmp/audio
VLC with the following keys:

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}'
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:

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

Chooh
New Cone
New Cone
Posts: 2
Joined: 05 Jan 2010 16:32

Re: Capture audio/video from two different files

Postby Chooh » 12 Jan 2010 17:28

Well, slave input works, if video frames and audio packets came from regular files, not from the pipes

Code: Select all

#!/bin/sh vlc \ --demux 'rawvideo' \ --rawvid-fps 50 \ --rawvid-width 1280 \ --rawvid-height 720 \ --rawvid-chroma=UYVY \ --input-slave 'stream/rawaud://./audio.raw' stream://./video.raw \


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 45 guests