Announcement

Collapse
No announcement yet.

FFMPEG and codes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • FFMPEG and codes

    Download for windows:

    https://ffmpeg.zeranoe.com/builds/

    Choose:
    Version: 3.4.1 (latest version today)
    Architecture: Windows 32 or 64bit
    Linking: Static
    --> and use the Download Built link.
    extract the file, and you will find ffmpeg in the bin directory

    In Windows Explorer go to a directory with the file you want to convert (copy the ffmpeg file to that directory also!), hold SHIFT down and right click in the area where the file is located -> command prompt
    https://youtu.be/9NX_TT37rLI?t=26s

    If you have the black command window, now you can use one of the codes below, or find your own code depending on what you want to do with the file(s).



    BATCH extract 5 channel audio
    FOR /F "tokens=*" %G IN ('dir /b *.*') DO ffmpeg -i "%G" -vn -ar 48000 -map 0:a:0 "%~nG0.wav" -map 0:a:1 "%~nG1.wav" -map 0:a:2 "%~nG2.wav" -map 0:a:3 "%~nG3.wav" -map 0:a:4 "%~nG4.wav"
    BATCH Audio conversion to WAV
    FOR /F "tokens=*" %G IN ('dir /b *.*') DO ffmpeg -i "%G" -vn -ar 48000

    FOR /F "tokens=*" %G IN ('dir /b *.*') DO ffmpeg -i "%G" -vn -ar 44100
    * NON-BATCH Conversion: remove the [FOR /F "tokens=*" %G IN ('dir /b *.*') DO] - part

    Rotate
    ffmpeg -i input.mp4 -vcodec libx264 -preset medium -crf 24 -threads 0 -vf transpose=1 -acodec copy output.mkv
    Streaming from a website with a *.m3u8 link
    ffmpeg -i "http://webriplink.m3u8" -c copy output.mp4
    * output.mp4 or output.ts
    Magnús: - I have fans of all ages and I don't think it's weird when older people like LazyTown. LazyTown appeals to people for many different reasons: dancing, acrobatics, etc.

  • #2
    FFMPEG and codes

    For stream episodes?

    Comment


    • #3
      FFMPEG and codes

      For streamed episodes or any other episode, to extract the different audio languages, and more codes.

      This is for back-up codes, and I add more later.
      Magnús: - I have fans of all ages and I don't think it's weird when older people like LazyTown. LazyTown appeals to people for many different reasons: dancing, acrobatics, etc.

      Comment


      • #4
        FFMPEG and codes

        conversion from FR25 to FR23.976

        Single VIDEO file
        ffmpeg -i FILE.XX -b:v 5M -r 23.976 -filter:v "setpts=1.0427*PTS" -c:v libx264 FILE.YY
        i.e. FILE.XX = S4E12.ts and FILE.YY = S4E12.mp4 ,
        or FILE.XX = S4E12.mp4 and FILE.YY = S4E12_FR23.976.mp4
        etc.

        Multiple VIDEO files in folder:
        FOR /F "tokens=*" %G IN ('dir /b *.mp4') DO ffmpeg -i "%G" -b:v 5M -r 23.976 -filter:v "setpts=1.0427*PTS" -c:v libx264 "%~nG .mp4"
        You can:
        [change the .mp4 input and output file extension]
        [change the 5M bitrate if you want lower (low bitrate) or higher (high bitrate) quality]
        [change the libx264 encoder] (not recommend)
        [remove the space in "%~nG .mp4" if you use another extension as output file]


        Single AUDIO file
        ffmpeg -i input_FR25.mp4 -filter:a "atempo=0.959" -vn output_FR23976x.mp4
        * works with *.wav files too.
        * audio quality is worse because of hick-ups, so it's not recommended to do this and you better use the original FR23.976 audio if available.

        Audio from FR23.976 > FR25
        (wav file, and batch processing)
        FOR /F "tokens=*" %G IN ('dir /b *.wav') DO ffmpeg -i "%G" -filter:a "atempo=1.0427" -vn "%~nG .wav"
        Magnús: - I have fans of all ages and I don't think it's weird when older people like LazyTown. LazyTown appeals to people for many different reasons: dancing, acrobatics, etc.

        Comment


        • #5
          Re: FFMPEG and codes

          WinFF is a converter that uses the FFMPEG engine but has a nice GUI. It can convert all audio and video files to everything you want, it has built in presets and you can change or add codes if you want.
          Remember that it converts files to another format. If you don't want that for your video files, you better use the remuxers.
          For audio files it's a great tool (like flac to wav, or mp3 to wav etc.)
          Free to use.

          http://www.biggmatt.com/winff/

          Click image for larger version

Name:	winff-1.5-windows-screenshot.jpg
Views:	1
Size:	25.5 KB
ID:	150100
          Magnús: - I have fans of all ages and I don't think it's weird when older people like LazyTown. LazyTown appeals to people for many different reasons: dancing, acrobatics, etc.

          Comment


          • #6
            Re: FFMPEG and codes

            there are plenty online services that do the same...this one e.g.

            https://www.files-conversion.com/
            Gallery

            Comment


            • #7
              Re: FFMPEG and codes

              Originally posted by Buzz View Post
              there are plenty online services that do the same...this one e.g.

              https://www.files-conversion.com/
              only if you're a noob

              it's seriously drama to convert every single file one by one
              uploading 1.5GB files takes forever and later, you need to download the file.. I've converted 100 files local instead of waiting for 1 file finally converted online
              there's probably an upload limit
              there is no option for multiple channel extraction
              no bitrate
              where is the framerate converter?
              what's the engine used? x264 or..?
              etc.

              Conclusion: trash :flush:
              Magnús: - I have fans of all ages and I don't think it's weird when older people like LazyTown. LazyTown appeals to people for many different reasons: dancing, acrobatics, etc.

              Comment

              Working...
              X