[FFmpeg-devel] [PATCH] recognize .mts as MPEG Transport Stream (encoding)

Michael Niedermayer michaelni at gmx.at
Thu Dec 8 18:37:17 CET 2011


On Thu, Dec 08, 2011 at 03:16:48PM +0100, jb wrote:
> Hi.
> 
> Currently, many consumer camcorder produce mpegts files with the .mts 
> extension. FFmpeg does not recognize this extension when encoding.
> 
> For example if you want to extract the first 30 seconds of a clip:
> 
> ffmpeg -i 0001.mts -acodec copy -vcodec copy -t 00:00:30 result.mts
> 
> fails with:
> 
> [NULL @ 0x8fb2f80] Unable to find a suitable output format for 'result.mts'
> 
> We need to explicitly add the format with -f mpegts. The patch below fixes the 
> problem.
> 
> Regards

applied, thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111208/19b2fff1/attachment.asc>


More information about the ffmpeg-devel mailing list