Activity › Forums › Compression Techniques › Convert .ts to .avi
-
Convert .ts to .avi
Posted by Luiz guilherme Louro on September 22, 2011 at 12:56 pmI need to convert a video in .ts to .avi, anyone knows how to do it with ffmpeg?
Luiz guilherme Louro replied 14 years, 10 months ago 2 Members · 5 Replies -
5 Replies
-
Michael Rampe
September 22, 2011 at 8:39 pm[Luiz Guilherme Louro] “I need to convert a video in .ts to .avi, anyone knows how to do it with ffmpeg?
“Depends what you wish to do with it and what your source is…..
For source: post results from $ ffmpeg -i file.ts
What codecs do you want for your avi? Is there audio involved as well?
More information needed.Michael
-
Luiz guilherme Louro
September 23, 2011 at 12:19 amMichael,
The .ts file is from a record of Digital TV.
results from $ ffmpeg -i file.ts :
Can be in anyone codec that decrease the size of the video.
The output must have one audio track.
The format can be in .mkv instead .aviLuiz
-
Michael Rampe
September 23, 2011 at 12:53 amseeing that the footage is already H.264 and AAC, you could simply repack the media into a different container.
$ ffmpeg -i input.ts -vcodec copy -acodec copy output.mkv
But this will not make it smaller…..
The reduce the size as well, try:
$ ffmpeg -i input.ts -vcodec libx264 -preset slow -b 5000k -acodec libfaac -ab 192k output.mkv
This should make it about a third of the size of the original which reports at around 15000k.
Michael
-
Luiz guilherme Louro
September 24, 2011 at 1:57 amMichael,
The output file is getting longer than the video input (duration in seconds). The audio is ok, but the video is slow.
When I use -vcodec copy I have the normal video in other format, but when I use the libx264, the video slows down.
Do you know any solution?Luiz
-
Luiz guilherme Louro
September 30, 2011 at 11:21 amThe program called Mencoder can be used to convert videos too. Anybody knows how I can convert .ts videos?
Reply to this Discussion! Login or Sign Up