mortgagehas.blogg.se

Python ffmpeg compress video
Python ffmpeg compress video





%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

    python ffmpeg compress video

    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.







    Python ffmpeg compress video