Hi Seethapathi,

I can stream files (no feeds) just files without using ffmpeg, only
ffserver.

For example:  to play files test.avi in PC 1 (windows) sintax is
C:\>mplayer http://192.168.100.236:8091/test.avi

PC 2 (192.168.100.236) is the server with ubuntu. The sintax in this one is
#ffserver -f /tmp/ffserver.conf


and the config file ffaserver.conf is :


Port 8091
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 40000
CustomLog -
Nodaemon

<Stream test.avi>
File "/home/Videos/test.avi"
AudioSampleRate 48000
AudioChannels 2
AudioCodec libmp3lame
VideoCodec mpeg4
VideoFrameRate 25
VideoSize 720x576
VideoBitRate 3000
AudioBitRate 128
StartSendOnKey
</Stream>


<Stream stat.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>
<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>



You should change settings in <Strema> section to refer a mp3 file instead
an avi file.

Ariel.





                                                                           
             ffserver-user-req                                             
             u...@mplayerhq.hu                                             
             Enviado por:                                             Para 
             ffserver-user-bou         ffserver-user@mplayerhq.hu          
             n...@mplayerhq.hu                                          cc 
                                                                           
                                                                    Asunto 
             16/02/2010 20:15          ffserver-user Digest, Vol 12, Issue 
                                       4                                   
                                                                           
                Por favor,                                                 
                responda a                                                 
             ffserver-u...@mpl                                             
                 ayerhq.hu                                                 
                                                                           
                                                                           




Send ffserver-user mailing list submissions to
             ffserver-user@mplayerhq.hu

To subscribe or unsubscribe via the World Wide Web, visit
             https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user
or, via email, send a message with subject or body 'help' to
             ffserver-user-requ...@mplayerhq.hu

You can reach the person managing the list at
             ffserver-user-ow...@mplayerhq.hu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ffserver-user digest..."


Today's Topics:

   1. Re: ffserver-user Digest---streaming through FILE
      (seethapathi purru)
   2. Problem with ffserver and ffmpeg with feeds (Ariel Laurella)


----------------------------------------------------------------------

Message: 1
Date: Tue, 16 Feb 2010 19:32:13 +0530
From: seethapathi purru <piseethapa...@gmail.com>
Subject: Re: [ffserver-user] ffserver-user Digest---streaming through
             FILE
To: ffserver-user@mplayerhq.hu
Message-ID:
             <54cbf021002160602v4febf850sc9f560cfc9f3b...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello Ariel,

                  How do u stream through File?? can u send me syntax. If i
have  10 mp3 files,  how can u stream through file name.
can u send me config settings, etc.,

Seethapathi
              INDIA.

On Tue, Feb 16, 2010 at 4:30 PM, <ffserver-user-requ...@mplayerhq.hu>
wrote:

> Send ffserver-user mailing list submissions to
>        ffserver-user@mplayerhq.hu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user
> or, via email, send a message with subject or body 'help' to
>        ffserver-user-requ...@mplayerhq.hu
>
> You can reach the person managing the list at
>        ffserver-user-ow...@mplayerhq.hu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ffserver-user digest..."
>
> Today's Topics:
>
>   1. Problem with ffserver and ffmpeg with feeds (Ariel Laurella)
>
>
> ---------- Forwarded message ----------
> From: Ariel Laurella <alaure...@telefe.com.ar>
> To: ffserver-user@mplayerhq.hu
> Date: Mon, 15 Feb 2010 22:13:25 -0300
> Subject: [ffserver-user] Problem with ffserver and ffmpeg with feeds
>
> Hello,
>
> I have twos PCs (a streaming server and a client).
>
>
> I open two Terminals in the server with Linux (Ubuntu 9.10)
> ----------------------------------------------------------------
> 1 - In Termina 1 I do:
>
> r...@multimedia:/home/Videos# ffserver -f /etc/ffserver.conf
>
> FFserver version SVN-r21213, Copyright (c) 2000-2010 Fabrice Bellard, et
> al.
>   built on Jan 25 2010 17:21:46 with gcc 4.4.1
>   configuration: --prefix=/usr --enable-shared --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-gpl --enable-postproc
--enable-avfilter
> --enable-avfilter-lavf --enable-libfaac --enable-libfaad
--enable-libmp3lame
> --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264
> --enable-libschroedinger --enable-x11grab --enable-nonfree
--enable-version3
> --enable-libdc1394 --enable-libgsm --enable-libdirac --disable-stripping
> --disable-decoder=libdirac --disable-encoder=libschroeginger
>   libavutil     50. 7. 0 / 50. 7. 0
>   libavcodec    52.47. 0 / 52.47. 0
>   libavformat   52.47. 0 / 52.47. 0
>   libavdevice   52. 2. 0 / 52. 1. 0
>   libavfilter    1.15. 0 /  1.15. 0
>   libswscale     0. 8. 0 /  0. 8. 0
>   libpostproc   51. 2. 0 / 51. 2. 0
> Fri Feb 12 20:34:47 2010 FFserver started.
>
>
>
------------------------------------------------------------------------------

