What does ffmpeg *actually* do?
That particular command simply tells ffmpeg to take in a file and output another file, leaving everything else to "default" / "do the best you can"
-i tells the next parameter/argument is the input file name
the last parameter/argument is assumed to be output file name, unless somewhere else in the list you have something like -o or --output or whatever the explicit switch is for ffmpeg to consider what's after as the output file name.
Since you don't specify what video codec or what audio codec is to be used, ffmpeg will guess what codecs would be compatible and usable based on the extension of the output file name (for example, if the extension was .mp3 ffmpeg can determine from that you want an audio only output, and that only mpeg 1 level 3 audio codec can be used within the mp3 container specified by the mp3 extension.
IF the video and audio codec of the ts file are compatible with the mp4 container, ffmpeg may default to copying the audio and video streams without processing. Basically, it's a "re-mux" to mp4.
If they can't be simply copied over, ffmpeg will probably pick a default codec like h264 for video, or AAC for audio.
You can explicitly say to copy a video track or audio track with a parameter, something like -vcodec copy or -acodec copy (not sure these are the exact parameter names) and it will do it if it's possible.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now