You are not logged in.
Pages: 1
This is the command to convert a .webm to a mp4.
ffmpeg -i 2018-07-28-222352.webm -qscale 0 sample.mp4
This is the thunar custom action I came up with, but it is not working.
ffmpeg -i %f.webm -qscale 0 %f.mp4
Can someone please help me?
Thanks.
Last edited by fixit (2020-05-27 23:44:49)
Ubuntu-Mate 24.04
Offline
Are you using that line in the action? You may want to create a script and call it with the action.
Siduction
Debian Sid
Xfce 4.18
Offline
ffmpeg -i %f.webm -qscale 0 %f.mp4
%f is the full path and filename - meaning you don't add the extension. So:
ffmpeg -i %f -qscale 0 %f.mp4
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I have some of those Custom Actions, but I prefer to see the output in a terminal, so the commands are of the type:
xfce4-terminal -x ffmpeg -i %f [options] %f.ext
Offline
fixit wrote:ffmpeg -i %f.webm -qscale 0 %f.mp4
%f is the full path and filename - meaning you don't add the extension. So:
ffmpeg -i %f -qscale 0 %f.mp4
Thanks.
It worked and produced this.
test.webm.mp4
Is there a way to get it to omit the webm in the filename?
Ubuntu-Mate 24.04
Offline
Are you using that line in the action? You may want to create a script and call it with the action.
I used it in the command.
Ubuntu-Mate 24.04
Offline
I have some of those Custom Actions, but I prefer to see the output in a terminal, so the commands are of the type:
xfce4-terminal -x ffmpeg -i %f [options] %f.ext
I used the Mate Terminal.
Ubuntu-Mate 24.04
Offline
ToZ wrote:fixit wrote:ffmpeg -i %f.webm -qscale 0 %f.mp4
%f is the full path and filename - meaning you don't add the extension. So:
ffmpeg -i %f -qscale 0 %f.mp4
Thanks.
It worked and produced this.
test.webm.mp4
Is there a way to get it to omit the webm in the filename?
Using @eriefischer's suggestion, it is best to create a script for this with the following content (Xfce's built-in interpreter can't handle special characters):
#!/bin/bash
ffmpeg -i "$1" -qscale 0 "${1%.*}.mp4"
...and make the script executable.
Then in the custom action command:
xfce4-terminal -x /path/to/script %f
Feel free to use mate-terminal but make sure the "-x" parameter is the same.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks ToZ, it worked like a champ. :-)
It's neat that I can see what the terminal is doing while it is converting the file.
Ubuntu-Mate 24.04
Offline
Pages: 1
[ Generated in 0.016 seconds, 8 queries executed - Memory usage: 546.44 KiB (Peak: 547.28 KiB) ]