Announcement

Collapse
No announcement yet.

uLCD-28PTU - Problem encoding video directly from the SD ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hi Rick,

    Have you formatted your SD card to a FAT16 partition using RMPet under the Tools tab.

    Paul

    Comment


    • #17
      May i did simething wrong ? I used the video from the folder (VIDIMAGE)

      - Add var frame;
      - Removed the /* and */
      - Past video code
      - Comp'n load
      - Only 2 files on the SD

      Here a full video of my process step by step, you can also see the moment when i put the SD and the frame freezed.


      Comment


      • #18
        Yes formated in FAT16 with the formater from win 10, but i just downloaded the software RMPet rev 1
        I don't understand what i need to do with this software ?

        Comment


        • #19
          OK i've just formated in FAT 16 without partition with the software and i have the same problem, frame freezed ...

          Comment


          • #20
            Hi Rick,

            Thank you for the video. The for - next loop that counts the frames isn't in the code.

            Just underneath repeat add this line

            for(frame := 0; frame < 604; frame ++)

            and above the forever add

            next

            And it should play every frame.

            Best regards

            Paul

            Comment


            • #21
              Thank you ! It work well now with the video found on the folder VIDIMAGE.
              The video work but if i disconnect the power 5v and and plug it back the video won't start again, why ? I need the video start automatically at each start of the screen





              Here my code

              #platform "uLCD-28PTU"


              // Program Skeleton 1.4 generated 22/01/2018 18:41:58

              // #MODE RUNFLASH uncomment and set Destination to Flash to run from Flash, refer 4D-AN-00055

              #inherit "4DGL_16bitColours.fnc"

              #inherit "VisualConst.inc"

              #inherit "NoName1Const.inc"

              var frame;

              func main()
              // var hstrings ; // Handle to access uSD strings, uncomment if required
              // var hFontx ; // Handle to access uSD fonts, uncomment if required and change n to font number
              // Uncomment the following if uSD images, fonts or strings used.

              putstr("Mounting...\n");
              if (!(file_Mount()))
              while(!(file_Mount()))
              putstr("Drive not mounted...");
              pause(200);
              gfx_Cls();
              pause(200);
              wend
              endif
              // gfx_TransparentColour(0x0020); // uncomment if transparency required
              // gfx_Transparency(ON); // uncomment if transparency required

              // hFontn := file_LoadImageControl("NoName1.dan", "NoName1.gcn", 1); // Open handle to access uSD fonts, uncomment if required and change n to font number dropping a and c if > 9
              // hstrings := file_Open("NoName1.txf", 'r') ; // Open handle to access uSD strings, uncomment if required
              hndl := file_LoadImageControl("NoName1.dat", "NoName1.gci", 1);


              gfx_Set(SCREEN_MODE,LANDSCAPE) ;

              repeat
              for(frame := 0; frame < 604; frame ++)

              next
              forever
              endfunc








              With my own video (6fps) it work too but after the first loop he crash, see photo below please.
              May i need to changed the value of this code ?

              for(frame := 0; frame < 604; frame ++)

              To adapted it to my own video ?

              Thanks
              Last edited by Rick; 23 January 2018, 03:29 AM.

              Comment


              • #22
                Hi Rick,

                Glad you got it working. Yes you will need to change the value in the 'for' command to suit the amount of frames in your video.

                Under the Project tab you will probably notice that Destination is set to RAM, you can change this to Flash by clicking on the Flash button which will make the code remain after it has been powered down. You will need to Comp'n'Load again.

                Best regards

                Paul

                Comment


                • #23
                  Everything work well now, thank you Paul for your full assistance
                  By the way do you know if i can add the sound to the video ? If yes can you tell me how ?

                  Regards

                  Comment

                  Working...
                  X