CHANGE TRANSITION TIME, RANDOMIZE IMAGES PLAYBACK, EXIF ROTATION

Solved1.44K viewsDigital signage
0

How to:

  • CHANGE TIMEOUT & TRANSITION (BLEND) TIME (it’s not possible to change the transition effect)
  • RANDOMIZE IMAGES PLAYBACK
  • ENABLE/DIABLE EXIF ROTATION
  • ENABLE/DISBALE LOGGING
  • ADVANCED PLAYERS’ TWEAKING
Question is closed for new answers.
Changed status to publish
0

You can override the default settings by modifying /etc/rs.conf via SSH as root (use mc -e /etc/rs.conf):

TRANSITION_TIME_S=10 # Images transition time.

BLEND_TIME_MS=600 # Images blend timing.

IMAGE_PLAYER=”fbi -autozoom -norandom -timeout $TRANSITION_TIME_S -noverbose -blend $BLEND_TIME_MS -vt 1 -readahead -cachemem 20 -once -list”

IMAGE_PLAYER_IMAGES_ONLY=”fbi -autozoom -norandom -timeout $TRANSITION_TIME_S -noverbose -blend $BLEND_TIME_MS -vt 1 -readahead -cachemem 100 -list”

EXIF_ROTATE=”n”

VIDEO_PLAYER=”omxplayer -t off -r -b”

DEBUG=”n”

For example you can set the image slider to randomize images playback (-random flag) or enable the EXIF rotation; if you need a quicker setup (both when booting and when refreshing server content) keep EXIF rotation disabled. If you slide camera photos, keep it enabled.

When modifying images’ settings, change both the IMAGE_PLAYER* lines.

fbi is the program chosen for sliding the images and omxplayer is the one for videos’ playback (which is GPU-acceretated).
Both use the Linux framebuffer device for the output: it means there is no X.Org installed into the system.

Have a look at fbi and omxplayer man pages for help.

 

fbi

This program displays images using the Linux framebuffer device.
Supported formats: PhotoCD, jpeg, ppm, gif, tiff, xwd, bmp, png,
webp. It tries to use ImageMagick’s convert for unknown file formats.usage: fbi [ options ] file1 file2 … fileN

-h -help print this help text
-V -version print fbi version number
-store write cmd line args to config file
-l -list read image filelist from file
-P -text switch into text reading mode
-a -autozoom automagically pick useful zoom factor
-(no)autoup like the above, but upscale only
-(no)autodown like the above, but downscale only
-(no)fitwidth use width only for autoscaling
-v -(no)verbose show filenames all the time
-u -(no)random show files in a random order
-1 -(no)once don’t loop (for use with -t)
-(no)comments display image comments
-e -(no)edit enable editing commands (see man page)
-(no)backup create backup files when editing
-(no)preserve preserve timestamps when editing
-(no)readahead read ahead images into cache
-cachemem image cache size in megabytes
-blend image blend time in miliseconds
-T -vt start on virtual console
-s -scroll scroll image by pixels
-t -timeout load next image after sec without user input
-r -resolution pick PhotoCD resolution (1..5)
-g -gamma set display gamma (doesn’t work on all hardware)
-f -font use font (anything fontconfig accepts)
-d -device use framebuffer device
-m -mode use video mode (from /etc/fb.modes)

Large images can be scrolled using the cursor keys. Zoom in/out
works with ‘+’ and ‘-‘. Use ESC or ‘q’ to quit. Space and PgDn
show the next, PgUp shows the previous image. Jumping to a image
works with g. Return acts like Space but additionally prints
prints the filename of the currently displayed image to stdout.

 

omxplayer

-h −−help Print this help
-v −−version Print version info
-k −−keys Print key bindings
-n −−aidx index Audio stream index : e.g. 1
-o −−adev device Audio out device : e.g. hdmi/local/both
-i −−info Dump stream format and exit
-I −−with-info dump stream format before playback
-s −−stats Pts and buffer stats
-p −−passthrough Audio passthrough
-d −−deinterlace Force deinterlacing
−−nodeinterlace Force no deinterlacing
−−nativedeinterlace let display handle interlace
−−anaglyph type convert 3d to anaglyph
−−advanced Allow advanced deinterlace for HD videos
-w −−hw Hw audio decoding
-3 −−3d mode Switch tv into 3d mode (e.g. SBS/TB)
-M −−allow-mvc Allow decoding of both views of MVC stereo stream
-y −−hdmiclocksync 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 (hh:mm:ss)
-b −−blank[=0xAARRGGBB] Set the video background color to black (or optional ARGB value)
−−loop Loop file. Ignored if file not seekable
−−no-boost-on-downmix Don’t boost volume when downmixing
−−vol n set initial volume in millibels (default 0)
−−amp n set initial amplification in millibels (default 0)
−−no-osd Do not display status information on screen
−−no-keys Disable keyboard input (prevents hangs for certain TTYs)
−−subtitles path External subtitles in UTF-8 srt format
−−font path Default: /usr/share/fonts/truetype/freefont/FreeSans.ttf
−−italic-font path Default: /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf
−−font-size size Font size in 1/1000 screen height (default: 55)
−−align left/center Subtitle alignment (default: left)
−−no-ghost-box No semitransparent boxes behind subtitles
−−lines n Number of lines in the subtitle buffer (default: 3)
−−win ‘x1 y1 x2 y2’ Set position of video window
−−win x1,y1,x2,y2 Set position of video window
−−crop ‘x1 y1 x2 y2’ Set crop area for input video
−−crop x1,y1,x2,y2 Set crop area for input video
−−aspect-mode type Letterbox, fill, stretch. Default: stretch if win is specified, letterbox otherwise
−−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
−−threshold n Amount of buffered data required to finish buffering [s]
−−timeout n Timeout for stalled file/network operations (default 10s)
−−orientation n Set orientation of video (0, 90, 180 or 270)
−−fps n Set fps of video where timestamps are not present
−−live Set for live tv or vod type stream
−−layout Set output speaker layout (e.g. 5.1)
−−dbus_name name default: org.mpris.MediaPlayer2.omxplayer
−−key-config Uses key bindings in instead of the default
−−alpha Set video transparency (0..255)
−−layer n Set video render layer number (higher numbers are on top)
−−display n Set display to output to
−−cookie ‘cookie’ Send specified cookie as part of HTTP requests
−−user-agent ‘ua’ Send specified User-Agent as part of HTTP requests
−−lavfdopts ‘opts’ Options passed to libavformat, e.g. ‘probesize:250000,…’
−−avdict ‘opts’ Options passed to demuxer, e.g., ‘rtsp_transport:tcp,…’For example:

./omxplayer -p -o hdmi test.mkv

Changed status to publish

The Linux framebuffer (fbdev) is a graphic hardware-independent abstraction layer to show graphics on a computer monitor, typically on the system console.

It allows direct access to the framebuffer (the part of a computer’s video memory containing a current video frame) using only the Linux kernel’s own basic facilities and its device file system interface. It does not rely on user space software like SVGALib.