jayarjo
jayarjo

Reputation: 16716

Split mp3 into independently playable pieces that can be stitched back if required

I would like to stream an mp3. However decoding it on a sending party will eat up the bandwidth. Is it possible to retain compressed format and still be able to slice it into independently playable chunks? Then I could send them out one by one and queue up and/or stitch it back on a receiving party. From what I've heard mp3 specifically (not sure about other formats) should allow something like this by specification.

It is also highly probable that I'm fundamentally misunderstanding something about audio playback in general. Please advice.

Upvotes: 1

Views: 675

Answers (1)

mail2subhajit
mail2subhajit

Reputation: 1150

Please check the RTP specification for the mp3 streaming

https://www.rfc-editor.org/rfc/rfc5219

the same concept of chunks and frame has been taken care in the specification.

you can use the mp3 encoded data from the mp3 file, pack them using the rtp specification and do unpack rtp and then combine/write them into mp3 file.

Upvotes: 1

Related Questions