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

Using Continuos SEG_Num in diffenret Files #1846

Closed
4 tasks done
vipergts opened this issue Jan 5, 2024 · 4 comments
Closed
4 tasks done

Using Continuos SEG_Num in diffenret Files #1846

vipergts opened this issue Jan 5, 2024 · 4 comments

Comments

@vipergts
Copy link

vipergts commented Jan 5, 2024

I have a lot of issues to go through, so in order to make it easier for me to help you, I ask that you please try these things first

Description

When edit a file we can make segment and export files name on segments name by ${SEG_NUM}
but when we include more files then the segment number shoud start 1

How about add function continuous Seg_num ?

like this

A file -> 1,2,3 segment_number
B file -> 4,5,6 segment number
C file -> 7,8,9 segment number

If we merge all files (A,B,C)
this problem will be solved

However, it is very difficult and waste time when we load many files or
load files with different types of codecs.

So just add function in export segment page right side
following number before edit segment or can change number start what we want

Thank you

578

@mifi
Copy link
Owner

mifi commented Jan 5, 2024

Hi. I think you can workaround this by using a file name with a manual numeric prefix, like so:

  • File A: 0${SEG_NUM} results in 01, 02, 03
  • File B: 1${SEG_NUM} results in 11, 12, 13
  • File C: 2${SEG_NUM} results in 21, 22, 23

you can combine it with an appropriate Minimum numeric padded length

@vipergts
Copy link
Author

vipergts commented Jan 8, 2024

Thank you for your answer

It was very helpful to me !

But it`s impossible continuos after File A last number

Can i add bias in seg_num ?

like

  • File A 0${SEG_NUM} result in 01, 02, 03
  • File B 0${SEG_NUM+3} result in 04, 05, 06

Thank you

@KaShaunLeak
Copy link

@mifi I'd like a feature for SG_NUM offset as well. Using a prefix to SEG_NUM is an option, but in my use case, means I have to go back after the export and rename everything to match segment sequence.

Ex:

// day1-11.mp4 -> day-0${SEG_NUM}
day-001.mp4
day-002.mp4
day-003.mp4
...
day011.mp4


// day12-16.mp4 -> day-1${SEG_NUM}
day-101.mp4 // day 12
day-102.mp4 // day 13
day-103.mp4 // day 14
...
day-106.mp4 // day 15

I could programmatically go through after each export to fix the file names, but it'd be nice to specify an integer offset during export.

@mifi
Copy link
Owner

mifi commented May 28, 2024

I've rewritten the template to allow javascript code, and a new variable SEG_NUM_INT, you can test it in the next nightly. example: ${String(SEG_NUM_INT+100).padStart(3, '0')}

@mifi mifi closed this as completed in b806b9f May 28, 2024
@mifi mifi mentioned this issue Aug 5, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants