Coder Social home page Coder Social logo

Label all segments at once about lossless-cut HOT 7 CLOSED

Vipp0 avatar Vipp0 commented on June 1, 2024
Label all segments at once

from lossless-cut.

Comments (7)

mifi avatar mifi commented on June 1, 2024 1

Ok, I see! Isn't there a chance that the "black scenes" function will detect slightly different segments than the Youtube chapters, thereby voiding the youtube chapters invalid? Anyways I think this use case is very niche so I don't think I will prioritise implementing this unless many people ask for it. As mentioned, a workaround is to edit the .llc file or use some assistive tool to do that. maybe even chatGPT could do it, so I'm going to close this for now. thanks!

from lossless-cut.

mifi avatar mifi commented on June 1, 2024

not sure why you have to rename all the segments, e.g. what is the use case for that, but you could edit the .llc JSON5 file for the video and replace the name property for each segment. There are many existing tools out there for batch working on json files

from lossless-cut.

Vipp0 avatar Vipp0 commented on June 1, 2024

Just to explain my particular case.

I have several long videos of mixed commercials that I need to split into individual videos, so for each video (one for each commercial), thanks to the detect black scenes feature, I can easily (with some minor adjustments) create the various segments of the individual commercial, at this point I have to rename each segment with the name of the related commercial (a different name for each segment) and it is getting to this point that I would like a method to rename all the segments at once so that I don't have to rename 30 or 60 segments each time one at a time, for this I was thinking of a screen like the one like "Text chapters/Youtube" that allows you to do what I need but without making cuts but only to rename the segments.

from lossless-cut.

mifi avatar mifi commented on June 1, 2024

Still not sure why you need to import the segment names from a text file. If the segments all need to have different names, manually inputted by you, then why can't you just

  1. Press enter to open the label current segment dialog
  2. enter the segment name
  3. Press enter to save the segment name
  4. press down arrow to go to the next segment
  5. repeat 1.

..other than losing a few keystrokes (you could skip step 1 and 4)

from lossless-cut.

Vipp0 avatar Vipp0 commented on June 1, 2024

Basically to save time, I currently manually label each segment, I thought there might be a way to enter all the segment names with one click :D

Let's take an example with 60 segment names that I already have in a text file, the operation to do would be:

  1. Import segment names
  2. select the file with the names (or paste the names into the screen that pops up)

and that's it, just to save time :D

from lossless-cut.

mifi avatar mifi commented on June 1, 2024

Ok sure, but where do you get your list of segment names from? You type them manually or they come from somewhere?

from lossless-cut.

Vipp0 avatar Vipp0 commented on June 1, 2024

OK now I see your point

Short answer:
I already have a list of segment names to copy

Long answer:
These videos come from YouTube, the author in the video description enters the names of the individual commercials in the classic YouTube format

00:00 name 1
00:30 name 2
00:43 name 3
Etc.

So I could use the Text chapters/Youtube function but the problem that comes up is that YouTube's seconds format is not accurate because the milliseconds are missing, so the division is not accurate on the black screen (and it's not a keyframe problem)
So what I do is use the detect black scenes function, invert segment selection and then proceed to rename the individual segments.
However, having the list ready would save a lot of time and if the function ignored the time written at the beginning (00:00, 00:30, 00:43 etc.) it would be even better
Sorry for the long answer, I hope I have explained my case better, thanks for your help

from lossless-cut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.