[FFserver-user] Stream from MP4 file over RTSP with ffserver

JaeHyuk Choi jhchoi3694 at gmail.com
Tue Oct 25 07:00:44 CEST 2011


Hi, i'm a definitely new user to FFSERVER.
and i'm trying to stream from some multimedia files over rtsp.
so i've setup ffmpeg/ffserver on my linux machine and configure it
but i'm not able to stream with mp4 files.

here is my simple ffserver.conf

=================================================================================
  1 Port 8090
  2 RTSPPort 5454
  3
  4 BindAddress 0.0.0.0
  5 RTSPBindAddress 0.0.0.0
  6
  7 MaxHTTPConnections 10
  8 MaxClients 10
  9 MaxBandwidth 204800
 10
 11 CustomLog -
 12 NoDaemon
 13
 14 <Stream rtsp.mpg>
 15     Format rtpf
 16     File /data/home/jhchoi3694/encoding_work/ffmpeg/sample/1.mpg
 17 </Stream>
 18
 19 <Stream rtsp.mp4>
 20     Format rtp
 21     File /data/home/jhchoi3694/encoding_work/ffmpeg/sample/6.mp4
 22 </Stream>
=================================================================================



with this configuration, mpg file streaming work well
in case of mp4 file, however, doesn't work

i've type "ffserver -f ./conf/ffserver.conf" to stream these files
both of files are opened successfully with following result
=================================================================================
Tue Oct 25 13:38:57 2011 Opening file
'/data/home/jhchoi3694/encoding_work/ffmpeg/sample/1.mpg'
Tue Oct 25 13:38:57 2011 [mpegvideo @ 0x8064200]max_analyze_duration 5000000
reached at 5005000
Tue Oct 25 13:38:57 2011 Opening file
'/data/home/jhchoi3694/encoding_work/ffmpeg/sample/6.mp4'
Tue Oct 25 13:38:57 2011 FFserver started.
=================================================================================

but when i play these streaming with rtsp player like ffplay rstp.mp4
streaming stuck
does ffserver support rtsp streaming with mp4 file format?



i post more information about source video files aforementioned since it
could be served as references
=================================================================================
Input #0, mpegvideo, from '../sample/1.mpg':
  Duration: 00:00:00.48, bitrate: 104857 kb/s
    Stream #0.0: Video: mpeg1video, yuv420p, 704x480 [PAR 200:219 DAR
880:657], 104857 kb/s, 23.98 fps, 23.98 tbr, 1200k tbn, 23.98 tbc
=================================================================================
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../sample/6.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2011-10-24 01:52:09
  Duration: 00:02:09.12, start: 0.041708, bitrate: 5716 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 1280x544, 5714 kb/s,
23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
    Metadata:
      creation_time   : 2011-10-24 01:52:09
=================================================================================

give me hints, plz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/ffserver-user/attachments/20111025/32c03aaa/attachment.html>


More information about the ffserver-user mailing list