no suitable sout mux module for 'http/ffmpeg{mux=flv}://:8080/stream'

About encoding, codec settings, muxers and filter usage
nozomi
New Cone
New Cone
Posts: 3
Joined: 01 Jul 2016 09:44

no suitable sout mux module for 'http/ffmpeg{mux=flv}://:8080/stream'

Postby nozomi » 01 Jul 2016 09:58

We are trying to use the stream feature of vlc.
it works fine on the build machine, but when we try to run the c-ode on the device we are working upon, it gives the following error:
no suitable sout mux module for 'http/ffmpeg{mux=flv}://:8080/stream'
stream chain failed for 'transcode{vcodec=264,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:8080/stream}'
cannot start stream output instance , aborting


we have copied the libraries and dependencies required in the target device.

Kindly suggest a solution

thanks

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: no suitable sout mux module for 'http/ffmpeg{mux=flv}://:8080/stream'

Postby Jean-Baptiste Kempf » 03 Jul 2016 11:56

http is not a sout module, you want std{access=http...
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.

nozomi
New Cone
New Cone
Posts: 3
Joined: 01 Jul 2016 09:44

Re: no suitable sout mux module for 'http/ffmpeg{mux=flv}://:8080/stream'

Postby nozomi » 05 Jul 2016 09:59

hello sir,
we are new to this..
can you please explain a bit..

following is the code we are trying to run:

#include <vlc/libvlc.h>
#include <unistd.h>
#include <stdbool.h>
#include <stddef.h>

int main(int argc, char **argv) {
libvlc_instance_t *vlc;
const char *url;


const char *sout = "#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:8080/stream}";
const char *media_name = "stream";


url = "file:///videos/testvideo.mp4";


vlc = libvlc_new(0, NULL);
libvlc_vlm_add_broadcast(vlc, media_name, url, sout, 0, NULL, true, false);
libvlc_vlm_play_media(vlc, media_name);

sleep(60); /* Let it play for a minute */

libvlc_vlm_stop_media(vlc, media_name);
libvlc_vlm_release(vlc);
return 0;
}

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: no suitable sout mux module for 'http/ffmpeg{mux=flv}://:8080/stream'

Postby Jean-Baptiste Kempf » 11 Jul 2016 18:51

Sorry, but first, do your streaming with VLC and then move to libVLC.
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.

nozomi
New Cone
New Cone
Posts: 3
Joined: 01 Jul 2016 09:44

Re: no suitable sout mux module for 'http/ffmpeg{mux=flv}://:8080/stream'

Postby nozomi » 14 Jul 2016 10:37

We have done streaming with vlc..It works fine..the output stream 'sout' we used in above code is obtained from VLC streaming only.

Kindly suggest..

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: no suitable sout mux module for 'http/ffmpeg{mux=flv}://:8080/stream'

Postby Jean-Baptiste Kempf » 25 Jul 2016 11:37

Then look at your logs.
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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 42 guests