FFMPEG & Visual Studio Code on Windows: How To Get Started Easily!

Поділитися
Вставка
  • Опубліковано 3 жов 2024

КОМЕНТАРІ • 8

  • @faustasazuolasbagdonas123
    @faustasazuolasbagdonas123 8 місяців тому

    Thanks, this was helpful. I suggest to make a video on how to build ffplay because that is not straightforward on Windows with MSVC.

    • @devstefit
      @devstefit  8 місяців тому +1

      Hi! Thanks for watching!
      I think you won't be disappointed at the end of the tutorial series I am creating.
      Check it out!

  • @anton2004a
    @anton2004a Рік тому +1

    I had an issue with compiling FFmpeg with configure flags. i kept getting this error code: "x264 not found using pkg-config"
    After using this command:
    CC=cl PKG_CONFIG_PATH=../../installed/lib/pkgconfig ../../sources/ffmpeg/configure --prefix=../../installed toolchain=msvc --arch=x86_64 --enable-asm --disable-shared --enable-static --enable-libx264 --enable-gpl --enable-debug --disable-optimizations --extra-ldflags="-LIBPATH:../../installed/lib" --extra-cflags="-I../../installed//include/"
    Any idea how i could fix this?

    • @devstefit
      @devstefit  Рік тому +1

      I think it all depends on how did you compile x264. In my previous video I explained the problem and its solution. Let me know if you can solve the issue! And thanks for watching!

    • @anton2004a
      @anton2004a Рік тому +1

      @@devstefit It worked out, thank you- I just had to do some minor changes in the coding but everything is finished now. Just a question, if i were to use ffmpeg in python instead, would it work in the same way?

    • @devstefit
      @devstefit  Рік тому +1

      That's nice! Glad you solved it. What was the issue and what changes did you bring?
      FFmpeg is written in C and Assembly, so to use it in Python you need to compile it as library and then import (there are packages already available and ready to use) or use the process calling and invoke FFmpeg as an application. I will make a video about it. Stay tuned!

    • @anton2004a
      @anton2004a Рік тому +2

      ​@@devstefit I did only fixed an error with my code. I accedentaly wrote:
      PKG_CONFIG_PATH="../../installed/lib/pkgconfig" /configure
      Which as you see doesn't specify where "configure" is located. I think that was the problem, it might have been something else but it worked after some tinkering and following a guide linked in your previous video.
      Alright, I am currently making a discord bot and i want it to convert a youtube URL and output it through the discord.py built in voice_state command. But everytime i try to use FFMPEG i recieve the error "ffmpeg was not found". I am quite new to programming so my tinkering hasn't brought me much.

    • @devstefit
      @devstefit  Рік тому +1

      Wow, nice!
      Maybe the problem is given by the application which is not seen by the whole system, so it might be a problem of environment variables I guess