xatru
Posts: 2
Joined: Wed Dec 11, 2013 10:09 pm

omxplayer on TFT Display

Wed Dec 11, 2013 10:24 pm

Hey everyone,

I'm playing around with an 2.8" TFT Touch Display from http://www.watterott.com/de/28-TFT-Touc ... eld-Bridge for the rpi. Everything works fine - now, nerly everything. I've two problems:

1. On the touch tft left and right is switched. So if I move from left to right it moves from right to left and vice versa.
2. Does anybody know how I can start omxplayer in such a way that it uses the TFT for video output and not the HDMI port of the PI? This is more important for me!

Regards,
Xatru

raspifari
Posts: 197
Joined: Wed Mar 20, 2013 6:11 pm
Location: France

Re: omxplayer on TFT Display

Thu Dec 12, 2013 5:33 pm

Try omxplayer fbdev:/dev/"the framebuffer of your screen" "your video"
the screen framebuffer is maybe fb1
That command work for mplayer but i have not tested with omxplayer

xatru
Posts: 2
Joined: Wed Dec 11, 2013 10:09 pm

Re: omxplayer on TFT Display

Thu Dec 12, 2013 11:12 pm

This doesn't work with omxplayer. The only thing I can give it without an "-" or "--" is the filename (see code) :(

Code: Select all

Usage: omxplayer [OPTIONS] [FILE]
Options :
         -h / --help                    print this help
         -k / --keys                    print key bindings
         -n / --aidx  index             audio stream index    : e.g. 1
         -o / --adev  device            audio out device      : e.g. hdmi/local
         -i / --info                    dump stream format and exit
         -s / --stats                   pts and buffer stats
         -p / --passthrough             audio passthrough
         -d / --deinterlace             deinterlacing
         -w / --hw                      hw audio decoding
         -3 / --3d mode                 switch tv into 3d mode (e.g. SBS/TB)
         -y / --hdmiclocksync           adjust display refresh rate to match video (default)
         -z / --nohdmiclocksync         do not adjust display refresh rate to match video
         -t / --sid index               show subtitle with index
         -r / --refresh                 adjust framerate/resolution to video
         -g / --genlog                  generate log file
         -l / --pos n                   start position (in seconds)
              --boost-on-downmix        boost volume when downmixing
              --vol n                   Set initial volume in millibels (default 0)
              --subtitles path          external subtitles in UTF-8 srt format
              --font path               subtitle font
                                        (default: /usr/share/fonts/truetype/freefont/FreeSans.ttf)
              --font-size size          font size as thousandths of screen height
                                        (default: 55)
              --align left/center       subtitle alignment (default: left)
              --lines n                 number of lines to accommodate in the subtitle buffer
                                        (default: 3)
              --win "x1 y1 x2 y2"     Set position of video window
              --audio_fifo  n           Size of audio output fifo in seconds
              --video_fifo  n           Size of video output fifo in MB
              --audio_queue n           Size of audio input queue in MB
              --video_queue n           Size of video input queue in MB
Is there any chance to compile it self with an option like "use this device as default output and not hdmi"? Maybe someone a familiar with compiling omxplayer or know how I can find futher assistance?

Thanks!

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: omxplayer on TFT Display

Mon Dec 16, 2013 7:45 am

Hi,
for sending omxplayer output to fb1 search for application fbcp - it copies fb0 to fb1, and can be run as a background task using

Code: Select all

fbcp &
It works very well with the displays I produce.
For the touch panel inversion - how are you calibrating the screen?

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

cleverca22
Posts: 206
Joined: Sat Aug 18, 2012 2:33 pm

Re: omxplayer on TFT Display

Tue Dec 17, 2013 7:42 pm

from the way i understand things, omxplayer bypasses fb0 entirely, and renders at the dispmanx level, so fbcp likely wont do any good
i think the player would have to be modified to either use dispmanx_snapshot, or raw rgb565 output, and then feed that over to the 2nd framebuffer

or you could make an fbcp clone, that uses dispmans_snapshot as the source, but the performance of such a thing wont be good

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: omxplayer on TFT Display

Thu Dec 19, 2013 5:27 pm

Hi,
Like I said, fbcp works fine for me using omxplayer to send video to fb1. No reason why it shouldn't work for other displays as long as they use fb1.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “Advanced users”