[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut.spec
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -2,7 +2,7 @@
<service name="tar_git">
<param name="url">https://github.com/poetaster/harbour-audiocut.git</param>
<param name="branch">main</param>
- <param name="revision">1.1.0</param>
+ <param name="revision">1.2.0</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.2.0.tar.bz2/harbour-audiocut.desktop
^
|
@@ -2,7 +2,7 @@
Type=Application
X-Nemo-Application-Type=silica-qt5
Icon=harbour-audiocut
-Exec=harbour-audiocut
+Exec=harbour-audiocut %u
Name=Audioworks
# translation example:
# your app name in German locale (de)
@@ -11,7 +11,8 @@
# a different app name in German locale (de).
# Name[de]=Audiocut
-#[X-Sailjail]
+[X-Sailjail]
+Sandboxing=Disabled
#OrganizationName=de.poetaster
#ApplicationName=harbour-audiocut
-#Permissions=Camera;Audio;Microphone;Internet;MediaIndexing;RemovableMedia;UserDirs
+#Permissions=Camera;Audio;Microphone;MediaIndexing;RemovableMedia;UserDirs;Compatibility
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.2.0.tar.bz2/qml/pages/About.qml
^
|
@@ -54,7 +54,7 @@
font.pixelSize: Theme.fontSizeExtraSmall
color: Theme.secondaryColor
text: qsTr("Copyright © 2020 Tobias Planitzer") + "\n "
- + qsTr(" © 2021 Mark Washeim")
+ + qsTr(" © 2021-22 Mark Washeim")
}
Item {
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.2.0.tar.bz2/qml/pages/FirstPage.qml
^
|
@@ -7,7 +7,7 @@
Page {
id: page
allowedOrientations: Orientation.Portrait //All
-
+ property bool debug : true
// file variables
property string origAudioFilePath
property string origAudioFileName
@@ -15,7 +15,7 @@
property string origAudioName
property string origAudioType
property string homeDirectory
- property string tempAudioFolderPath
+ property string tempAudioFolderPath: StandardPaths.home + '/.cache/de.poetaster/harbour-audiocut'
property string tempAudioType : "wav"
property string outputPathPy
property string inputPathPy : decodeURIComponent( "/" + idAudioPlayer.source.toString().replace(/^(file:\/{3})|(qrc:\/{2})|(http:\/{2})/,"") )
@@ -56,6 +56,7 @@
Component.onCompleted: {
+ if(debug) console.debug(tempAudioFolderPath)
py.getHomePath()
}
@@ -145,7 +146,8 @@
tempAudioFolderPath = homeDir + "/.cache/de.poetaster/harbour-audiocut/"
saveAudioFolderPath = homeDir + "/Music/"
homeDirectory = homeDir
- py.createTmpAndSaveFolder(tempAudioFolderPath, saveAudioFolderPath )
+ //py.createTmpAndSaveFolder(tempAudioFolderPath, saveAudioFolderPath )
+ py.createTmpAndSaveFolder( )
py.deleteAllTMPFunction(tempAudioFolderPath)
});
setHandler('warningPydubNotAvailable', function() {
@@ -244,6 +246,8 @@
idImageWaveform.source = ""
idImageWaveformZoom.source = ""
var outputWaveformImagePath = tempAudioFolderPath + "waveform" + ".tmp" + undoNr + ".png"
+ if (debug == true) console.debug(inputPathPy)
+ if (debug == true) console.debug(outputWaveformImagePath)
var waveformColor = "yellow"
var stretch = "" //"compand,"
var waveformPixelLength = idWaveformOverview.width * zoomAreaFactor
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.2.0.tar.bz2/qml/py/audiox.py
^
|
@@ -124,13 +124,13 @@
# Function for waveform creation
# #######################################################################################
-
+# This one from video works
+#subprocess.run([ "ffmpeg", "-hide_banner", "-y", "-ss", thumbnailSec, "-i", "/"+inputPathPy, "-frames:v", "1", "/"+thumbnailPath ], shell = False )
def createWaveformImage ( inputPathPy, outputWaveformPath, waveformColor, waveformPixelLength, waveformPixelHeight, stretch ):
waveformPixelLength = str(int(waveformPixelLength))
waveformPixelHeight = str(int(waveformPixelHeight))
- #subprocess.run([ "/usr/share/harbour-audiocut/lib/ffmpeg/ffmpeg_static", "-y", "-i", "/"+inputPathPy, "-filter_complex", stretch+"showwavespic=s="+waveformPixelLength+"x"+waveformPixelHeight+":colors="+waveformColor, "-frames:v", "1", "/"+outputWaveformPath, "-hide_banner" ])
- subprocess.run([ "/usr/bin/ffmpeg", "-y", "-i", "/"+inputPathPy, "-filter_complex", stretch+"showwavespic=s="+waveformPixelLength+"x"+waveformPixelHeight+":colors="+waveformColor, "-frames:v", "1", "/"+outputWaveformPath, "-hide_banner" ])
+ subprocess.run([ "ffmpeg", "-hide_banner", "-y", "-i", "/"+inputPathPy, "-filter_complex", stretch+"showwavespic=s="+waveformPixelLength+"x"+waveformPixelHeight+":colors="+waveformColor, "-frames:v", "1", "/"+outputWaveformPath ])
sound = AudioSegment.from_file(inputPathPy)
audioLengthMilliseconds = len(sound)
pyotherside.send('loadImageWaveform', outputWaveformPath, audioLengthMilliseconds )
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.2.0.tar.bz2/translations/harbour-audiocut-de.ts
^
|
@@ -12,10 +12,6 @@
<translation type="unfinished"></translation>
</message>
<message>
- <source> © 2021 Mark Washeim</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>An Audio Tool</source>
<translation type="unfinished"></translation>
</message>
@@ -27,6 +23,10 @@
<source>of the GNU General Public License v3.</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source> © 2021-22 Mark Washeim</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>FirstPage</name>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.2.0.tar.bz2/translations/harbour-audiocut-sv.ts
^
|
@@ -12,10 +12,6 @@
<translation>Copyright © 2020 Tobias Planitzer</translation>
</message>
<message>
- <source> © 2021 Mark Washeim</source>
- <translation> © 2021 Mark Washeim</translation>
- </message>
- <message>
<source>An Audio Tool</source>
<translation>Ett ljudverktyg</translation>
</message>
@@ -27,6 +23,10 @@
<source>of the GNU General Public License v3.</source>
<translation>för GNU General Public License v3.</translation>
</message>
+ <message>
+ <source> © 2021-22 Mark Washeim</source>
+ <translation type="unfinished"> © 2021 Mark Washeim {2021-22 ?}</translation>
+ </message>
</context>
<context>
<name>FirstPage</name>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.2.0.tar.bz2/translations/harbour-audiocut-zh_CN.ts
^
|
@@ -12,10 +12,6 @@
<translation type="unfinished"></translation>
</message>
<message>
- <source> © 2021 Mark Washeim</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>An Audio Tool</source>
<translation type="unfinished"></translation>
</message>
@@ -27,6 +23,10 @@
<source>of the GNU General Public License v3.</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source> © 2021-22 Mark Washeim</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>FirstPage</name>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.2.0.tar.bz2/translations/harbour-audiocut.ts
^
|
@@ -12,10 +12,6 @@
<translation type="unfinished"></translation>
</message>
<message>
- <source> © 2021 Mark Washeim</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>An Audio Tool</source>
<translation type="unfinished"></translation>
</message>
@@ -27,6 +23,10 @@
<source>of the GNU General Public License v3.</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source> © 2021-22 Mark Washeim</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>FirstPage</name>
|