How to limit Seek Bar on the basis of video size?Strange out of memory issue while loading an image to a Bitmap objectShip an application with a databaseFling gesture detection on grid layoutIs quitting an application frowned upon?What is the simplest and most robust way to get the user's current location on Android?Rotating videos with FFmpegHow to set the text color of TextView in code?What's “tools:context” in Android layout files?Hex transparency in colors“cannot resolve symbol R” in Android Studio

Was there ever an axiom rendered a theorem?

Copycat chess is back

COUNT(*) or MAX(id) - which is faster?

Why do UK politicians seemingly ignore opinion polls on Brexit?

Is "plugging out" electronic devices an American expression?

How to make payment on the internet without leaving a money trail?

Is Fable (1996) connected in any way to the Fable franchise from Lionhead Studios?

How to manage monthly salary

What is the meaning of "of trouble" in the following sentence?

Could a US political party gain complete control over the government by removing checks & balances?

Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?

Email Account under attack (really) - anything I can do?

New order #4: World

Does it makes sense to buy a new cycle to learn riding?

Symmetry in quantum mechanics

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

Are cabin dividers used to "hide" the flex of the airplane?

What does 'script /dev/null' do?

Can I find out the caloric content of bread by dehydrating it?

Ideas for 3rd eye abilities

Is there a familial term for apples and pears?

Are white and non-white police officers equally likely to kill black suspects?

Where else does the Shulchan Aruch quote an authority by name?

How to answer pointed "are you quitting" questioning when I don't want them to suspect



How to limit Seek Bar on the basis of video size?


Strange out of memory issue while loading an image to a Bitmap objectShip an application with a databaseFling gesture detection on grid layoutIs quitting an application frowned upon?What is the simplest and most robust way to get the user's current location on Android?Rotating videos with FFmpegHow to set the text color of TextView in code?What's “tools:context” in Android layout files?Hex transparency in colors“cannot resolve symbol R” in Android Studio






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








5















I need to know how to limit a SeekBar with a particular video size,rather than limiting using time say like whats app 17 MB , i have done an example by taking time but i need to consider size.



I was using This example










share|improve this question






























    5















    I need to know how to limit a SeekBar with a particular video size,rather than limiting using time say like whats app 17 MB , i have done an example by taking time but i need to consider size.



    I was using This example










    share|improve this question


























      5












      5








      5


      1






      I need to know how to limit a SeekBar with a particular video size,rather than limiting using time say like whats app 17 MB , i have done an example by taking time but i need to consider size.



      I was using This example










      share|improve this question
















      I need to know how to limit a SeekBar with a particular video size,rather than limiting using time say like whats app 17 MB , i have done an example by taking time but i need to consider size.



      I was using This example







      android ffmpeg video-processing trim






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 8 at 7:00









      Eby Cloudins

      1188




      1188










      asked Mar 8 at 6:48









      Jins LukoseJins Lukose

      748418




      748418






















          1 Answer
          1






          active

          oldest

          votes


















          7














          A command in FF-MPEG, -fs , allows to specify the file size and in return the specified size of file will be trimmed from video file



           String[] cm = "-i", path, "-fs", "17M", "-c", "copy", videopath.getPath();


          After trimming check for duration of the trimmed video with maximum duration set for the seek bar.






          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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%2fstackoverflow.com%2fquestions%2f55058089%2fhow-to-limit-seek-bar-on-the-basis-of-video-size%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









            7














            A command in FF-MPEG, -fs , allows to specify the file size and in return the specified size of file will be trimmed from video file



             String[] cm = "-i", path, "-fs", "17M", "-c", "copy", videopath.getPath();


            After trimming check for duration of the trimmed video with maximum duration set for the seek bar.






            share|improve this answer





























              7














              A command in FF-MPEG, -fs , allows to specify the file size and in return the specified size of file will be trimmed from video file



               String[] cm = "-i", path, "-fs", "17M", "-c", "copy", videopath.getPath();


              After trimming check for duration of the trimmed video with maximum duration set for the seek bar.






              share|improve this answer



























                7












                7








                7







                A command in FF-MPEG, -fs , allows to specify the file size and in return the specified size of file will be trimmed from video file



                 String[] cm = "-i", path, "-fs", "17M", "-c", "copy", videopath.getPath();


                After trimming check for duration of the trimmed video with maximum duration set for the seek bar.






                share|improve this answer















                A command in FF-MPEG, -fs , allows to specify the file size and in return the specified size of file will be trimmed from video file



                 String[] cm = "-i", path, "-fs", "17M", "-c", "copy", videopath.getPath();


                After trimming check for duration of the trimmed video with maximum duration set for the seek bar.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 11 at 20:31









                Jordon Lee

                153




                153










                answered Mar 11 at 19:12









                Jins LukoseJins Lukose

                748418




                748418





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • 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%2fstackoverflow.com%2fquestions%2f55058089%2fhow-to-limit-seek-bar-on-the-basis-of-video-size%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

                    1928 у кіно

                    Захаров Федір Захарович

                    Ель Греко