LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2013, 04:00 AM   #1
prkhr4u
LQ Newbie
 
Registered: Oct 2013
Location: Bangalore,India
Distribution: ubuntu 12.04
Posts: 19

Rep: Reputation: Disabled
error streaming rtsp stream from ffserver


I want to live stream from an IP camera and am using ffserver for this.
here is my ffserver.conf file:
Code:
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -
#NoDaemon

<Feed feed1.ffm>
    File /tmp/feed1.ffm
    FileMaxSize 200K
    ACL allow 127.0.0.1
</Feed>

# if you want to use mpegts format instead of flv
# then change "live.flv" to "live.ts"
# and also change "Format flv" to "Format mpegts"
<Stream live.h264>
Format rtp
Feed feed1.ffm
VideoCodec libx264
VideoFrameRate 24
VideoBitRate 100
VideoSize 480x272
AVPresetVideo default
AVPresetVideo baseline
AVOptionVideo flags +global_header

AudioCodec libfaac
AudioBitRate 32
AudioChannels 2
AudioSampleRate 22050
AVOptionAudio flags +global_header
</Stream>

##################################################################
# Special streams
##################################################################
<Stream stat.html>
    Format status
    # Only allow local people to get the status
    ACL allow localhost
    ACL allow 192.168.0.0 192.168.255.255
</Stream>

# Redirect index.html to the appropriate site
<Redirect index.html>
    URL http://www.ffmpeg.org/
</Redirect>
##################################################################
when i start ffserver using :
Code:
ffserver -d -f /etc/ffserver.conf
I get the following output:
Code:
ffserver version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 13 2013 13:58:41 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/home/hls/ffmpeg_build --extra-cflags=-I/home/hls/ffmpeg_build/include --extra-ldflags=-L/home/hls/ffmpeg_build/lib --bindir=/home/hls/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
  libavutil      52. 52.100 / 52. 52.100
  libavcodec     55. 41.100 / 55. 41.100
  libavformat    55. 21.100 / 55. 21.100
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.102 /  3. 90.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
File for preset 'default' not found
/etc/ffserver.conf:25: AVPreset error: default
File for preset 'baseline' not found
/etc/ffserver.conf:26: AVPreset error: baseline
/etc/ffserver.conf:29: Unknown AudioCodec: libfaac
Incorrect config file - exiting.
Don't know what is wrong .
Pl also tell how to connect my input source to ffserver.My Ipcamera address is: 169.254.75.39
and i am thinking of using something like:
Code:
ffmpeg -i rtsp://169.254.75.39/ -vcodec -f http://localhost:8090/feed1.ffm
I am using ubuntu 12.04 desktop edition
 
Old 11-15-2013, 10:26 PM   #2
prkhr4u
LQ Newbie
 
Registered: Oct 2013
Location: Bangalore,India
Distribution: ubuntu 12.04
Posts: 19

Original Poster
Rep: Reputation: Disabled
I have a temporary solution for this problem.It has been solved by me for now.Here is what i did:

Commented the two lines:
#AVPresetVideo default
#AVPresetVideo baseline

and changed 'AudioCodec libfaac' to 'AudiCodec libfak_aac' which is new and better.
Now atleast my ffserver is up and running.

And the ffmpeg command is to be given like this:
Code:
ffmpeg -i rtsp://169.254.75.39:554/live.sdp http://localhost:8090/feed1.ffm
 
  


Reply

Tags
ffmpeg, streaming, ubuntu 12.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Streaming RTSP with ffserver satyajeet_2601 Ubuntu 5 01-18-2012 02:25 AM
streaming dvb with ffserver help tamray Linux - Software 1 01-06-2012 05:08 PM
ffserver ffmpeg live stream from webcam Micah Linux - Software 2 08-31-2011 08:50 PM
does ffserver support RTSP ? maverick18t Linux - Software 7 02-27-2010 08:45 AM
Can't we use ffserver to stream mpeg,rm files? tuxfood Linux - Software 0 01-05-2006 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration