Page 1 of 1

libVLC cannot add a new stream (only audio as result)

Posted: 04 Oct 2011 06:36
by vale4674
Hi,

I've been using libVLC through java interface VLCJ. I made a camera recorder and since yesterday it is acting different and strange and I haven't change a bit of code. If I start recording/encoding I get this error from libVLC:

[04ea2d0c] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
[04eb6464] main mux error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
[04ed43dc] stream_out_transcode stream out error: cannot add this stream


The first error was always there and program was running fine but the second and third one are new. The result is that I only get a .flv file with audio in it. More strange is, if I restart my computer, I can run my program and get a valid .flv file (video + audio) and when I want to start it again the above errors occurs. Also if I wait for about 10 min I could run it again without need to restart but if I run it again I get the errors again and only audio. Looks like some things are stuck in memory and needs to be released or something like that. But as I said, it is strange that this started to happen without changing anything. Any clues on this one?

Re: libVLC cannot add a new stream (only audio as result)

Posted: 04 Oct 2011 08:29
by RĂ©mi Denis-Courmont
The codec or one of the codec is not supported by the container. That's the second error. The third error is just cascading.

This kind of error definitely not going to happen without you having changed your code.

Re: libVLC cannot add a new stream (only audio as result)

Posted: 04 Oct 2011 09:36
by vale4674
That is what I've been telling to you, I didn't change my code. The container is .flv and vcodec is FLV1. If it is not supported then how come I can run my program after computer restart and generate fully normal .flv file with both audio and video. And when I stop the program I have to restart computer or wait for 10 minutes in order to run it again without that errors. This error comes from libVLC (not VLCJ) and it says that codec is not supported when obviously it is.