Xfce Forum

Sub domains
 

You are not logged in.

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

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

[SOLVED] 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

Last edited by bigbadaboum (2023-02-24 13:55:16)

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] 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: 19

Re: [SOLVED] 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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 522.21 KiB (Peak: 528.85 KiB) ]