Ultimo Urlo - non visibile
Gli urli sono visibili solo agli utenti autorizzati.
punto_vert.gif (43 byte)
Forum

  Reply to this topicStart new topicStart Poll

> Other Video Format Please, How to imput other video format
phdemartin
Inviato il: 19 Oct 2005, 08:16 PM
Quote Post


Newbie
*

Gruppo: Members
Messaggi: 8
Utente Nr.: 741
Iscritto il: 19-October 05



I
Picostreamer his an Amazing solution fur us
I'm just wondering if it would be difficult for you guy's to enable ogg theora stream ?
I'm runing Suse 9.3, and all the sources we could use in our organization hare also running Linux, and has you know, it's for the moment impossible to encode nsv file under Linux sad.gif
Any other idea abouth other format who could be sreamed out of picostreamer ???
I can provide : asf mpg avi ogg swf multipart jpg .... with ffserver and send it to PicoIcy
thank you for you help wink.gif
PMEmail PosterUsers WebsiteMSN
Top
vinz486
Inviato il: 19 Oct 2005, 09:51 PM
Quote Post


Administrator
***

Gruppo: Admin
Messaggi: 448
Utente Nr.: 1
Iscritto il: 25-July 04



Hi,

PS is not involved in any codec support: it simply stream any data that picoicy sends.

So you can use your preferred codec.

I never experimented other codecs: if you can, try use theora or any other codec... and post results.

I will happy to help you.


--------------------
PMEmail PosterUsers WebsiteMSN
Top
phdemartin
Inviato il: 20 Oct 2005, 04:20 AM
Quote Post


Newbie
*

Gruppo: Members
Messaggi: 8
Utente Nr.: 741
Iscritto il: 19-October 05



Amazing piece of soft your Picostreamer, I'va aleready hook it with the java jlgui.player

www.demartinenchile.com/applet.html

and now, from 10 listener I've open hour church services to 1000, we must find a way to stream video wink.gif

So, I've tray with ogg and ogm (ogg vorbis theora video container) witouth succes it's look like the header of those files hare not send properly, any way, the play list generated contain an mp3 link ??? blink.gif
here you've got some debug info...

"the streamer..."

ffmpeg2theora --v4l /dev/video0 --inputfps 15 -x 160 -y 128 -o - | oggfwd localhost 8000 password /theora.ogg
Input #0, video4linux, from '':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 160x128, 15.00 fps
Resize: 160x128
Connected to server...
0:00:08.53 audio: 0kbps video: 36kbps

"PicoIcy response..."

java -jar PicoIcy.jar

PicoIcy 1.3 2004 by Vinz486.com

ShoutCast to PicoStreamer source protocol wrapper.

Loading cfg file ...ok

User phd at www.demartinenchile.com:80

Starting IceCast server ...ok
Listening source on 0.0.0.0:8000 ...ok

Waiting source ... connected: localhost [/127.0.0.1:27089]
Checking password ...ok
Connecting to PicoStreamer server...ok



264 kbytes sent

"and picostreamer generated playlist..."

[playlist]
NumberOfEntries=1
File1=http://www.demartinenchile.com/cgi-bin/picoreader.cgi?user=phd&r=1129776496&f=file.mp3
Title1=no name
Length1=-1
Version=2

"and the mplayer error"

Cache fill: 17.50% (57344 bytes) Ogg : Warning found none bos page from unknown stream 503836830

louk like the player dont know how to play the stream, but when I play the file I've got no problem with it...

[Ogg] stream 0: video (Theora v3.2.0), -vid 0
Ogg file format detected.
VIDEO: [theo] 160x128 24bpp 15.000 fps 0.0 kbps ( 0.0 kbyte/s)
vo: X11 running at 1152x864 with depth 16 and 16 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [theora] Theora/VP3
VDec: vo config request - 160 x 128 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 160x128 => 160x128 Planar YV12
Selected video codec: [theora] vfm:theora (Theora (free, reworked VP3))


I thing it's could be a MIME type or HEADER problem

I hope I dont abuse of your time, but if we can be hable to host video streaming witout needing windowsmedia server or realserver, It's gona be a revolution, just imagine..... you hare going to need a very goud server to recive the million of visits

thank you for the great job you have already acomplish

Philippe
PMEmail PosterUsers WebsiteMSN
Top
vinz486
Inviato il: 20 Oct 2005, 03:27 PM
Quote Post


Administrator
***

Gruppo: Admin
Messaggi: 448
Utente Nr.: 1
Iscritto il: 25-July 04



Ok.

First of all: i'm very very happy to speak with "tech" people... tongue.gif

PS is made for mp3 (at beginning).

