<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Tac,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>You can either use three different scripts for each output or setup a dialog in a single script.<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>I took inspiration from this script awhile ago:<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><a href="https://gist.github.com/steventrux/10815095">https://gist.github.com/steventrux/10815095</a><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Here is my Frankenstein script:<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><a href="https://github.com/AndriusWild/dam_scripts/blob/master/compress2mp4.sh">https://github.com/AndriusWild/dam_scripts/blob/master/compress2mp4.sh</a><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Take a look at the ffmpeg part as well as on the dialogs in the end (read -p)<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><a href="https://github.com/AndriusWild/dam_scripts/blob/master/compress2mp4.sh#L242">https://github.com/AndriusWild/dam_scripts/blob/master/compress2mp4.sh#L242</a><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Andrey<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> Digikam-users <digikam-users-bounces@kde.org> <b>On Behalf Of </b>Tac Tacelosky<br><b>Sent:</b> Tuesday, January 28, 2020 6:40 AM<br><b>To:</b> digiKam - Home Manage your photographs as a professional with the power of open source <digikam-users@kde.org><br><b>Subject:</b> Re: [digiKam-users] Extracting audio from .mp4 file<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Curiously, the options for OUTPUTFILE in the Custom Shell Script are "Same as Input", JPG, TIFF and PNG.  Is that configurable somewhere?  I need flac, mp3 and wav as options.  But yes, that's likely the approach I'll take, I want to delay using kdenlive until it's absolutely necessary (mostly to make documentation / training easier).<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Tac<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Mon, Jan 27, 2020 at 9:38 AM Andrey Goreev <<a href="mailto:aegoreev@gmail.com">aegoreev@gmail.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal>You can write a shell script that does what you need using ffmpeg and call the script from digiKam.<o:p></o:p></p></div><div><p class=MsoNormal>I guess you will need two scripts - one for Linux (e.g. bash), one for Windows (power shell if it is available on Win 7).<o:p></o:p></p></div><div><p class=MsoNormal>It should not take too long to figure out the script.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><div><div><div><div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal>Andrey<o:p></o:p></p></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Mon, Jan 27, 2020 at 6:33 AM Tac Tacelosky <<a href="mailto:tacman@gmail.com" target="_blank">tacman@gmail.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal>Thanks.  Yes, I'm using both those tools now, and they work fine for me.  But I need to come up with an easy-to-use cross-platform system for an interviewing workflow with limited internet.  My idea was to use digikam, since it has such explicit support for importing media from SD cards.  I could then ask the users to select the photos and videos they want for the project (crop the photos, etc.)<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>The next step of the process needs just the audio, or a super-low-quality video (e.g 1 fps), so the files can be quickly uploaded to a website, where computers and people can transcribe and translate the content.  That's the step I'm trying to solve right now.  I'm using kdenlive for some of the photo/video selection, but it lacks customized batch jobs, customized proxies (which prompted this question), and extracting audio puts the .flac file in the same directory as the video, etc. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I'm trying to avoid asking the users to install ffmeg, so thought there might be a way to set something in a batch queue manager to create the lower-quality videos or extract the audio, and skip kdenlive for this part.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I use Ubuntu, but others who want to use this use Windows and Mac.  If I knew docker better, I'd probably wrap everything in a docker container, especially now that Windows 10 has much better support for it.  But some of the computers are older, and probably not even running Windows 10.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>I guess my feature request would be that ffmpeg and ffprobe be available as customizable tools.<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Anyway, thanks for the suggestions, I'll play around with the User Shell Script. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Tac<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Mon, Jan 27, 2020 at 4:19 AM Mick Sulley <<a href="mailto:mick@sulley.info" target="_blank">mick@sulley.info</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal>Pretty sure you can do it with kdenlive<br><br><br>On 26/01/2020 19:18, Tac Tacelosky wrote:<br>> Is there any way to use digikam to extract the audio from a movie clip <br>> to a wav or mp3 file?<br>><br>> Thanks,<br>><br>> Tac<br>><o:p></o:p></p></blockquote></div></blockquote></div></blockquote></div></div></body></html>