Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I have some .ts files, taken from HTPC, and I need to edit the adverts out. Is there any Linux software that could do not only correct any errors ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2012
    Posts
    7

    Video Editing Software Advice


    Hello,

    I have some .ts files, taken from HTPC, and I need to edit the adverts out.

    Is there any Linux software that could do not only correct any errors in the streams but is frame accurate and preserves the subtitles?

    Thanks v much.

  2. #2
    Linux Enthusiast
    Join Date
    Dec 2011
    Location
    Turtle Island West
    Posts
    520
    Although I'm not sure what a .ts file is, there are many utilities out there to slice and dice video. The main problems are:

    1. Keeping the audio synchronized properly. Audio and video are in separate streams and need to be edited identically. This is very difficult to accomplish, in my experience. If you don't care about the audio stream, the job becomes much easier. Mplayer can dump the audio stream to a file and convert the entire video stream into individual jpgs. Pick the ones you want to keep, and then re-join them into a video stream. Edit the audio track with audacity or something, multiplex it back with the video with mplex. Much easier said than done correctly.

    2. Getting subtitles to pop up at the correct time is finicky at best. They can be extracted and edited easily.

    3. The massive amount of computing power required to edit anything larger than a few MB without maxxing your PC right out on each edit operation. I tried one program ('Lives') and it had my box flat to the metal the whole time, I never did get anything worthwhile accomplished. But you could try it out. It might be easier to use mpgsplit to chop the video chunk into small pieces and try editing them individually.

    Some tools that come to mind:

    mplayer
    transcode
    ffmpeg
    mjpegtools
    lives
    vobdec
    audacity
    gnusound
    snd
    wavetools
    lame
    and, of course, the myriad libraries that these tools require.

    Good luck and Merry Christmas.

  3. #3
    Linux User peteh's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    341
    Hi there.

    Avidemux does what you want with most formats (I'm not sure about *.ts).
    Also Projectx splits the video, sound and subtitles which you can then put back together with mplex (commandline) with appropriate offsets to ensure everything lines up.
    Last edited by peteh; 12-24-2012 at 08:35 AM. Reason: to add further detail
    Pete

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •