Avidemux Forum

Participate => User interface and Usability => Topic started by: JB on August 25, 2018, 04:37:58 PM

Title: option to save image as : adding the timecode to the filename
Post by: JB on August 25, 2018, 04:37:58 PM
Hi,

is there an easy way (with scripting or else) to  automatically  append the timecode to the filename when exporting a jpg snapshot? i made an autohotkey script for windows to ease the snapshoting but i only auto increment the file version number and i would like to improve that part. any ideas?

or do i have to go the full c++ way?
Title: Re: option to save image as : adding the timecode to the filename
Post by: eumagga0x2a on August 25, 2018, 08:42:38 PM
Why not using FFmpeg (https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video) for this purpose? Avidemux is helpful when you need to see and hear what happens in a movie at given time to find most suitable locations e.g. for cuts or when you need to copy and paste a portion of video elsewhere etc. For uniform, scriptable tasks FFmpeg is better IMVHO.
Title: Re: option to save image as : adding the timecode to the filename
Post by: JB on August 26, 2018, 06:14:01 PM
Because i tried what you say and it is not efficient for me. I tried other tools with a visual interface over ffmepg and avidemux was the best for what i want (extract stills and sequences very fast). So i was very happy to find avidemux but i now want more. Some new use cases have shown up like having the time code in the filename (as in vlc). I had hopes with the scripting option of avidemux but it seems it affect only the automatization process and not the user interface but i may be wrong. I guess i have to look more in autohotkey options or go back to my c++ books and install a compiler, with holidays ending it may have to wait ;)
Title: Re: option to save image as : adding the timecode to the filename
Post by: eumagga0x2a on September 01, 2018, 03:46:01 PM
Just in case, you are aware of Ctrl+Shift+C shortcut to copy the PTS of the currently displayed frame to clipboard, aren't you?
Title: Re: option to save image as : adding the timecode to the filename
Post by: JB on September 23, 2018, 05:50:04 PM
Quote from: eumagga0x2a on September 01, 2018, 03:46:01 PM
Just in case, you are aware of Ctrl+Shift+C shortcut to copy the PTS of the currently displayed frame to clipboard, aren't you?

Holy sh.., i spent a few hours yesterday to find that it"s very difficult or very expensive to make autohotkey (or autoit) to interact with QT framework based apps like adm or vlc and then google leads me back to this topic and i find your answer and now it"s a breeze to solve my problem. Thank you eumagga0x2a.

One question remains, how could i have known that shortcut?
Title: Re: option to save image as : adding the timecode to the filename
Post by: eumagga0x2a on September 23, 2018, 06:46:01 PM
Quote from: JB on September 23, 2018, 05:50:04 PM
how could i have known that shortcut?

It was mentioned in the release changelog for 2.7.0: [build] Style the release changelog like in the last release, edit a few entries (https://github.com/mean00/avidemux2/commit/81663908afbdff6644e2ec304819bb6e66283524). This feature was implemented by [Qt] Copy current time to clipboard using Ctrl+Shift+C shortcut (https://github.com/mean00/avidemux2/commit/a8bf634ab16eed12ac12707c71c9ed11dff5928f).
Title: Re: option to save image as : adding the timecode to the filename
Post by: JB on September 26, 2018, 05:37:24 PM
Obviously  :)

Maybe it would be a nice addition to the doc on the official site to put a list of all the available shortcuts for the people like me that do not have the idea to search in the github repo because if we have to guess the possible shortcut, it"s a bit weird.
Title: Re: option to save image as : adding the timecode to the filename
Post by: eumagga0x2a on September 26, 2018, 06:28:28 PM
The release changelog is packaged with the Avidemux Windows installer and the user is prompted by the installer to read it once the install is completed.

The Wiki is virtually unmaintained, unfortunately.
Title: Re: option to save image as : adding the timecode to the filename
Post by: JB on September 27, 2018, 04:06:39 PM
So if you start with 2.7.1 you have zero chance to have this info in case you read the changelog which i doubt basic user does.

is there somewhere a list of the shortcuts or do i have to parse the source code hoping there is no typo in the comments?

Title: Re: option to save image as : adding the timecode to the filename
Post by: eumagga0x2a on September 27, 2018, 09:07:36 PM
Unfortunately, the resources are so scarce that the best way to get something done, especially concerning documentation, is to do it yourself. I agree that this one shortcut is utterly non-discoverable. Almost all other shortcuts are displayed in the GUI (except of the 1/2/4 seconds seek shortcuts).
Title: Re: option to save image as : adding the timecode to the filename
Post by: JB on September 28, 2018, 04:42:10 PM
Fortunately i don't need much for now and my needs are covered (thanks again for the shortcut) but it"s tough for the newcomer having to guess what the tool can offer.

And now en route to  new posts to ask for new things and unanticiped behaviors. ;)
Title: Re: option to save image as : adding the timecode to the filename
Post by: kittmaster on September 11, 2022, 07:39:02 PM
Quote from: JB on September 28, 2018, 04:42:10 PMFortunately i don't need much for now and my needs are covered (thanks again for the shortcut) but it"s tough for the newcomer having to guess what the tool can offer.

And now en route to  new posts to ask for new things and unanticiped behaviors. ;)

I have this same question, and found the shortcut here, the question I have is, is there a way to have the timecode automatically loaded when the image is saved without having to manually copy and paste it? I have a job that is a few hundred frames to capture, it will be laborious. Any thoughts?

Thanks.