mifi / lossless-cut

The swiss army knife of lossless video/audio editing
https://losslesscut.app/
GNU General Public License v2.0
27.59k stars 1.34k forks source link

Show chapters on timeline #300

Closed ghost closed 3 years ago

ghost commented 4 years ago

Will it be possible to have the chapters of a file detected and integrated for easy manipulation?

mifi commented 4 years ago

Can you give me an example of what you mean by chapters? Example file to download which has chapters. Are you talking about DVD?

ghost commented 4 years ago

When using Handbrake for example, the output will have kept the original DVD chapters. I'd like to be able to use that for cutting and editing in LosslessCut. Actually, a few hours ago, I had to manually enter the timestamp of the beginning and the end of an episode of a series which had been extracted from Handbrake. The original DVD had one big file with all the episodes, but they are all separated by chapters thankfully. In Handbrake, it is possible to extract parts of a file using frames or chapters, so by choosing the right chapers, I managed to make 5 different files for each episode. Only, I had made a mistake and one episode was missing. Thankfully, I still had the one big m4v file with all the episodes and their chapters, so thanks to your LosslessCut, I didn't have to re-extract the lost episode using Handbrake.

ghost commented 4 years ago

Oh, and the resulted file still had chapters! So your program doesn't erase that data, I guess!

mifi commented 4 years ago

Ok, so LosslessCut keeps the chapters, but you would like to see them on the timeline?

ghost commented 4 years ago

Yes, that would make navigation and "precise" cutting easier.

mifi commented 4 years ago

Oh, I think it's possible if we can incorporate this command: ffprobe -i fname -print_format json -show_chapters -loglevel error

However I cannot find any sample file containing chapters to test with.

ghost commented 4 years ago

If you have a DVD and handbrake, you could just encode the movie or part of it, and the chapters will be included.

Anyway, I'm just happy I discovered your program, it really is a life-saver!

mifi commented 4 years ago

Haha, I don't have a dvd player anymore, but if I can find a DVD file somewhere or a file with chapters I might implement this.

mifi commented 3 years ago

Have implemented a function where chapters can be imported as segments. will be out in the next version. does that help?

ghost commented 3 years ago

Sounds great! I'm looking forward to it.

alsab200 commented 3 years ago

Hi, speaking of chapters, Daum's Potplayer has a feature for "bookmarks" which is unmatched, I believe.. Usage: I create (many) bookmarks "while" I am watching and recording a soccer match eg. one at beginning and one at the end of the scene is the base for a segment for LC..

Two steps in between: Convert Potplayer bookmark file "pbf" to an "edl" file by the help of some scripts: Video-Skip-Mute-Conversions: (check what he's doing, might be helpful for LC) https://github.com/dlmassey/Video-Skip-Mute-Conversions

Final step, by a little script I wrote, I convert the "edl" file to "csv" for the cutting-trimming work of LC.

Because of the rarity, many people working with bookmarks-chapters, would be using Potplayer.. If LC would be able to import from "pbf" files directly, it would be great..

This, also would "partially" solve the improvement issue I requested in #421.. which is abt easing the way we change the order of segments..
For that issue, may be I wasn't clear enough, but you can try just once.. to see how painful it is and to agree with me a (Drag and drop feature on the side-panel would be great).. say when you need to display the15th segment as the 5th segment.. Thank you again..

mifi commented 3 years ago

Hi. I'm not sure about this pbf format. I didn't find any documentation of that online.

mifi commented 3 years ago

closing this. for potplayer see #421