Hi all,

I'm looking for a way to stream a file which is being transcoded. ffserver seems suited for the job but I'm having difficulties to configure it correct. My questions are:

1) How do I configure the server so the stream starts at the beginning of the file being encoded? Using the preroll maybe? But how do I set it to the beginning of the file? How do I determine this value?

2) No packets are sent although it seems from the vlc output that the RTSP connection is setup correctly. What can be the problem here? Maybe I immediately jump to the end of the feed so nothing can be send.

thanks for all help,
Philippe.

Attachment: ffserver_test.conf
Description: Binary data





This is my setup:

start a server:
./ffserver -d -f ffserver_test.conf
(config file is attached)

start an encoder:
./ffmpeg -i /data/samples/berlitz_junior.mp4  http://localhost:8090/feed1.ffm


start a player (vlc):
rtsp://10.211.55.3:5454/test1-rtsp.mp4


This is output server (when starting the encoder and then the player):
FFserver version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-libfaac --enable-libfaad --enable-gpl
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
built on May 13 2009 20:34:02, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

ed Jun 10 14:15:43 2009 FFserver started.
Wed Jun 10 14:15:47 2009 New connection: GET /feed1.ffm
Wed Jun 10 14:15:47 2009 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 8245
Wed Jun 10 14:15:47 2009 New connection: POST /feed1.ffm
Wed Jun 10 14:16:07 2009 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 2834432
Wed Jun 10 14:17:00 2009 10.211.55.2 - - [] " " 200 0
Wed Jun 10 14:17:01 2009 10.211.55.2:49392 - - "PLAY test1-rtsp.mp4/ streamid=0 RTP/UDP" Wed Jun 10 14:17:12 2009 10.211.55.2 - - [TEARDOWN] "rtsp://10.211.55.3:5454/test1-rtsp.mp4 RTSP/1.0" 200 746 Wed Jun 10 14:17:12 2009 10.211.55.2:0 - - "PLAY test1-rtsp.mp4/ streamid=0 RTP/TCP" Wed Jun 10 14:17:12 2009 10.211.55.2 - - [TEARDOWN] "rtsp://10.211.55.3:5454/test1-rtsp.mp4 RTSP/1.0" 200 708



this is output vlc:
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 2957578240 (input) created at priority 37 (input/ input.c:265) main debug: `rtsp://10.211.55.3:5454/test1-rtsp.mp4' gives access `rtsp' demux `' path `10.211.55.3:5454/test1-rtsp.mp4' main debug: creating demux: access='rtsp' demux='' path='10.211.55.3:5454/test1-rtsp.mp4'
main debug: looking for access_demux module: 1 candidate
live555 debug: RTP subsession 'video/MP4V-ES'
macosx debug: input has changed, refreshing interface
main debug: selecting program id=0
main debug: using access_demux module "live555"
main debug: looking for decoder module: 26 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: using direct rendering
ffmpeg debug: ffmpeg codec (MPEG-4 Video) started
main debug: using decoder module "ffmpeg"
main debug: thread 2958110720 (decoder) created at priority -47 (input/ decoder.c:159)
main debug: `rtsp://10.211.55.3:5454/test1-rtsp.mp4' successfully opened
live555 warning: no data received in 10s. Switching to TCP
live555 debug: RTP subsession 'video/MP4V-ES'
live555 error: no data received in 10s, aborting
main debug: EOF reached
macosx debug: input has stopped, refreshing interface
main debug: closing input
main debug: removing module "live555"
ffmpeg debug: ffmpeg codec (MPEG-4 Video) stopped
main debug: removing module "ffmpeg"
main debug: thread 2958110720 joined (input/decoder.c:191)
main debug: killing decoder fourcc `mp4v', 0 PES in FIFO
main debug: thread 2957578240 joined (input/input.c:412)
main: nothing to play




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

Reply via email to