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-
On Tue, Nov 02, 2010 at 08:08:52AM +0700, Bino Oetomo wrote:> 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 ?if you have your options right it should produce an ogg encapsulated stream of theora and vorbis. Try replacing "| oggfwd?" with ">/tmp/test.ogg" and then try to open that file using some player like vlc or mplayer.> >> 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: 0let's stop RIGHT HERE! Isn't it obvious? Something is wrong with your pipeline here. There is NOTHING coming through. Which brings us back to the previous point. First make sure ffmpeg2theora has all the right options set, then verify that it produces an valid ogg file/stream and only then try to oggfwd it. Cheers Thomas
Dear Thomas I Really Appreciate your enlightment Thomas B. Ruecker wrote:> let's stop RIGHT HERE! > Isn't it obvious? > Something is wrong with your pipeline here. There is NOTHING coming through. > Which brings us back to the previous point. > First make sure ffmpeg2theora has all the right options set, then verify > that it produces an valid ogg file/stream and only then try to oggfwd it. > >You are right !! I try to open the ogg file ... and nothing comes up. Now (I ithink) I fix the problem using recipe from http://johnbeales.com/20080820/using-vlc-to-transcode-an-axis-cameras-video-stream-and-stream-it-out-again/#vlc-transcode-solution First I run one vlc just to get the feed to a file called mypipe.mjpg next, I run another vlc to read that local mjpg file , and transcode and send it to IceCast server. First try stoped after some minutes ... Looks like the 2nd vlc reach end of file ... Then I try to click the "loop" button and .... Voila .... it works !! Thankyou for your enlightment. Sincerely -bino-