Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th July 2018, 01:38   #61  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,071
The gui version, when indexing to a existed d2v, there's no prompt warning about overwriting the existing file.
lansing is offline   Reply With Quote
Old 22nd February 2019, 08:00   #62  |  Link
_Al_
Registered User
 
Join Date: May 2011
Posts: 20
Is there any way to catch that printing progress (1% .... 56%... etc) for dv2witch command line using subprocess in Python, I have no luck to get it to stdout or stderr, or I cannot do it, something like this:
Code:
import threading
import subprocess
class Cmd(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)
        process = subprocess.Popen(         
             [d2vwitch, '--output', output, file],
             stdout=subprocess.PIPE)
        line = ''
        for char in iter(lambda: process.stdout.read(1).decode('utf-8'), ''):
            line +=char
            if char == '\r':
                print(line)
                line = ''
            
file = 'C:/HDV TAPE 44/tape 44-2013_09_28-10_29_29.m2t'
d2vwitch = shutil.which('d2vwitch')
output = 'C:/temp/out.d2v'
command = Cmd()
command.start()
command.join()
no problem getting actual d2v, just that progress, I tried stdout, stderr or returncode, and it looks empty.
This is for windows but I tried it on linux and, the same, no luck.

Last edited by _Al_; 22nd February 2019 at 08:03.
_Al_ is offline   Reply With Quote
Old 22nd February 2019, 20:33   #63  |  Link
_Al_
Registered User
 
Join Date: May 2011
Posts: 20
oh, sorry, it is in stderr, it's ok
_Al_ is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:23.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.