Git Product home page Git Product logo

Comments (5)

familyfriendlymikey avatar familyfriendlymikey commented on June 5, 2024

Sure, but I'm not sure when I can get to these. Maybe this weekend if I have some time :)

from mpv-cut.

ibrshv avatar ibrshv commented on June 5, 2024

Thank you for solving this issue. But there is a catch now. Format is 0:0.000 if there are no hours or 0.0.0.000 if hours are presented. This leads to a problem when you want to merge your cuts in order. To solve this issue, for my mind, format should be always 00.00.00.000 (always with leading "0" and hours). For example, I want to give ffmpeg a list of files but should sort it by myself first:

COPY_2_20230122_170037_FROM_1-1-17.246_TO_1-1-21.891.mp4
COPY_2_20230122_170037_FROM_1-1-30.22_TO_1-1-33.869.mp4
COPY_2_20230122_170037_FROM_1-1-37.818_TO_1-1-42.695.mp4
COPY_2_20230122_170037_FROM_1-1-42.994_TO_1-1-51.754.mp4
COPY_2_20230122_170037_FROM_1-2-4.628_TO_1-2-13.753.mp4
COPY_2_20230122_170037_FROM_1-2-19.128_TO_1-2-23.773.mp4
COPY_2_20230122_170037_FROM_1-2-33.429_TO_1-2-36.415.mp4
COPY_2_20230122_170037_FROM_1-2-55.229_TO_1-3-0.173.mp4
COPY_2_20230122_170037_FROM_1-3.253_TO_1-8.528.mp4
COPY_2_20230122_170037_FROM_1-3-1.334_TO_1-3-5.88.mp4
COPY_2_20230122_170037_FROM_1-5-0.453_TO_1-5-12.863.mp4
COPY_2_20230122_170037_FROM_1-5-23.48_TO_1-5-32.141.mp4
COPY_2_20230122_170037_FROM_1-5-37.516_TO_1-5-39.971.mp4
COPY_2_20230122_170037_FROM_1-5-38.843_TO_1-5-41.265.mp4
COPY_2_20230122_170037_FROM_1-5-43.555_TO_1-5-47.901.mp4
COPY_2_20230122_170037_FROM_1-6-0.278_TO_1-6-7.08.mp4
COPY_2_20230122_170037_FROM_1-6-10.464_TO_1-6-17.333.mp4
COPY_2_20230122_170037_FROM_1-6-25.628_TO_1-6-29.576.mp4
COPY_2_20230122_170037_FROM_1-6-40.194_TO_1-6-44.475.mp4
COPY_2_20230122_170037_FROM_1-7-0.302_TO_1-7-3.321.mp4
COPY_2_20230122_170037_FROM_1-7-9.957_TO_1-7-12.214.mp4
COPY_2_20230122_170037_FROM_1-7-18.85_TO_1-7-25.486.mp4
COPY_2_20230122_170037_FROM_1-7-33.814_TO_1-7-37.697.mp4
COPY_2_20230122_170037_FROM_1-7-51.964_TO_1-7-58.8.mp4
COPY_2_20230122_170037_FROM_1-8-8.887_TO_1-8-17.613.mp4
COPY_2_20230122_170037_FROM_1-8-17.215_TO_1-8-20.699.mp4
COPY_2_20230122_170037_FROM_1-8-24.88_TO_1-8-28.795.mp4
COPY_2_20230122_170037_FROM_1-8-54.178_TO_1-8-59.023.mp4
COPY_2_20230122_170037_FROM_1-9-2.374_TO_1-9-6.289.mp4
COPY_2_20230122_170037_FROM_1-9-3.104_TO_1-9-12.328.mp4
COPY_2_20230122_170037_FROM_1-9-14.485_TO_1-9-20.092.mp4
COPY_2_20230122_170037_FROM_1-9-29.449_TO_1-9-33.232.mp4
COPY_2_20230122_170037_FROM_1-9-55.53_TO_1-10-2.298.mp4
COPY_2_20230122_170037_FROM_1-10-53.264_TO_1-10-55.653.mp4
COPY_2_20230122_170037_FROM_1-11-0.896_TO_1-11-3.517.mp4
COPY_2_20230122_170037_FROM_1-11-21.169_TO_1-11-26.743.mp4
COPY_2_20230122_170037_FROM_1-11-53.852_TO_1-11-59.194.mp4
COPY_2_20230122_170037_FROM_1-12-8.02_TO_1-12-16.515.mp4
COPY_2_20230122_170037_FROM_1-12-16.813_TO_1-12-20.828.mp4
COPY_2_20230122_170037_FROM_1-12-39.343_TO_1-12-41.267.mp4
COPY_2_20230122_170037_FROM_1-12-47.539_TO_1-12-50.89.mp4
COPY_2_20230122_170037_FROM_1-12-54.473_TO_1-13-3.3.mp4
COPY_2_20230122_170037_FROM_1-13-18.496_TO_1-13-21.317.mp4
COPY_2_20230122_170037_FROM_1-13-35.385_TO_1-13-41.723.mp4
COPY_2_20230122_170037_FROM_1-13-42.121_TO_1-13-47.032.mp4
COPY_2_20230122_170037_FROM_1-14-15.036_TO_1-14-16.994.mp4
COPY_2_20230122_170037_FROM_1-14-18.819_TO_1-14-19.416.mp4
COPY_2_20230122_170037_FROM_1-14-32.124_TO_1-14-37.168.mp4
COPY_2_20230122_170037_FROM_1-14-40.187_TO_1-14-43.008.mp4
COPY_2_20230122_170037_FROM_1-14-48.98_TO_1-14-56.048.mp4
COPY_2_20230122_170037_FROM_1-15.43_TO_1-19.213.mp4
COPY_2_20230122_170037_FROM_1-15-1.954_TO_1-15-8.922.mp4
COPY_2_20230122_170037_FROM_1-15-18.81_TO_1-15-24.451.mp4
COPY_2_20230122_170037_FROM_1-15-31.02_TO_1-15-35.267.mp4
COPY_2_20230122_170037_FROM_1-15-44.824_TO_1-15-49.701.mp4
COPY_2_20230122_170037_FROM_1-15-49.568_TO_1-15-58.328.mp4
COPY_2_20230122_170037_FROM_1-16-7.785_TO_1-16-12.961.mp4
COPY_2_20230122_170037_FROM_1-16-15.582_TO_1-16-19.829.mp4
COPY_2_20230122_170037_FROM_1-16-41.463_TO_1-16-44.848.mp4
COPY_2_20230122_170037_FROM_1-16-53.541_TO_1-16-59.912.mp4
COPY_2_20230122_170037_FROM_1-17-18.924_TO_1-17-31.035.mp4
COPY_2_20230122_170037_FROM_1-17-19.322_TO_1-17-23.968.mp4
COPY_2_20230122_170037_FROM_1-17-24.266_TO_1-17-30.471.mp4
COPY_2_20230122_170037_FROM_1-17-32.23_TO_1-17-39.131.mp4
COPY_2_20230122_170037_FROM_1-17-40.293_TO_1-17-45.502.mp4
COPY_2_20230122_170037_FROM_1-17-41.388_TO_1-17-49.052.mp4
COPY_2_20230122_170037_FROM_1-18-2.126_TO_1-18-10.421.mp4
COPY_2_20230122_170037_FROM_1-18-15.564_TO_1-18-20.84.mp4
COPY_2_20230122_170037_FROM_1-33.414_TO_1-36.533.mp4
COPY_2_20230122_170037_FROM_1-39.121_TO_1-44.098.mp4
COPY_2_20230122_170037_FROM_1-43.833_TO_1-47.217.mp4
COPY_2_20230122_170037_FROM_18-3.073_TO_18-10.207.mp4
COPY_2_20230122_170037_FROM_18-10.605_TO_18-20.327.mp4
COPY_2_20230122_170037_FROM_18-24.807_TO_18-32.007.mp4
COPY_2_20230122_170037_FROM_18-31.974_TO_18-38.344.mp4
COPY_2_20230122_170037_FROM_18-43.156_TO_18-48.266.mp4
COPY_2_20230122_170037_FROM_18-56.295_TO_19-3.263.mp4
COPY_2_20230122_170037_FROM_19-10.198_TO_19-20.982.mp4
COPY_2_20230122_170037_FROM_19-33.292_TO_19-37.207.mp4
COPY_2_20230122_170037_FROM_19-42.582_TO_19-47.858.mp4
COPY_2_20230122_170037_FROM_19-49.451_TO_19-55.788.mp4
COPY_2_20230122_170037_FROM_20-1.894_TO_20-9.094.mp4
COPY_2_20230122_170037_FROM_20-15.133_TO_20-22.698.mp4
COPY_2_20230122_170037_FROM_20-25.552_TO_20-29.201.mp4
COPY_2_20230122_170037_FROM_20-44.73_TO_20-57.538.mp4
COPY_2_20230122_170037_FROM_21-8.819_TO_21-19.006.mp4
COPY_2_20230122_170037_FROM_21-22.457_TO_21-31.847.mp4
COPY_2_20230122_170037_FROM_21-40.739_TO_21-47.707.mp4
COPY_2_20230122_170037_FROM_21-54.708_TO_22-1.809.mp4
COPY_2_20230122_170037_FROM_22-2.406_TO_22-5.558.mp4
COPY_2_20230122_170037_FROM_22-33.43_TO_22-38.673.mp4
COPY_2_20230122_170037_FROM_22-49.49_TO_22-55.927.mp4
COPY_2_20230122_170037_FROM_22-59.51_TO_23-4.554.mp4
COPY_2_20230122_170037_FROM_23-42.878_TO_23-46.196.mp4
COPY_2_20230122_170037_FROM_24-7.962_TO_24-13.537.mp4
COPY_2_20230122_170037_FROM_24-17.386_TO_24-28.203.mp4
COPY_2_20230122_170037_FROM_24-34.872_TO_24-42.006.mp4
COPY_2_20230122_170037_FROM_24-43.797_TO_24-51.661.mp4
COPY_2_20230122_170037_FROM_25-0.786_TO_25-6.46.mp4
COPY_2_20230122_170037_FROM_25-39.707_TO_25-46.874.mp4
COPY_2_20230122_170037_FROM_25-58.322_TO_26-3.73.mp4
COPY_2_20230122_170037_FROM_26-5.157_TO_26-15.41.mp4
COPY_2_20230122_170037_FROM_26-53.501_TO_26-59.872.mp4
COPY_2_20230122_170037_FROM_27-0.403_TO_27-5.181.mp4
COPY_2_20230122_170037_FROM_27-17.424_TO_27-23.629.mp4
COPY_2_20230122_170037_FROM_27-36.138_TO_27-42.974.mp4
COPY_2_20230122_170037_FROM_27-51.07_TO_27-53.26.mp4
COPY_2_20230122_170037_FROM_28-2.683_TO_28-6.3.mp4
COPY_2_20230122_170037_FROM_28-11.31_TO_28-15.292.mp4
COPY_2_20230122_170037_FROM_28-21.098_TO_28-24.881.mp4
COPY_2_20230122_170037_FROM_28-33.11_TO_28-42.633.mp4
COPY_2_20230122_170037_FROM_29-9.509_TO_29-15.15.mp4
COPY_2_20230122_170037_FROM_29-38.41_TO_29-45.311.mp4
COPY_2_20230122_170037_FROM_33-8.543_TO_33-22.911.mp4
COPY_2_20230122_170037_FROM_33-30.31_TO_33-38.207.mp4
COPY_2_20230122_170037_FROM_33-49.787_TO_33-55.693.mp4
COPY_2_20230122_170037_FROM_33-58.315_TO_34-3.989.mp4
COPY_2_20230122_170037_FROM_34-29.637_TO_34-34.084.mp4
COPY_2_20230122_170037_FROM_34-52.432_TO_34-59.5.mp4
COPY_2_20230122_170037_FROM_34-59.5_TO_35-2.387.mp4
COPY_2_20230122_170037_FROM_35-12.938_TO_35-17.716.mp4
COPY_2_20230122_170037_FROM_35-39.616_TO_35-46.019.mp4
COPY_2_20230122_170037_FROM_35-55.31_TO_35-59.458.mp4
COPY_2_20230122_170037_FROM_36-6.658_TO_36-14.522.mp4
COPY_2_20230122_170037_FROM_36-23.912_TO_36-30.614.mp4
COPY_2_20230122_170037_FROM_36-44.55_TO_36-48.598.mp4
COPY_2_20230122_170037_FROM_37-8.374_TO_37-13.318.mp4
COPY_2_20230122_170037_FROM_37-28.78_TO_37-33.061.mp4
COPY_2_20230122_170037_FROM_37-38.336_TO_37-41.489.mp4
COPY_2_20230122_170037_FROM_37-52.272_TO_37-58.046.mp4
COPY_2_20230122_170037_FROM_38-6.009_TO_38-10.787.mp4
COPY_2_20230122_170037_FROM_38-12.513_TO_38-22.5.mp4
COPY_2_20230122_170037_FROM_38-33.051_TO_38-41.911.mp4
COPY_2_20230122_170037_FROM_38-51.931_TO_38-59.53.mp4
COPY_2_20230122_170037_FROM_39-45.087_TO_39-51.026.mp4
COPY_2_20230122_170037_FROM_39-53.216_TO_39-56.999.mp4
COPY_2_20230122_170037_FROM_40-3.701_TO_40-10.338.mp4
COPY_2_20230122_170037_FROM_40-41.395_TO_40-46.305.mp4
COPY_2_20230122_170037_FROM_40-51.515_TO_40-58.217.mp4
COPY_2_20230122_170037_FROM_41-5.318_TO_41-8.337.mp4
COPY_2_20230122_170037_FROM_41-10.129_TO_41-14.21.mp4
COPY_2_20230122_170037_FROM_41-21.643_TO_41-28.213.mp4
COPY_2_20230122_170037_FROM_41-39.461_TO_41-45.633.mp4
COPY_2_20230122_170037_FROM_42-4.479_TO_42-8.859.mp4
COPY_2_20230122_170037_FROM_42-21.966_TO_42-34.442.mp4
COPY_2_20230122_170037_FROM_43-8.75_TO_43-11.007.mp4
COPY_2_20230122_170037_FROM_43-18.24_TO_43-20.496.mp4
COPY_2_20230122_170037_FROM_43-30.019_TO_43-36.49.mp4
COPY_2_20230122_170037_FROM_43-45.614_TO_43-49.364.mp4
COPY_2_20230122_170037_FROM_44-4.66_TO_44-6.916.mp4
COPY_2_20230122_170037_FROM_44-29.28_TO_44-32.267.mp4
COPY_2_20230122_170037_FROM_44-34.523_TO_44-38.206.mp4
COPY_2_20230122_170037_FROM_44-55.327_TO_44-57.915.mp4
COPY_2_20230122_170037_FROM_45-6.974_TO_45-8.633.mp4
COPY_2_20230122_170037_FROM_46-11.676_TO_46-16.852.mp4
COPY_2_20230122_170037_FROM_52-47.224_TO_52-53.528.mp4
COPY_2_20230122_170037_FROM_52-52.699_TO_52-52.865.mp4
COPY_2_20230122_170037_FROM_52-57.012_TO_53-1.293.mp4
COPY_2_20230122_170037_FROM_53-6.9_TO_53-11.944.mp4
COPY_2_20230122_170037_FROM_53-31.952_TO_53-38.754.mp4
COPY_2_20230122_170037_FROM_54-3.673_TO_54-8.517.mp4
COPY_2_20230122_170037_FROM_54-18.67_TO_54-21.026.mp4
COPY_2_20230122_170037_FROM_54-39.707_TO_54-44.684.mp4
COPY_2_20230122_170037_FROM_55-5.787_TO_55-7.181.mp4
COPY_2_20230122_170037_FROM_55-8.442_TO_55-12.622.mp4
COPY_2_20230122_170037_FROM_55-17.533_TO_55-21.249.mp4
COPY_2_20230122_170037_FROM_55-30.241_TO_55-34.754.mp4
COPY_2_20230122_170037_FROM_55-41.49_TO_55-47.163.mp4
COPY_2_20230122_170037_FROM_55-49.32_TO_55-54.397.mp4
COPY_2_20230122_170037_FROM_56-24.293_TO_56-29.535.mp4
COPY_2_20230122_170037_FROM_57-7.959_TO_57-12.272.mp4
COPY_2_20230122_170037_FROM_57-18.942_TO_57-23.753.mp4
COPY_2_20230122_170037_FROM_57-38.817_TO_57-44.822.mp4
COPY_2_20230122_170037_FROM_58-49.492_TO_58-54.004.mp4
COPY_2_20230122_170037_FROM_58-57.687_TO_59-0.773.mp4
COPY_2_20230122_170037_FROM_59-3.627_TO_59-9.998.mp4
COPY_2_20230122_170037_FROM_59-16.534_TO_59-18.558.mp4
COPY_2_20230122_170037_FROM_59-36.774_TO_59-45.103.mp4
COPY_2_20230122_170037_FROM_59-38.135_TO_59-43.311.mp4
COPY_2_20230122_170037_FROM_59-49.449_TO_59-53.763.mp4

