| Author | Message | 
		
	        
			    
			        | sue 
					        
						         
						    
							    Board User
						     Joined: Sun Feb 19, 2006 4:55 am Posts: 7
				         
   | 
						    
								|    Posted: Thu Apr 20, 2006 11:06 am  |  |  
						    
				                | 
					                    
						                    | I want to wrap a jp2 file, but it appears as follows:
 "ERROR:XML FATAL ERROR:Failed to load dictionary "dict.xml"
 
 ERROR:Orthodox dictionary failed to load"
 
 I don't know why.
 
 I have changed the code at Line 568 of esp_jp2k.cpp according to what you say.
 
 |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			    
			        | Matt Beard 
					        
						         
						    
							    Insider
						     Joined: Thu Apr 15, 2004 10:39 am Posts: 198 Location: Scotland
				         
   | 
						    
								|    Posted: Thu Apr 20, 2006 12:21 pm  |  |  
						    
				                | 
					                    
						                    | That simply means that the dictionary file failed to load - under windows it will look in the current working directory for dict.xml, under Linux it will look in the directory /usr/local/share/mxflib.
 In all cases the directory can be overridden by setting the MXFLIB_DATA_DIR environment variable.
 
 |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			    
			        | sue 
					        
						         
						    
							    Board User
						     Joined: Sun Feb 19, 2006 4:55 am Posts: 7
				         
   | 
						    
								|    Posted: Fri Apr 21, 2006 4:43 am  |  |  
						    
				                | 
					                    
						                    | Thank you,
I have load the file "dict.xml".
 but new errors appears:
 "
 mxflib file wrapper
 
 kagsize=1
 
 input file=1.jp2
 output file=1.mxf
 
 output op=op1a
 ERROR:NO BODY!
 .......
 .......
 ERROR:NO BODY!
 ERROR:Metadata Object "Preface/InstanceUID" should be a reference
 target <a UUID>,but has size 0
 ERROR:Metadata Object "TimecodeComponent/InstanceUID" should be a
 reference target <a UUID>,but has size 0
 ERROR:Metadata Object "Sequence/InstanceUID" should be a reference
 target <a UUID>,but has size 0
 ERROR:Metadata Object "Track/InstanceUID" should be a reference target <a UUID>,but has size 0
 ERROR:Metadata Object "SourceClip/InstanceUID" should be a reference
 target <a UUID>,but has size 0
 ERROR:Metadata Object "Sequence/InstanceUID" should be a reference
 target <a UUID>,but has size 0
 ERROR:Metadata Object "Track/InstanceUID" should be a reference target <a UUID>,but has size 0
 ERROR:Metadata Object "MaterialPackage/InstanceUID" should be a
 reference target <a UUID>,but has size 0
 ERROR:Metadata Object "TimecodeComponent/InstanceUID" should be a
 reference target <a UUID>,but has size 0
 ERROR:Metadata Object "Sequence/InstanceUID" should be a reference
 target <a UUID>,but has size 0
 ERROR:Metadata Object "Track/InstanceUID" should be a reference target <a UUID>,but has size 0
 ERROR:Metadata Object "SourceClip/InstanceUID" should be a reference
 target <a UUID>,but has size 0
 ERROR:Metadata Object "Sequence/InstanceUID" should be a reference
 target <a UUID>,but has size 0
 ERROR:Metadata Object "Track/InstanceUID" should be a reference target <a UUID>,but has size 0
 ERROR:Metadata Object "SourcePackage/InstanceUID" should be a reference target <a UUID>,but has size 0
 ERROR:Metadata Object "JPEG2000PictureSubDescriptor/InstanceUID" should be a reference target <a UUID>,but has size 0
 ERROR:Metadata Object "RGBAEssenceDescriptor/InstanceUID" should be a reference target <a UUID>,but has size 0
 ERROR:Metadata Object "MultipleDescriptor/InstanceUID" should be a
 reference target <a UUID>,but has size 0
 ERROR:Metadata Object "EssenceContainerData/InstanceUID" should be a reference target <a UUID>,but has size 0
 ERROR:Metadata Object "ContentStorge/InstanceUID" should be a reference target <a UUID>,but has size 0
 ERROR:NO BODY!
 ERROR:NO BODY!
 .......................
 "
 where may the problem lie in?
 May it be that the jp2 file format I wrapp is not standard?
 
 |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			    
			        | Matt Beard 
					        
						         
						    
							    Insider
						     Joined: Thu Apr 15, 2004 10:39 am Posts: 198 Location: Scotland
				         
   | 
						    
								|    Posted: Fri Apr 21, 2006 7:35 am  |  |  
						    
				                | 
					                    
						                    | This looks like the template problem with Visual Studio version 6.
 If you are using MSVC 6 you will need to download the file  	mxflib-beta-0.6.0-patch.zip  from the 0.6.0-Beta download section.
 Hope this helps
 |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			    
			        | sue 
					        
						         
						    
							    Board User
						     Joined: Sun Feb 19, 2006 4:55 am Posts: 7
				         
   | 
						    
								|    Posted: Fri Apr 21, 2006 8:43 am  |  |  
						    
				                | 
					                    
						                    | Before I run it ,I have downloaded the patch files,and already replace the three files in  mxflib.
So it shouldn't because of this.
 
 |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			    
			        | Matt Beard 
					        
						         
						    
							    Insider
						     Joined: Thu Apr 15, 2004 10:39 am Posts: 198 Location: Scotland
				         
   | 
						    
								|    Posted: Fri Apr 21, 2006 12:05 pm  |  |  
						    
				                | 
					                    
						                    | Have you re-built the library and utilities after installing the patched source files? 
 |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			    
			        | sue 
					        
						         
						    
							    Board User
						     Joined: Sun Feb 19, 2006 4:55 am Posts: 7
				         
   | 
						    
								|    Posted: Mon Apr 24, 2006 6:44 am  |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			    
			        | Matt Beard 
					        
						         
						    
							    Insider
						     Joined: Thu Apr 15, 2004 10:39 am Posts: 198 Location: Scotland
				         
   | 
						    
								|    Posted: Mon Apr 24, 2006 10:09 am  |  |  
						    
				                | 
					                    
						                    | Can I e-mail you a new set of sources for you to try?
 It will be a little under 500k and I propose to send it to the e-mail address you used when you signed up for this board.
 
 Is this OK?
 
 Also it would help to know what compiler and OS version you are using.
 
 |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			    
			        | sue 
					        
						         
						    
							    Board User
						     Joined: Sun Feb 19, 2006 4:55 am Posts: 7
				         
   | 
						    
								|    Posted: Mon Apr 24, 2006 11:44 am  |  |  
						    
				                | 
					                    
						                    | Of course you can.
Thank you so much:)
 
 |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			    
			        | sue 
					        
						         
						    
							    Board User
						     Joined: Sun Feb 19, 2006 4:55 am Posts: 7
				         
   | 
						    
								|    Posted: Tue Apr 25, 2006 7:03 am  |  |  
						    
				                | 
					                    
						                    | I have got the sources and it works well!
Thank you so much.
 
 |  |  | 
		        
					|  | 
				
                
		            |  | 
			    
			        
		                |  |