This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMX Demo: Decoding Video

Hi,

I am trying to run the video decode demo coming with EZSDK 5.02.

I have an Ubuntu 10.04 host as required.

I stopped matrix gui as I understood that required and I run the "echo 0> /sys/devices/platform/vpss/graphics1/enabled" to make sure that I'll see the video on the HDMI screen.

The command I run is:  ./decode_display_a8host_debug.xv5T -i test.264 -f 30 -g 0 -d 0 -w 480 -h 720

I run the file test.264 with mplayer on ubuntu without any troubles.

However, when running the command above, I get:

 

input file: test.264                                    
width: 480                                              
height: 720                                             
frame_rate: 30                                          
gfx: fbdev disable                                      
display_id: 0                                           
 Decoder-Display example                                
===============================                         
 OMX_Init completed                                     
 UIAClient is ready to send a UIA configuration command 
UIAClient received UIA_CONFIGURE_ACK                    
UIAClient is done sending requests                      
UIAClient is ready to send a UIA configuration command  
UIAClient received UIA_CONFIGURE_ACK                    
UIAClient is done sending requests                      
 opening file                                           
 decoder compoenent is created                          
 scalar compoenent is created                           
set input port params (width = 480, height = 720)       
set output port params (width = 480, height = 720)      
set number of channels                                  
set input resolution                                                 
set output resolution 

enable scalar input port                                
got eventEnable/Disable Event                           
enable scalar output port                               
got eventEnable/Disable Event                           
found handle 0x11cd28 for component OMX.TI.VPSSM3.VFDC  
 got display handle                                     
found handle 0x120830 for component OMX.TI.VPSSM3.CTRL.DC
Buffer Size computed: 691200                            
set input port params (width = 480, height = 720)       
setting input and output memory type to default         
enable input port                                       
got eventEnable/Disable Event                           
 connect call for decoder-scalar                        
  connect call for scalar-display                       
  decoder inport buffers allocated                      
  decoder outport buffers allocated                     
 got eventState changed to: OMX_StateIdle               
 state IDLE                                             
  Scalar input port use buffer done                     
  scalar outport buffers allocated                      
 got eventState changed to: OMX_StateIdle                            
 scalar state IDLE           

   Scalar input port use buffer done                     
  scalar outport buffers allocated                      
 got eventState changed to: OMX_StateIdle               
 scalar state IDLE                                      
 got eventState changed to: OMX_StateIdle               
 ctrl-dc state IDLE                                     
 got eventState changed to: OMX_StateIdle               
 display state IDLE                                     
 got eventState changed to: OMX_StateExecuting          
 display control state execute                          
 got eventState changed to: OMX_StateExecuting          
 display state execute                                  
 got eventState changed to: OMX_StateExecuting          
 scalar state execute                                   
 got eventState changed to: OMX_StateExecuting          
 decoder state execute                                  
  file read thread created                              
  decoder connect thread created                        
  scalar connect thread created                         
  display connect thread created                        
  executing the appliaction now!!!                                   
 got event*** unrecoverable error: OMX_ErrorStreamCorrupt (0x8000100b)
Press a key to proceed                                               
got event*** unrecoverable error: OMX_ErrorStreamCorrupt (0x8000100b)
Press a key to proceed                                               
got event*** unrecoverable error: OMX_ErrorStreamCorrupt (0x8000100b)
Press a key to proceed                                               
got event*** unrecoverable error: OMX_ErrorStreamCorrupt (0x8000100b)
Press a key to proceed            

MANY TIMES

Press a key to proceed                                               
got event*** unrecoverable error: OMX_ErrorStreamCorrupt (0x8000100b)
Press a key to proceed                                               
got event*** unrecoverable error: OMX_ErrorStreamCorrupt (0x8000100b)

Press a key to proceed                       

got eventOMX_EventBufferFlag                                          
got EOS event                                                        
got eventOMX_EventBufferFlag                                         
got EOS event                                                        
got eventOMX_EventBufferFlag                                         
got EOS event                                                        
 tearing down the decode-display example                             
 exiting thread                                                      
 exiting thread                                                      
 exiting thread                                                      
 got eventState changed to: OMX_StateIdle                            
 decoder state idle                                                  
 got eventState changed to: OMX_StateIdle                            
 Scalar state idle                                                   
 got eventState changed to: OMX_StateIdle                            
 display state idle                                                  
 got eventState changed to: OMX_StateIdle                            
 display control state idle                                          
 got eventState changed to: OMX_StateLoaded                          
 decoder state loaded                       

got eventState changed to: OMX_StateLoaded                          
 Scalar state loaded                                                 
 got eventState changed to: OMX_StateLoaded                          
 display state loaded                                                
 got eventState changed to: OMX_StateLoaded                          
 ctrl-dc state loaded                                                
  decoder free handle                                                
 scalar free handle                                                  
 display free handle                                                 
 ctrl-dc free handle                                                 
IL Client deinitialized                                              
 example exit                                                        
ServiceMgr_handleMsg: IpcTypes_Action_STOP                           
ServiceMgr_stopXferAgent: free exit                                  
ServiceMgr_stop: join xfer                                           
ServiceMgr_stop: cancel xfer                                         
ServiceMgr_stop: join rx                                             
ServiceMgr_stop: cleanup                                             
ServiceMgr_stop: done

 

As far as I know, the file is perfectly OK; I run it with others tools and I tried with several files.

What do I do wrong?

Grateful for any help,

Michele