Is it possible to change the size of subtitle text from an SRT file in FFmpeg





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















Is it possible to change the size of the subtitle text (SRT) automatically? If the text is too long the font size becomes smaller to be able to show the whole text on the screen.



In my case, the SRT file contains only one text and I want to burn it into the intro video as a title or information given about the video. Sometimes the title is a long text that goes out of the video's screen size. I wonder if there are any approaches to show a long text within the video's screen size automatically?



This is an example of such SRT file's content that I want to burn on the intro video.



1  
00:00:00,000 --> 00:00:03,000
TITLE
Information about the video goes here
and sometimes it is too long and goes out
of the video's screen size while using
a big font sizes like 40 or 50.









share|improve this question




















  • 1





    It’s my understanding that unless the text is burned into the video, the subtitle text is controlled by the player that plays back the video. So not clear if this is even possible.

    – JakeGould
    Feb 6 at 0:09






  • 3





    SRT files don't signal font size; it is set by the player.

    – Gyan
    Feb 6 at 5:51











  • @JakeGould Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

    – Eftekhari
    Feb 6 at 8:12











  • @Gyan Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

    – Eftekhari
    Feb 6 at 8:12











  • Figure out what's the max length acceptable to you and edit the SRT to have no lines longer than that.

    – Seth
    Feb 6 at 9:51


















1















Is it possible to change the size of the subtitle text (SRT) automatically? If the text is too long the font size becomes smaller to be able to show the whole text on the screen.



In my case, the SRT file contains only one text and I want to burn it into the intro video as a title or information given about the video. Sometimes the title is a long text that goes out of the video's screen size. I wonder if there are any approaches to show a long text within the video's screen size automatically?



This is an example of such SRT file's content that I want to burn on the intro video.



1  
00:00:00,000 --> 00:00:03,000
TITLE
Information about the video goes here
and sometimes it is too long and goes out
of the video's screen size while using
a big font sizes like 40 or 50.









share|improve this question




















  • 1





    It’s my understanding that unless the text is burned into the video, the subtitle text is controlled by the player that plays back the video. So not clear if this is even possible.

    – JakeGould
    Feb 6 at 0:09






  • 3





    SRT files don't signal font size; it is set by the player.

    – Gyan
    Feb 6 at 5:51











  • @JakeGould Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

    – Eftekhari
    Feb 6 at 8:12











  • @Gyan Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

    – Eftekhari
    Feb 6 at 8:12











  • Figure out what's the max length acceptable to you and edit the SRT to have no lines longer than that.

    – Seth
    Feb 6 at 9:51














1












1








1








Is it possible to change the size of the subtitle text (SRT) automatically? If the text is too long the font size becomes smaller to be able to show the whole text on the screen.



In my case, the SRT file contains only one text and I want to burn it into the intro video as a title or information given about the video. Sometimes the title is a long text that goes out of the video's screen size. I wonder if there are any approaches to show a long text within the video's screen size automatically?



This is an example of such SRT file's content that I want to burn on the intro video.



1  
00:00:00,000 --> 00:00:03,000
TITLE
Information about the video goes here
and sometimes it is too long and goes out
of the video's screen size while using
a big font sizes like 40 or 50.









share|improve this question
















Is it possible to change the size of the subtitle text (SRT) automatically? If the text is too long the font size becomes smaller to be able to show the whole text on the screen.



In my case, the SRT file contains only one text and I want to burn it into the intro video as a title or information given about the video. Sometimes the title is a long text that goes out of the video's screen size. I wonder if there are any approaches to show a long text within the video's screen size automatically?



This is an example of such SRT file's content that I want to burn on the intro video.



1  
00:00:00,000 --> 00:00:03,000
TITLE
Information about the video goes here
and sometimes it is too long and goes out
of the video's screen size while using
a big font sizes like 40 or 50.






ffmpeg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 6 at 11:52









JakeGould

32.9k10100142




32.9k10100142










asked Feb 6 at 0:02









EftekhariEftekhari

1881110




1881110








  • 1





    It’s my understanding that unless the text is burned into the video, the subtitle text is controlled by the player that plays back the video. So not clear if this is even possible.

    – JakeGould
    Feb 6 at 0:09






  • 3





    SRT files don't signal font size; it is set by the player.

    – Gyan
    Feb 6 at 5:51











  • @JakeGould Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

    – Eftekhari
    Feb 6 at 8:12











  • @Gyan Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

    – Eftekhari
    Feb 6 at 8:12











  • Figure out what's the max length acceptable to you and edit the SRT to have no lines longer than that.

    – Seth
    Feb 6 at 9:51














  • 1





    It’s my understanding that unless the text is burned into the video, the subtitle text is controlled by the player that plays back the video. So not clear if this is even possible.

    – JakeGould
    Feb 6 at 0:09






  • 3





    SRT files don't signal font size; it is set by the player.

    – Gyan
    Feb 6 at 5:51











  • @JakeGould Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

    – Eftekhari
    Feb 6 at 8:12











  • @Gyan Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

    – Eftekhari
    Feb 6 at 8:12











  • Figure out what's the max length acceptable to you and edit the SRT to have no lines longer than that.

    – Seth
    Feb 6 at 9:51








