[FFmpeg-devel] libavfilter: get name of input file/stream

Stefano Sabatini stefasab at gmail.com
Tue Mar 5 12:15:06 CET 2013


On date Tuesday 2013-03-05 11:54:04 +0100, Georg Martius encoded:
> On Monday 04 March 2013 21:22:15 compn wrote:
> > On Tue, 5 Mar 2013 00:35:31 +0100, Stefano Sabatini wrote:
> > >On date Monday 2013-03-04 23:52:20 +0100, Georg Martius encoded:
> > >> Hi,
> > >> 
> > >> for implementing the filter for deshaking with vid.stab I need some
> > >> hints. I will ask them in different threads.
> > >> 
> > >> The filterering is a 2-phase process, so I want to write a file in the
> > >> first phase and read in in the second.
> > >> 
> > >> I would like to use the name of the input file if present. How can I
> > >> access it from within my libavfilter?
> > >
> [...]
> > 
> > perhapse he wants to have per-file logs?
> > 
> > so you can run ffmpeg -i onefile -vf vidstab:pass=1 and then run ffmpeg
> > -i otherfile -vf vidstab:pass=1 without killing off the pass=1 log of
> > onefile ?
> Exactly! sorry for being unclear.

> I simply want to filename of the input to generate a name for a log-file needed 
> for the second pass.

At the filtering level you don't know anymore what the filename for a
stream was. Indeed it may be a synthetic source, for which there is no
filename at all. The name should be based on the name of the input,
and/or you may use an option to let the user override the default
choice.
-- 
FFmpeg = Faithful and Foolish Most Powered Evil Gospel


More information about the ffmpeg-devel mailing list