gpac / gpac

GPAC Ultramedia OSS for Video Streaming & Next-Gen Multimedia Transcoding, Packaging & Delivery
https://gpac.io
GNU Lesser General Public License v2.1
2.76k stars 532 forks source link

Syntax not valid issue. #2160

Closed Faiz786-Hp-rgb closed 2 years ago

Faiz786-Hp-rgb commented 2 years ago

I am trying to do tiling using this command.

MP4Box -dash 1000 [other dash params] source.mp4:desc_as=<SupplementalProperty schemeIdUri=\"urn:mpeg:dash:srd:2014\" value=\"0,0,1,1,1,2,2\"/>

but this is showing a syntax error every time I implement this. Different other params were also tried but every time the same issue persist. I have also attached my version of the GPAC. version 2.0. if some help can be provided that would be really appreciated.

image image
rbouqueau commented 2 years ago

That's because you need to escape special characters, see https://stackoverflow.com/questions/10296162/escaping-special-characters-in-cmd. The simplest in your case would be to use some single quote around the desc_as= value.

Faiz786-Hp-rgb commented 2 years ago

I did try to escape the special characters but it is not making the tiling it just creates a dash file and a nonplayable MPD file. while executing it gives that certain arguments are not defined which are not understandable to me.

image
rbouqueau commented 2 years ago

I think the error message is pretty clear. Try this instead (to fix the escaping):

MP4Box -dash 1000 [other dash params] source.mp4:desc_as='<SupplementalProperty schemeIdUri="urn:mpeg:dash:srd:2014" value="0,0,1,1,1,2,2"/>'
jeanlf commented 2 years ago

Indeed, the presence of ':' in the XML was not properly checked. Now fixed, thanks for the report