rbouqueau / gpac

GPAC mirror from the SourceForge Subversion
GNU Lesser General Public License v2.1
0 stars 1 forks source link

[Bug] Add suboption to -dash to use separate moof/mdat fragments for each track [sf#323] #323

Closed rbouqueau closed 10 years ago

rbouqueau commented 10 years ago

Reported by slade2452 on 2014-07-25 00:38 UTC The current MP4Box behavior when generating fragmented DASH output is for each MOOF/MDAT pair to contain data for all tracks.

(Example command line: mp4box -dash 2000 -rap -frag-rap -single-segment -single-file -profile ondemand -add video.mp4 -add audio.mp4 output.mp4)

The CFF and PIFF specs require that each MOOF contain only a single TRAF. For multi-track files, this means interleaved fragments (e.g. Track 1 MOOF/MDAT, Track 2 MOOF/MDAT, Track 1 MOOF/MDAT, ...).

An advanced option to force this behavior (or other CFF compliance) should be available. FYI, ffmpeg has a similar flag (-movflags separate_moof), but their muxer is too buggy to be useful.

rbouqueau commented 10 years ago

Commented by jeanlf on 2014-07-31 13:43 UTC Although not really a bug, it's a good suggestion. This should now be available on SVN (-single-traf switch), rev 5325

rbouqueau commented 10 years ago

Commented by slade2452 on 2014-08-05 18:59 UTC I gave it a shot with the latest nightly build. The new parameter seems to conflict with use of the -profile OnDemand and -single-segment arguments (attempting to use either results in "Error DASHing file: Bad Parameter").

From my reading of the DASH spec, I don't see any reason they should conflict.

rbouqueau commented 10 years ago

Updated by jeanlf on 2014-08-06 13:23 UTC

rbouqueau commented 10 years ago

Commented by jeanlf on 2014-08-06 13:23 UTC now fixed on SVN

rbouqueau commented 10 years ago

Commented by slade2452 on 2014-08-06 18:17 UTC Awesome! Thanks for the quick turnaround.