Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Merge *.mp4 and *.m4a with Desktop File

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
Fluke667
Posts: 4
Joined: 2018-10-14 11:04

Merge *.mp4 and *.m4a with Desktop File

#1 Post by Fluke667 »

I wanted to Merge my Video (mp4) and my Audio (m4a) files into one file
[Desktop Action mp4+m4a]
Name=Merge mp4 & m4a
Icon=video-mp4
TryExec=ffmpeg
Exec=file=%F; ffmpeg -i %F -i %F -acodec copy -vcodec copy "${file%.*}.mp4"

But that not works for me, any ideas howto do that? Sorry for my bad English...

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Merge *.mp4 and *.m4a with Desktop File

#2 Post by Dai_trying »

Does your command work when executed out of a .desktop file?

this superuser.com post might have some useful information for you.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Merge *.mp4 and *.m4a with Desktop File

#3 Post by debiman »

you can't do it like that, your .desktop file needs to point to a shell script that does what you want.
and test the shell script first before using it in the .desktop file.

how are you even going to use it if you need to provide 2 filenames?
an interactive shell script might be more suitable.

i also suspect there's a syntax error in the .desktop file syntax, but not 100% sure.
a random example from my machine:

Code: Select all

[Desktop Entry]
Name=ARandR
GenericName=Screen Settings
GenericName[de]=Bildschirmeinstellungen
Icon=display
Exec=arandr
Terminal=false
Type=Application
Categories=Settings;HardwareSettings;
StartupNotify=true

Post Reply