Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: jopado on December 12, 2017, 08:27:13 PM

Title: Extract a clip from mpeg transport stream
Post by: jopado on December 12, 2017, 08:27:13 PM
I have an mpeg transport stream file and want to simply extract a short clip from it. I select copy/copy for video/audio and output format is mpeg ts muxer.  The video extracts fine. My input TS has additional PID's along with the h264 video and I need those PIDs in the generated output file.  Is this possible??? If so how to do it.  I am running version 2.7.0
Title: Re: Extract a clip from mpeg transport stream
Post by: eumagga0x2a on December 13, 2017, 12:26:14 PM
What do those PIDs contain? Avidemux doesn't support anything but a single video stream and up to 4 audio tracks. E.g. subtitles are not supported. To keep subtitles use ffmpeg.
Title: Re: Extract a clip from mpeg transport stream
Post by: jopado on December 13, 2017, 05:03:15 PM
Thank you for the info. The other pid's contain text data containing location information.  I have the ffmpeg command that does what I want but want it integrated with a GUI frontend for selecting start/stop points. Also do no want to re-encode/transcode.  Most tools I have seen force  you to re-encode/transcode. If you know of one that does this please let me know.  Otherwise I will try to update avidemux source to do what I need.  Thanks again.
Title: Re: Extract a clip from mpeg transport stream
Post by: eumagga0x2a on December 13, 2017, 05:32:20 PM
Quote from: jopado on December 13, 2017, 05:03:15 PM
Otherwise I will try to update avidemux source to do what I need.

Unless you contribute this functionality to Avidemux (which would be absolutely great), I have to disappoint you because nothing has changed since the release 2.7.0 WRT handling of subtitles and other types of data beyond the already mentioned single video stream + 4 audio tracks.
Title: Re: Extract a clip from mpeg transport stream
Post by: Jan Gruuthuse on December 14, 2017, 06:01:53 AM
Quote from: jopado on December 13, 2017, 05:03:15 PM
>8 >8  I have the ffmpeg command that does what I want but want it integrated with a GUI frontend for selecting start/stop points. Also do no want to re-encode/transcode.

You could forward the ffmpeg command in the forum or to the developer(s) by pm.
- Perhaps the developer(s) have an idea how to and can put you on the road.
- Or one of the users with advanced scripting knowledge has away round.

Code contributions are always welcome on https://github.com/mean00/avidemux2