reinzor / videowall

Video wall with multiple tiles that enables synchronized video playback, mirrored or tiled.
92 stars 26 forks source link

videoscale too slow on raspberry pi zero #5

Closed reinzor closed 5 years ago

reinzor commented 5 years ago

https://github.com/reinzor/videowall/blob/master/src/videowall/player/player_client.py#L99

http://gstreamer-devel.966125.n4.nabble.com/Videoscale-too-slow-on-raspberry-pi-How-to-get-the-video-full-screen-td4689368.html

Find another way to upscale the video or make it full screen

I would like every client to crop play a specific region of interest of the master video. With use of the videocrop element, I am cropping the desired part. I am currently using the ximagesink attached to a Gtk.DrawingArea() in order to make it fullscreen. However, when I do not scale up the video to the desired resolution, I get black borders around my video instead of upscaling is. So I tried the videoscale element to upscale the video. However, this turns out to be too slow on the Raspberry pi. I have read online that it is not using hardware acceleration so this makes sense.

Is there a good alternative to obtain a full screen cropped video on a raspberry pi? Currently I am using the following pipeline:

filesrc location=file.mp4 ! qtdemux ! h264parse ! omxh264dec ! videocrop bottom={} left={} right={} top={} ! videoconvert ! queue ! videoscale add-borders=false ! video/x-raw,width=1280,height=720 ! ximagesink

And I attach the ximagesink to the GTK drawin area.

reinzor commented 5 years ago

Closed by https://github.com/reinzor/videowall/pull/6