2019-01-27:
result: udoo quad with gst-play-1.0 ist ok with pd but Rp is better and easier to handle
+ udoo audio is in danger to hum when connected to other devices (eg. scarlett2i4) -> ground problems (not present when headphones attatched directly to udoo. udoo headphone amp on udoo does not really have a high output)
udoo does not play prores (error: timestamping problem, computer too slow) and does not play xdcam50mbit (qtdemux streaming error)
========= not good ====
possible solution for a loop (but makes also a gap)
nano skript.sh
#!/bin/bash
for ((i=1;i<=3;i++));
do gst-play-1.0 –gapless –videosink=imxipuvideosink –audiosink=alsasink video.mov;
done;
strg+x save file and run with ./skript.sh (this skipt makes a loop with 2 iterations)
=======================
============ ok solution (not perfect) [but best for udoo quad] =======
udoo has (maybe depending on powersupply) a BAD audio-out (humming @ ~50Hz)
udoo makes a short silence immediately after starting a videofile
check gst-installation https://gstreamer.freedesktop.org/documentation/frequently-asked-questions/using.html
achtung: udoo ignoriert –audio-sink=alsasink / –audiosink=alsasink aufruf und spielt alles über pulseaudio
dh man muss in pulseaudio ein mal einstellen, dass die default-sink = alsa (zb durch abspielen und dann über pulse-gui umstellen bzw BESSER – pulse-gui – output devices – set analog audio as fallback (green button)).
‚gapless‘ playback with gst-play-1.0 – better performance than gst-launch-1.0 but also with a little gap in videostream!! (sound from video is quite seamless – ok!)
sudo apt-get install gstreamer1.0-plugins-base-apps (for gst-play-1.0)
gapless playback of ‚playlist‘ – audio in pulse einstellen (siehe oben!) :
gst-play-1.0 –gapless –videosink=imxipuvideosink –audiosink=alsasink video1.mov video2.mov etc
–gapless plays a (nearly) gapless loop (video not ok but audio ok)
–videosink=imxipuvideosink makes fullscreen on udoo
–audiosink=alsasink should use alsa as audiosink but this is ignored (s.o.)
PROBLEM: when calling gst-play-1.0 from command line, can’t surpress timecode-output.
=======================================
BEST SOLUTION (nearly as good as Rp-solution): calling gst-play-1.0 from pd with [ggee/shell] without [print] – this reduces also the (black) gap when looping! with -nogui
===============================================
2019-01-26:
first of all: udoo quad is a really BAD video-player when looping
– if cuts with a lot of color change in the video (from pink screen to white screen) – you will see artifacts
– when looping video you will also see artifacts and also eg. the desktop
loop with gstreamer from bash:
$ while true; do gst-launch-1.0 playbin uri=file:///home/udooer/Desktop/video.mov; done
play videoloop with pd using the jack output for audio (this loop won’t be seamless, it has a ~500ms hole) and fullscreen-mode on udoo:
[r looper]
|
[spigot 1]
|
[gst-launch-1.0 -e -q playbin uri=file:///home/udooer/Desktop/video.mov audio-sink=alsasink video-sink=imxipuvideosink(
|
[ggee/shell]
| \
[print] [s looper]
with pd you can use this workaround to prevent from 500ms hole (you’ll see the desktop):
use code from above two times starting two videos with the same length (and same content or black…)
start the second video 500 ms after the first but without the audio-sink
update gstreamer on udoobuntu:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
sudo apt-get install gstreamer-tools
gst-inspect-1.0 –version
?? gst-install (looking for plugins)
https://manpages.ubuntu.com/manpages/cosmic/en/man1/gst-launch-1.0.1.html