WTF FFMPEG

Discussion in 'Computer Software and Operating Systems' started by pasc, Jun 15, 2014.

  1. pasc
    OP

    pasc GBATemps official GBA Freak

    Member
    2,593
    145
    Sep 9, 2006
    Gambia, The
    Germany
    So, I call out to all FFmpeg veterans here.

    M goal is to burn the subtitles from a mkv file into a mp4 or alternatively m4v.

    My script looks like this.
    Code:
    set ffmpeg=C:\ffmpeg.exe
    ffmpeg -i input.mkv -an -vn -map 0:s:0 -c:s:0 srt subtitles.srt
    ffmpeg -i input.mkv -vcodec copy -acodec copy -absf aac_adtstoasc input.mp4
     
    ffmpeg -i input.mp4 -c:v copy -c:a copy -c:s mov_text -map 0 out.mp4

    Using the "ffmpeg -i input.mp4 -c:v copy -c:a copy -c:s mov_text -map 0 out.mp4"
    will return:
    Code:
    unknown encoder mov_text
    This alternative: "ffmpeg -i video.mkv -vf subtitles=video.mkv out.avi"
    outputs filter subtitles not found


    I'll add that I used FFmpegs latest Windows distribution straight from the FFMPEG website.
    (http://ffmpeg.zeranoe.com/builds/)

    Thanks for any help in advance.

    NOTE:
    Please DO NOT suggest using other software like Handbrake or whatever there is.
    I DO want to do with with FFMPEG.
     
  2. Jayro

    Jayro MediCat USB and Mini Windows 10 Developer

    Member
    GBAtemp Patron
    Jayro is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,962
    2,674
    Jul 23, 2012
    United States
    Octo Canyon
    Eventhough you don't want to use Handbrake, it DOES use FFMPEG as it's backend for the encoding... Handbrake is basically just a GUI for FFMPEG. So why not do it that way if the options are there for what you need? Any person reason you need to use the script/command line for this?
     
  3. pasc
    OP

    pasc GBATemps official GBA Freak

    Member
    2,593
    145
    Sep 9, 2006
    Gambia, The
    Germany
    You are right. Handbrake CLI is a treat.

    This thread can be closed.

    On another note.
    The matter was solved, but it IS weird that ffmpeg fails so hard by itself.
    There seems to be no version available that has mov_text or the filters built in.
     
    JayRo likes this.
  4. Jayro

    Jayro MediCat USB and Mini Windows 10 Developer

    Member
    GBAtemp Patron
    Jayro is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,962
    2,674
    Jul 23, 2012
    United States
    Octo Canyon
    Glad you were able to resolve this. :)