But in the v2 no content-type is hard coded: ps will send the content-type that picoicy send.

But picoicy get content-type from the shoutcast encoder, so it don't understand theora protocol, and send default content-type: audio/mpeg.

But, there is a workaroud: all settings that picoicy can send to PS server can be setted via url.

picosource.cgi search for settings first in http request header or, if missing, from get parameters.

So calling picosource.cgi with "auth" action will return a password check but will also set stream parameters.

This is a minimal list of parameters:

act = action to perform (auth, source, stats, etc)
user = username
pass = obvious
bits = bitrate
ctype = content-type
info = stream description

This is an example, getting stats:

picosource.cgi?user=USER&pass=PASSWORD&act=stats&mode=csv

that printout stats in csv format.

To printout stats in shoutcast typical xml format, simply use mode=shout in url.

In the same manner, setting bitrate can be done using following parameters.

picosource.cgi?user=USER&pass=PASSWORD&act=auth&bits=128

You can use auth action for every settings url: this will simply printout success authenticaton but in the same call will set other parameters also (in this case the bitrate).

For your specified problem, you can manually set the correct content type.

First, start streaming, the type the url in your browser:

....cgi-bin/picosource.cgi?user=USER&pass=PASSWORD&act=auth&ctype=YOUR/CONTENTTYPE

