Timeline incorrect

What is your operating system?

What is your operating system?

Ubuntu 20.04.1 LTS
What is your Shotcut version (see Help > About Shotcut)? Is it 32-bit?

20.10.31
Can you repeat the problem? If so, what are the steps?
While another project was open, I created a new project, opened some files and moved the video file to the timeline. The timeline shows a time that doesn’t run on Earth but somewhere further away from our black hole. Six seconds correspond to approximately 35 seconds. However, if I zoom then the timeline corrects itself.
The log:
[Debug ] MainWindow::on_actionClose_triggered
[Debug ] Mlt::Controller::setProjectFolder project folder “”
[Debug ] MainWindow::setAudioChannels 2
[Debug ] Mlt::Controller::setAudioChannels 2
[Info ] [consumer sdl2_audio] Audio Opened: driver=pulseaudio channels=2 frequency=48000
[Debug ] NewProjectFolder::showEvent m_profile “” action.data “”
[Debug ] MainWindow::setProfile “”
[Debug ] Mlt::Controller::setProfile setting to profile “Automatic”
[Debug ] VideoVectorScopeWidget::profileChanged 709
[Debug ] VideoVectorScopeWidget::profileChanged 709
[Info ] [consumer sdl2_audio] Audio Opened: driver=pulseaudio channels=2 frequency=48000
[Debug ] VideoVectorScopeWidget::profileChanged 709
[Info ] [consumer sdl2_audio] Audio Opened: driver=pulseaudio channels=2 frequency=48000
[Debug ] NewProjectFolder::showEvent m_profile “” action.data “”
[Debug ] MainWindow::setProfile “”
[Debug ] Mlt::Controller::setProfile setting to profile “Automatic”
[Debug ] VideoVectorScopeWidget::profileChanged 709
[Debug ] MainWindow::setAudioChannels 2
[Debug ] Mlt::Controller::setAudioChannels 2
[Info ] Mlt::Controller::resetLocale decimal point .
[Debug ] Mlt::Controller::setProjectFolder project folder “/home/kalmer/Videos/tehted-ratsionaalarvudega”
[Debug ] MainWindow::setProfile “”
[Debug ] Mlt::Controller::setProfile setting to profile “Automatic”
[Debug ] VideoVectorScopeWidget::profileChanged 709
[Debug ] MainWindow::openVideo QFlagsQFileDialog::Option(DontUseNativeDialog)
[Info ] Util::isMemoryLow available RAM = 14812476 KB
[Debug ] MainWindow::open “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS”
[Debug ] MltXmlChecker::check begin
[Debug ] MltXmlChecker::check end
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] Mlt::Controller::setPreviewScale 1920 x 1080
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] MainWindow::setAudioChannels 2
[Debug ] Mlt::Controller::setAudioChannels 2
[Debug ] MainWindow::processMultipleFiles “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS”
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] Playlist::AppendCommand::redo
[Debug ] MainWindow::processMultipleFiles “/home/kalmer/Videos/tehted-ratsionaalarvudega/juubeldus.flac”
[Debug ] [producer avformat] audio: total_streams 1 max_stream 0 total_channels 2 max_channels 2
[Debug ] Playlist::AppendCommand::redo
[Debug ] MainWindow::processMultipleFiles “/home/kalmer/Videos/tehted-ratsionaalarvudega/peetri-logo.png”
[Debug ] Playlist::AppendCommand::redo
[Debug ] MainWindow::processMultipleFiles “/home/kalmer/Videos/tehted-ratsionaalarvudega/tõt_logo.png”
[Debug ] Playlist::AppendCommand::redo
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] [producer avformat-novalidate] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Info ] MainWindow::open “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS”
[Info ] [consumer sdl2_audio] Audio Opened: driver=pulseaudio channels=2 frequency=48000
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] TimelineDock::dragEnterEvent true
[Debug ] Timeline::OverwriteCommand::redo trackIndex 0 position 0
[Debug ] Player::setIn in -1 out 27769
[Debug ] Player::setOut in -1 out -1
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] [mlt_producer avformat-novalidate] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] AudioLevelsTask::run generating audio levels for /home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS audio track = 1
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] TimelineDock::setSelection Changing selection to (QPoint(0,0)) trackIndex -1 isMultitrack false
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[27765], current_position=[27764], int_position=[0], pts=[-9223372036854775808]
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[27766], current_position=[27765], int_position=[0], pts=[-9223372036854775808]
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[27767], current_position=[27766], int_position=[0], pts=[-9223372036854775808]
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[27768], current_position=[27767], int_position=[0], pts=[-9223372036854775808]
[Info ] Util::isMemoryLow available RAM = 14503248 KB
[Debug ] Function autosaveTask finished in 8 ms.
[Debug ] Timeline::SplitCommand::redo trackIndex 0 clipIndex 0 position 1379
[Debug ] TimelineDock::setSelection Changing selection to (QPoint(1,0)) trackIndex -1 isMultitrack false
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] TimelineDock::setSelection Changing selection to (QPoint(0,0)) trackIndex -1 isMultitrack false
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] [mlt_producer avformat-novalidate] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] Timeline::LiftCommand::redo trackIndex 0 clipIndex 0
[Debug ] TimelineDock::setSelection Changing selection to () trackIndex -1 isMultitrack false
[Debug ] TimelineDock::setSelection Changing selection to (QPoint(0,0)) trackIndex -1 isMultitrack false
[Debug ] Timeline::RemoveCommand::redo trackIndex 0 clipIndex 0
[Debug ] TimelineDock::setSelection Changing selection to () trackIndex -1 isMultitrack false
[Info ] Util::isMemoryLow available RAM = 14491016 KB
[Debug ] Function autosaveTask finished in 9 ms.
[Info ] Util::isMemoryLow available RAM = 14486992 KB
[Debug ] Function autosaveTask finished in 11 ms.
[Debug ] Timeline::AddTrackCommand::redo audio
[Debug ] Timeline::OverwriteCommand::redo trackIndex 1 position 25966
[Debug ] TimelineDock::setSelection Changing selection to (QPoint(1,1)) trackIndex -1 isMultitrack false
[Debug ] [producer avformat] audio: total_streams 1 max_stream 0 total_channels 2 max_channels 2
[Debug ] Timeline::SplitCommand::redo trackIndex 1 clipIndex 1 position 26242
[Debug ] TimelineDock::setSelection Changing selection to (QPoint(2,1)) trackIndex -1 isMultitrack false
[Debug ] Timeline::LiftCommand::redo trackIndex 1 clipIndex 2
[Debug ] TimelineDock::setSelection Changing selection to () trackIndex -1 isMultitrack false
[Debug ] TimelineDock::setSelection Changing selection to (QPoint(0,0)) trackIndex -1 isMultitrack false
[Debug ] Timeline::SplitCommand::redo trackIndex 0 clipIndex 0 position 26242
[Debug ] TimelineDock::setSelection Changing selection to (QPoint(1,0)) trackIndex -1 isMultitrack false
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] [producer avformat] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Debug ] Timeline::LiftCommand::redo trackIndex 0 clipIndex 1
[Debug ] TimelineDock::setSelection Changing selection to () trackIndex -1 isMultitrack false
[Debug ] [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[Debug ] [producer avformat] audio: total_streams 1 max_stream 0 total_channels 2 max_channels 2
[Debug ] [mlt_producer avformat-novalidate] “/home/kalmer/Videos/tehted-ratsionaalarvudega/00075.MTS” checking VFR: pkt.duration 1800
[Info ] Util::isMemoryLow available RAM = 14456708 KB
[Debug ] Function autosaveTask finished in 12 ms.
[Info ] Util::isMemoryLow available RAM = 14328848 KB
[Debug ] Function autosaveTask finished in 10 ms.
[Info ] Util::isMemoryLow available RAM = 14273536 KB
[Debug ] Function autosaveTask finished in 8 ms.
[Info ] Util::isMemoryLow available RAM = 14290308 KB
[Debug ] Function autosaveTask finished in 9 ms.

I have not reproduced this.

How? Or does it not matter how?

The timeline shows a time

Where exactly? There are some different places where time values are shown.

Every time before I create a new project, I remove all the files of the original open project from the memory. Then, I create a new project, open all the necessary files and move the video file from the playlist to the timeline. Then, the timeline shows incorrect scale. I only see one place where time values are: Output.

I think most people use File > New or File > Close.

move the video file from the playlist to the timeline

OK, it is more accurate to say you drag-n-dropped from the playlist to timeline. There are many ways to add things to the timeline besides that. I still have not reproduced it, and this will wait until a developer experiences it and decides to make a fix.

Maybe it’s because Shotcut can’t find the linked files as they’ve been moved away while the project’s still being open.

I do exactly File > New but I don’t close the open project before. And while I’m about to create a new project, the referenced files of the current project aren’t available anymore.

The anomaly of the incorrect scale on the timeline appears every time I behave like that. At the same time, the scale in the preview is correct.

Windows 10 Home
Shotcut 20.10.31

Once you move the timecode or click above the clip on the timeline, the scale auto adjusts. At least for Windows 10, the scale offset is only temporary. This is only when dragging from Source to Timeline. When you Append A, there is no issue with scale at all.

Steps to reproduce the temporary bug:

  1. Open Shotcut
  2. Open a video file
  3. Drag from Source to Timeline
  4. New
  5. Open different video file

2020-12-06_13-43-44 2020-12-06_13-41-21

I don’t use Windows since 2007. I’m on Ubuntu as mentioned in the beginning of this bug report. However, as we see, this anomaly seems to be cross-platform. Even if it only happens before manual adjustment it doesn’t render the bug obsolete.

I realize you’re using Ubuntu as I read that in your original post.
I’m just reporting my experience of the same in regards to Windows 10 :slight_smile:

Edit:
Looking at this more closely the playhead location is not updated in timeline from Source until you move the playhead at least 1 frame.

The playhead is not moved when using drag-n-drop to add media to the timeline. This is by design. It is changed when you use a toolbar action or keyboard shortcut. To fix this I can make a change so that when you drag-n-drop to an empty timeline, the playhead is moved to the position where the mouse was when dropped.

I’ve made a video about my actions that shows how you can recreate the anomaly.

I just keep the post open as two months have passed.

I have disable auto-close for the bug category, but that only affects new threads. Meanwhile, I manually turned off auto-close on this thread. I am not going to do that for everything in the category, however; only the ones I have bookmarked as something I am interested in. This is a discussion forum, not a bug tracker, and no one is obligated to do anything regardless.

Where’s the bug tracker?

This is fixed for the next version 21.04