from mpv-cut.

familyfriendlymikey avatar familyfriendlymikey commented on June 5, 2024

Hmm. I'll think about it. I wanted to avoid the filenames from being too cluttered, but they already look pretty cluttered anyways so I guess it doesn't matter.

Does cat files.txt|sort -V not fit your use case?

from mpv-cut.

ibrshv avatar ibrshv commented on June 5, 2024

Thanks.

$ cat files.txt 
COPY_1_20230122_170037_FROM_1-12-10.675_TO_1-12-14.557.mp4
COPY_1_20230122_170037_FROM_1-12-54.971_TO_1-13-3.167.mp4
COPY_1_20230122_170037_FROM_1-1-30.054_TO_1-1-34.699.mp4
COPY_1_20230122_170037_FROM_1-1-39.61_TO_1-1-43.425.mp4
COPY_1_20230122_170037_FROM_1-15-19.639_TO_1-15-24.65.mp4
COPY_1_20230122_170037_FROM_1-16-40.866_TO_1-16-45.544.mp4
COPY_1_20230122_170037_FROM_1-17-21.313_TO_1-17-29.542.mp4
COPY_1_20230122_170037_FROM_1-17-32.528_TO_1-17-38.667.mp4
COPY_1_20230122_170037_FROM_1-17-59.537_TO_1-18-10.487.mp4
COPY_1_20230122_170037_FROM_1-35.936_TO_1-43.435.mp4
COPY_1_20230122_170037_FROM_1-9-7.749_TO_1-9-11.698.mp4
COPY_1_20230122_170037_FROM_24-59.957_TO_25-7.256.mp4
COPY_1_20230122_170037_FROM_25-58.62_TO_26-3.697.mp4
COPY_1_20230122_170037_FROM_26-14.978_TO_26-20.652.mp4
COPY_1_20230122_170037_FROM_35-15.228_TO_35-22.727.mp4
COPY_1_20230122_170037_FROM_35-55.841_TO_36-0.685.mp4
COPY_1_20230122_170037_FROM_40-51.316_TO_40-57.653.mp4
COPY_1_20230122_170037_FROM_41-6.313_TO_41-14.277.mp4
COPY_1_20230122_170037_FROM_43-45.78_TO_43-49.861.mp4
COPY_1_20230122_170037_FROM_44-34.589_TO_44-38.339.mp4
COPY_1_20230122_170037_FROM_44-3.897_TO_44-7.281.mp4
COPY_1_20230122_170037_FROM_46-11.245_TO_46-17.947.mp4
COPY_1_20230122_170037_FROM_59-2.797_TO_59-10.893.mp4
$ cat files.txt|sort -V
COPY_1_20230122_170037_FROM_1-1-30.054_TO_1-1-34.699.mp4
COPY_1_20230122_170037_FROM_1-1-39.61_TO_1-1-43.425.mp4
COPY_1_20230122_170037_FROM_1-9-7.749_TO_1-9-11.698.mp4
COPY_1_20230122_170037_FROM_1-12-10.675_TO_1-12-14.557.mp4
COPY_1_20230122_170037_FROM_1-12-54.971_TO_1-13-3.167.mp4
COPY_1_20230122_170037_FROM_1-15-19.639_TO_1-15-24.65.mp4
COPY_1_20230122_170037_FROM_1-16-40.866_TO_1-16-45.544.mp4
COPY_1_20230122_170037_FROM_1-17-21.313_TO_1-17-29.542.mp4
COPY_1_20230122_170037_FROM_1-17-32.528_TO_1-17-38.667.mp4
COPY_1_20230122_170037_FROM_1-17-59.537_TO_1-18-10.487.mp4
COPY_1_20230122_170037_FROM_1-35.936_TO_1-43.435.mp4
COPY_1_20230122_170037_FROM_24-59.957_TO_25-7.256.mp4
COPY_1_20230122_170037_FROM_25-58.62_TO_26-3.697.mp4
COPY_1_20230122_170037_FROM_26-14.978_TO_26-20.652.mp4
COPY_1_20230122_170037_FROM_35-15.228_TO_35-22.727.mp4
COPY_1_20230122_170037_FROM_35-55.841_TO_36-0.685.mp4
COPY_1_20230122_170037_FROM_40-51.316_TO_40-57.653.mp4
COPY_1_20230122_170037_FROM_41-6.313_TO_41-14.277.mp4
COPY_1_20230122_170037_FROM_43-45.78_TO_43-49.861.mp4
COPY_1_20230122_170037_FROM_44-3.897_TO_44-7.281.mp4
COPY_1_20230122_170037_FROM_44-34.589_TO_44-38.339.mp4
COPY_1_20230122_170037_FROM_46-11.245_TO_46-17.947.mp4
COPY_1_20230122_170037_FROM_59-2.797_TO_59-10.893.mp4

filenames from being too cluttered

Maybe remove "FROM" and "TO"?

COPY_1_20230122_170037_00-59-02.797_00-59-10.893.mp4
COPY_1_20230122_170037_FROM_59-2.797_TO_59-10.893.mp4

I use mpv-autoload so the problem with sorting is also presented here.

from mpv-cut.

familyfriendlymikey avatar familyfriendlymikey commented on June 5, 2024

Okay, pushed a release. Don't have time to thoroughly test so let me know if there are any issues.

from mpv-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.