Where YOUR/CONTENTTYPE is the content type of theora video (ogg/therora? i don't know)

Then, try to play stream using a direct link to stream (players links are not ready for ogg).

Eg. open player and type this url:

...picoreader.cgi?user=USER&ext=file.ogg


ext=file.ogg is only a trick to suggest the player that the url point to a ogg file.

Try, than post results and good luck.






--------------------
PMEmail PosterUsers WebsiteMSN
Top
phdemartin
  Inviato il: 21 Oct 2005, 08:34 PM
Quote Post


Newbie
*

Gruppo: Members
Messaggi: 8
Utente Nr.: 741
Iscritto il: 19-October 05



Thank's for the informations
So, I've been experimenting with ogg audio stream,
the MIME tyoe its now ok

wget "http://www.demartinenchile.com/cgi-bin/picoreader.cgi?user=phd&ext=file.ogg"
--16:16:20-- http://www.demartinenchile.com/cgi-bin/pic...hd&ext=file.ogg
=> `picoreader.cgi?user=phd&ext=file.ogg'
Résolution de www.demartinenchile.com... 200.73.13.14
Connecting to www.demartinenchile.com|200.73.13.14|:80... connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: non spécifié [audio/vorbis]


BUT WHEN I TRY TO PLAY THE STREAM OR THE DOWNLOADED FILE, i'VE GOT IN MPLAYER

Ogg : Warning found none bos page from unknown stream 1129921428

Acording to http://www.annodex.net/software/liboggz/ht...up__basics.html

the bos page: The initial page (beginning of stream) of a logical
bitstream which contains information to identify the codec type
and other decoding-relevant information.

The header...., how do you pass the mp3 header from the source to the reader? do you generate it on the fly with the datas provided by PicoIcy ?
Would it be posible to strip the header out of the source and to send it ahead of the streamed packets ??

I will try to stream asf avi and other format to see if one of those is forgiving the lake of header cool.gif

By Sir
PMEmail PosterUsers WebsiteMSN
Top
phdemartin
Inviato il: 21 Oct 2005, 09:02 PM
Quote Post


Newbie
*

Gruppo: Members
Messaggi: 8
Utente Nr.: 741
Iscritto il: 19-October 05



some more detailed debug info...



Connecting to server www.demartinenchile.com[200.73.13.14]:80 ...
--- HTTP DEBUG HEADER --- START ---
protocol: [HTTP/1.1]
http minor version: [1]
uri: [(null)]
method: [(null)]
status code: [200]
reason phrase: [OK]
body size: [0]
Fields:
0 - Date: Fri, 21 Oct 2005 19:55:08 GMT
1 - Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b
2 - Cache-Control: no-cache
3 - Connection: keep-alive, close
4 - Expires: Sat, 22 Apr 2000 22:22:22 GMT
5 - icy-br: 32
6 - icy-genre: Espiritual
7 - icy-name: Iglesia Mayor-gracia CHILE, Devocional diario
8 - icy-pub: 1
9 - icy-url: http://www.demartinenchile.com
10 - Content-Type: audio/x-vorbis
--- HTTP DEBUG HEADER --- END ---
Content-Type: [audio/x-vorbis]
Cache size set to 320 KBytes
Connected to server: www.demartinenchile.com
CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:0
Cache fill: 17.50% (57344 bytes) Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename http://www.demartinenchile.com/cgi-bin/pic...ext=vvvfile.ogg ext: .ogg
Trying demuxer 18 based on filename extension
Ogg : Warning found none bos page from unknown stream 1129924021
demuxer: continue fuzzy content-based format guessing...
Checking for MOV
Checking for VIVO
header block 1 size: 103
Ogg : Warning found none bos page from unknown stream 1129924021
AVS: avs_check_file - attempting to open file http://www.demartinenchile.com/cgi-bin/pic...ext=vvvfile.ogg
Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/codecs/avisynth.dll, /usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll
AVS: failed to load avisynth.dll
AVS: Init failed
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 67624, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=20327 size=32856
LMLM4 Stream Format not found

as you see, mplayer is trying to guess what hi's got to do... and try "Trying demuxer 18 based on filename extension" but dont find any way to handle it blink.gif
PMEmail PosterUsers WebsiteMSN
Top
vinz486
Inviato il: 25 Oct 2005, 07:26 PM
Quote Post


Administrator
***

Gruppo: Admin
Messaggi: 448
Utente Nr.: 1
Iscritto il: 25-July 04



Yes, ogg file format require a special header at start of stream/file.

Actually, PS stream directly data over the net, because both mp3 and nsv doesn't require any header.

So, to turn ps ogg compatible, source must be modified as:

CODE

if (this is an ogg stream ) {

     send "OGG Header"
}

send "normal data"


But i don't know how build an OGG header using rigth values...

Btw, once discovered this info will be simple to change code (in picoreader.cgi, or libio.1.0.pl) to do the required stuff.

I have no time now to solve this problem... sad.gif


--------------------
PMEmail PosterUsers WebsiteMSN
Top
phdemartin
Inviato il: 26 Oct 2005, 04:18 PM
Quote Post


Newbie
*

Gruppo: Members
Messaggi: 8
Utente Nr.: 741
Iscritto il: 19-October 05



Thank you Winz,
I need to find a way to input something els, ogg and theora hare looking tricky... I'll try with mpg or asf who can be easy to handle by the clients players, but don't knows how to send it to PicoIcy ? I've got tools to imput mp3 ogg and theora to shout/icecast like server but no Idea how to stream something else.
But I can provide asf avi mpg etc... with ffserver on the port http://domainename:8090/live.xxx for example, but how to get it as source without PicoIcy interface ??
Peercast for example have an relay tab in the web interface who can get external stream as input, I understand that it's an complete other concept of autentification but, it can solve a lot of problem for the source inputs, just an idea... wink.gif
Don't worry about time, I've not in a hurry...

Bye Sire
PMEmail PosterUsers WebsiteMSN
Top
vinz486
Inviato il: 27 Oct 2005, 09:14 AM
Quote Post


Administrator
***

Gruppo: Admin
Messaggi: 448
Utente Nr.: 1
Iscritto il: 25-July 04



It's simple:

Connect to port (eg 8001):

PASSWORD
[DATA]
.........
.........


Using wget, cat and nc (netcat) you ca do this without any coding (I LOVE LINUX rolleyes.gif )

CODE

$ echo "YuorPassword" > pass.txt
$ wget -q -O - http://www.domain.com/resource.mp3 | cat pass.txt - | nc 127.0.0.1 8001


--------------------
PMEmail PosterUsers WebsiteMSN
Top
phdemartin
Inviato il: 27 Oct 2005, 05:51 PM
Quote Post


Newbie
*

Gruppo: Members
Messaggi: 8
Utente Nr.: 741
Iscritto il: 19-October 05



Ok, I've got working with mpg video smile.gif

ffserver give mi:
CODE

http://localhost:8090/Live.mpg

after that... wget stream+cat info+cat pass==>netcat

CODE
wget -q -O - http://localhost:8090/Live.mpg]http://localhost:8090/Live.mpg | cat info - | cat pass.txt - | netcat 127.0.0.1 8001


I've found that shoutcast/Picolcy protocol need an header to begin streaming so the info file look's like that :
CODE

icy-name:De chez Demartin
icy-genre:Essais
icy-pub:1
conten[CODE]t-type: video/mpeg
icy-url:http://www.demartinenchile.com
icy-irc:%23shoutcast
icy-icq:0
icy-aim:phdemart


and the pass.txt file :
CODE
password


the Picolcy get it right and send it to picostreamer...

and smile.gif mplayer read it without problem
CODE

mplayer "http://www.demartinenchile.com/cgi-bin/picoreader.cgi?user=phd&ext=file.mpg" -v 2

CODE

==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO:  MPEG1  352x240  (aspect 1)  23.976 fps  100.0 kbps (12.5 kbyte/s)
PMEmail PosterUsers WebsiteMSN
Top
vinz486
Inviato il: 27 Oct 2005, 06:37 PM
Quote Post


Administrator
***

Gruppo: Admin
Messaggi: 448
Utente Nr.: 1
Iscritto il: 25-July 04



If you want add icy or http headers, simply add them to the txt file:

password
header1
header2
etc

....


--------------------
PMEmail PosterUsers WebsiteMSN
Top
phdemartin
Inviato il: 28 Oct 2005, 11:39 PM
Quote Post


Newbie
*

Gruppo: Members
Messaggi: 8
Utente Nr.: 741
Iscritto il: 19-October 05



Thank you

So I've the mpg stream hooked in a java applet on http://www.demartinenchile.com/ffmpeg/
take a look at it... wink.gif I'm wondering how Picostreamer will handle the load ???, I gona let it "up" for the week-end
I've try tu read the mpg with windows media , realplayer, and other... witout succes. The only one who read it on win is VLC, but for my gool, it's ok to stream in the web page with the applet from http://mediaframe.org/ and to produce archives for later viewing.

If you've got new idea, I gona check the forum

Thank's again
PMEmail PosterUsers WebsiteMSN
Top
vinz486
Inviato il: 29 Oct 2005, 02:53 PM
Quote Post


Administrator
***

Gruppo: Admin
Messaggi: 448
Utente Nr.: 1
Iscritto il: 25-July 04



QUOTE (phdemartin @ 28 Oct 2005, 11:39 PM)
I've try tu read the mpg with windows media , realplayer, and other... witout succes. The only one who read it on win is VLC, but for my gool, it's ok to stream in the web page with the applet from http://mediaframe.org/ and to produce archives for later viewing.

Yes, mplayer and vlc are the only players that play arbitrary stream without problems.

The others are very very bad products for streaming: they arent't Open Source rolleyes.gif


--------------------
PMEmail PosterUsers WebsiteMSN
Top
phdemartin
Inviato il: 11 Nov 2005, 02:58 PM
Quote Post


Newbie
*

Gruppo: Members
Messaggi: 8
Utente Nr.: 741
Iscritto il: 19-October 05



Hi
Last update
Every think works fine, I've setup the picosreamer based video and audio redistribution system for my church in Chile, http://mayor-gracia.dyndns.org/ the live stream sunday 11-12.30 and wensday 20-21.30 chilian Time

Now the setup gose like for mpeg1 audio/video
CODE
(on localhost) ffsmpeg ==> ffserver ==> wget/cat/netcat ==> picoIcy ==> ( on web server) Picostreamer ==> (on Client Machine) mediaframe applet


For the segond stream, the mp3, I had ba problem with the comunication process runing two instance of picoIcy on the same machine, so I use a the gateaway machine to run picoIcy and send the source stream there

CODE
(on localhost) ffsmpeg ==> ffserver ==> wget/cat/netcat ==>  (on gateaway machine) picoIcy ==> (on web server) picostreamer ==> (on Client Machine) pls axs or rm capable player


So with what we've got: just a small 160 kbs adsl upload line, we hare able to stream
1 mpeg1 audio/video 5 frames segond 352x240 84 kbs like this archive http://mayor-gracia.dyndns.org/Video/1.Cul...11.09-19.04.mpg and
1 mp3 22050 mono 24 kbs
to 100 of client, do you believe in miracle wink.gif
thank's a lot for your help,
If some body need some more how-to just mail-me
PMEmail PosterUsers WebsiteMSN
Top
vinz486
Inviato il: 11 Nov 2005, 05:40 PM
Quote Post


Administrator
***

Gruppo: Admin
Messaggi: 448
Utente Nr.: 1
Iscritto il: 25-July 04



Thank you for the useful info.

It's possible to use 2 instance of picoicy on the same machine.

Simply, in a second picoicy dir, modify default.cfg to use a different port.

Remove the coment char (#) and put a different port (eg. 9000)

CODE
##############################################################
# Listening port of the "virtual" local shoutcast server.
# Usually 8000 (default value)
##############################################################
listen=9000


Naturally, the second encoder must be modified to point to port 9000...


--------------------
PMEmail PosterUsers WebsiteMSN
Top
Utenti totali che stanno leggendo la discussione: 0 (0 Visitatori e 0 Utenti Anonimi)
Gli utenti registrati sono 0 :
« Disc. precedente | English language Support | Disc. successiva »
 

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.1321 ]   [ 10 queries used ]   [ GZIP Abilitato ]

 
punto_vert.gif (43 byte)



[ Script Execution time: 0.2183 ]   [ 25 queries used ]


MKPortal 1.0.1a A ©2003-2004 - Tutti i diritti riservati