SceneSwitcher icon indicating copy to clipboard operation
SceneSwitcher copied to clipboard

[Feature Request] Add Remux Condition

Open DanielLester83 opened this issue 2 years ago • 7 comments

Is your feature request related to a problem? Please describe. I run a "check video" macro that launches vlc with the most recent remuxed recording, however it somtime fails as the remux hasn't completed yet.

Describe the solution you'd like A Condition that triggers on the completion or start of the remux process.

Describe alternatives you've considered adding arbitray long wait times.

DanielLester83 avatar Oct 03 '23 18:10 DanielLester83

I added the following option to the "Recording" condition type in the linked PR: image

A build will be available here in a few minutes: https://github.com/WarmUpTill/SceneSwitcher/actions/runs/6992382071?pr=918

I would appreciate if you could give this a try and report back if everything works as expected. And sorry for taking so long to get back to you!

WarmUpTill avatar Nov 26 '23 00:11 WarmUpTill

Unfortunately it seems to trigger at the beginning of the save or Remux proccess instead of the expected end (100%) of the Remux process.

DanielLester83 avatar Nov 28 '23 05:11 DanielLester83

That is unfortunate :( I was hoping that the output signal handler would only send the corresponding signal when the processing is done.

I will try to think of a different way.

Thanks for the test!

WarmUpTill avatar Nov 28 '23 19:11 WarmUpTill

Here is the macro I am using if it helps. It Launches VLC on my 2nd monitor when VLC isnt already runing. It determines the most recent recording based on "Name" & "Episode" variables that are saved/loaded form text files in other macros.

AAAQFXic7VdbbyM1FP4rxlohWJo2SSvBRuKhZLslUm8iu0WIVMiZOZmx6tjG9qRZonnb533klT/BL+IX8BM4x3NpLmp5Q0vVhyiec79858x4xeciccbzwc8rrsUc+IAPc0hu2bVMwfA9bkXhkRpcAfTghFKg+GAmlEeC0cNc6KwV8LfSniwhudTjIFxoyJkzhW2VUpPcjiEEqTN0vOIOMukDuFYgF/6HQn9XhGB0YwJpVxTKDhUdhcKfielaWLnMcoW/MJoNjU5lkEb7t6jRSrjG/ltYYpgc/TXJbtCjT+QUepf3rqIhN9lwUkVUC21w35DzTXa5V7XgOCGJNtqxVTJgTa6Mj8+xQZYa1e92y73m3P+mvKkNnKDpysjDur1X97pd0mxK/70Jt/Det+WJiVVE1L5p818nBZNlCq62yffZRr+JUUpYD2lrW+IRHSfGpYgArI8ymUwwIERG4QSpnptUziQhYsWDnMMvaNQHJ6QOUc4DeYngWQhFbW0P3X3kh/eWjiXFLSuVBTgfa9ErkeyxByhxSNV4IELrTALe38fX6x7+hxE27gd8oZJ9WBLMZiYpmh5R90Tyr3VeCCfFVJE2aDqkzeg0nItq6k+s9CYluYbRrzkjjYHLlEW6mgLzoCB65lRId12lRUjXxbx+6lGSLRT44IhKks1Bh1G65INOD5+L6Tg4hEC9KrrrJPkbRAoCFJZXguCMVvj+S17TzkVI8mgLpWZSp6iIAjRWLBhGlChqlUhgk1cT2Z0MeWMOB28mM+pSVaa1SXAB026qZmxd8m4c3JCfLK3DPsUk+Resx75iffaSHbIv2QE7os3hYVj4YOZXzsxtuG+PtkVoaLwSHEUaBZcbla5tRLnD4LGjC+mMpqpeb3aTOpOAhnHbKsJphbm9ZtHT7gkwt6i7wZZNhyKCePnIkHwq8Pr6GV5PEV4uvpW3kFVvxvuSWqwTCk/4cDCZYMqZE3P2Rirwk0n8jDk7vsDT2XAyqXfphDK4M+4WsfBa4rsoGIevL346OIgK/uCdVUZQi4XLqgWLB5R4saISlOyvD7+/WNWgLvfn9ohTGpVMp/Nr6MwKpXziAHSn+kPwTsF92+flzf9hog6fJ+opTtSnAq/nhf0k4RVvIrvYqsjbV8vq83WkU1iufR731j+ORR1svKxAe8OhjXxDpAabGxfYmDMmLBa1eDRam+d///Hxz5+KzqnsXOafsXNB1x/2ugDFPq8iY6eozy7gjr79U5iJQoUW05S73p6QBzwddnuPW/gRQWnutgx0H1W51MfSVTfILb3+jt5xuhA6gXQcO4/oTnJwx9aOg7GWrl6xgs2tg79KZ/1+0uXlP1XPcF8=

DanielLester83 avatar Nov 30 '23 05:11 DanielLester83

Sorry if the answer to the question is obvious, but what types of settings do I need to configure to run into this situation? I am unable to reproduce the issue since the remux step always finishes too fast. (I guess my development OBS setup might just be too simple)

WarmUpTill avatar Dec 19 '23 21:12 WarmUpTill

My experience is that I stream/record for 2-3+ hours which makes the remux time take longer. Perhaps you could start a recording, unlock and swap the mkv file with a longer test file, then stop the recording. Or maybe the remux option from the "File" pulldown would send the same signal. If all else fails start a recording, wait a couple hours, then click stop.

Perhaps instead it just needs to check if the remux file is open for writing or if it's size has stopped growing.

DanielLester83 avatar Dec 20 '23 11:12 DanielLester83

To update on this, I was able to find a workaround where a variable is incremented every 250 seconds during a recording, then a macro waits that variables number of seconds befoer preceding. Reduce the number of seconds if your cpu\gpu is slower.

Here's the code for reference: AAAj0Hic7VpfbyI3EP8qrnUP7TUQluQuElIfUo60SLkcDbn0oaDK7JpdK7vrre1NSCPe+hn6AftJbsb7FwgkaXMpUniIsjsez9+fZwbDHY2Yq6Smnd/uaMwiTjv0Unhckm7A3Su6RxOWaqBOWag5vikWhjwsCTLuBiz2gcOoFN71lUh6M+5+ioeGKVPy+UqmScFkXz4ww2jnjroyDFmiuVfyavEnyDuYz/dKm/qxq3jEY0N6idDS489uWf7mSfdqyI0Rsa/ROsV9oQ1XJUPA9Hka/5gaI+NCNNAGaMwKFTSZVJ+ySc2uQPhBCH+mP+3K2BNGyFhfwI6SQxXyL/gM7KSgr3B3gW51wkoar659zmiw6i4oySzKmRZWT1D54vJ8L4PHsYscpbXDJBQGYjKQ2r5b8CQIorZziEkrn8e5gB6IzoSs3+scvS/3tnBnEfqfpbnit7qWaXAsI8Lucel/nWSk74d8sEyuvLV6V6En4BEUu1J5gACITyh94YJBgIxUMdz6UXpiKhARd9SIiP8OQrVRTMQQMwdwxlGLBc81CzGt5cO7JsgxtwlHD9FukW255krbWDiAeaohB8DRrlTeJ6t1n6zWoizwmLkPunvNlGCTELHCY3zwCgQXK2fZIayOXrHQPiuOJ1glPGLp4YQTzUNuNVP0R11mNiPg4jTK3xz0oMwIHHiMnY+HvO/NaKeBsUwnQ6MgE/mRbdVJtkq0LE74bMAQVSCFNt/SnPaRGTewsoBrKmIPNgIDopsYSZBiWZOQuXxxLSeSG2GCQhzgfyp8TEEWpnrpMeB2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