Tuesday, October 25, 2016

KDE: Add context menu actions to Dolphin (like extract audio)

To extract m4a audio from mp4:

kate ~.local/share/kservices5/extract-m4a.desktop

Paste:

[Desktop Entry]

Actions=Extract
Icon=dialog-information
MimeType=video/mp4
ServiceTypes=KonqPopupMenu/Plugin
Type=Service
X-KDE-Priority=TopLevel

    
[Desktop Action Extract]
Exec= bash -c 'ffmpeg -i "$0" -map 0:1 -c:a copy "${0%%.*}".m4a' %f
Icon=dialog-information
Name=Extract audio (m4a)
Do the same for flv. For wemb replace m4a with ogg.

Before all, check with mediainfo for the correct audio stream inside the video.

No comments:

Post a Comment