>
> 2 - In another Terminal of the same server PC I do:
>
> r...@multimedia:/home/Videos# ffmpeg -i test6.swf
> http://127.0.0.1:8092/feed2.ffm
>
> FFmpeg version SVN-r21213, Copyright (c) 2000-2010 Fabrice Bellard, et
al.
>   built on Jan 25 2010 17:21:46 with gcc 4.4.1
>   configuration: --prefix=/usr --enable-shared --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-gpl --enable-postproc
--enable-avfilter
> --enable-avfilter-lavf --enable-libfaac --enable-libfaad
--enable-libmp3lame
> --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264
> --enable-libschroedinger --enable-x11grab --enable-nonfree
--enable-version3
> --enable-libdc1394 --enable-libgsm --enable-libdirac --disable-stripping
> --disable-decoder=libdirac --disable-encoder=libschroeginger
>   libavutil     50. 7. 0 / 50. 7. 0
>   libavcodec    52.47. 0 / 52.47. 0
>   libavformat   52.47. 0 / 52.47. 0
>   libavdevice   52. 2. 0 / 52. 1. 0
>   libavfilter    1.15. 0 /  1.15. 0
>   libswscale     0. 8. 0 /  0. 8. 0
>   libpostproc   51. 2. 0 / 51. 2. 0
> [swf @ 0x8edf7d0]max_analyze_duration reached
> [swf @ 0x8edf7d0]Estimating duration from bitrate, this may be inaccurate
> Input #0, swf, from 'test6.swf':
>   Duration: N/A, start: 0.000000, bitrate: N/A
>     Stream #0.0: Video: flv, yuv420p, 160x128, 25 fps, 25 tbr, 25 tbn, 25
> tbc
>
> Output #0, ffm, to 'http://127.0.0.1:8092/feed2.ffm':
>     Stream #0.0: Video: flv, yuv420p, 160x128, q=3-31, 64 kb/s, 1000k
tbn,
> 5 tbc
> Stream mapping:
>   Stream #0.0 -> #0.0
> Press [q] to stop encoding
> [flv @ 0x8eed540]rc buffer underflow
> av_interleaved_write_frame(): Error while opening file
>
>
------------------------------------------------------------------------------

>
>
> 3 - The conf file is the following:
>
> ffserver.conf
> __________________________________________________________
>
> Port 8092
> BindAddress 0.0.0.0
> MaxHTTPConnections 2000
> MaxClients 1000
> MaxBandwidth 10000
> CustomLog -
> Nodaemon
>
> <Feed feed1.ffm>
> File /tmp/feed1.ffm
> FileMaxSize 2M
> </Feed>
>
> <Stream test.swf>
> Feed feed1.ffm
> Format flv
> NoAudio
> ACL allow localhost
> ACL allow 192.168.0.0 192.168.255.255
> </Stream>
>
>
> <Stream stat.html>
> Format status
> ACL allow localhost
> ACL allow 192.168.0.0 192.168.255.255
> </Stream>
>
> <Redirect index.html>
> URL http://www.ffmpeg.org/
> </Redirect>
>
>
-----------------------------------------------------------------------------

>
>
> The file size of feed2.ffm is always 4KB.
>
> In Client PC there is a Windows XP and I use de mplayer
>
>
> D:\Videos>mplayer http://192.168.26.68:8092/test.swf
> MPlayer Sherpya-SVN-r29851-4.2.5 (C) 2000-2009 MPlayer Team
> Fontconfig error: Cannot load default config file
>
> Playing http://192.168.26.68:8092/test.swf.
> Connecting to server 192.168.26.68[192.168.26.68]: 8092...
>
>
> MPlayer interrupted by signal 2 in module: open_stream
> STREAM_ASF, URL: http://192.168.26.68:8092/test.swf
> Connecting to server 192.168.26.68[192.168.26.68]: 8092...
> Failed, exiting.
> Connecting to server 192.168.26.68[192.168.26.68]: 8092...
> No stream found to handle url http://192.168.26.68:8092/test.swf
>
> Exiting... (Quit)
>
>
>
_________________________________________________________________________________________________

>
> When I stream files with no feeds the transfer is fine, but the problem
> appears when I want to use feeds.
>
> Could you help to find where is the problem ?
>
> Thank you
>
> Ariel.
>
>
>
>
> _______________________________________________
> ffserver-user mailing list
> ffserver-user@mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.mplayerhq.hu/pipermail/ffserver-user/attachments/20100216/e30ee579/attachment-0001.htm
>

------------------------------

Message: 2
Date: Tue, 16 Feb 2010 20:14:04 -0300
From: Ariel Laurella <alaure...@telefe.com.ar>
Subject: [ffserver-user] Problem with ffserver and ffmpeg with feeds
To: ffserver-user@mplayerhq.hu
Message-ID:

