[Libav-user] Record, seek and play

Steve Hart steve.hart at rtsw.co.uk
Fri Mar 1 17:41:42 CET 2013


On 1 March 2013 16:35, Julian Herrera <julian.herrera at tvgenius.net> wrote:

> On 01/03/2013 15:13, Steve Hart wrote:
>
>> Hi
>> We are investigating the possibility of using ffmpeg to record and
>> playback video
>> Could anyone tell me if it is possible to play back and seek within a
>> file that is recording
>> at the same time.
>> So
>> If we have a program that starts capturing video from an external
>> source, encodes and records to disk
>> and at the same time, play the video to screen and (most importantly)
>> seek within it.
>> (jog/shuttle/ffw etc).
>>
>> Is this possible?
>> Any caveats?
>>
>>
> I did something similar a few days ago. I used the Live555 library to dump
> an mpegts stream into a local temp file from an RTSP server. Then I used
> libav to play that file at the same time on different threads and
> everything worked fine. I guess you just have to be sure of not crossing
> the boundaries of the temporary file.
>
> Julian Herrera
>
>
>
>
> ______________________________**_________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/**listinfo/libav-user<http://ffmpeg.org/mailman/listinfo/libav-user>
>

The issue here is seeking I think.
I can open the currently recording file and play it back fine - but as soon
as I seek, I get errors/hangs.
I ensure that any seek forward is clamped at 2 secs before the current
record.
I should mention this is dv50 into mxf wrap.
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130301/4e4cce6b/attachment.html>


More information about the Libav-user mailing list