[Mp4-tech] Re: [MPEGIF Discuss] mpeg-j question

Vishy Swaminathan vishy sun.com
Mon Mar 8 17:27:38 EST 2004


Vidhya,
Here is an example of .bt files with MPEG-J content.
Enjoy,
Vishy
Mikael Bourges-Sevenier wrote:
> 
>  
> 
>     Hello,
>               I am Vidhya Balasubramanian, a Phd student. I have been
>     working on an MPEG-4 based implementation and I have some questions
>     regarding MPEG-J. I would be glad if you can provide me information
>     regarding this.
>             1. Using the open source MPEG-J api's at ISO , the mpeg-j
>     stream was only compiled using the bif enc and MUX. Hence the output
>     was a .trif file. Is there a way to directly generate a MP4 file
>     instead of a .trif file. I am not able to figure out how to do this.
>     [Mikaël Bourges-Sévenier] 
>     You should use mp4enc rather than mux. It will write Jar files into
>     the mp4 file format.
>      
>           2. If I use the .bt format and use the MP4 tool at ENST, how
>     do I include a java stream to the mpeg-4 stream.
>     [Mikaël Bourges-Sévenier] 
>     Convert .bt file format to IM1 file format. There are almost the
>     same for the scene description but the object descriptor section is
>     a bit different, see the examples for MPEG-J in Test/MPEG-J directory.
>     With IM1, you need 2 files: one for the scene description, which
>     would be used by BifsEnc and one file for object descriptor which is
>     used by mux or mp4enc (these files typically ends with .scr
>     extension). It is in the scr files that you describe MPEG-J stream,
>     see the samples in Test/MPEG-J directory.
>      
>     Kind regards,
>      
>     Mike 
>      
>     Thanks a lot
>     Regards
>     Vidhya
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Discuss mailing list
> Discuss lists.mpegif.org
> http://lists.mpegif.org/mailman/listinfo/discuss
> 
> Note: Conduct on the mailing list is subject to the Antitrust guidelines found at http://www.mpegif.org/public/documents/vault/mp-out-30042-Antitrust.php

