×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Unhappy Emulator Closed in MobiFLV.

    Hi

    Emulator closed when run downloaded "MobiFLV" application.

    See following code. Please help me.

    Code
    Code:
    MobiFLVAppView.cpp
    -------------------
    
    void CMobiFLVAppView::ConstructL(const TRect& aRect)
    	{
    	/*// Create a window for this application view
    	CreateWindowL();
    
    	// Set the windows size
    	SetRect(aRect);
    
    	// Activate the window, which makes it ready to be drawn
    	ActivateL();*/
    	
    	InitConvertTable(); //First time Closed Here So i  
                                             //update InitConvertTable see in 
                                             //green font 
    	    
    	iOffScreenBitmap = new (ELeave) CFbsBitmap;
    		User::LeaveIfError(iOffScreenBitmap->Create(TSize(aRect.Width(), aRect.Height()), EColor16MU));
    		PlayerSetRect(aRect.Width(), aRect.Height());
    
    	    // Create a window for this application view
    	    CreateWindowL();
    
    	    // Set the windows size
    	    SetRect( aRect );
    
    	    // Activate the window, which makes it ready to be drawn
    	    ActivateL();
    
    		ActivateGc();
    		Window().BeginRedraw();
    		SystemGc().SetBrushColor(KRgbBlack);
    	    SystemGc().Clear();
    		Window().EndRedraw();
    		DeactivateGc();
    
                    
                    //After Solve Above code NOW ERROR Comes Here. see 
                    //NeoStreamPlayer.Cpp Class
    		iNeoStreamPlayer = CNeoStreamPlayer::NewL();
    		
    	//	__UHEAP_MARK;
    
    		OpenFlvAndInit("C:\\Data\\Videos\\Test.flv", iNeoStreamPlayer);
    
    		iPts = 0;
    		iAudioCurrentFTell = CurrentFTell();
    	    FetchCodecAndDecode(iPts, iNeoStreamPlayer);
    		iFirstFrameNum = iFrameNum;
    	    iNowTime.HomeTime();
    		iFirstFrameTimeStamp = iNowTime.Int64();
    		iOffScreenBitmap->LockHeap();
    		DoWithDecoded((unsigned char*)iOffScreenBitmap->DataAddress(), EFalse, iFirstFrameNum, iFirstFrameTimeStamp, iFrameNum, iNowTime.Int64());
    		iOffScreenBitmap->UnlockHeap();
    		DrawNow();
    
    	//	__UHEAP_MARKEND;
    	}
    
    YUVtoRGB.cpp
    --------------
    void InitConvertTable()
    {
    	int i, j, ind;
    	clp = (unsigned char*)malloc(1024);
    	for (i=0; i<384; i++)
    		clp[i] =0;
    	ind=384;
    	for (i=0;i<256; i++)
    		clp[ind++]=i;
    	ind=640;
    	for (i=0;i<384;i++)
    		clp[ind++]=255;
    	   
    	
    	// Generate crv
    	crv_tab = (double*)malloc(256*sizeof(double));
    	for (i = 0; i < 256; i++)
    		crv_tab[i] = 1.370705 * (i-128) + 384;
    	
    	// Generate cgv
    	cgv_tab = (double*)malloc(256*sizeof(double));
    	for (i = 0; i < 256; i++)
    		cgv_tab[i] = 0.698001 * (i-128) - 384;
    	
    	// Generate cgu
    	cgu_tab = (double*)malloc(256*sizeof(double));
    	for (i = 0; i < 256; i++)
    		cgu_tab[i] = 0.337633 * (i-128);
    	
    	// Generate cbu
    	cbu_tab = (double*)malloc(256*sizeof(double));
    	for (i = 0; i < 256; i++)
    		cbu_tab[i] = 1.732446 * (i-128) + 384;
    		
    	// Generate ryv
    	ryv_tab = (unsigned char*)malloc(256*256);
    	for (j = 0; j < 256; j++)
    		for (i = 0; i < 256; i++)
    			ryv_tab[i*256 + j] = clp[(int)(j + crv_tab[i])];
    	
    	// Generate rbu
    	rbu_tab = (unsigned char*)malloc(256*256);
    	for (j = 0; j < 256; j++)
    		for (i = 0; i < 256; i++)
    			rbu_tab[i*256 + j] = clp[(int)(j + cbu_tab[i])];
    
    	neoColorRGB = (TNeoColorRGB*)malloc(64*64*64*4);
    	TNeoColorRGB* tNeoColorRGB = neoColorRGB;
    
    	unsigned char y1, u1, v1;
    	int v = 0;
    	int u = 0;
    	int y = 0;
    	for (v = 0; v < 64; v++)
    	{
       		for (u = 0; u < 64; u++)
       		{
    		   for (y = 0; y < 64; y++)
    		   {
    		   		y1 = y << 2;
    		   		u1 = u << 2;
    		   		v1 = v << 2;
                                    
    		   		/*
                                    // DO COMMENT.
                                    y1 = y1 + (u1 << 8);
    				tNeoColorRGB->r = rbu_tab[y1]; // + (u1 << 8)];
    				tNeoColorRGB->g = clp[(int)(y1 - cgv_tab[v1] - cgu_tab[u1])];
    				tNeoColorRGB->b = ryv_tab[y1 + (v1 << 8)];
    				tNeoColorRGB->a = 0xFF;*/
    				tNeoColorRGB++;
    		   }
       		}
    	}
    
    	if (crv_tab)
    	{
    		free(crv_tab);
    		crv_tab = NULL;
    	}
    	if (cbu_tab)
    	{
    		free(cbu_tab);
    		cbu_tab = NULL;
    	}
    /*
    	if (cgu_tab)
    	{
    		free(cgu_tab);
    		cgu_tab = NULL;
    	}
    	if (cgv_tab)
    	{
    		free(cgv_tab);
    		cgv_tab = NULL;
    	}
    */
    }
    
    
    NeoStreamPlayer.cpp
    --------------------
    
    void CNeoStreamPlayer::ConstructL()
    {
    	iAudioOutputStream = CMdaAudioOutputStream::NewL(*this);
    	iBufferLump = NULL;
    
    	iMMFCodec = CMMFCodec::NewL(KMMFFourCCCodeMP3, KMMFFourCCCodePCM16);
    	iSrcBuf = CMMFDescriptorBuffer::NewL(SRC_SIZE);
    	iDstBuf = CMMFDescriptorBuffer::NewL(FRAME_SIZE * MAX_PCM_BUFFER_COUNT * 2);
    	
    	iOpened = EFalse;
    	
    	iVolume = 5;
    }
    Regards,
    SymbianTH

  2. #2
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Emulator Closed in MobiFLV.

    Hi

    I am builds project without errors. But when I try to run it in SDK emulator it crashes and close Emulator.

    I am using:
    S60_3rd_Edition_SDK_Feature_Pack_2
    Carbide.c++_v1.3

    Regards,
    SymbianTH

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Emulator Closed in MobiFLV.

    That is really exciting. Then things you have forgotten to mention are the panic codes. After 160 posts you will have a hard time when you will try to explain that you have never heard this expression.

  4. #4
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Emulator Closed in MobiFLV.

    Quote Originally Posted by wizard_hu_ View Post
    That is really exciting. Then things you have forgotten to mention are the panic codes. After 160 posts you will have a hard time when you will try to explain that you have never heard this expression.
    I am getting KERN EXEC 3 err. If following code
    Code:
    void InitConvertTable()
    {
    	int i, j, ind;
    	clp = (unsigned char*)malloc(1024);
    	for (i=0; i<384; i++)
    		clp[i] =0;
    	ind=384;
    	for (i=0;i<256; i++)
    		clp[ind++]=i;
    	ind=640;
    	for (i=0;i<384;i++)
    		clp[ind++]=255;
    	   
    	
    	// Generate crv
    	crv_tab = (double*)malloc(256*sizeof(double));
    	for (i = 0; i < 256; i++)
    		crv_tab[i] = 1.370705 * (i-128) + 384;
    	
    	// Generate cgv
    	cgv_tab = (double*)malloc(256*sizeof(double));
    	for (i = 0; i < 256; i++)
    		cgv_tab[i] = 0.698001 * (i-128) - 384;
    	
    	// Generate cgu
    	cgu_tab = (double*)malloc(256*sizeof(double));
    	for (i = 0; i < 256; i++)
    		cgu_tab[i] = 0.337633 * (i-128);
    	
    	// Generate cbu
    	cbu_tab = (double*)malloc(256*sizeof(double));
    	for (i = 0; i < 256; i++)
    		cbu_tab[i] = 1.732446 * (i-128) + 384;
    		
    	// Generate ryv
    	ryv_tab = (unsigned char*)malloc(256*256);
    	for (j = 0; j < 256; j++)
    		for (i = 0; i < 256; i++)
    			ryv_tab[i*256 + j] = clp[(int)(j + crv_tab[i])];
    	
    	// Generate rbu
    	rbu_tab = (unsigned char*)malloc(256*256);
    	for (j = 0; j < 256; j++)
    		for (i = 0; i < 256; i++)
    			rbu_tab[i*256 + j] = clp[(int)(j + cbu_tab[i])];
    
    	neoColorRGB = (TNeoColorRGB*)malloc(64*64*64*4);
    	TNeoColorRGB* tNeoColorRGB = neoColorRGB;
    
    	unsigned char y1, u1, v1;
    	int v = 0;
    	int u = 0;
    	int y = 0;
    	for (v = 0; v < 64; v++)
    	{
       		for (u = 0; u < 64; u++)
       		{
    		   for (y = 0; y < 64; y++)
    		   {
    		   		y1 = y << 2;
    		   		u1 = u << 2;
    		   		v1 = v << 2;
    tNeoColorRGB->r = rbu_tab[ + (u1 << 8)]; //rbu_tab[y1]; // + (u1 << 8)];
    				tNeoColorRGB->g = clp[(int)(y1 - cgv_tab[v1] - cgu_tab[u1])];
    				tNeoColorRGB->b = ryv_tab[y1 + (v1 << 8)];
    				tNeoColorRGB->a = 0xFF;
    				tNeoColorRGB++;
    		   }
       		}
    	}
    
    	if (crv_tab)
    	{
    		free(crv_tab);
    		crv_tab = NULL;
    	}
    	if (cbu_tab)
    	{
    		free(cbu_tab);
    		cbu_tab = NULL;
    	}
    
    	if (cgu_tab)
    	{
    		free(cgu_tab);
    		cgu_tab = NULL;
    	}
    	if (cgv_tab)
    	{
    		free(cgv_tab);
    		cgv_tab = NULL;
    	}
    
    }
    Regards,
    SymbianTH

  5. #5
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Emulator Closed in MobiFLV.

    Hi

    I am Download code from following link.
    http://en.pudn.com/downloads152/sour...665846_en.html

    SymbianTH

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Emulator Closed in MobiFLV.

    All 4 lines can not die, only one of them. Use the debugger, and find out which one it is. Then check the values of the index variables (y1,u1,v1), at least one of them is probably indexing out of the corresponding "tab").

  7. #7
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Thumbs up Re: Emulator Closed in MobiFLV.

    Hi

    Thanks for give me a reply

    I solved my problem:

    Solution:
    ---------
    Set Stack and heap Size in .mmp file.

    EPOCSTACKSIZE 0xC000
    EPOCHEAPSIZE 0x5000 0x600000

    But currently i am able to play offline file, anybody knows that hoe to play online file ?(http:// access)???

    Regards,
    SymbianTH

  8. #8
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Unhappy Re: Emulator Closed in MobiFLV.

    Hi

    I am able to run successfully MobiFLV source code run into Emulator.

    When I am making signed sis using carbide c++ 2.0 (I have no Certificate and Key)
    and after making a .sis and .sisx(signed) try to install application. Installation Process also started and progrssbar complete 50% installation and give me message "Unable to install".

    I am using nokia N73.

    Why this happened? please help me.

    Regards,
    SymbianTH
    Last edited by SymbianTH; 2009-08-08 at 14:15.

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Emulator Closed in MobiFLV.

    Quote Originally Posted by SymbianTH View Post
    Installation Process also started and progrssbar complete 50% installation and give me message "Unable to install".
    Have you considered searching for that message in the Wiki?

  10. #10
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Emulator Closed in MobiFLV.

    Quote Originally Posted by wizard_hu_ View Post
    Have you considered searching for that message in the Wiki?
    Everything is fine which is define in following link
    http://wiki.forum.nokia.com/index.ph..._to_install.22

    I attached my .sis in this thread.

    Regards,
    SymbianTH
    Attached Files Attached Files

  11. #11
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Talking Re: Emulator Closed in MobiFLV.

    Hi

    Thanks Wizard_hu

    I have done. I read solution in following link.
    http://blogs.forum.nokia.com/index.p...7&articleId=93

    Problem place:
    .PKG
    ----
    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\release\gcce\urel\MobiFLV.exe" -"!:\sys\bin\MobiFLV.exe"
    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\data\z\resource\apps\MobiFLV.rsc" -"!:\resource\apps\MobiFLV.rsc"
    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\data\z\private\10003a3f\apps\MobiFLV_reg.rsc" -"!:\private\10003a3f\import\apps\MobiFLV_reg.rsc"
    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\data\z\resource\apps\MobiFLV.mif" -"!:\resource\apps\MobiFLV.mif"
    "..\sis\backup_registration.xml" -"!:\private\E2A406A7\backup_registration.xml"

    Solution
    --------
    Highlighted text put in comment and able to install successfully.

    Thanking You
    SymbianTH

  12. #12
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Unhappy Re: Emulator Closed in MobiFLV.

    Hi

    I am able to play offline .FLV file, getting reference from MobiTunia.

    But now try to play online streaming .FLV file.

    For Playing Online Streaming Flash file i am using RSocket connection for receive response with all details.

    But problem is I am getting connection successfully, send HTTP:// request also successfully but do not receive response. Get -25 error.

    How to get response of .FLV file? So I get buffer data for playing a .flv file?

    I am useing link :http://vixy.net/flv/vixy_net_podcast...o_director.flv
    If you have any .FLV streaming link please give me.

    Regards
    SymbianTH

  13. #13
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Emulator Closed in MobiFLV.


  14. #14
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Emulator Closed in MobiFLV.

    Quote Originally Posted by wizard_hu_ View Post
    Yes It's a EOF error. But when I send request to following URL i get response successfully.
    http://tv13.stream-music.net:8008/listen.pls

    And Same way if I send request in following link I do not get response?
    http://vixy.net/flv/vixy_net_podcast...o_director.flv

    Request Sending using RSocket: "GET / HTTP/1.0\r\n\r\n"

    Where I am Going on wrong please tell me.

    Regards,
    SymbianTH

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Emulator Closed in MobiFLV.

    Try if you can download that file using the browser of the device/emulator.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •