amiaopensource / vrecord

Vrecord is open-source software for capturing a video signal and turning it into a digital file.
https://github.com/amiaopensource/vrecord
149 stars 45 forks source link

Remove encoding specific suffixes #823

Closed iamdamosuzuki closed 3 weeks ago

iamdamosuzuki commented 4 weeks ago

Currently vrecord adds _ffv1 and _j2k suffixes to files using those encodings. This is independent of the user-selected suffixes or prefixes. Is it possible to turn this off, or remove it entirely? I'm not sure if anyone is using this option, and it forces users into a specific file naming convention that may not be used at their organization.

dericed commented 4 weeks ago

I'd support removing the encoding specific suffixes as well (the _j2k and _ffv1 ones).

privatezero commented 4 weeks ago

@iamdamosuzuki if you click the 'Disable suffixes' box next to the options for user specified suffixes that will turn off the appending of the _ffv2/_j2k suffixes.

If nobody wants/needs the suffixes I'd definitely support getting rid of them entirely though!

iamdamosuzuki commented 4 weeks ago

@privatezero Thanks for the info! I thought I had tested that, but realized that flipping the "Disable Suffixes" toggle doesn't refresh the filename itself, you also need to select the encoding parameter too,

Is it possible to make that checkbox refresh the filename upon user entry?

Additionally, I'd be interested to know if anyone is using those suffixes. Might it be better to either of these options deployed if most people aren't using them.

privatezero commented 4 weeks ago

Yeahhh the refresh triggers for the name seem to be a UX issue for sure. I found on my end that after clicking the box if you retype the name it will correctly generate it without the suffix...but I'd have to look at what does and doesn't trigger the refresh currently.

I think we should definitely take a look at making that option to disable more clear and agree with your suggestion to make them off by default. But yeah, also if really nobody is using them we could just skip all that and get rid of them entirely!

retokromer commented 4 weeks ago

I suggest keeping the suffixes, but flipping the switch (enable suffixes rather than disable suffixes).

privatezero commented 4 weeks ago

Give this a test: https://github.com/amiaopensource/vrecord/pull/824 and see if that seems like an optimal solution or not

iamdamosuzuki commented 4 weeks ago

Yes, this is a great solution. Thank you

privatezero commented 4 weeks ago

I also poked a bit at having it more correctly regenerate the displayed output file name when the box is checked/unchecked but I think that'll have to wait for a future PR. The triggers are pretty wonky - right now it is actually incorrectly set to trigger on a key press and it really should be a mouse click. But changing it to a mouse click actually makes the behavior worse because it appears to be regenerating the output file name before it updates the associated variables so it actually ends up displaying the opposite of the new status that it should.

dericed commented 3 weeks ago

done in https://github.com/amiaopensource/vrecord/pull/824, thx @iamdamosuzuki @privatezero