1




1





It’s my understanding that unless the text is burned into the video, the subtitle text is controlled by the player that plays back the video. So not clear if this is even possible.

– JakeGould
Feb 6 at 0:09





It’s my understanding that unless the text is burned into the video, the subtitle text is controlled by the player that plays back the video. So not clear if this is even possible.

– JakeGould
Feb 6 at 0:09




3




3





SRT files don't signal font size; it is set by the player.

– Gyan
Feb 6 at 5:51





SRT files don't signal font size; it is set by the player.

– Gyan
Feb 6 at 5:51













@JakeGould Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

– Eftekhari
Feb 6 at 8:12





@JakeGould Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

– Eftekhari
Feb 6 at 8:12













@Gyan Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

– Eftekhari
Feb 6 at 8:12





@Gyan Sorry, I asked the question in a wrong way. I've edited the question. Thanks for the reply.

– Eftekhari
Feb 6 at 8:12













Figure out what's the max length acceptable to you and edit the SRT to have no lines longer than that.

– Seth
Feb 6 at 9:51





Figure out what's the max length acceptable to you and edit the SRT to have no lines longer than that.

– Seth
Feb 6 at 9:51










1 Answer
1






active

oldest

votes


















0














No, it's not possible. SRT files carry no styling information related to fond size; it's up to the player to decide the size when displaying the subtitles.



You could (or should) make sure that the subtitles do not exceed a certain length by using a subtitle editor. This also improves accessibility for your subtitles.



Another alternative would be to use subtitles that support styling like SSA/ASS subtitles. You need proper container support though if you want to play them as soft subtitles (e.g. MKV), and your player also needs to support it (see e.g. supported subtitle formats in VLC). You could also burn them into the video if you need compatibility with other formats.



Aegisub is a subtitle editor with lots of features.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402467%2fis-it-possible-to-change-the-size-of-subtitle-text-from-an-srt-file-in-ffmpeg%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    No, it's not possible. SRT files carry no styling information related to fond size; it's up to the player to decide the size when displaying the subtitles.



    You could (or should) make sure that the subtitles do not exceed a certain length by using a subtitle editor. This also improves accessibility for your subtitles.



    Another alternative would be to use subtitles that support styling like SSA/ASS subtitles. You need proper container support though if you want to play them as soft subtitles (e.g. MKV), and your player also needs to support it (see e.g. supported subtitle formats in VLC). You could also burn them into the video if you need compatibility with other formats.



    Aegisub is a subtitle editor with lots of features.






    share|improve this answer




























      0














      No, it's not possible. SRT files carry no styling information related to fond size; it's up to the player to decide the size when displaying the subtitles.



      You could (or should) make sure that the subtitles do not exceed a certain length by using a subtitle editor. This also improves accessibility for your subtitles.



      Another alternative would be to use subtitles that support styling like SSA/ASS subtitles. You need proper container support though if you want to play them as soft subtitles (e.g. MKV), and your player also needs to support it (see e.g. supported subtitle formats in VLC). You could also burn them into the video if you need compatibility with other formats.



      Aegisub is a subtitle editor with lots of features.






      share|improve this answer


























        0












        0








        0







        No, it's not possible. SRT files carry no styling information related to fond size; it's up to the player to decide the size when displaying the subtitles.



        You could (or should) make sure that the subtitles do not exceed a certain length by using a subtitle editor. This also improves accessibility for your subtitles.



        Another alternative would be to use subtitles that support styling like SSA/ASS subtitles. You need proper container support though if you want to play them as soft subtitles (e.g. MKV), and your player also needs to support it (see e.g. supported subtitle formats in VLC). You could also burn them into the video if you need compatibility with other formats.



        Aegisub is a subtitle editor with lots of features.






        share|improve this answer













        No, it's not possible. SRT files carry no styling information related to fond size; it's up to the player to decide the size when displaying the subtitles.



        You could (or should) make sure that the subtitles do not exceed a certain length by using a subtitle editor. This also improves accessibility for your subtitles.



        Another alternative would be to use subtitles that support styling like SSA/ASS subtitles. You need proper container support though if you want to play them as soft subtitles (e.g. MKV), and your player also needs to support it (see e.g. supported subtitle formats in VLC). You could also burn them into the video if you need compatibility with other formats.



        Aegisub is a subtitle editor with lots of features.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 6 at 20:48









        slhckslhck

        164k47452477




        164k47452477






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402467%2fis-it-possible-to-change-the-size-of-subtitle-text-from-an-srt-file-in-ffmpeg%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            Puebla de Zaragoza

            Musa