20
cb219
5y

Needed to convert a collection of .avi videos to .mp4. Online converters only allow 1-2 videos at a time, with slow uploads, so no option.
Can't find a program that quickly fulfills my needs. Interesting ... πŸ€”
Look for python and a quick and dirty solution, ffmpeg and subprocess it shall be then.
Install ffmpeg, run subprocess with ffmpeg, put it inside a for loop, iterate over all videos with their respective number. Done.
3 lines of code, saved some time.
It's great to be a developer (sometimes).😏

Comments
  • 10
    In this case, you are merely an ffmpeg user, not a dev.
  • 7
    @kescherRant might be right, too. In the end I just used some given command line argumentsπŸ˜…πŸ€·
    My point was more about the fact, that as a developer you know that someone, at some point, must have had the same problem. You just have to pick one of the solutions that have been found for this. And of course implement it for your specific situation, if that's the case.
  • 5
    Sounds like you could have done the same with a shell script.
  • 1
    @SomeNone Only problem: I've never written a shell script. But I surely would have done it the shell way otherwise.
  • 3
    @cb219 Then maybe you should start writing shell scripts.

    Hint: Start off the file with
    ```
    #!/usr/bin/env bash
    ```
  • 0
    @kescherRant Windows user hereπŸ˜„
  • 1
    @cb219 Install Git bash and run from there. Still works.
  • 0
    FYI VLC can do this (though of course a script is better)
  • 2
    I did exactly the same only two weeks ago. It's a small world!
  • 0
    @DDD-DOG I searched for that but didn't find anything, tell me!
  • 2
    @SomeNone @kescherRant Python is also made expressly for scripting and it works just fine (and is so much better for cross platform than shell)
    Also, using ffmpeg in a script sounds like dev to me
    Let OP have some fun guys c'mon ffs
  • 4
    @RememberMe getting into philosophical territory here... what defines a user, what defines a dev? Does using a program make someone a user or a dev? Where does the user end and the dev start? Does it make you a user of ffmpeg if you wrap it in a simple loop or does it make you a dev by using the concept of a loop?
    Questions about questions...😁
  • 2
    @kescherRant Python is in exactly the same position as bash on windows.
  • 1
    @cb219 I agree, that's a proper definition of working smart
  • 1
    @cb219 when you're on windows, you're a user and when you're on Linux, you're a dev. Kidding.
  • 0
    @cb219 since no one told you about it yet, I will. https://handbrake.fr/ the only video converter you will ever need, open source.
Add Comment