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

how to modify full video file path of one input #20

Open
guohua24 opened this issue Jun 16, 2023 · 0 comments
Open

how to modify full video file path of one input #20

guohua24 opened this issue Jun 16, 2023 · 0 comments

Comments

@guohua24
Copy link

Hi all:
Excuse me to ask a question.I wirte some python code and want to modify video file full path of one input with vlc_source type.But input's video does not change.Please tell me how to implement this requirement.

def push_video(full_video_file_name):
scene_list = get_scene_list_request()

if len(scene_list) <= 0:
    print("no scene")
    return

first_scene_name = scene_list[0]["sceneName"]
print(first_scene_name)

vlc_input_settings = get_input_default_settings('vlc_source')

vlc_input_settings["file"] = 'e:/F_pan/tuiliu/test0537.mp4'
vlc_input_settings["loop"] = False

inputName = 'VLC 视频源1'
inputKind = "vlc_source"

#create_input_request(first_scene_name,inputName,inputKind)

create_scene_item(first_scene_name, inputName)

set_input_settings(inputName,vlc_input_settings)
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

1 participant