<ofdaf7e3cb.d9d55533-on032576cc.007f99bf-032576cc.007f9...@telefe.com.ar>

Content-Type: text/plain; charset=US-ASCII


Hello,

I have twos PCs (a streaming server and a client).


I open two Terminals in the server with Linux (Ubuntu 9.10)
----------------------------------------------------------------
1 - In Termina 1 I do:

r...@multimedia:/home/Videos# ffserver -f /etc/ffserver.conf

FFserver version SVN-r21213, Copyright (c) 2000-2010 Fabrice Bellard, et
al.
  built on Jan 25 2010 17:21:46 with gcc 4.4.1
  configuration: --prefix=/usr --enable-shared --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-gpl --enable-postproc --enable-avfilter
--enable-avfilter-lavf --enable-libfaac --enable-libfaad
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libxvid
--enable-libx264 --enable-libschroedinger --enable-x11grab --enable-nonfree
--enable-version3 --enable-libdc1394 --enable-libgsm --enable-libdirac
--disable-stripping --disable-decoder=libdirac
--disable-encoder=libschroeginger
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.47. 0 / 52.47. 0
  libavformat   52.47. 0 / 52.47. 0
  libavdevice   52. 2. 0 / 52. 1. 0
  libavfilter    1.15. 0 /  1.15. 0
  libswscale     0. 8. 0 /  0. 8. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Fri Feb 12 20:34:47 2010 FFserver started.

------------------------------------------------------------------------------


2 - In another Terminal of the same server PC I do:

r...@multimedia:/home/Videos# ffmpeg -i test6.swf
http://127.0.0.1:8092/feed2.ffm

FFmpeg version SVN-r21213, Copyright (c) 2000-2010 Fabrice Bellard, et al.
  built on Jan 25 2010 17:21:46 with gcc 4.4.1
  configuration: --prefix=/usr --enable-shared --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-gpl --enable-postproc --enable-avfilter
--enable-avfilter-lavf --enable-libfaac --enable-libfaad
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libxvid
--enable-libx264 --enable-libschroedinger --enable-x11grab --enable-nonfree
--enable-version3 --enable-libdc1394 --enable-libgsm --enable-libdirac
--disable-stripping --disable-decoder=libdirac
--disable-encoder=libschroeginger
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.47. 0 / 52.47. 0
  libavformat   52.47. 0 / 52.47. 0
  libavdevice   52. 2. 0 / 52. 1. 0
  libavfilter    1.15. 0 /  1.15. 0
  libswscale     0. 8. 0 /  0. 8. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[swf @ 0x8edf7d0]max_analyze_duration reached
[swf @ 0x8edf7d0]Estimating duration from bitrate, this may be inaccurate
Input #0, swf, from 'test6.swf':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: flv, yuv420p, 160x128, 25 fps, 25 tbr, 25 tbn, 25
tbc

Output #0, ffm, to 'http://127.0.0.1:8092/feed2.ffm':
    Stream #0.0: Video: flv, yuv420p, 160x128, q=3-31, 64 kb/s, 1000k tbn,
5 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
[flv @ 0x8eed540]rc buffer underflow
av_interleaved_write_frame(): Error while opening file
------------------------------------------------------------------------------



3 - The conf file is the following:

ffserver.conf
__________________________________________________________

Port 8092
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000
CustomLog -
Nodaemon

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 2M
</Feed>

<Stream test.swf>
Feed feed1.ffm
Format flv
NoAudio
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>


<Stream stat.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>
-----------------------------------------------------------------------------



The file size of feed2.ffm is always 4KB.

In Client PC there is a Windows XP and I use de mplayer


D:\Videos>mplayer http://192.168.26.68:8092/test.swf
MPlayer Sherpya-SVN-r29851-4.2.5 (C) 2000-2009 MPlayer Team
Fontconfig error: Cannot load default config file

Playing http://192.168.26.68:8092/test.swf.
Connecting to server 192.168.26.68[192.168.26.68]: 8092...


MPlayer interrupted by signal 2 in module: open_stream
STREAM_ASF, URL: http://192.168.26.68:8092/test.swf
Connecting to server 192.168.26.68[192.168.26.68]: 8092...
Failed, exiting.
Connecting to server 192.168.26.68[192.168.26.68]: 8092...
No stream found to handle url http://192.168.26.68:8092/test.swf

Exiting... (Quit)

_________________________________________________________________________________________________


When I stream files with no feeds the transfer is fine, but the problem
appears when I want to use feeds.

Could you help to find where is the problem ?

Thank you

Ariel.






------------------------------

_______________________________________________
ffserver-user mailing list
ffserver-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user


End of ffserver-user Digest, Vol 12, Issue 4
********************************************


_______________________________________________
ffserver-user mailing list
ffserver-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user

Reply via email to