

are on HTTP or FTP locations), the files will be copied to the local file system and %f will be expanded to point at the temporary file. If files are not on the local file system (i.e. The system reading the desktop entry should recognize that the program in question cannot handle multiple file arguments, and it should should probably spawn and execute multiple copies of a program for each selected file if the program is not able to handle additional file arguments. %f - A single file name (including the path), even if multiple files are selected. desktop file and use ffmpeg as executable with arguments? ffmpeg -i %F -c:v libx264 -crf 23 -c:a libfdk_aac -b:a 192k -map_metadata 0 %u/%F_x264 Linux Desktop Environment undependable (I am on KDE at the moment but I don’t want to lock myself into it).Īny thoughts would be greatly appreciated.ĭo you think I should create a.

Easy to learn (faster to start writing).Since there are many languages out there (bash, python, etc.) and I am not familiar with any of them I would start with the one that is: I was wondering if anyone has a similar script already written that could be shared or if there is any good documentation on the web that would help me start writing my scripts. home/user/video_file_1.mp4 would be converted and saved as /home/user/video_file_1_x264.mp4 What I would like to do is to select files in Dolphin - Right Click and select a script I want from the menu.įor this particular command it would use selected files as inputs and save the output files in the same directory while adding codec name to the end of the file name.

Here is one of the commands I use pretty often: ffmpeg -i in.mp4 -c:v libx264 -crf 23 -c:a libfdk_aac -b:a 192k -map_metadata 0 out.mp4Īs you can see in.mp4 is in the beginning of the command and out.mp4 is at the end of the command which makes drag’n’drop files to terminal a pain in the neck. I have never wrote any scipt but having s set of them definitely seems as a better idea compare to running exiftool / ffmpeg / whatever commands in terminal.

Looks like everyone here has their scripts to automate the routine tasks.
