Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: Apr 2024
Posts: 504
|
Automatic Same Name
When doing any operation in ffmpeg, how do I automatically make the output file have the same name as the input file?
For example, I remux a single mkv file to mp4, and I want the output mp4 to have the same name as the input mkv. Using a script is not allowed. Last edited by jay123210599; 5th November 2024 at 18:54. |
|
|
|
|
|
#2 | Link |
|
.
![]() Join Date: Oct 2001
Location: Germany
Posts: 7,860
|
What OS?
Isn't anything called in a bash (on Windows) or a terminal (Linux/Mac) basically a script? if you know the name and can use a environment variable probably do something like: Code:
set p=INPUT_NAME && call ffmpeg -i "YOUR_PATH_TO/%p%.mkv" "OUTPUT_PATH/%p%.mkv" Cu Selur |
|
|
|
|
|
#3 | Link | |
|
Registered User
Join Date: Apr 2024
Posts: 504
|
Quote:
|
|
|
|
|
|
|
#4 | Link | |
|
Registered User
Join Date: Aug 2024
Location: Between my two ears
Posts: 958
|
Quote:
![]() I think the only case where FFmpeg will parse formatted filename is with image2 muxer/demuxer Last edited by Z2697; 13th November 2024 at 04:11. |
|
|
|
|
|
|
#5 | Link |
|
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,411
|
Is the OP wanting some kind of ffmpeg GUI ?
(requirement seems a little 'fuzzy')
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
|
|
|
|
|
#6 | Link |
|
Registered User
Join Date: Mar 2011
Posts: 5,064
|
You could try AnotherGUI. https://www.videohelp.com/software/AnotherGUI
Use the Executables menu to tell AnotherGUI where ffmpeg is. A preset for remuxing a file as an MP4 might look like this (added to the First Pass section of the preset configuration), but of course it can be a preset for performing any type of ffmpeg conversion. -i "<FullSourceFileName>" -y -threads 1 -vcodec copy -acodec copy "<OutputPath><OutputFileName>.mp4" Once you've created the preset, select it and drag and drop a file or files onto AnotherGUI (any file type that can be remuxed as an MP4), then click "Go". The default output name is the same as the input. |
|
|
|
![]() |
| Tags |
| ffmpeg |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|