M2TS2TS(1)
π
M2TS2TS(1) β the girlies' guide to converting .m2ts to .ts π
okay so bestie, you've got a BDAV MPEG-2 Transport Stream file and you want it to be an ordinary TS file? say less. m2ts2ts is literally the girl for the job. it's a General Commands Manual situation, and we're gonna walk through it together, no cap. π
β¨ SYNOPSIS β¨
m2ts2ts [-err stdout] [-err stderr] [-verbose | -v] [-quiet | -q]
[-buffer buf_pkts | -b buf_pkts] in_file | -stdin out_file |
-stdout
like, that's the whole vibe check right there. π
πΈ DESCRIPTION πΈ
okay so here's the tea: m2ts2ts converts BDAV MPEG-2 Transport Stream file (M2TS) into an 'ordinary' TS file. that's it, that's the whole main character moment. one format in, one format out, slay. β¨
π Files π
in_fileβ this is your BDAV MPEG-2 Transport Stream file (M2TS). but wait, plot twist β see-stdindown below, because sometimes the input is coming from somewhere else entirely. πout_fileβ this is your H.222 Transport Stream file. but also, plot twist again β see-stdoutbelow, because sometimes the output goes somewhere else. π
π General switches π
these are the little toggles that change how the whole thing behaves. obsessed.
-err stdoutβ write error messages to standard output. this is the default, so if you don't say anything, this is what you get. π-err stderrβ write error messages to standard error. this is the Unix traditional way, iykyk. β¨-v,-verboseβ output extra information. she's chatty, she's giving you the details, we love that for her. π¬-q,-quietβ only output error messages. she's in her mysterious era, minimal talking, just the important stuff. π€«-stdinβ input from standard input instead of a file. noin_fileneeded, she's reading from the stream. π¦-stdoutβ output to standard output instead of a file. > heads up bestie: this one forces-quietand-err stderr. it's not a suggestion, it's just what happens. π-bbuf_pkts,-bufferbuf_pkts β the number of TS packets to buffer for reordering. the default is4. that's how many lil packets she's holding onto before reordering them, periodt. π
π SEE ALSO π
and that's the whole page, babe. this one's from Debian, dated October 28, 2015 β so she's an elder icon but she still ate. π«Ά go convert something, you got this. π
π¦ where this page comes from
- debian bookworm: tstools 1.13~git20151030-6 Β· MPL-1.1
- debian trixie: tstools 1.13~git20151030-6 Β· MPL-1.1
- ubuntu jammy: tstools 1.13~git20151030-5 Β· MPL-1.1
- ubuntu noble: tstools 1.13~git20151030-6 Β· MPL-1.1
- ubuntu questing: tstools 1.13~git20151030-7
- ubuntu resolute: tstools 1.13~git20151030-7build1 Β· MPL-1.1
- ubuntu stonking: tstools 1.13~git20151030-8 Β· MPL-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms