[FFmpeg-devel] [PATCH] examples/decoding_encoding: store temporary files in current dir

Stefano Sabatini stefasab at gmail.com
Fri Aug 24 12:22:53 CEST 2012

On date Friday 2012-08-24 03:35:15 +0200, Michael Niedermayer encoded:
> On Thu, Aug 23, 2012 at 08:18:17PM +0200, Stefano Sabatini wrote:
> > Do not clutter the temporary directory with files, also "/tmp" is not
> > always available, e.g. in Windows.

> the current directory is maybe not better, it might be read only
> for example ...

On the other hand if not readable, then the program won't be compilable.

> and /tmp gets cleaned, the current directory likely wont

But will fail on Windows and other OSes with no "/tmp", also the user
won't have to wonder where the output files are (having them in the
current dir looks to have a so much better "least surprise factor").

I could add a rule for removing test output files when doing make
FFmpeg = Freak and Fanciful Monstrous Political Exploitable Geek

More information about the ffmpeg-devel mailing list