bino-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bino-list] Switch to another view in Bino.


From: Martin Lambers
Subject: Re: [Bino-list] Switch to another view in Bino.
Date: Tue, 6 Aug 2013 14:16:59 +0200

Hi!

On Tue, 6 Aug 2013 20:23:22 +0900, Duc Nguyen wrote:
> I am working on 3D video streaming system at the moment. In my
> experiment,  I uses Bino as the 3D video player in Ubuntu 12.04. The
> left and right view are contained in separate files and there are
> multiple alternative of the left or right view. For better user
> experience, the player is required to be able to switch to another
> alternative of the left or right view according to user's position.
> An my question is: Is it possible to switch to another alternative of
> left or right view at a given time (e.g. after 10s from starting) ?

Yes, by using scripting. See
http://www.bino3d.org/doc/bino.html#Scripting

You have two options:

If you have to keep the left/right views in different files, then
switching video streams is limited, because Bino's input mode
"separate-left-right" does not support this. But it is still possible
by reopening the files and seeking to the right position. The script
could look like this:

8<-----------------------------------
open left-0.mp4 right-0.mp4
play
wait 10
open left-1.mp4 right-1.mp4
play
set-pos 10
wait 10
quit
8<-----------------------------------

If you can combine left and right views into single video streams, e.g.
l.mp4 and r.mp4 into lr.mp4 in side-by-side mode, then switching video
streams is fully supported and a lot easier. The script could look like
this:

8<-----------------------------------
open lr0.mp4 lr1.mp4 lr2.mp4 lr3.mp4 lr4.mp4
set-stereo-layout left-right
set-video-stream 0
play
wait 10
set-video-stream 1
wait 10
set-video-stream 2
wait 10
set-video-stream 3
wait 10
set-video-stream 4
8<-----------------------------------

Note that switching video streams requires a resynchronization of
stream positions. Depending on the container format and codec, this may
cause a slight pausing or jumping during playback. If you want to
reduce this effect or if you need more precision in video stream
seeking, encode your videos with lots of keyframes (these are the ones
that Bino can seek to).

Regards,
Martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]