ffmpegvideo-streamingffserver

Seek and pause video stream from ffserver


I managed to successfully feed ffserver from ffmpeg. ffmpeg takes input as PIPE:

ffmpeg -loglevel fatal -f image2pipe -re -vcodec png -i - -vcodec libx264 http://localhost:8090/%s.ffm

External java process generates svg/png images and pushes to ffpmepg

My ffserver config allows me to buffer live feeds in ffm file without defining the size of the file.

My stream configuration looks like this:

<Stream live2.mjpg>
   Feed feed2.ffm
   Format mpjpeg
   VideoFrameRate 25
   VideoSize 640x880
   VideoQMin 1
   VideoQMax 5
   NoAudio
   Strict -1
</Stream>

The problem is that, despite that I can watch streams in VLC by opening network:

http://0.0.0.0:8090/live2.mjpg

But I can not seek through already buffered movie. Is there a way to achieve seeking through movie, pausing, and resume playing from "now"? I have tried already rtsp with h264, mpg and sdp but without success:

<Stream test1.mpg/sdp/h264>
   Format rtp
   Feed feed2.ffm
   VideoCodec libx264
   VideoSize 640x880
   VideoQMin 1
   VideoQMax 5
   NoAudio
   Strict -1
   VideoFrameRate 25
</Stream>

Is rtsp solution for this problem, or I need something else?

Can this be achieved from dynamic file since I am using PIPE?


Solution