Log in

View Full Version : ffmpeg: What does mpegts_m2ts_mode imply?


LigH
3rd February 2017, 10:00
From the ffmpeg formats documentation (https://www.ffmpeg.org/ffmpeg-formats.html):

mpegts_m2ts_mode number

Enable m2ts mode if set to 1. Default value is -1 which disables m2ts mode.

What does it do? Is it mainly the difference between 188 and 192 bytes per block (with or without timestamp)? Or is there anything else/more?

nevcairiel
3rd February 2017, 10:57
Thats most of it. It writes 192 byte TS packets and sets a few different flags in the PES headers for Blu-ray compatibility (although it should be noted that generated TS files even with that option are likely not full Blu-ray compliant, a more dedicated TS muxer would be more appropriate for that).

LigH
3rd February 2017, 13:15
The reason for this question was mainly another post where a user asked to batch-convert TS to M2TS because an application does not handle one type, only the other. The problem description is too vague for me to understand, but I guessed it may be caused by either the filename extension or the packet size. Either way, ffmpeg may be suitable to try it.