Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques Convert .ts to .avi

  • 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 am

    Michael,

    The .ts file is from a record of Digital TV.

    results from $ ffmpeg -i file.ts :

    printscreen.png

    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 .avi

    Luiz

  • Michael Rampe

    September 23, 2011 at 12:53 am

    seeing 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 am

    Michael,

    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 am

    The program called Mencoder can be used to convert videos too. Anybody knows how I can convert .ts videos?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy