Convert M2TS to FLAC Online Free
Extract a chosen M2TS audio track and encode it as a lossless FLAC audio file.
- Add a file Choose or drop it here
- Pick the format Change it whenever needed
- Download the result After conversion completes
From Blu-ray packet transport to a FLAC bitstream
An M2TS file is the Blu-ray BDAV form of MPEG-2 Transport Stream, a multiplexed delivery container rather than a single audio codec. Its repeating physical record is 192 bytes: a four-byte BDAV arrival-time prefix followed by the familiar 188-byte transport packet whose first byte is normally the sync value 0x47. That distinction matters. A reader that moves in 188-byte steps from byte zero of a 192-byte M2TS stream loses packet alignment and cannot reliably discover the media it is supposed to extract.
Convert M2TS to FLAC when you need one selected soundtrack as a compact, lossless audio file for listening, cataloguing or editing. The process first removes the M2TS packetization, selects and decodes the chosen elementary audio stream, then losslessly encodes the decoded PCM samples as FLAC. The result does not contain the source video, subtitle streams, Blu-ray menu logic, chapters or the alternative audio tracks that may have existed in the original title.
Using programme tables to choose the audio PID
Transport-stream selection is a two-table operation. The Program Association Table, or PAT, maps programme numbers to the PID on which each programme's Program Map Table is sent. The PMT then describes that programme's elementary streams: it identifies stream types, their PIDs and often descriptors that distinguish language, codec or role. This is why one M2TS file can legitimately show a main mix, dubbed track, commentary and accessibility track without any single one being intrinsically “the audio.”
A sound extractor must follow the selected PMT entry and PID. It should not extract whichever packet happened to arrive first, and it must not treat video or subtitle PIDs as audio. For an unfamiliar disc, inspect track labels, language and channel layout before starting. If the produced FLAC is intelligible but has the wrong spoken language or commentary, decoding worked; the selected PID did not match your intent. Re-run using the correct PMT audio entry instead of trying to repair the finished FLAC.
Programme Clock Reference (PCR) values establish timing for a programme, while presentation timestamps (PTS) say when decoded access units should be presented. An interrupted download, edited recording or joined segment can reset that timeline. A robust converter recognizes a discontinuity and does not misread it as hours of audio to invent. After decode, FLAC stores ordered sample frames, not transport PIDs, PCR values or original PTS values; that is correct because those values coordinate a multiplex, not a standalone audio file.
FLAC structure after the source audio is decoded
A FLAC file begins with the four-byte marker fLaC, followed by metadata blocks and then encoded audio frames. The first metadata block must be STREAMINFO. It records whole-stream properties including minimum and maximum block size, minimum and maximum frame size, sample rate, channel count, bits per sample, total samples and a 128-bit MD5 value for the unencoded audio data. The MD5 describes decoded audio samples, not the original M2TS bytes, so it can help verify the resulting FLAC stream without proving that a particular Blu-ray container was used.
Each FLAC frame has a header, one subframe per channel, coded audio and integrity checks. The format can use fixed or linear-predictive coding and residual coding to represent the same PCM samples in fewer bits; this is lossless compression, not a bitrate-reduction compromise such as transcoding to a lossy codec. Metadata blocks after STREAMINFO can include padding, a seek table, Vorbis comments, a cuesheet or picture data. A player that understands FLAC can skip metadata block types it does not need and decode the audio frames.
The metadata-block header is four bytes long: one bit marks the final metadata block, seven bits identify its type and the next three bytes give its byte length in big-endian order. The required STREAMINFO block appears once and before audio frames. Its 20-bit sample-rate field, 3-bit channel-count-minus-one field and 5-bit bits-per-sample-minus-one field impose actual format limits; FLAC is not just a generic envelope for any arbitrary decoded audio. Frame headers also carry a sync code and an 8-bit CRC, while the frame footer has a CRC-16. Structural validation and the audio MD5 answer different questions, so both are useful during verification.
FLAC encodes channels as separate subframes within a frame rather than interleaving their encoded bits. Some stereo channel assignments can use left-side, right-side or mid-side representations when they reduce the amount of coded data. These choices are codec internals: a normal listener receives the same decoded channels. They do explain why a FLAC output's size may vary with source material even when sample rate, duration and bit depth do not.
M2TS source characteristics versus FLAC output properties
| Aspect | M2TS source | FLAC output |
|---|---|---|
| On-disk packet | 192-byte BDAV packet with four extra bytes before a 188-byte TS packet | Byte stream beginning with fLaC |
| Organisation | Programmes and PID-addressed elementary streams | One audio stream plus file-level metadata blocks |
| Discovery | PAT identifies PMT; PMT identifies selected audio PID | STREAMINFO is mandatory and first |
| Timing model | PCR/PTS synchronize a multiplex and may have discontinuities | Ordered sample frames and total-sample metadata |
| Compression | Depends on source audio codec; may be LPCM or compressed | Lossless coding of decoded PCM samples |
| Validation clue | Packet continuity and usable programme tables | Frame CRCs and STREAMINFO audio MD5 when supplied |
When lossless FLAC is the right extraction target
FLAC is a strong target for decoded PCM or losslessly decoded material when file size matters but you need the exact decoded sample values retained. Compared with an uncompressed WAV or AIFF copy, it commonly reduces storage without discarding sample detail. It is useful for an audio library, analysis workflow or a handoff to software that supports FLAC metadata and seeking. It is not a way to enhance a lossy soundtrack. If the selected M2TS track is already AC-3, DTS core or another lossy encoding, the FLAC preserves the decoded result faithfully but cannot recreate information removed by that original codec.
For a source that contains a lossless Blu-ray audio codec, decoding and re-encoding to FLAC is still a conversion of container and coding representation, not a packet copy. Preserve the original M2TS when you need disc-specific components or want to keep the original codec bitstream. Prefer extracting a different language as its own FLAC rather than combining unrelated tracks: channel assignments, sample rates and timing may differ, and a single FLAC should represent one coherent audio programme.
Metadata needs deliberate attention. FLAC supports Vorbis-comment metadata and can carry pictures, but those values are not a guaranteed one-to-one transcription of Blu-ray descriptors. Review title, language and track role after conversion rather than assuming a disc playlist, PMT descriptor or folder name became a music-library tag correctly.
Keep source and target expectations distinct. A FLAC player that supports a file's channel count and bit depth can decode the resulting audio, but it does not become a Blu-ray player and cannot interpret M2TS PIDs. Conversely, a Blu-ray authoring workflow commonly needs its original codec and container restrictions, not an arbitrary FLAC. For portable or browser playback, also check the actual destination application's support matrix; “lossless” says how samples are represented, not that every player accepts every FLAC configuration.
Verifying the extracted FLAC beyond simple playback
First confirm the intended programme and track by listening to the opening, an interior scene and the ending. Verify duration, sample rate and channel count against the selected source stream. A track that is clearly the wrong language, a commentary or a stereo downmix is evidence of selection or output policy, not a mysterious FLAC fault. Keep the source M2TS until those checks pass because the output cannot disclose the discarded stream map.
Then use a FLAC-aware analyser to inspect STREAMINFO. The declared total samples, channel count and bits per sample should make sense for the output; the MD5 field, when present, is calculated from unencoded audio and is useful for integrity checking. A valid container does not guarantee an intact input capture. Audible clicks, missing sections, a very long silence or an implausible duration often point to packet loss or PCR/PTS discontinuities in the source. Conversion software should not hide those conditions by manufacturing samples.
M2TS to FLAC conversion questions answered precisely
Does FLAC keep the video from my M2TS file?
No. This is an audio extraction. FLAC is an audio format and has no MPEG transport programme map, video PID or subtitle stream to retain.
Why do I need to select an audio track?
M2TS can carry multiple audio PIDs. PAT and PMT data identify them; selecting one determines which language, mix or commentary becomes the standalone FLAC.
Is M2TS-to-FLAC always lossless?
The FLAC encoding itself is lossless for the decoded PCM provided to it. It cannot make a previously lossy source codec lossless, nor can it repair missing source packets.
What does the FLAC MD5 check?
STREAMINFO can contain an MD5 signature of the unencoded output audio data. It helps detect an audio-data error even when the file's structural frame checks pass; it is not an MD5 of the M2TS container.
Why does the converted track have a timing gap?
The source may contain a segment boundary, corruption or PCR/PTS discontinuity. Review the original title or a complete playlist rather than assuming FLAC metadata can reconstruct a missing transport-stream timeline.
Can FLAC store track artwork or tags from a disc?
It can carry its own metadata blocks such as Vorbis comments and picture data, but a Blu-ray programme map is not automatically equivalent to those tags. Review and add library metadata intentionally after extraction.