WTF FFMPEG

  • Thread starter pasc
  • Start date
  • Views 1,336
  • Replies 3
P

pasc

Guest
OP
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.
 

Jayro

MediCat USB Dev
Developer
Joined
Jul 23, 2012
Messages
13,063
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,257
Country
United States
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?
 
P

pasc

Guest
OP
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.
 
  • Like
Reactions: JayRo

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if that was the point of game streaming
  • Psionic Roshambo @ Psionic Roshambo:
    But it's a dead end
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, people who cant download it can still play the game
  • BigOnYa @ BigOnYa:
    If your internet speeds are fast enough. Streaming 4k takes alot. I used to only have 20mb sec, and 4k struggled. Now I have 300mb sec and 4k plays fine.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i only have like 1 or 2 mb sec
  • BigOnYa @ BigOnYa:
    Did you feed the hamster in your internet router? It prob died and is running slow now.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why did you start saying my pc has a hamster in the first place?
    +1
  • BigOnYa @ BigOnYa:
    Its actua!ly just a old joke, meaning its slow. Was just kidding around with you.
    +1
  • BigOnYa @ BigOnYa:
    I bet @AncientBoi has some hamsters hidden somewhere tho....
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I think Game streaming should work like this.... Local Hardware able the run the game fine, game engine and common assets stored locally, all FMV and music and textures could be streaming
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Some temporary storage
  • Xdqwerty @ Xdqwerty:
    also @BigOnYa im making some progress on my gdevelop project, implemented various mechanics
  • Psionic Roshambo @ Psionic Roshambo:
    They went all in on streaming, should have been more of a hybrid approach
    +1
  • BigOnYa @ BigOnYa:
    Or free government supplied high speed internet be nice also. Like Obama care. Xdqwerty that's cool, its time consuming but rewarding once done or playable, to see what you've made from scratch. Animations take forever, but worth it.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, although the bullets are a bit buggy
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not to mention this would be a massive pain to pirate
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    and the visual aspect of the game is quite crude (the sprite that looks best is that of the protagonist just because he is a stickman with sunglasses)
    +1
  • BigOnYa @ BigOnYa:
    There is a bullets behaviour you assign to your character, that makes the code easier, under "behaviours"
  • Xdqwerty @ Xdqwerty:
    i meant that when the character is pointing to the right, the bullets spawn where they should, but when he is on the right, they move to the right but the spawn point is incorrect
  • BigOnYa @ BigOnYa:
    Itch.io has lots of free assets also. Under the bullets behavior tab, there is a "rotate bullets" option, can try that. Or in the code can try
    - fire bullet Player.X(PlayerDirection)
  • Xdqwerty @ Xdqwerty:
    im taking a break for today anyway
    +1
  • BigOnYa @ BigOnYa:
    YEa gotta after a while, looking at code for long periods will bug your eyes.
    +1
  • BigOnYa @ BigOnYa:
    That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to learn, but fun once you get the hang of it. I think I've watched every tutorial video there is, but I still struggle sometimes to get stuff to work right. But gotta keep trying dif things, and eventually you will get it right.
    +1
    BigOnYa @ BigOnYa: That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to... +1