Skip to content

dvr_apply with regex pattern breaks DVR recording, while unset dvr_apply works #4314

@bfwl

Description

@bfwl

Issue Description:

I'm using SRS v6.0.101 (Docker deployment) and encountered an issue with dvr_apply regex matching:

Expected Behavior:

Use regex in dvr_apply to selectively record streams (e.g., exclude streams containing 165-0-7).

Example config:

dvr {
enabled on;
dvr_path ./objs/nginx/html/[app]/[stream]/[timestamp].flv;
dvr_apply ^(?!.165-0-7).$; # Exclude streams with "165-0-7"
}

Actual Behavior:
It seems like there was no text provided in your input. Please provide some text for rephrasing.
When dvr_apply is not set, DVR works perfectly (all streams are recorded).
Your input appears to be empty. Please provide the text you would like to have rephrased.
When dvr_apply is set (even with simple regex like .*), no streams are recorded.
It seems that you have submitted an empty message again. If you have any text that you need rephrased, please enter it so I can assist you.
No errors in logs (docker logs shows no regex-related warnings).
You have submitted an empty message. Please provide the text you would like to have rephrased, and I will help you with it.
Questions:
It appears you've sent another empty message. If you have any text that you need rephrased into simple, technical English, please provide the content, and I'll assist you.
Is regex (PCRE) supported in dvr_apply? If yes, what syntax should be used?
You have submitted an empty message. If you have any text you would like to be rephrased into simple, technical English, please provide the text, and I will help you with it.
Are there any known limitations or workarounds for this issue?

Environment:

SRS Version: 6.0.101

OS: Linux (Docker)

Image

TRANS_BY_GPT4

Metadata

Metadata

Assignees

No one assigned

    Labels

    TransByAITranslated by AI/GPT.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions