Simultaneous playback of multiple files

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
emptyhead
New Cone
New Cone
Posts: 7
Joined: 28 May 2008 08:25

Simultaneous playback of multiple files

Postby emptyhead » 28 May 2008 08:34

Hello all,

I've been wondering, if it were possible to playback multiple files simultaneous. What I would like to achieve, is to play My_movie_video.avi, My_movie_english.ac3 and My_move_turkish.txt, combining them at playtime (no, I don't want to mux them).
I've been loking for this option, bu I haven't found anything.
Is it possible with the current VLC or would it require some hacking?

Thanks in advance
emptyhead

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: Simultaneous playback of multiple files

Postby Jean-Baptiste Kempf » 28 May 2008 08:46

vlc video.avi --input-slave video.ac3 --sub-file video.sub
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.

emptyhead
New Cone
New Cone
Posts: 7
Joined: 28 May 2008 08:25

Re: Simultaneous playback of multiple files

Postby emptyhead » 29 May 2008 16:33

Thank you for quick response!

It's is exactly what I was looking for. Sadly, I can't say I'm satisfied, because I've encountered following problems:
vlc test.avi --input-slave test.ac3 produces no sound
vlc test.ac3 --input-slave test.avi sound ok, but the video is lagging (processor usage is low)
vlc test.avi --input-slave test.mp3 works fine until fast forward - after ff sound is lagging
vlc test.mp3 --input-slave test.avi same problem here

Are they known issues? Is there a solution?
emptyhead

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: Simultaneous playback of multiple files

Postby Jean-Baptiste Kempf » 29 May 2008 19:19

try to increase cache.
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.

emptyhead
New Cone
New Cone
Posts: 7
Joined: 28 May 2008 08:25

Re: Simultaneous playback of multiple files

Postby emptyhead » 01 Jun 2008 23:55

increasing the cache didn't help at all. I guess, the cause of the issues is the code of input-slave itself.

I found however a quite good solution: pack each file into a separate container. Best working container was MP4 (no Matroska for you.). My solution:
vlc video.mp4 --input-slave audio_en.mp4 --sub-file subs_tr.srt
whereas: video.mp4 is a divx video and audio_en is a MP3 file in MP4 container.

thank you for help.

emptyhead
New Cone
New Cone
Posts: 7
Joined: 28 May 2008 08:25

Re: Simultaneous playback of multiple files

Postby emptyhead » 10 Jun 2008 23:44

MP4 works very well, but it has it's drawbacks (lack of support for AC3).
I would ask just one more thing in this topic:

what about the support for files encapsulated in MPEG-TS?
vlc video.mp4 --input-slave audio.mp4 [aac]
works flawlessly, whereas
vlc video.ts --input-slave audio.ts [ac3/aac]
doesn't work at all - no sound or when I swap the files (i.e. master=audio slave=video) no video.

Is it then possible to use --input-slave together with streams encapsulated in MPEG-TS?

thank you
emptyhead

andym
New Cone
New Cone
Posts: 5
Joined: 16 Jul 2008 12:27

Re: Simultaneous playback of multiple files

Postby andym » 18 Jul 2008 11:11

Hi both,
I faced the same problem what emptyhead is doing.
vlc video.ts --input-slave audio.ts
which no audio

vlc audio.ts --input-slave video.ts
which no video

Does it really --input-slave not support MEPG-TS?

Further, I want to mux the video.ts and audio.ts into 1 multicast MPEG-TS. Does it possible to do by vlc?

Thanks both experts in advance
AndyM

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

Re: Simultaneous playback of multiple files

Postby Rémi Denis-Courmont » 22 Jul 2008 12:54

Input slave support MPEG-TS fine. But both input files need to have synchronized clocks.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

silver_yoshi
New Cone
New Cone
Posts: 1
Joined: 25 Jul 2008 15:25

Re: Simultaneous playback of multiple files

Postby silver_yoshi » 25 Jul 2008 15:30

I want to do the same thing (Play a .m2v video with a .ac3 soundtrack but without muxing), but I don't understand what

"vlc video.avi --input-slave video.ac3 --sub-file video.sub" means.
I tried looking around but couldn't find where to put this.

Can someone please give more detailed instructions that a beginner user might understand?
I would appreciate that very much.

numediaweb
New Cone
New Cone
Posts: 6
Joined: 11 Feb 2010 20:46

Re: Simultaneous playback of multiple files

Postby numediaweb » 15 Apr 2010 14:52

I aslo search for this but in vain; I rendred the two files using Apple's FCP and Compressor and tried in both VLC mac and windows and none works, same issue as above.

I think the workaround is to generate a dvd folder from this two files using some dvd authoring tool, such as nero or dvd studio or..


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 27 guests