Announcement

Collapse
No announcement yet.

uOLED-96-g2 ..help a beginner in a simple project

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

  • #16
    T H A N K Y O U !!
    gone to play

    Comment


    • #17
      Hello again Noel,

      so i downloaded your file and unzipped it and open the Visi. I formatted my sd card ,download it and it plays absolutly perfect!!!
      But!
      As soon as i touched to resize the "video box" with the mouse pointer and try to download to play... its doesnt like it
      I get the viewing problem i described before.

      Now i readjust the height and width to 96x64 but things only got worse

      Can someone explain to me please what is the correct procedure to make size changes of the "video"
      Thank you
      Best Regards
      George

      Comment


      • #18
        george1,

        After you resize the "video box" with your mouse pointer, click on the old code inside repeat- forever
        and delete it. After that, put the cursor inside the repeat-forever loop and then click on Paste Code.
        After that, it should play the video.

        Best regards,

        Comment


        • #19
          Thank you Noel. Forgive my ignorance. .I didnt know i must delete and paste new code every time ..Yes now i can rotate and resize

          Comment


          • #20
            One last question is about the speed that the video is playing .Is this has to do with the way im creating my .gif and nothing to do with the screen?
            Or there is a way to slow it down in the code and im missing it?
            Thank you again Noel,
            Kind Regards
            George

            Comment


            • #21
              maybe the "frame delay" in the properties of the video....?

              Comment


              • #22
                Hi George,

                You can change frame delay, or you could put this line just before forever

                pause(2);

                you can change to 2 to suit the speed you require, 2 = 2 milliseconds.

                Best regards

                Paul

                Comment


                • #23
                  Hello again Paul,

                  change to the "frame delay" or adding "pause(500);" line before "forever" doesnt makes any difference to the speed that the .gif is playing
                  any ideas how can i solve this?

                  Thank you
                  Kind Regards
                  George

                  Comment


                  • #24
                    screen shot
                    Attached Files

                    Comment


                    • #25
                      Hi George,

                      Sorry for my second suggestion, that will only delay in between the video being played again, so there is now a 1 second delay in between the video being played again.

                      Could you try changing your code with this.

                      var n;

                      repeat


                      // Video1 1.0 generated 5/9/2017 3:08:56 PM
                      media_SetAdd(iVideo1H, iVideo1L) ; // point to the Video1 image
                      gfx_Set(SCREEN_MODE,LANDSCAPE) ; // On uOLED-96-G2 videos+images only work in LANDSCAPE
                      for(n := 0; n < 297; n ++)
                      media_VideoFrame(1, -32, n) ;// show video
                      pause(10);
                      next
                      gfx_Set(SCREEN_MODE,PORTRAIT) ; // Restore 'operating' orientation



                      forever


                      I don't have a screen like yours here at the moment so it is untested.


                      Best regards

                      Paul

                      Comment


                      • #26
                        No worries Paul.There are "no errors" in code, but screen dont like it. .gif plays with same speed but in different angle somehow and out of center ..

                        Comment


                        • #27
                          Hi George,

                          That might be because the x, y co-ordinates are different in my code to the ones that were in your screenshot

                          my code:
                          media_VideoFrame(1, -32, n) ;// show video

                          This was from your screenshot
                          media_Video(0, 0, n) ;// show video

                          If you try
                          media_VideoFrame(0, 0, n) ;// show video

                          You could increase the value in pause(50) which would make 20 frames per second roughly.

                          Best regards

                          Paul

                          Comment


                          • #28
                            I dont think it likes just copy/paste..
                            I first use "paste code" and then i add the missing lines i see in your post #25
                            ..going to try now! thank you!

                            Comment


                            • #29
                              i even tried 6000 with no change in speed ...
                              Attached Files

                              Comment


                              • #30
                                Hi George,

                                You need to change or add to the line

                                media_Video(0, 0) ;// show video

                                to

                                media_VideoFrame(0, 0, n) ;// show video

                                Best regards

                                Paul

                                Comment

                                Working...
                                X