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

This forum is about all development around libVLC.
vale4674
Blank Cone
Blank Cone
Posts: 32
Joined: 29 Sep 2011 12:50

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

Postby vale4674 » 04 Oct 2011 06:36

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?

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

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

Postby Rémi Denis-Courmont » 04 Oct 2011 08:29

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vale4674
Blank Cone
Blank Cone
Posts: 32
Joined: 29 Sep 2011 12:50

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

Postby vale4674 » 04 Oct 2011 09:36

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests