-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from jeanslack/fix_seeking
Fix seeking
- Loading branch information
Showing
142 changed files
with
334 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,24 @@ videomass (5.0.5-1) UNRELEASED; urgency=medium | |
* [YouTube Downloader] Saves the width of the format code columns when you | ||
close the app (see #260 and #113 issues). | ||
* Fixed small bug in preferences dialog causing FFmpeg binaries to be set | ||
incorrectly self.settings['ffprobe_cmd'] > self.settings['ffplay_cmd']) . | ||
-- Gianluca Pernigotto <[email protected]> Thu, 08 Feb 2024 00:15:00 +0200 | ||
incorrectly (self.settings['ffprobe_cmd'] > self.settings['ffplay_cmd']) . | ||
* Removed backwards compatibility with wxPython < 4.1.0 . | ||
* Minimun requirements fixed to `wxPython >= 4.1.0`, `Python >= 3.7`, | ||
`FFmpeg >= 5.1.4` . | ||
* New versions of wxPython support svg images for icons well, so most png | ||
icons are removed. | ||
* Fixed FFmpeg warns: `-vsync arg is deprecated, use fps_mode` | ||
* Fixed FFmpeg seeking (-ss) and duration (-t) parameters by repositioning the | ||
duration code after file inputs (-i). This fixed many inaccuracies and was | ||
also faster. | ||
* Added a new item to the File menu with its accelerator to delete all | ||
imported files/URLs. This feature was already present on the | ||
toolbar buttons but without the possibility of a convenient accelerator. | ||
* [A/V Conversions] Overall improved the stabilizer filter for both the | ||
preview and the production of the final video. Fixed various bugs that | ||
prevented correct video playback. | ||
|
||
-- Gianluca Pernigotto <[email protected]> Sun, 18 Feb 2024 16:00:00 +0200 | ||
|
||
videomass (5.0.4-1) UNRELEASED; urgency=high | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.62 KB
videomass/art/icons/Sign_Icons/48x48_dark/icon_videoconversions.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.68 KB
videomass/art/icons/Sign_Icons/48x48_light/icon_videoconversions.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
Author: Gianluca Pernigotto <[email protected]> | ||
Copyleft - 2024 Gianluca Pernigotto <[email protected]> | ||
license: GPL3 | ||
Rev: July.17.2023 | ||
Rev: Feb.18.2024 | ||
Code checker: flake8, pylint | ||
This file is part of Videomass. | ||
|
@@ -483,10 +483,9 @@ def on_load_at_time(self, event): | |
return | ||
|
||
if self.ckbx_duo.IsChecked(): | ||
makeduo = f'-i "{self.framesrc}" -filter_complex hstack' | ||
error = self.process(self.filename, | ||
self.frameduo, | ||
args=makeduo, | ||
args='', | ||
mode='makeduo', | ||
) | ||
if error: | ||
|
@@ -505,7 +504,7 @@ def process(self, infile, outfile=None, args='', mode=None): | |
ffmpeg `eq` filter. | ||
""" | ||
if not self.mills: | ||
sseg = '' | ||
sseg, tseg = '', '' | ||
else: | ||
seek = self.sld_time.GetValue() | ||
stime = self.spin_dur.GetValue() * 1000 | ||
|
@@ -515,16 +514,20 @@ def process(self, infile, outfile=None, args='', mode=None): | |
seek, stime = 0, self.mills | ||
duration = integer_to_time(stime, False) # to 24-hour | ||
self.clock = integer_to_time(seek, False) # to 24-hour | ||
sseg = f'-ss {self.clock} -t {duration}' | ||
sseg = f'-ss {self.clock}.000' | ||
tseg = f'-t {duration}.000' | ||
|
||
if mode == 'detect': | ||
nul = ('NUL' if VidstabSet.appdata['ostype'] | ||
== 'Windows' else '/dev/null') | ||
argstr = f'{sseg} -i "{infile}" {args} -f null -y {nul}' | ||
argstr = f'{sseg} -i "{infile}" {tseg} {args} -f null -y {nul}' | ||
|
||
elif mode == 'trasform': | ||
argstr = f'{sseg} -i "{infile}" {args} -y "{outfile}"' | ||
argstr = f'{sseg} -i "{infile}" {tseg} {args} -y "{outfile}"' | ||
|
||
elif mode == 'makeduo': | ||
argstr = f'{sseg} -i "{infile}" {args} -y "{outfile}"' | ||
argstr = (f'{sseg} -i "{infile}" {tseg} -i "{self.framesrc}" ' | ||
f'{tseg} -filter_complex hstack -y "{outfile}"') | ||
else: | ||
return None | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
Author: Gianluca Pernigotto <[email protected]> | ||
Copyleft - 2024 Gianluca Pernigotto <[email protected]> | ||
license: GPL3 | ||
Rev: Feb.13.2023 | ||
Rev: Feb.17.2024 | ||
Code checker: flake8, pylint | ||
This file is part of Videomass. | ||
|
@@ -64,11 +64,17 @@ def youtubedl_getstatistics(url, ssl, parent=None): | |
# --------------------------------------------------------------------------# | ||
|
||
|
||
def stream_play(filepath, tseq, param, autoexit): | ||
def stream_play(filepath, timeseq, param, autoexit): | ||
""" | ||
Call Thread for playback with ffplay | ||
""" | ||
get = wx.GetApp() # get data from bootstrap | ||
|
||
if timeseq: | ||
splseq = timeseq.split() | ||
tseq = f'{splseq[0]} {splseq[1]}', f'{splseq[2]} {splseq[3]}' | ||
else: | ||
tseq = '', '' | ||
try: | ||
with open(filepath, encoding='utf8'): | ||
FilePlay(filepath, | ||
|
@@ -89,13 +95,19 @@ def stream_play(filepath, tseq, param, autoexit): | |
# -----------------------------------------------------------------------# | ||
|
||
|
||
def volume_detect_process(filelist, time_seq, audiomap, parent=None): | ||
def volume_detect_process(filelist, timeseq, audiomap, parent=None): | ||
""" | ||
Run thread to get audio peak level data and show a | ||
pop-up dialog with message. | ||
""" | ||
get = wx.GetApp() | ||
thread = VolumeDetectThread(time_seq, | ||
|
||
if timeseq: | ||
splseq = timeseq.split() | ||
tseq = f'{splseq[0]} {splseq[1]}', f'{splseq[2]} {splseq[3]}' | ||
else: | ||
tseq = '', '' | ||
thread = VolumeDetectThread(tseq, | ||
filelist, | ||
audiomap, | ||
get.appset['logdir'], | ||
|
Oops, something went wrong.