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

                    Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

                    Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

                    Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved