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

Issue with default value of transcoding resolution #169

Closed
winlinvip opened this issue May 11, 2015 · 3 comments
Closed

Issue with default value of transcoding resolution #169

winlinvip opened this issue May 11, 2015 · 3 comments
Assignees
Labels
Enhancement Improvement or enhancement. TransByAI Translated by AI/GPT.
Milestone

Comments

@winlinvip
Copy link
Member

winlinvip commented May 11, 2015

https://github.com/winlinvip/simple-rtmp-server/issues/169

TRANS_BY_GPT3

@winlinvip winlinvip added this to the srs 2.0 release milestone May 11, 2015
@winlinvip winlinvip added the Enhancement Improvement or enhancement. label May 11, 2015
@winlinvip
Copy link
Member Author

winlinvip commented Jul 21, 2015

If vwidth and vheight are not filled in during transcoding, the resolution parameters should be ignored and transcoding should be done according to the original resolution.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Jul 21, 2015

            vbitrate        0;
            vfps            0;
            vwidth          0;
            vheight         0;
            abitrate        0;
            asample_rate    0;
            achannels       0;

When these few parameters are set to 0 (or not supported, as the default is 0), the original video parameters are used, following the source's configuration.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Jul 21, 2015

After supporting the follow-up source, the simplest configuration for transcoding can be written as follows:

    transcode {
        enabled     on;
        ffmpeg      ./objs/ffmpeg/bin/ffmpeg;
        engine ff {
            enabled         on;
            vcodec          libx264;
            vprofile        main;
            vpreset         medium;
            acodec          libfdk_aac;
            output          rtmp://127.0.0.1:[port]/[app]?vhost=[vhost]/[stream]_[engine];
        }
    }

TRANS_BY_GPT3

@winlinvip winlinvip self-assigned this Aug 26, 2021
@winlinvip winlinvip changed the title 转码分辨率默认值问题 Issue with default value of transcoding resolution Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvement or enhancement. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

1 participant