Re: [FFmpeg-user] Overlay one subtitle stream and copy another

2016-03-07 Thread Carl Eugen Hoyos
Hans Carlson  inbox.com> writes:

> In fact, it appears the fifo for the subtitle stream isn't 
> needed, because this works as well:
> 
>'[0:v]fifo[vid];[vid][0:3]overlay`

Yes, I thought so.

> My test file is only 22 secs long... is there a chance I'd 
> need the fifo on the subtitle stream if I'm processing 
> something longer?

Sorry, I don't know;-(
(But it should be trivial to test.)

> I'm not really sure what the fifo filter is doing or why 
> it's needed, 

I suspect it is related to the fact that not all parts of 
the pipeline operate with the same speed (or that some parts 
are too greedy), in any case, fifo is buffering frames so 
they don't get lost.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Overlay one subtitle stream and copy another

2016-03-07 Thread Hans Carlson

On Mon, 7 Mar 2016, Carl Eugen Hoyos wrote:


I suspect the stream specifiers [0:v] and [0:3] ensure
that fifo is not used.
I am not sure what the correct usage is but you could
try '[0:v}fifo[v];[0:3]fifo[o];[v][o]overlay`
(untested)


Thanks, that seems to work.  No more buffer overflow warnings and it plays 
fine without any video pauses.


In fact, it appears the fifo for the subtitle stream isn't needed, because 
this works as well:


  '[0:v]fifo[vid];[vid][0:3]overlay`

My test file is only 22 secs long... is there a chance I'd need the fifo 
on the subtitle stream if I'm processing something longer?


I'm not really sure what the fifo filter is doing or why it's needed, 
since it only seems to be needed if I'm trying to overlay a subtitle 
stream AND copy a subtitle stream.  But, in this case, the subtitle stream 
I'm copying has nothing to do with the subtitle stream which is overlayed 
on the video.  Any additional enlightenment would be appreciated.  If you 
have no further info, then thanks for the suggestion since it appears to 
fix the problem.


FYI. The 2nd example in my original post -- copying and overlaying the 
SAME subtitle stream -- also seems to work with this approach:


  '[0:v]fifo[vid];[vid][0:2]overlay'
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Overlay one subtitle stream and copy another

2016-03-07 Thread Carl Eugen Hoyos
Hans Carlson  inbox.com> writes:

> I changed my original command to use this filter_complex:
> 
>-filter_complex 'fifo; [0:v][0:3]overlay'

I suspect the stream specifiers [0:v] and [0:3] ensure 
that fifo is not used.
I am not sure what the correct usage is but you could 
try '[0:v}fifo[v];[0:3]fifo[o];[v][o]overlay`
(untested)

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Overlay one subtitle stream and copy another

2016-03-07 Thread Hans Carlson

On Mon, 7 Mar 2016, Carl Eugen Hoyos wrote:


Hans Carlson  inbox.com> writes:


Buffer queue overflow, dropping.


You can use the fifo filter to avoid these, it will
increase memory usage.


Probably I'm doing something wrong, but adding the fifo filter didn't 
help.  I'm not exactly sure how/where I should be using it.


I changed my original command to use this filter_complex:

  -filter_complex 'fifo; [0:v][0:3]overlay'

I still see the buffer overflow warnings.  But the problem isn't just that 
I see these warnings, the problem is the resulting video doesn't play 
correctly.  At a couple points, the video stalls and the audio continues 
for several seconds, then the video skips ahead.

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Overlay one subtitle stream and copy another

2016-03-07 Thread Carl Eugen Hoyos
Hans Carlson  inbox.com> writes:

> Buffer queue overflow, dropping.

You can use the fifo filter to avoid these, it will 
increase memory usage.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user