Trying to combine two RTP streams...

*nix specific usage questions
batrick
New Cone
New Cone
Posts: 2
Joined: 28 May 2011 10:47

Trying to combine two RTP streams...

Postby batrick » 28 May 2011 10:59

Hi,

I'm trying to combine an audio stream and a video stream using:

Code: Select all

cvlc --ipv4 screen:// --screen-left 0 --screen-top 0 --screen-width 1920 --screen-height 1200 --screen-fps=60 :input-slave=rtp://127.0.0.1:46998 --sout '#transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=3000,acodec=mp4a,ab=32,channels=2,samplerate=22050}:file{dst="/home/batrick/foo.mov"}'
The input-slave rtp stream is just audio (from PulseAudio actually; this is a huge workaround because I can't get :input-slave to work with alsa or pulse).

The above command seems to execute fine but it quickly consumes all of my system memory (there's a bug in there somewhere?). Any idea what's wrong? Is this command even going to do what I hope?

If I do this, the audio works just fine:

vlc rtp://127.0.0.1:46998

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Trying to combine two RTP streams...

Postby Rémi Denis-Courmont » 28 May 2011 13:49

I believe you can't sync RTP and screen capture. They do not use consistent timestamps.

Unfortunately, I have not had time to write a PulseAudio input, and nobody beat me to it either.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests