Is it possible in ffmpeg to seek to position of the file that is received through stdin

0

Is it possible to -ss in ffmpeg to the file, that is being received via pipe? So that I start reading it from a given timecode? I am not encoding the file.

Thanks

stpn

Posted 2012-03-02T22:02:47.157

Reputation: 185

Have you tried it already? – slhck – 2012-03-02T22:06:37.190

yeah, it always starts from 0 – stpn – 2012-03-02T22:10:27.653

Maybe you can add the commands you're using and provide a sample file for others to try. I don't know if it's actually possible, but I fear it's not. – slhck – 2012-03-02T23:28:47.760

Answers

0

So it is definitely impossible.

here is what I was trying to achieve:

<wget command here> - | ffmpeg -ss 00:00:03 -t 00:00:10 -i - -y -g 1 -vcodec copy -acodec copy <name of the file>

Bad news: the file WILL be downloaded from 00:00:00

Good news: downloading WILL stop at 00:00:10

I guess something close to the desired goal of having a 7-second long clip that starts at 03 initial seconds is achievable through librtmp / streaming and then seeking to the desired timecode, but that sounds like an overkill for what I am doing.

stpn

Posted 2012-03-02T22:02:47.157

Reputation: 185