Merge *.mp4 and *.m4a with Desktop File

Everything about X, Gnome, KDE, ... and everything running on it

Merge *.mp4 and *.m4a with Desktop File

Postby Fluke667 » 2018-10-14 11:36

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...
Fluke667
 
Posts: 3
Joined: 2018-10-14 11:04

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

Postby Dai_trying » 2018-10-14 12:52

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

this superuser.com post might have some useful information for you.
Dai_trying
 
Posts: 557
Joined: 2016-01-07 12:25

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

Postby debiman » 2018-10-14 13:26

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
User avatar
debiman
 
Posts: 3017
Joined: 2013-03-12 07:18


Return to Desktop & Multimedia

Who is online

Users browsing this forum: tynman and 2 guests

fashionable