Bug 357529 - Suggestion: Indicate cut with a vertical line in the timeline
Summary: Suggestion: Indicate cut with a vertical line in the timeline
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-04 16:57 UTC by qubodup
Modified: 2016-04-07 07:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
three mockups of what the suggested line might look like (44.78 KB, image/png)
2016-01-04 16:57 UTC, qubodup
Details
Razor line indicator (17.50 KB, image/png)
2016-01-04 23:03 UTC, Jean-Baptiste Mardelle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description qubodup 2016-01-04 16:57:29 UTC
Created attachment 96449 [details]
three mockups of what the suggested line might look like

When cutting, I sometimes get unsure where the clip will cut once I click. I have to trace my cursor position vertically upwards and then horizontally to conclude from the cursor's position where the cut will happen once I press the left mouse button.

A vertical line in the timeline would help. Please see attached mockup images.

Suggested color values
The color could be the color of text (usually black in light-background themes) or the color of the lines at the top of the timeline (where the time codes are),
80% opacity for track that would be affected by you clicking right now (track under cursor)
25% opacity for tracks that would not be affected by you clicking right now

One color solution might work for all zoom levels. At zoom levels where one frame is thinner than one pixels, it might still be an acceptable approximation indicator.
Comment 1 Jean-Baptiste Mardelle 2016-01-04 22:56:01 UTC
Git commit ad15c59a4043c10ef5a59b1877e971d767db6ac9 by Jean-Baptiste Mardelle.
Committed on 04/01/2016 at 22:55.
Pushed by mardelle into branch 'master'.

Add vertical line to clearly show cut position in timeline
Related: bug 357490

M  +50   -0    src/timeline/customtrackview.cpp
M  +4    -0    src/timeline/customtrackview.h

http://commits.kde.org/kdenlive/ad15c59a4043c10ef5a59b1877e971d767db6ac9
Comment 2 Jean-Baptiste Mardelle 2016-01-04 23:03:03 UTC
Created attachment 96462 [details]
Razor line indicator
Comment 3 Jean-Baptiste Mardelle 2016-01-04 23:04:03 UTC
I implemented it in a slightly different way - a red line the height of the current track - see my attached image.

It is in git master, I let you try and comment.
Comment 4 Paul Konecny 2016-01-06 22:23:17 UTC
Whoops found the right bug repport just now. Anyway this works great and looks the part!
Comment 5 Unknown 2016-01-09 18:21:42 UTC
I agree. Works awesome!
Comment 6 Wegwerf 2016-01-09 18:33:41 UTC
I agree too: very good UI improvement. Small but important. Many thanks!
Comment 7 qubodup 2016-01-11 16:41:02 UTC
Thanks, this is very nice. I have found a few issues and have suggestions. I'll report the issues here and suggestions later in new tickets if that's all right with you.

I) Cutting indicator wrong size across vertical zoom levels

Steps:
1. Enable razor
2. Zoom track vertically

Expected:
1. Red line resizes with track height

Actual:
1. Red line keeps same height.

Images:
http://imgur.com/a/knltD

II) Pressing "x" jumps red line to left

Steps:
1. Move mouse to timeline
2. Press x

Expected:
1. Red line is under cursor

Actual:
1. Red line is at 0:00
2. Moving mouse fixes it.

Video:
https://www.youtube.com/watch?v=GMY4KbhPfZc

III) Moving on the right side of a frame indicates it will cut on the right (next frame) but if you click, it cuts on the left (hovered frame).
Premiere CC 2015 indicates & cuts what is closer. Final Cut Pro indicates & cuts what is on the left (current frame). Kdenlive currently indicates left but cuts closer.

Steps:
1. Have clip in timeline
2. Press x
3. Cut clips while the cursor is close to the left (beginning) of a frame or close to the right (end) of a frame

Expected:
1. The cut happens where the line is drawn

Actual:
1. The cut is always on the left (at the beginning of the hovered frame)

Video:
https://youtu.be/nLJSTFtJkco
Comment 8 Jean-Baptiste Mardelle 2016-01-11 23:30:47 UTC
Git commit 594b7b2512a86f9642365006a115f52a8ba897d1 by Jean-Baptiste Mardelle.
Committed on 11/01/2016 at 23:29.
Pushed by mardelle into branch 'master'.

Fix several issues with razor tool cut line preview

M  +6    -5    src/timeline/customtrackview.cpp

http://commits.kde.org/kdenlive/594b7b2512a86f9642365006a115f52a8ba897d1
Comment 9 qubodup 2016-04-07 07:17:08 UTC
The indicator is great now. I would prefer a razor cursor icon and the cut position to be at the top left of the cursor but that's a topic for another feature request issue.