Page 1 of 1

Make a video from separate audio and video files

Posted: 24 Oct 2007 14:41
by For
Hi everyone,
I'd like to stream a mpeg ts video file in wich i stream a video and different audio files.
How can i do that?
I'v made two differents files: one audio and one video and send them to differents ports, but i need to stream a video file to one port.
I've read lots of topics but i didn't find any correct answer.
In many topics is written not to use vlc for doing what i need, but i'm very determinate to use vlc.
Please help me.

Greetings. :D

Re: Make a video from separate audio and video files

Posted: 24 Oct 2007 18:59
by Jean-Baptiste Kempf
vlc file_video.mpg --input-slave file_audio.mpga --sout...

Re: Make a video from separate audio and video files

Posted: 25 Oct 2007 12:35
by For
Could you tell me how input-slave works? Is it able to accept in input only mpga files or is possible to stream different format??
I'd like to explain you which is my problem.
I'd like to stream two different flow to one receiver IP address. for example:

Senders:
1)vlc -vvv video_input --sout=#standard{access=rtp,mux=ts,dst="192.168.1.2:1234"}
2)vlc -vvv audio_input --sout=#standard{access=rtp,mux=ts,dst=" 192.168.1.2:1234"}

In this case video_input and audio_input could be pipes from some encoder like for example ffmpeg.

Receiver:
For me is impossible to receive this fluxes with one VLC at the same port. I will have need to encapsulate this streams in one fluxes like for example MPEG-TS.
Do you know if it is possible with the command that you wrote me in the last post?? and if yes, how?

Thanks, Bye

Re: Make a video from separate audio and video files

Posted: 25 Oct 2007 18:26
by Jean-Baptiste Kempf
yes, it is possible, and you can do also the encoding through VLC and not ffmpeg. You can do it with whatever MRL you want as an input.

Re: Make a video from separate audio and video files

Posted: 26 Oct 2007 09:03
by For
Hi J-B

I've tryed the command line you wrote me in the last post,
but i can't display both audio and video in my vlc.I can see only audio or video, here is the command line that i used:

host# vlc file_video.mpg --input-slave file_audio.mp4

Which is the problem? I'm using VLC media player 0.8.6 Janus on Ubuntu 7.04 (Feisty Fawn). I've need some different version of VLC or am I doing something wrong???

Please let me know if i'm doing something wrong or if i need to set some other parameters.

Thanks, Bye