Make a video from separate audio and video files

About encoding, codec settings, muxers and filter usage
For
New Cone
New Cone
Posts: 7
Joined: 17 Oct 2007 15:35

Make a video from separate audio and video files

Postby For » 24 Oct 2007 14:41

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Make a video from separate audio and video files

Postby Jean-Baptiste Kempf » 24 Oct 2007 18:59

vlc file_video.mpg --input-slave file_audio.mpga --sout...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

For
New Cone
New Cone
Posts: 7
Joined: 17 Oct 2007 15:35

Re: Make a video from separate audio and video files

Postby For » 25 Oct 2007 12:35

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Make a video from separate audio and video files

Postby Jean-Baptiste Kempf » 25 Oct 2007 18:26

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

For
New Cone
New Cone
Posts: 7
Joined: 17 Oct 2007 15:35

Re: Make a video from separate audio and video files

Postby For » 26 Oct 2007 09:03

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests