Avidemux Forum

Avidemux => Unix-Like (Linux/Bsd/...) => Topic started by: Blues on May 24, 2022, 04:10:34 PM

Title: Setting $TMPDIR
Post by: Blues on May 24, 2022, 04:10:34 PM
I have ~/temp in tmpfs, while systemwide /tmp is on SSD. Audacity and some other apps can be configured by user to use any directory for temporary files. Any ideas how to set Avidemux up to use my user ~/temp? I do not want to redefine the $TMPDIR for my user.
Title: Re: Setting $TMPDIR
Post by: eumagga0x2a on May 24, 2022, 04:18:46 PM
If I am not mistaken, Avidemux doesn't use $TMPDIR during video processing (unless you ask it to store output there, of course). $TMPDIR is used only during build.
Title: Re: Setting $TMPDIR
Post by: Blues on May 24, 2022, 06:55:34 PM
I saw plenty of writing in /tmp during processing, may be part of audio processing.
Title: Re: Setting $TMPDIR
Post by: eumagga0x2a on May 28, 2022, 02:00:50 PM
Quote from: Blues on May 24, 2022, 06:55:34 PMI saw plenty of writing in /tmp during processing, may be part of audio processing.

Did you re-encode audio? If yes, please provide filter settings and encoder config. I am not familiar with the inner working of the rubberband library, recently incorporated into Avidemux. It would be also interesting to compare an Avidemux build prior to the merge of audio filter enhancements and past of it.
Title: Re: Setting $TMPDIR
Post by: szlldm on May 28, 2022, 02:54:20 PM
After a quick re-encode test with custom audio stretch, i did not saw any writing into /tmp
Title: Re: Setting $TMPDIR
Post by: eumagga0x2a on May 30, 2022, 07:44:49 AM
So please provide some info about processing in Avidemux which was causing a plenty of writing to /tmp.

Quote from: Blues on May 24, 2022, 04:10:34 PMI do not want to redefine the $TMPDIR for my user.

You can always set an env var for a specific process only, can't you? Not that I expect this to be relevant or needed for Avidemux, but just in principle.
Title: Re: Setting $TMPDIR
Post by: Blues on June 16, 2022, 05:10:26 PM
OK, thanks. I can't reproduce it. I saw it with some specific audio processing, but now it is gone. Or maybe I can't remember what exactly I was doing when I saw it. I saw files appearing and disappearing real quick. Meanwhile I did git pull and built the latest Avidemux, maybe something has changed.