Dear All ... I have AXIS camera with output mjpeg format. I try to relay it to outside world using ffmpeg and it work The recipe is taken from http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/ Now .. I want to do it the otherway with Icecast I try with wget -nv -O - http://root:root at 192.168.10.234/mjpg/video.mjpg | ffmpeg2theora -a 0 -f mjpeg -o /dev/stdout | oggfwd 192.168.10.232 8000 hackme /matamerapi the access log said that there is "source" access ... But when I try to see the active mount point .... there is no active mount point listed. I step back and just try to use VLC to play a wmv movie and stream it to the same mount point .... It work properly, means ... the mount point is listed as active .. and I can see the show from other station. I also tried to forward the ffmeg2theora output using ezstream with : ezstream -c ./matamerapi.xml .... same result , the mountpoint is not listed. My xml for ezstream is below : -----START---- <ezstream> <url>http://192.168.10.232:8000/matamerapi</url> <sourcepassword>bino262</sourcepassword> <format>THEORA</format> <filename>stdin</filename> <stream_once>1</stream_once> <svrinfoname>My Stream</svrinfoname> <svrinfourl>http://www.oddsock.org</svrinfourl> <svrinfogenre>Other</svrinfogenre> <svrinfodescription>Mata Merapi</svrinfodescription> <svrinfopublic>0</svrinfopublic> </ezstream> ----STOP------- Kindlyplease give me your enlightment to fix this problem Sincerely -bino-
On Mon, Nov 01, 2010 at 05:17:12PM +0700, Bino Oetomo wrote:> Now .. I want to do it the otherway with Icecast > > I try with wget -nv -O - http://root:root at 192.168.10.234/mjpg/video.mjpg > | ffmpeg2theora -a 0 -f mjpeg -o /dev/stdout | oggfwd 192.168.10.232 > 8000 hackme /matamerapiinstead of oggfwd, redirect the output to a file and see if that can be opened.> the access log said that there is "source" access ...turn up your logging to debug and look what happens _after_ you connect. Maybe the source is getting dropped briefly after connecting for some reason? Cheers Thomas
Not sure if you perhaps intended to obfuscate these for the purposes of email, but in ezstream you are using a different source password to oggfwd. - Leo On 1 November 2010 10:17, Bino Oetomo <bino at indoakses-online.com> wrote:> > Dear All ... > I have AXIS camera with output mjpeg format. > > I try to relay it to outside world using ffmpeg and it work > The recipe is taken from > http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/ > > Now .. I want to do it the otherway with Icecast > > I try with wget -nv -O - http://root:root at 192.168.10.234/mjpg/video.mjpg > | ffmpeg2theora -a 0 -f mjpeg -o /dev/stdout | oggfwd ?192.168.10.232 > 8000 hackme /matamerapi > > the access log said that there is "source" access ... > > But when I try to see the active mount point .... there is no active > mount point listed. > > I step back and just try to use VLC to play a wmv movie and stream it to > the same mount point .... > It work properly, means ... the mount point is listed as active .. and I > can see the show from other station. > > I also tried to forward the ffmeg2theora output using ezstream with : > ezstream -c ./matamerapi.xml .... same result , the mountpoint is not > listed. > > My xml for ezstream is below : > -----START---- > <ezstream> > ? ?<url>http://192.168.10.232:8000/matamerapi</url> > ? ?<sourcepassword>bino262</sourcepassword> > ? ?<format>THEORA</format> > ? ?<filename>stdin</filename> > ? ?<stream_once>1</stream_once> > ? ?<svrinfoname>My Stream</svrinfoname> > ? ?<svrinfourl>http://www.oddsock.org</svrinfourl> > ? ?<svrinfogenre>Other</svrinfogenre> > ? ?<svrinfodescription>Mata Merapi</svrinfodescription> > ? ?<svrinfopublic>0</svrinfopublic> > </ezstream> > ----STOP------- > > Kindlyplease give me your enlightment to fix this problem > > Sincerely > -bino- > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >
Dear Thomas Thomas B. Ruecker wrote:> On Mon, Nov 01, 2010 at 05:17:12PM +0700, Bino Oetomo wrote: > >> Now .. I want to do it the otherway with Icecast >> >> I try with wget -nv -O - http://root:root at 192.168.10.234/mjpg/video.mjpg >> | ffmpeg2theora -a 0 -f mjpeg -o /dev/stdout | oggfwd 192.168.10.232 >> 8000 hackme /matamerapi >> > > instead of oggfwd, redirect the output to a file and see if that > can be opened. > >What file type that proper for this test ?>> the access log said that there is "source" access ... >> > turn up your logging to debug and look what happens _after_ you connect. > Maybe the source is getting dropped briefly after connecting for some > reason? > >Ok .. I did it. I re-try the encoding with bino at bino:~$ wget -nv http://root:root at 192.168.10.234/mjpg/video.mjpg | ffmpeg2theora -a 0 -f mjpeg -o /dev/stdout | oggfwd 192.168.10.232 8000 bino262 /matamerapi the console output is : File `neric' does not exist or has an unknown data format. oggfwd: Connected to server oggfwd: Quitting ... oggfwd: Total bytes read: 0 While the icecast2's error log said : ----START----- [2010-11-02 07:58:30] INFO connection/_handle_source_request Source logging in at mountpoint "/matamerapi" [2010-11-02 07:58:30] DBUG connection/connection_complete_source sources count is 0 [2010-11-02 07:58:30] DBUG source/source_apply_mount Applying mount information for "/matamerapi" [2010-11-02 07:58:30] DBUG source/source_update_settings fallback /example2.ogg [2010-11-02 07:58:30] DBUG source/source_update_settings Dumping stream to /tmp/dump-matamerapi [2010-11-02 07:58:30] DBUG source/source_update_settings connect script "/home/icecast/bin/stream-start" [2010-11-02 07:58:30] DBUG source/source_update_settings disconnect script "/home/icecast/bin/stream-stop" [2010-11-02 07:58:30] DBUG source/source_update_settings public set to 0 [2010-11-02 07:58:30] DBUG source/source_update_settings max listeners to 10 [2010-11-02 07:58:30] DBUG source/source_update_settings queue size to 524288 [2010-11-02 07:58:30] DBUG source/source_update_settings burst size to 65536 [2010-11-02 07:58:30] DBUG source/source_update_settings source timeout to 10 [2010-11-02 07:58:30] DBUG source/source_update_settings fallback_when_full to 1 [2010-11-02 07:58:30] DBUG connection/connection_complete_source source is ready to start [2010-11-02 07:58:30] DBUG fserve/fserve_add_client_callback Adding client to file serving engine [2010-11-02 07:58:30] DBUG stats/modify_node_event update node clients (1) [2010-11-02 07:58:30] DBUG stats/modify_node_event update node connections (9) [2010-11-02 07:58:30] DBUG stats/modify_node_event update node sources (1) [2010-11-02 07:58:30] DBUG stats/process_source_event new source stat /matamerapi [2010-11-02 07:58:30] DBUG stats/process_source_event new node listenurl (http://192.168.10.232:8000/matamerapi) [2010-11-02 07:58:30] DBUG stats/process_source_event new node listener_peak (0) [2010-11-02 07:58:30] DBUG stats/process_source_event new node public (0) [2010-11-02 07:58:30] DBUG stats/process_source_event new node server_name (no name) [2010-11-02 07:58:30] DBUG stats/process_source_event new node server_description (Unspecified description) [2010-11-02 07:58:30] DBUG stats/process_source_event new node genre (various) [2010-11-02 07:58:30] DBUG stats/process_source_event new node server_type (application/ogg) [2010-11-02 07:58:30] DBUG stats/process_source_event new node max_listeners (10) [2010-11-02 07:58:30] DBUG source/source_init Source creation complete [2010-11-02 07:58:30] DBUG source/source_run_script Starting command /home/icecast/bin/stream-start [2010-11-02 07:58:30] EROR source/source_run_script Unable to run command /home/icecast/bin/stream-start (No such file or directory) [2010-11-02 07:58:30] INFO source/get_next_buffer End of Stream /matamerapi [2010-11-02 07:58:30] INFO source/source_main listener count on /matamerapi now 0 [2010-11-02 07:58:30] INFO source/source_shutdown Source "/matamerapi" exiting [2010-11-02 07:58:30] DBUG source/source_run_script Starting command /home/icecast/bin/stream-stop [2010-11-02 07:58:30] EROR source/source_run_script Unable to run command /home/icecast/bin/stream-stop (No such file or directory) [2010-11-02 07:58:30] DBUG source/source_clear_source clearing source "/matamerapi" [2010-11-02 07:58:30] INFO source/source_clear_source Closing dumpfile for /matamerapi [2010-11-02 07:58:30] DBUG format-ogg/format_ogg_free_headers releasing header pages [2010-11-02 07:58:30] DBUG format-ogg/free_ogg_codecs freeing codecs [2010-11-02 07:58:30] DBUG source/source_free_source freeing source "/matamerapi" [2010-11-02 07:58:30] WARN source/source_fallback_file unable to open file "/usr/share/icecast2/web/example2.ogg" [2010-11-02 07:58:30] WARN source/source_fallback_file unable to open file "/usr/share/icecast2/web/example2.ogg" [2010-11-02 07:58:30] WARN source/source_fallback_file unable to open file "/usr/share/icecast2/web/example2.ogg" [2010-11-02 07:58:30] DBUG stats/process_source_event new node source_ip (192.168.10.232) [2010-11-02 07:58:30] DBUG stats/process_source_event new node user_agent (libshout/2.2.2) [2010-11-02 07:58:30] DBUG stats/modify_node_event update node source_client_connections (2) [2010-11-02 07:58:30] DBUG stats/process_source_event new node listeners (0) [2010-11-02 07:58:30] DBUG stats/modify_node_event update node listenurl (http://192.168.10.232:8000/matamerapi) [2010-11-02 07:58:30] DBUG stats/modify_node_event update node source_total_connections (2) [2010-11-02 07:58:30] DBUG stats/process_source_event new node slow_listeners (0) [2010-11-02 07:58:30] DBUG stats/modify_node_event update node listeners (0) [2010-11-02 07:58:30] DBUG stats/modify_node_event update node listener_peak (0) [2010-11-02 07:58:30] DBUG stats/process_source_event new node stream_start (Tue, 02 Nov 2010 07:58:30 +0700) [2010-11-02 07:58:30] DBUG stats/process_source_event new node total_bytes_read (0) [2010-11-02 07:58:30] DBUG stats/process_source_event new node total_bytes_sent (0) [2010-11-02 07:58:30] DBUG stats/modify_node_event update node listeners (0) [2010-11-02 07:58:30] DBUG stats/process_source_event delete source node /matamerapi [2010-11-02 07:58:30] DBUG stats/modify_node_event update node clients (0) [2010-11-02 07:58:30] DBUG stats/modify_node_event update node sources (0) ----STOP------ Sincerely -bino-
Dear Leo Leo Currie wrote:> Not sure if you perhaps intended to obfuscate these for the purposes > of email, but in ezstream you are using a different source password to > oggfwd. > > - Leo >I do a recheck. The streaming command is : wget -nv http://root:root at 192.168.10.234/mjpg/video.mjpg | ffmpeg2theora -a 0 -f mjpeg -o /dev/stdout | ezstream -c ./matamerapi.xml The streaming console said : ---START--- File `neric' does not exist or has an unknown data format. ezstream: Connected to http://192.168.10.232:8000/matamerapi ezstream: Streaming from standard input ---STOP---- My "merapi.xml" is : ---START--- <ezstream> <url>http://192.168.10.232:8000/matamerapi</url> <sourcepassword>bino262</sourcepassword> <format>THEORA</format> <filename>stdin</filename> <stream_once>1</stream_once> <svrinfoname>My Stream</svrinfoname> <svrinfourl>http://www.oddsock.org</svrinfourl> <svrinfogenre>Other</svrinfogenre> <svrinfodescription>Mata Merapi</svrinfodescription> <svrinfopublic>0</svrinfopublic> </ezstream> ---STOP----- The "mount" part of my Icecast2.xml is : ---START--- <mount> <mount-name>/matamerapi</mount-name> <password>bino262</password> <max-listeners>10</max-listeners> <dump-file>/tmp/dump-matamerapi</dump-file> <burst-size>65536</burst-size> <fallback-mount>/example2.ogg</fallback-mount> <fallback-override>1</fallback-override> <fallback-when-full>1</fallback-when-full> <!--intro>/example_intro.ogg</intro--> <hidden>0</hidden> <no-yp>0</no-yp> <on-connect>/home/icecast/bin/stream-start</on-connect> <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect> </mount> ---STOP---- Still not work ... The error log said ---START---- [2010-11-02 08:17:58] INFO connection/_handle_source_request Source logging in at mountpoint "/matamerapi" [2010-11-02 08:17:58] DBUG connection/connection_complete_source sources count is 0 [2010-11-02 08:17:58] DBUG source/source_apply_mount Applying mount information for "/matamerapi" [2010-11-02 08:17:58] DBUG source/source_update_settings fallback /example2.ogg [2010-11-02 08:17:58] DBUG source/source_update_settings Dumping stream to /tmp/dump-matamerapi [2010-11-02 08:17:58] DBUG source/source_update_settings connect script "/home/icecast/bin/stream-start" [2010-11-02 08:17:58] DBUG source/source_update_settings disconnect script "/home/icecast/bin/stream-stop" [2010-11-02 08:17:58] DBUG source/source_update_settings public set to 0 [2010-11-02 08:17:58] DBUG source/source_update_settings max listeners to 10 [2010-11-02 08:17:58] DBUG source/source_update_settings queue size to 524288 [2010-11-02 08:17:58] DBUG source/source_update_settings burst size to 65536 [2010-11-02 08:17:58] DBUG source/source_update_settings source timeout to 10 [2010-11-02 08:17:58] DBUG source/source_update_settings fallback_when_full to 1 [2010-11-02 08:17:58] DBUG connection/connection_complete_source source is ready to start [2010-11-02 08:17:58] DBUG fserve/fserve_add_client_callback Adding client to file serving engine [2010-11-02 08:17:59] DBUG stats/modify_node_event update node clients (1) [2010-11-02 08:17:59] DBUG stats/modify_node_event update node connections (15) [2010-11-02 08:17:59] DBUG stats/modify_node_event update node sources (1) [2010-11-02 08:17:59] DBUG stats/process_source_event new source stat /matamerapi [2010-11-02 08:17:59] DBUG stats/process_source_event new node listenurl (http://192.168.10.232:8000/matamerapi) [2010-11-02 08:17:59] DBUG stats/process_source_event new node listener_peak (0) [2010-11-02 08:17:59] DBUG stats/process_source_event new node public (0) [2010-11-02 08:17:59] DBUG stats/process_source_event new node server_name (My Stream) [2010-11-02 08:17:59] DBUG stats/process_source_event new node server_description (Mata Merapi) [2010-11-02 08:17:59] DBUG stats/process_source_event new node server_url (http://www.oddsock.org) [2010-11-02 08:17:59] DBUG stats/process_source_event new node genre (Other) [2010-11-02 08:17:59] DBUG stats/process_source_event new node server_type (application/ogg) [2010-11-02 08:17:59] DBUG stats/process_source_event new node max_listeners (10) [2010-11-02 08:17:59] DBUG source/source_init Source creation complete [2010-11-02 08:17:59] DBUG source/source_run_script Starting command /home/icecast/bin/stream-start [2010-11-02 08:17:59] EROR source/source_run_script Unable to run command /home/icecast/bin/stream-start (No such file or directory) [2010-11-02 08:17:59] INFO source/get_next_buffer End of Stream /matamerapi [2010-11-02 08:17:59] INFO source/source_main listener count on /matamerapi now 0 [2010-11-02 08:17:59] INFO source/source_shutdown Source "/matamerapi" exiting [2010-11-02 08:17:59] DBUG source/source_run_script Starting command /home/icecast/bin/stream-stop [2010-11-02 08:17:59] EROR source/source_run_script Unable to run command /home/icecast/bin/stream-stop (No such file or directory) [2010-11-02 08:17:59] DBUG source/source_clear_source clearing source "/matamerapi" [2010-11-02 08:17:59] INFO source/source_clear_source Closing dumpfile for /matamerapi [2010-11-02 08:17:59] DBUG format-ogg/format_ogg_free_headers releasing header pages [2010-11-02 08:17:59] DBUG format-ogg/free_ogg_codecs freeing codecs [2010-11-02 08:17:59] DBUG source/source_free_source freeing source "/matamerapi" [2010-11-02 08:17:59] DBUG stats/process_source_event new node source_ip (192.168.10.232) [2010-11-02 08:17:59] DBUG stats/process_source_event new node user_agent (libshout/2.2.2) [2010-11-02 08:17:59] DBUG stats/modify_node_event update node source_client_connections (4) [2010-11-02 08:17:59] DBUG stats/process_source_event new node listeners (0) [2010-11-02 08:17:59] DBUG stats/modify_node_event update node listenurl (http://192.168.10.232:8000/matamerapi) [2010-11-02 08:17:59] DBUG stats/modify_node_event update node source_total_connections (4) [2010-11-02 08:17:59] DBUG stats/process_source_event new node slow_listeners (0) [2010-11-02 08:17:59] DBUG stats/modify_node_event update node listeners (0) [2010-11-02 08:17:59] DBUG stats/modify_node_event update node listener_peak (0) [2010-11-02 08:17:59] DBUG stats/process_source_event new node stream_start (Tue, 02 Nov 2010 08:17:59 +0700) [2010-11-02 08:17:59] DBUG stats/process_source_event new node total_bytes_read (0) [2010-11-02 08:17:59] DBUG stats/process_source_event new node total_bytes_sent (0) [2010-11-02 08:17:59] DBUG stats/modify_node_event update node listeners (0) [2010-11-02 08:17:59] DBUG stats/process_source_event delete source node /matamerapi [2010-11-02 08:17:59] DBUG stats/modify_node_event update node clients (0) [2010-11-02 08:17:59] DBUG stats/modify_node_event update node sources (0) [2010-11-02 08:17:59] WARN source/source_fallback_file unable to open file "/usr/share/icecast2/web/example2.ogg" [2010-11-02 08:17:59] WARN source/source_fallback_file unable to open file "/usr/share/icecast2/web/example2.ogg" [2010-11-02 08:17:59] WARN source/source_fallback_file unable to open file "/usr/share/icecast2/web/example2.ogg" [2010-11-02 08:18:54] DBUG slave/_slave_thread checking master stream list ---STOP----- Sincerely -bino-