Cypheros Transportstream Forum

English-speaking Support => TS-Doctor 3.x => Thema gestartet von: mirij am Februar 17, 2022, 21:01:21

Titel: Video analysis mode - command line
Beitrag von: mirij am Februar 17, 2022, 21:01:21
Hello,

is it possible to run "Edit ->Detect commercials->Video analysis mode" from command line with output of the result to some text file? I need to programmatically automate it for video editing software (I can't use Cypheros for editing of video). I need only simple text file where will be times detected by Cypheros in this mode.

With this Cypheros would be more useful for me.
Titel: Re: Video analysis mode - command line
Beitrag von: Cypheros am Februar 18, 2022, 00:18:06
If you set Settings/Preferences/Dialog Settings/"Start automatic cut" to yes and disable all commercial detection methodes under Settings/Preferences/Auto cut, except VA mode. Now all files processed via command line, will have VA cutting. If you analyse the resulting log file, you will see the used marks for the cutting.

Example of a 7 hour Australian 7flix recording:
Commercial search type: Video analysis

VA movie area: 00:00:00.000 <> 02:15:44.000 Parental Guidance

Video Analyzer Settings
Demuxer: LAV Splitter
Video filter: LAV Video Decoder
VA mode: 2
Logo rect: 274,187,304,201
                                                           
  ############                                             
    ########  ####        ######  ####    ####             
    ######    ######    ####      ####    ##               
            ########    ######    ####                  ## 
          ########    ########    ##    ####  ####    ##   
          ########      ####      ##    ####  ####    ##   
        ########        ##      ####    ####    ####       
        ######        ####      ####    ##      ##    ##   
      ########        ####      ####  ####    ####    ##   
    ########          ####      ##    ####  ####      #### 
                    ######                                 
                  ######                                   
                                                           

VA cut: 00:00:00.000-00:17:46.432
VA cut: 00:22:00.000-00:32:27.872
VA cut: 00:36:38.552-00:43:01.232
VA cut: 00:47:00.000-00:56:51.312
VA cut: 01:01:00.000-01:11:01.952
VA cut: 01:15:30.000-01:22:42.512
VA cut: 01:26:30.000-01:39:33.952
VA cut: 01:42:15.000-01:50:01.312
VA cut: 01:53:16.632-01:59:50.752
VA cut: 02:02:31.352-02:15:44.000

VA movie area: 02:06:04.000 <> 04:49:44.000 Saving Mr. Banks

Video Analyzer Settings
Demuxer: LAV Splitter
Video filter: LAV Video Decoder
VA mode: 2
Logo rect: 274,187,304,201
                                                           
  ############  ##                                         
    ########  ####        ######  ####  ######             
    ################    ####      ####    ##               
            ########    ######    ####        ##        ## 
          ########    ########    ##    ####  ####    ##   
          ########      ####      ##    ####  ####    ##   
        ########        ##      ####    ####    ####       
        ########      ####      ####    ##      ##         
      ########        ####      ####  ####    ####    ##   
    ########          ####      ##    ####  ####      #### 
                    ######                                 
                  ######                                   
                                                           

VA cut: 02:06:04.000-02:26:22.192
VA cut: 02:30:34.000-02:39:37.312
VA cut: 02:43:34.000-02:54:15.072
VA cut: 02:58:05.592-03:05:38.912
VA cut: 03:09:59.272-03:16:06.392
VA cut: 03:20:49.000-03:25:44.832
VA cut: 03:29:49.000-03:39:19.000
VA cut: 03:43:23.112-04:03:17.712
VA cut: 04:06:19.000-04:16:57.552
VA cut: 04:19:34.000-04:30:29.232
VA cut: 04:34:04.000-04:49:44.000

VA movie area: 04:40:04.000 <> 06:40:01.023 Fatal Honeymoon

Video Analyzer Settings
Demuxer: LAV Splitter
Video filter: LAV Video Decoder
VA mode: 2
Logo rect: 274,187,304,201
                                                           
  ############                                             
    ########  ####        ######  ####  ######             
    ######    ####      ####      ####    ##               
            ########    ######    ####        ##      #### 
          ########    ########    ##    ####  ####  ###### 
          ########      ####      ##    ####  ##########   
        ########        ##      ####    ####    ######     
        ######        ####      ####  ####      ########   
      ########        ####      ####  ####    ####  ####   
    ########          ####      ##    ####  ####      #### 
                    ######                                 
                  ######                                   
                                                           

VA cut: 04:40:04.000-05:03:20.592
VA cut: 05:06:51.192-05:15:35.832
VA cut: 05:19:49.000-05:27:53.392
VA cut: 05:31:34.000-05:39:46.672
VA cut: 05:43:04.000-05:49:58.352
VA cut: 05:53:39.032-06:00:52.352
VA cut: 06:04:42.152-06:15:20.752
VA cut: 06:19:07.032-06:25:55.352
VA cut: 06:30:07.192-06:40:01.023
Commercial search time: 01:44
First movie: Parental Guidance [100,00%]
First full movie start time : 00:05:09.000
Last full movie end time   : 06:43:04.000
Titel: Re: Video analysis mode - command line
Beitrag von: mirij am Februar 18, 2022, 10:28:45
Please, runs Cypheros without gui from command line? I need variant without gui - silent.
Exist somewhere description with which parameteres to run Cypheros from command line?
Titel: Re: Video analysis mode - command line
Beitrag von: Cypheros am Februar 18, 2022, 13:25:33
Without gui > no.
With command line > yes

On page 30 of the users manual, you will find something like this:

ZitatSome features of the TS-doctor can be controlled with command line parameters. Thus, processing of recordings of batch scripts is possible.

TSDoctor.exe [Input Filename] [Command] [Option] [Output Filename]

    • Command: AUTOFIX ( automatically starts the repair of the file)
    • Command: AUTOCHECK ( automatically starts the checking of the file)
    • Command: AUTOBATCH ( automatically starts the batch processing of the internal batch list)
    • Command: AUTODEMUX (automatically starts the file demuxing)
    • Option: CROP=X (Truncates the beginning of the file with X MB when opened)
    • Option: LOG (writes a log)

Example:
"TSDoctor.exe" "D:\recording\*.ts" Autofix "D:\archive\"

For [Input Filename], also wild cards are possible as for example *.ts or REC000.*
If wildcards are used for [Input Filename], the parameter [Output Filename] is interpreted as a directory.
Titel: Re: Video analysis mode - command line
Beitrag von: mirij am Februar 18, 2022, 14:36:55
On some files I need to run from command line "Edit ->Detect commercials->Video analysis mode" and on some files I need to run from command line "Edit ->Detect commercials->EPG mode". Switching between these two modes.

Is it possible without manually changing the settings of Cypheros? And if not - can you add switch for it to command line params?
Titel: Re: Video analysis mode - command line
Beitrag von: Cypheros am Februar 18, 2022, 14:38:25
Not yet.
Titel: Re: Video analysis mode - command line
Beitrag von: mirij am Februar 18, 2022, 15:23:03
That would be great!

And if you add silent - no gui - command line mode - that would be great too. I need to run Cypheros in DVBViewer Recording Service on the background as post processing task.
Titel: Re: Video analysis mode - command line
Beitrag von: Cypheros am Februar 18, 2022, 15:46:52
TS-Doctor needs a desktop/window to work as the video analysis uses directshow to render the video to the screen. It can not run as a background process without a desktop context.
Titel: Re: Video analysis mode - command line
Beitrag von: mirij am Februar 18, 2022, 15:58:54
> uses directshow to render the video to the screen<

I am not expert, but in silent mode -> no need render video to screen -> no need desktop context ?
Maybe it could be solved by adding a parameter silent to command line parameters and then Cypheros TS Doctor would not initialize the parts concerning to rendering the video to the screen.

Cypheros TS Doctor would be for me in the silent mode very useful piece of software. That would be great.
Titel: Re: Video analysis mode - command line
Beitrag von: Cypheros am Februar 18, 2022, 22:54:54
TS-Doctor can be controlled via command line but is not a command line tool. It's a desktop app and needs a desktop to work. That is by design and can not changed easily.
Titel: Re: Video analysis mode - command line
Beitrag von: mirij am Februar 19, 2022, 20:00:02
And what about start TS Doctor as hidden window. Add command line parameter hidden.

Titel: Antw:Video analysis mode - command line
Beitrag von: mirij am März 07, 2022, 16:23:53
Zitat von: Cypheros am Februar 18, 2022, 00:18:06If you set Settings/Preferences/Dialog Settings/"Start automatic cut" to yes and disable all commercial detection methodes under Settings/Preferences/Auto cut, except VA mode. Now all files processed via command line, will have VA cutting. If you analyse the resulting log file, you will see the used marks for the cutting.

I set it. Then I run from command line:
"C:\Program Files (x86)\Cypheros\TSDoctor3\TSDoctor.exe" "W:\H265\TSDoctor3\2021-11-27; Bydlet jako... v éteru T2.ts" AUTOFIX "W:\H265\TSDoctor3\bydlet.ts"

After it in the folder "W:\H265\TSDoctor3\" are three files: bydlet.log, bydlet.txt, bydlet.ts. In the file bydlet.log are informations which I needed.

Is it possible to not create files bydlet.txt and bydlet.ts - these files I don't need.

When I run TSDoctor.exe with the parameter AUTOCHECK then is created file "bydlet_check.log", but into it are not informations about cut areas -> TSDoctor don't do "Auto cut" task when is runned with the parameter AUTOCHECK.
Titel: Antw:Video analysis mode - command line
Beitrag von: Cypheros am März 07, 2022, 16:34:06
Under Settings/Preferences/Files you can deactivate "Create recording info file" to suprress the creationg of "bydlet.txt". Creation of "bydlet.ts" can not be suprressed.

AUTOCHECK just checks the recording for errors.
Titel: Antw:Video analysis mode - command line
Beitrag von: mirij am März 07, 2022, 16:52:05
Ok. Thanks.
Titel: Antw:Video analysis mode - command line
Beitrag von: mirij am März 07, 2022, 17:30:20
Is it possible to not show these informations windows?:
https://i.imgur.com/HE3Nr9I.png

https://i.imgur.com/EPG50b5.png
Titel: Antw:Video analysis mode - command line
Beitrag von: Cypheros am März 07, 2022, 18:06:48
No, can not be suppressed.