Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserted, hidden video tracks become audio tracks after re-opening project #625

Closed
ochilan opened this issue Aug 27, 2018 · 3 comments

Comments

@ochilan
Copy link
Contributor

commented Aug 27, 2018

Hello,

there is a particular series of actions that degrade a video track to an audio track after re-opening a project.

Repro:

  • Start with a new project.
  • Add two video tracks.
  • Insert a new video track (e.g. between the two tracks, i.e. right click the bottom track -> Insert Track).
  • Hide the newly inserted video track (click the eye icon).
  • Save and re-open the project.

Observed:

  • The inserted, hidden video track now appears to be an audio track.

The problem does not seem to happen when using added (not inserted) video tracks, and also not when the inserted track is not hidden before saving.

Shotcut version 18.08.14

@ddennedy

This comment has been minimized.

Copy link
Member

commented Aug 28, 2018

I believe you because I had to repair someone's project file for this and because once out of about 15 tries I did reproduce it. However, I am unable to reproduce it again in order to debug this further. Are you able to repeat it? If so, how exactly are you executing Insert Track because it all depends on the current track, which has the gold background. And when you right-click a track head the track is both made current and the track head selected - at this point nothing is gold because the tracks are empty.

@ochilan

This comment has been minimized.

Copy link
Contributor Author

commented Aug 28, 2018

I made a video showing the repro (it has two parts – first using only the contextual menu to add and insert tracks, and then using Ctrl-I to add the first two tracks, with the same result). I also added two mlt files, one resulting in adding three tracks, and one adding two tracks and then inserting a third track. If you take a look at the diff, it seems like the inserted track is missing a "shotcut:video" property. A transition is also missing a "disable" property.

Note that if you open the "add_add_insert.mlt" project, it does not appear to be broken since I didn't hide the second track using the eye icon. If I open it, hide the track, save and re-open it, then it is broken, i.e. the video track becomes an audio track.

Hope this helps.

shotcut_bug.zip

@ddennedy

This comment has been minimized.

Copy link
Member

commented Aug 28, 2018

I reproduced it easily on Linux but not so easily on Windows.

@ddennedy ddennedy closed this in 0c4817d Aug 28, 2018

@ddennedy ddennedy added this to the 18.09 milestone Aug 28, 2018

@ddennedy ddennedy added the resolved label Aug 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.