Page 1 of 1

Mosaic, no audio?

Posted: 22 Jan 2008 19:04
by rv888
I'm attempting to use Mosaic to stream 2 files back to back. File 1 will play perfectly fine and with audio. Once that video ends, File 2 starts to play but without any audio.

Checking the debug, I see the following error appear when the 2nd file begins to play: "main private error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value"

So I tried to do what it said. I went as far as chaning this value to 500000 (from it's default of 1000 - I believe). It didn't help. I've read over a number of posts, rechecked what I'm doing against other people's sample code and still can'tr figure it out. I've tried changing the muxer too. Any thoughts? Thanks!

I use SVN 0.9.0

Code: Select all

/usr/local/bin/vlc --ttl=25 --color --vlm-conf mosaic.conf -vvv --intf=telnet --telnet-port=4212 --telnet-password=pass --fake-file white.png --mosaic-height 340 --mosaic-width 450 --mosaic-rows 1 --mosaic-cols 1 --mosaic-keep-picture --udp-caching 800
My conf file

Code: Select all

new background broadcast enabled setup background input fake: setup background output '#transcode{sfilter=mosaic,vcodec=FLV1,vb=384,scale=1,fps=29.97,acodec=mp3,ab=64,samplerate=44100}:bridge-in{delay=300,id-offset=100}:standard{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8080}' new show1 broadcast setup show1 input file1.flv setup show1 input file2.flv setup show1 output #duplicate{dst=mosaic-bridge{id=1},select=video,dst=bridge-out{id=1},select=audio} setup show1 enabled loop control background play control show1 play

Re: Mosaic, no audio?

Posted: 22 Jan 2008 22:18
by rv888
Eh, its because they are flv files. Using two mpgs worked just fine. Any way to get around this problem?

Re: Mosaic, no audio?

Posted: 05 Feb 2008 13:11
by sozz
Hi rv888,

How did you do the mosaic? What you want to do is like the PIP function at some tv?

Re: Mosaic, no audio?

Posted: 05 Feb 2008 20:23
by rv888
I had read on this forum, that you can use the Mosaic feature to basically "fake" a stream like a TV channel. You can bridge one file to the next by using the Mosaic with 1 constant tile with a fake image as a bridge.

This worked to a certain degree for me. But I found if I tried to play to FLVs back to back, the second one wouldn't have audio. If I attempted this using say two mpgs, it would work just fine.

It seems the currently release can't bridge FLVs properly.

Re: Mosaic, no audio?

Posted: 22 Apr 2008 15:55
by dionoea
What audio codecs do your FLVs use? Could you paste the full debug output from VLC?

Re: Mosaic, no audio?

Posted: 29 Apr 2008 22:40
by someone64
What audio codecs do your FLVs use? Could you paste the full debug output from VLC?
I use v0.8.6 and i have the same problem.

FLVs usually have mp3 audio. Newer ones can have AAC as well.