Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am working with ffmpeg.

I can get a thumbnail from rtsp via command like below.

ffmpeg -itsoffset -4 -f rtsp -rtsp_transport tcp -i rtsp://fostv.com:554/test/smarttv_sample.ts.pac -vframes 1 -s 420x270 /home/guest/ffmpegsample.bmp

The problem is what I want is take thumbnail from position which I want.

if it is local file, I can do that with "-ss" option. But how in streaming situation?

I want to take thumbnail from 10 minutes after video started.

  • May be somebody knows how to jump start position of rtsp protocol streaming.

give me some ideas, Thanks.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I solved this in below way

ffmpeg -ss 600 -f rtsp -rtsp_transport tcp -i rtsp://fostv.com:554/test/smarttv_sample.ts.pac -vframes 1 -s 420x270 /home/guest/ffmpegsample.bmp

there was an easy way :-)

share|improve this answer

The best way is to generate thumbnails at server side and transmit seperately. You can try to seek stream 10 minutes to future, however have in mind, that server need to have 10 minute feed storage at least and ability to seek a stream (as can ffserver):

ffserver is a streaming server for both audio and video. It supports several live feeds, streaming from files and time shifting on live feeds (you can seek to positions in the past on each live feed, provided you specify a big enough feed storage in ‘ffserver.conf’).

It basically depends on what server can do. I do not know exactly what parameter is (probably same -ss), but it seems that server itself must allow to seek 10 minutes to future for this to work.

share|improve this answer
    
@lBr Thanks a lot. I'll look for it. –  Juneyoung Oh May 30 '13 at 8:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.