Bug 411970 - Extract and save zone not working
Summary: Extract and save zone not working
Status: RESOLVED WORKSFORME
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (other bugs)
Version First Reported In: Appimage - Refactoring
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-16 13:42 UTC by stefano.droghetti
Modified: 2021-03-19 06:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:
fritzibaby: Brainstorm+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stefano.droghetti 2019-09-16 13:42:24 UTC
SUMMARY
Since appimage 18.12, "save zone" doesn't do anything, and "Extract zone" returns an error. Currently trying with 19.08.1-x86_64

STEPS TO REPRODUCE
1. click on a clip in resource window 
2. in monitor window, select an In and an Out point
3. right click on the video in monitor window
4. select "Save zone" or "Extract zone"

OBSERVED RESULT
- if "Save zone" is selected, nothing happens
- if "Extract zone" is selected, after pressing OK, in resource window under "Show log" appears the following error: "Invalid duration specification for ss: " (followed by a periodic number)

EXPECTED RESULT
A new file (with selected portion of the video) should be saved on the disk.

SOFTWARE/OS VERSIONS
Linux Xubuntu 18.04 amd64 desktop
Kdenlive appimage 18.12.x to current appimage (19.08.1)

ADDITIONAL INFORMATION
In Settings - Environment, choosing /usr/bin/ffmpeg instead of the given path, the error is different. Instead of "Invalid duration specification for ss: ", the error is "/usr/bin/ffmpeg: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol asn1_der_decoding2 version LIBTASN1_0_3 not defined in file libtasn1.so.6 with link time reference"
Comment 1 scubbx 2019-12-25 20:06:47 UTC
I also get this error. The language of my OS is "German".
The reason might be that the decimal separator value for SS used by Kdenlive is a comma and not a dot as expected by ffmpeg.
Comment 2 scubbx 2019-12-25 20:35:49 UTC
(In reply to scubbx from comment #1)
> I also get this error. The language of my OS is "German".
> The reason might be that the decimal separator value for SS used by Kdenlive
> is a comma and not a dot as expected by ffmpeg.

I looked around a bit and found the following in the source:

----

In the file src/jobs/cutclipjob.cpp the variable "startString" (used for extraction of the clip) is created by "m_in.seconds()" :

QString startString = locale.toString(m_in.seconds());

----

The same is true for the "durationString" in src/jobs/cutclipjob.cpp :

QString durationString = locale.toString((m_out - m_in).seconds());

----

Both of these variables are used to create the FFMPEG call for clipping in the file src/jobs/cutclipjob.cpp:

QStringList params = {QStringLiteral("-y"),QStringLiteral("-stats"),QStringLiteral("-i"),m_sourceUrl,QStringLiteral("-v"),QStringLiteral("error"),QStringLiteral("-ss"),startString, QStringLiteral("-t"), durationString};
Comment 3 emohr 2019-12-29 18:23:04 UTC
Confirmed. Has nothing to do with coma or point setting (checked on Windows).
Comment 4 Jean-Baptiste Mardelle 2019-12-30 14:40:48 UTC
Git commit d854b4f22af26e5211efc465be0e237287ea4307 by Jean-Baptiste Mardelle.
Committed on 30/12/2019 at 14:40.
Pushed by mardelle into branch 'master'.

Fix extract zone.

M  +1    -2    src/jobs/cutclipjob.cpp

https://invent.kde.org/kde/kdenlive/commit/d854b4f22af26e5211efc465be0e237287ea4307
Comment 5 emohr 2019-12-30 17:26:57 UTC
"Save zone" and "Extract zone" in project monitor still not working.
Comment 6 inivyro 2020-01-01 22:24:21 UTC
Hi,

In KDE Plasma System Settings, changing "Regional Settings"->"Formats" from Spanish to US_English fixes the bug.

The problem seems to be, as pointed by "scubbx", variables startString and durationString.  Removing locale.toString in both could fix the error.
Comment 7 Jean-Baptiste Mardelle 2020-01-02 12:27:20 UTC
Git commit efda53588d152ca6aa3baf85e04780f4f2cc0fd9 by Jean-Baptiste Mardelle.
Committed on 02/01/2020 at 12:27.
Pushed by mardelle into branch 'master'.

Fix extract zone (improve ffmpeg arguments and drop locale specific seconds conversion)

M  +1    -3    src/jobs/cutclipjob.cpp

https://invent.kde.org/kde/kdenlive/commit/efda53588d152ca6aa3baf85e04780f4f2cc0fd9
Comment 8 emohr 2020-01-02 12:48:00 UTC
"Extract zone" in project monitor is working. 

"Save zone" is not implemented so far.
Comment 9 Jean-Baptiste Mardelle 2020-01-06 07:59:45 UTC
Git commit ebed22b1c827f0e4988c51dfa99f99836613176d by Jean-Baptiste Mardelle.
Committed on 06/01/2020 at 07:49.
Pushed by mardelle into branch 'release/19.12'.

Fix extract zone (improve ffmpeg arguments and drop locale specific seconds conversion)

M  +1    -3    src/jobs/cutclipjob.cpp

https://invent.kde.org/kde/kdenlive/commit/ebed22b1c827f0e4988c51dfa99f99836613176d
Comment 10 farid 2021-03-04 14:59:40 UTC
Can we close this one?
Comment 11 Bug Janitor Service 2021-03-19 04:33:45 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!