Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

streaming rtsp over http audio problem

Discussions about problems encountered using ffserver.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

streaming rtsp over http audio problem

Postby martinez06 » Thu Apr 20, 2017 10:40 am

Hello
I have problem with streaming rtsp over http webpage.
First was i done is convert rtsp to feed
Code: Select all
ffmpeg -i rtsp://192.168.200.3/extron3 hxxp://192.168.200.4:8090/feed.ffm

after that i got information about stream:
Code: Select all
   title           : Session 3 streamed by Extron
    comment         : extron3
    creation_time   : now
    encoder         : Lavf57.56.101
    Stream #0:0: Audio: opus (libopus), 48000 Hz, stereo, flt, 192 kb/s
    Metadata:
      encoder         : Lavc57.64.101 libopus
    Stream #0:1: Video: vp8 (libvpx), yuv420p, 512x288, q=-1--1, 350 kb/s, 15 fps, 1000k tbn, 15 tbc
    Metadata:
      encoder         : Lavc57.64.101 libvpx
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 700000 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (aac (native) -> opus (libopus))
  Stream #0:1 -> #0:1 (h264 (native) -> vp8 (libvpx))

In ffserver.conf i got:
Code: Select all
HTTPPort 8090                      # Port to bind the server to
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000             # Maximum bandwidth per client
                               # set this high enough to exceed stream bitrate
CustomLog -

<Feed feed.ffm>
     File ./feed.ffm
     FileMaxSize 1g
     #ACL allow 0.0.0.0
</Feed>
<Stream test.webm>
Feed feed.ffm
Format webm
AudioCodec libopus
AudioBitRate 192
AudioChannels 2
AudioSampleRate 48000
#             NoAudio
 VideoCodec libvpx
 VideoSize 512x288
 VideoFrameRate 15
 VideoBitRate 350
# VideoQMin 10
# VideoQMax 42
# VideoGopSize 15
 AVOptionVideo flags +global_header
 AVOptionAudio flags +global_header
</Stream>
<Stream live.opus>
Format webm
Feed feed.ffm
AudioCodec libopus
AudioBitRate 192
AudioChannels 2
AudioSampleRate 48000
VideoCodec libvpx
VideoFrameRate 15
VideoSize 512x288
VideoBitRate 350
AVOptionVideo cpu-used 10
VideoQMin 1
VideoQMax 42
AVOptionVideo flags +global_header
AVOptionAudio flags +global_header
#NoVideo
</Stream>
# MP3 audio
#<Stream test.mp3>
#Feed feed.ffm
#Format mp2
#AudioCodec libmp3lame
#AudioBitRate 64
#AudioChannels 1
#AudioSampleRate 44100
#NoVideo
#</Stream>
<Stream status.html>            # Server status URL
   Format status
   # Only allow local people to get the status
   #ACL allow 0.0.0.0
</Stream>
<Redirect index.html>    # Just an URL redirect for index
   # Redirect index.html to the appropriate site
   URL url/
</Redirect>

When i have disabled audio on test.webm or live.opus streaming works on firefox and on chrome, but when i enable audio on firefox i got information "Unsupported video format or mime type"

Thank you to anyone that helps.
martinez06
 
Posts: 1
Joined: Thu Apr 20, 2017 8:47 am

Return to ffserver

Who is online

Users browsing this forum: No registered users and 5 guests