Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-12-22 11:35:17

bigbadaboum
Member
Registered: 2022-12-22
Posts: 7

thunar custom action (ffmepg-4.4.3 change file extension)

hello,

I use this to convert mp3 to opus for podcast but sadly i don't know how correctly change the extension.

ffmpeg -i %f -c:a libopus -b:a 128k -ac 2 '%f.opus' | zenity --progress --title="conversion opus stéréo 128kbps" --text="     conversion en cours...     " --percentage=1 --pulsate

result:
bigbadaboum.mp3.opus

Sincerely,
bigbadaboum

Offline

#2 2022-12-22 12:13:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 9,772

Re: thunar custom action (ffmepg-4.4.3 change file extension)

If its always an mp3 to opus conversion, you could use something like this:

ffmpeg -i %f -c:a libopus -b:a 128k -ac 2 "$(basename %f .mp3).opus" | zenity --progress --title="conversion opus stéréo 128kbps" --text="     conversion en cours...     " --percentage=1 --pulsate

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

#3 2022-12-22 16:49:45

bigbadaboum
Member
Registered: 2022-12-22
Posts: 7

Re: thunar custom action (ffmepg-4.4.3 change file extension)

Hello,

the .mp3 extension has been removed from the new file name.

Thank you,

Offline

Board footer

Powered by FluxBB