Using FFMPEG for Video and Audio with Command Line

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

КОМЕНТАРІ • 27

  • @Photolearningism
    @Photolearningism  3 роки тому +1

    #FFMPEG also supports streaming! What features have you discovered and tried out?

  • @notsure7874
    @notsure7874 3 роки тому +2

    you can add that directory to the [path] environment variable, then you don't have to type out its full file path or be in its directory to run it. That's how commands like "dir" get found without a complete file path.

  • @berbel97
    @berbel97 3 роки тому +2

    Pro Tipp!
    Just write CMD into the path field and a command line starts in the directory

    • @Photolearningism
      @Photolearningism  3 роки тому

      Hi Valerie Albert! Thank you so much for watching and leaving a great comment! After seeing your comment, I did some playing around and found that this also works with "Powershell", "Python", and presumably any other tool mapped in paths. Thank you so much!

    • @berbel97
      @berbel97 3 роки тому

      @@Photolearningism you're welcome!
      I found it out by accident :)
      Haven't tried other programs yet, but will be soo useful. Espacilly python :D

  • @peterSobieraj
    @peterSobieraj Рік тому

    If you put ffmpeg.exe in C:\Windows\System32 or other directory in PATH then you won't need to cd. You will be able to call it from anywehre.

  • @optrader1948
    @optrader1948 3 роки тому

    Good vlog! Thanks! Well done! I often use FFMPEG and the commandline.

    • @Photolearningism
      @Photolearningism  3 роки тому

      Hi optrader1948! Thank you so much for watching and the kind words! I've been so impressed with the capabilities of #FFMpeg and can't wait to try out it's other tools! For curiosity, which #FFMpeg tools do you use most?

    • @optrader1948
      @optrader1948 3 роки тому

      @@Photolearningism I use FFMPEG to encode video, to produce jpg or png from video, apply a 3d lut, and seperate sound from video.

  • @akeljounesakel4001
    @akeljounesakel4001 2 роки тому

    Great video thanks for sharing. What about Video sizing and quality image on FFMEG do you know?
    Show less

  • @safajordan8012
    @safajordan8012 5 місяців тому

    How can we have it set to automatically play multiple live streams of pre recorded videos on specific times without our intervention?

    • @Photolearningism
      @Photolearningism  5 місяців тому

      Hi Safa! Thank you for the question! This appears to be (theoretically) possible using some pre-built commands - I found the following write-up which talks a bit about prepping a stream ahead of time - www.mux.com/blog/simulate-a-live-stream-of-a-video-playlist-with-ffmpeg . It seems feasible that multiple streams could be fired off using a job handler (such as Task Scheduler in Windows or crontab in Linux). Hope that helps!

    • @safajordan8012
      @safajordan8012 5 місяців тому

      @@Photolearningism Thank you!
      I am also trying to figure out a way to have 2 live streams on the same channel at the same time. Is there a way to let the same stream key work for both? Or to generate a new one while still having the first one active?

  • @anch95
    @anch95 3 роки тому +1

    I don't understand why something like ffmpeg isn't built-in to programs? Is there any utility for this to use commands instead of a GUI?

    • @Blaqw00D
      @Blaqw00D 3 роки тому

      kinda defeats the purpose tho
      When i record using obs it is slower compared to pure ffmpeg in the terminal
      so if you have a really crappy computer like me
      then stick to the terminal

    • @IndellableHatesHandles
      @IndellableHatesHandles 2 роки тому

      @@Blaqw00D AFAIK, OBS can do more. It's pretty easy to enlarge a part of the screen in OBS, like an FPS counter or a piece of text, for example. You can technically do this in a video editor, but if you want the recorded file to be smaller or use less resources, lowering the resolution of the video will make the enlarged part lower-quality too. ffmpeg would still be good for re-encoding backups of your videos to be smaller, but recording video for many creators is much more robust in OBS.

  • @IndellableHatesHandles
    @IndellableHatesHandles 2 роки тому

    I want to build a computer for only ffmpeg and Kdenlive. Sounds stupid, but I want to commit to UA-cam full-time, and it gets annoying having to stop my gaming when I want to encode or render.

  • @brtutorials2354
    @brtutorials2354 2 роки тому

    Incredible Video. I Have Ffmpeg In My Android. I Have A 5.1 Video I Need To Extract the 6 Wav Files Out Of It. Could You Help Me Getting Those Wav Files? Thanks

  • @pompom2631
    @pompom2631 3 роки тому

    i am trying to stream the rtsp url from my friend ' s ip camera ,* who lives in other state * , he sent me his rtsp url of his ip camera but the ffmpeg command got frozen and does not move on to generate the m3u8 file when i run ffmpeg command with rtsp url from my friend ,however when i run ffmpeg command with my * local * rtsp url in my house 's ip camera , it successfully will be able to generate the m3u8 file ,i already successfully tested streaming with vlc player , i could watch the ip camera 's live streaming video from vlc player with rtsp url from my friend ,that he sent me his rtsp url from other stateso with vlc player , it worked but with ffmpeg command , it was failed to generate m3u8 file from my friend 's rtsp url
    do you have an idea to fix it with running ffmpeg command with rtsp url that have public ip address as my case ?

  • @chrisford7351
    @chrisford7351 3 роки тому

    Go to ebay. Order a $5 usb sound card. Re-run discovery to get your devices and make a test batch file. Most people will just move on- but for a $5 fix its awesome.

  • @bleu340
    @bleu340 Рік тому

    I don't know how to use ffmpeg, I tried to extract the audio from an MP4 VIDEO in this way ---> C:\Users\Bleu>cd "C:\FFmpeg\bin\ffmpeg.exe" -i "C:\Users\Bleu\Desktop\edge.mp4" -vn edge.AAC
    I also tried this ---> C:\Users\Bleu>cd "C:\FFmpeg\bin\ffmpeg.exe" -i "C:\Users\Bleu\Desktop\edge.mp4" -vn "C:\Users\Bleu\Desktop\edge.aac"
    This is the automatic command for the program already installed on windows: ffmpeg -i edge.mp4 -vn edge.aac
    I hope you can help me by correcting me!
    I try to do it manually with the command line, because that way anyone can see and repeat the process that the FFmpeg program follows, without the need to put the file inside the same FFmpeg or without the need to have the program installed, to be able to do it freely.

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

      Hi Bleu! Thank you for the question! I ran a test and verified that the following command should work.
      ffmpeg -i "Videos/RECORDINGS/2022-10-04 09-56-26.mp4" "Videos/RECORDINGS/test-output.mp3"
      ***For use on Windows (observiing your path to ffmpeg and files) the command would look like this:
      [RUN EACH LINE SEPARATELY or in a batch file]
      cd "C:\FFmpeg\bin\ffmpeg.exe"
      ffmpeg -i "C:\Users\Bleu\Desktop\edge.mp4" "C:\Users\Bleu\Desktop\edge.aac"
      Hope this helps!

    • @bleu340
      @bleu340 Рік тому

      ¡Ty!

  • @rongzedu2135
    @rongzedu2135 3 роки тому

    I don't understand what you are saying , I Don't Understand ENGLISH,
    Why do Americans speak English so fast

    • @rongzedu2135
      @rongzedu2135 3 роки тому

      I can understand simple English, but I can't understand complex sentences. Thank you for the video tutorial

    • @StephenJWalter
      @StephenJWalter 3 роки тому +4

      UA-cam allows you to change the playback speed. Change down to say .75 speed might help you.

    • @IndellableHatesHandles
      @IndellableHatesHandles 2 роки тому

      @@hepta5040I also find that with certain languages, changing the tempo (what YT does) without changing the pitch can make it even harder to understand. I found this out the hard way during a listening assignment.