[Icecast] Camera MJPEG to Icecast
Bino Oetomo
bino at indoakses-online.com
Tue Nov 2 01:08:52 UTC 2010
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@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@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-
More information about the Icecast
mailing list