-- 
-----------------------------------------------------
Viswanathan (Vishy) Swaminathan
Sun Microsystems Inc.
2600 Casey Avenue, MTV29-01
Mountain View, CA  94043
Tel:(650) 336-6014     Fax:(650) 691-0893
email:vishy sun.com, viswanathan.swaminathan sun.com
-----------------------------------------------------
-------------- next part --------------
Group { 
  children [
    Transform2D { 
      scale 1.0 1.0
      translation 0.0 0.0
      children [
	Sound2D { 
	  source AudioSource { 
	    url [ "3" ]
	    startTime 0.0
	    stopTime -1.0
	  }
	}
      ]
    }
    Transform2D { 
      translation 50.0 50.0
      children [
	Shape { 
	  appearance Appearance { 
	    material Material2D { 
	      emissiveColor 0.0 1.0 0.0
	    }
	  }
	  geometry Circle { 
	    radius 50.0
	  }
	}
      ]
    }
    Transform2D { 
      translation 0.0 0.0
      children [
	Shape { 
	  appearance Appearance { 
	    material Material2D { 
	      emissiveColor 1.0 0.0 1.0
	    }
	  }
	  geometry Circle { 
	    radius 50.0
	  }
	}
      ]
    }
    Transform2D { 
      translation -170.0 100.0
      children [
	Shape { 
	  geometry Text { 
	    string [ "Scene API Test" ]
	    fontStyle FontStyle { 
	      family [ "SERIF" ]
	      size 12.0
	      style "ITALIC"
	    }
	  }
	}
      ]
    }
  ]
}
InitialObjectDescriptor {
  objectDescriptorID 0
  ODProfileLevelIndication 1
  sceneProfileLevelIndication 1
  audioProfileLevelIndication 2
  visualProfileLevelIndication 1
  graphicsProfileLevelIndication 1
  includeInlineProfileLevelFlag false
  esdescr [
    ES_Descriptor {
      es_id 1
      streamPriority 5
      decConfigDescr DecoderConfigDescriptor {
	objectTypeIndication 0
	streamType 1
	upStream false
	bufferSizeDB 200
	maxBitrate 0
	avgBitrate 0
      }
      slConfigDescr SLConfigDescriptor {
      }
    }
    ES_Descriptor {
      es_id 2
      streamPriority 5
      decConfigDescr DecoderConfigDescriptor {
	objectTypeIndication 1
	streamType 3
	upStream false
	bufferSizeDB 1000
	maxBitrate 0
	avgBitrate 0
	decSpecificInfo BIFSConfig {
	  isCommandStream true
	  pixelMetrics true
	  pixelWidth 352
	  pixelHeight 288
	  nodeIDBits 10
	  routeIDBits 10
	}
      }
      slConfigDescr SLConfigDescriptor {
      }
    }
  ]
}
AT 0 {
UPDATE OD [
  ObjectDescriptor {
    objectDescriptorID 3
    esdescr [
      ES_Descriptor {
	es_id 2113
	streamPriority 4
	decConfigDescr DecoderConfigDescriptor {
	  objectTypeIndication 193
	  streamType 5
	  upStream false
	  bufferSizeDB 300
	  maxBitrate 0
	  avgBitrate 0
	  decSpecificInfo DecoderSpecificInfoString {
	    info "FOFBGCFOFLFEGDFEB GCGDGBFIFNFG"
	  }
	}
	slConfigDescr SLConfigDescriptor {
	}
      }
    ]
  }
  ObjectDescriptor {
    objectDescriptorID 4
    esdescr [
      ES_Descriptor {
	es_id 2132
	streamPriority 0
	decConfigDescr DecoderConfigDescriptor {
	  objectTypeIndication 194
	  streamType 9
	  upStream false
	  bufferSizeDB 10000
	  maxBitrate 0
	  avgBitrate 0
	}
	slConfigDescr SLConfigDescriptor {
	}
      }
    ]
  }
] # end UPDATE OD
}
-------------- next part --------------
InitialObjectDescriptor {
	ObjectDescriptorID	0
	ODProfileLevelIndication 1
	sceneProfileLevelIndication 1
	audioProfileLevelIndication 2
	visualProfileLevelIndication 1
	graphicsProfileLevelIndication 1
	esDescr [
		{
			ES_ID 1
			muxInfo {
				fileName sceneapitest.od
				streamFormat BIFS
			}
			streamPriority 5
			decConfigDescr {
				streamType 1		// OD Stream
				bufferSizeDB 200
			}
			slConfigDescr {
				useAccessUnitStartFlag TRUE
				useAccessUnitEndFlag TRUE
				useRandomAccessPointFlag TRUE
				useTimeStampsFlag TRUE
				timeStampResolution 1000
				timeStampLength 14
			}
		}
		{
			ES_ID 2
			muxInfo {
				fileName sceneapitest.bif
				streamFormat BIFS
			}
			streamPriority 5
			decConfigDescr {
				streamType 3		// BIFS Stream
				bufferSizeDB 1000
				decSpecificInfo BIFSConfig {
					nodeIDbits 10
					routeIDbits 10
					isCommandStream TRUE
					pixelMetric TRUE
					pixelWidth 352
					pixelHeight 288
				}
			}
			slConfigDescr {
				useAccessUnitStartFlag TRUE
				useAccessUnitEndFlag TRUE
				useRandomAccessPointFlag TRUE
				useTimeStampsFlag TRUE
				timeStampResolution 100
				timeStampLength 14
				//OCR_ES_Id 1
			}
		}
	]
}
{
	ObjectDescriptorID	3
	esDescr [
		{
			ES_ID 2113
			muxInfo
			{	
				fileName ..\audio\linda.g723
				streamFormat 	G723
				streamAttr	"5.3"
			}
			streamPriority 4
			decConfigDescr {
				streamType 5		// AudioStream
				objectTypeIndication	0xc1	// G723
				bufferSizeDB 300
				decSpecificInfo DecoderSpecificInfoString {
					info "obsolete string"
				}
			}
			slConfigDescr {
				timeStampResolution 1000
				compositionUnitDuration 30
				OCRResolution			1000
				OCRLength			24
			}
		}
	]
}
//{
//	ObjectDescriptorID	4
//	esDescr {
//		ES_ID 2114
//		muxInfo
//		{
//			fileName JSJ
//			streamFormat MPEGJ
//			streamAttr	"t.info"
//		}
//		decConfigDescr {
//			streamType 9		// MPEGJStream
//			objectTypeIndication	0xC2	// MPEGJ
//			bufferSizeDB 216000
//			decSpecificInfo DecoderSpecificInfoString {
//					info "obsolete string"
//				}
//		}
//		slConfigDescr {
//			useAccessUnitStartFlag TRUE
//			useAccessUnitEndFlag TRUE
//			useRandomAccessPointFlag TRUE
//			useTimeStampsFlag TRUE
//			timeStampResolution 1000
//			timeStampLength 10
//			packetSeqNumLength 3
//			AU_seqNumLength 8
//			//OCR_ES_Id 2113
//		}
//	}
//}
//
{
    objectDescriptorID 4
    esdescr [
      ES_Descriptor {
	es_id 2132
	//streamPriority 0
	muxInfo	muxInfo{
		fileName JSJ
		streamFormat MPEGJ
		//streamAttr	"IBMMpegjClock.nhnt"
		streamAttr	"t.info"
	}
	decConfigDescr DecoderConfigDescriptor {
	  objectTypeIndication 0xC2
	  streamType 9
	  upStream false
	  bufferSizeDB 216000
	  maxBitrate 0
	  avgBitrate 0
	}
	slConfigDescr SLConfigDescriptor {
	}
      }
    ]
}


More information about the Mp4-tech mailing list