Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dtk_video_exec(3) [debian man page]

DTK_VIDEO_EXEC(3)						Draw Toolkit manual						 DTK_VIDEO_EXEC(3)

NAME
dtk_video_exec - Start/stop/pause a video texture SYNOPSIS
#include <dtk_video.h> int dtk_video_exec(dtk_htex vid, int command, const void* arg); DESCRIPTION
This function changes the state (or playing position) of a video texture referenced by vid according to the value of command: DTKV_CMD_PLAY: Set the video to play. arg is interpreted as a pointer to a variable of type int whose non zero value indicates that the state change is asynchronous and can be finished after the function returns. If arg is NULL, the change is performed synchronously. DTKV_CMD_PAUSE: Set the video to pause. arg is interpreted as a pointer to a variable of type int whose non zero value indicates that the state change is asynchronous and can be finished after the function returns. If arg is NULL, the change is performed synchronously. DTKV_CMD_SEEK: Seek the video to the position specified by arg which is then interpreted as a pointer to a variable of type long representing the position in milliseconds from the beginning of the video. arg is allowed to be NULL. In that case, the video will be positioned at its start. vid must be a dynamic texture created by one of the functions dtk_create_video_*(3). If the video was already in the requested state, the function will do nothing. If the video is created from the live source (webcam, network broadcast...), executing DTKV_CMD_SEEK will fail. RETURN VALUE
0 if the state has been changed or was already the one requested, -1 otherwise. SEE ALSO
dtk_load_video_file(3), dtk_load_video_gst(3), dtk_load_video_test(3), dtk_load_video_udp(3), dtk_load_video_tcp(3) EPFL
2011 DTK_VIDEO_EXEC(3)

Check Out this Related Man Page

DTK_LOAD_VIDEO_FILE(3)						Draw Toolkit manual					    DTK_LOAD_VIDEO_FILE(3)

NAME
dtk_load_video_file - Load an video file as a texture SYNOPSIS
#include <dtk_video.h> dtk_htex dtk_load_video_file(int flags, const char *filename); DESCRIPTION
This function loads the video file specified by filename argument as a dynamic texture. The texture will then been tracked by an internal texture manager so that the next call using the same filename argument will return the same texture handle, thus sparing the resources of the system. If not specified by flags the video will not be played immediately and dtk_video_exec(3) should be called to do start playing. The argument flags is used to modify the creation. It should contains a bitwise OR combination of the following flags: DTK_AUTOSTART : Indicates that the video should start immediately after creation. DTK_NOBLOCKING : Indicates that the creation function should not block waiting that the video pipeline is fully running. A dynamic texture can be used the same way as a static texture (for example image file). The only difference is that the content of the texture changes automatically with the stream of video. This means that every time a shape using this texture is drawn, the latest frame available from the video stream will be mapped on the shape. There is no need for a valid window to create successfully a texture, i.e. creation of textures are completely decoupled from the creation of others resources and can even be created in one thread to be used in another one. Once a the texture is stopped being used, it should be destroyed by dtk_destroy_texture(3). RETURN VALUE
In case of success, the function returns the handle to the created texture. In case of failure, NULL is returned. THREAD SAFETY
dtk_load_video_file() is thread-safe. SEE ALSO
dtk_destroy_texture(3), dtk_video_exec(3), dtk_video_getstate(3) EPFL
2011 DTK_LOAD_VIDEO_FILE(3)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

webcam on FreeBSD

Hello, guys ! I'm using FreeBSD 6.0-RELEASE. Can anyone recomend me a good soft that I can use for video conferences ? I mean, something like Yahoo! Messenger on Windows. I want to make a video conference with a friend of mine, but I use FreeBSD and my friend is using Windows. So, any sugestions... (1 Reply)
Discussion started by: Sergiu-IT
1 Replies

2. UNIX and Linux Applications

Apache+Perl: interruption of STDIN

Hello dear community! I have faced with a trouble which I trying to solve for a long time. I have service of video streaming. And I have web and video roles for servers. Video servers upload video using SWFUpload and then stream it. Issue became during uploading of video. In random time... (3 Replies)
Discussion started by: sevmax
3 Replies

3. IP Networking

ffserver cannot open ffserver.conf file

Hello, I use ffserver & ffmpeg in order to generate a live stream (recorded by a webcam). I use an embedded processor (SH7724), busybox version 2010.09, kernel 2.6.39.3. the command I issue is: ffserver -f /etc/ffserver.conf & ffmpeg -v 2 -r 24 -s 640x480 -loglevel verbose -f video4linux2 -i... (2 Replies)
Discussion started by: avivf
2 Replies

4. Windows & DOS: Issues & Discussions

How to play video files one after the other continously?

Hi, There are many MP4 files in a folder say 50 files . All these files are video clipping files.Instead of playing the video one by one , is it possible to play all video clipping files into single shot ? Say for example when i play one video file it gets over after sometime and to view... (5 Replies)
Discussion started by: Maddy123
5 Replies

5. What is on Your Mind?

Video Overview of the Vue.js UserCP @UNIX.com

Here is my second live video screencast (in my life, using Camtasia) with voice for the new usercp: Overview of the Vue.js UserCP @UNIX.com Shout outs to Don Cragun, Corona688, Rudi, Wolf, Made in Germany, stomp, Ravinder, Creative Tim, PubNub and others in the video. Thanks. If you are... (1 Reply)
Discussion started by: Neo
1 Replies

6. What is on Your Mind?

Climate change anyone?

Hi all together, The US President considers this topic as not serious. Here in Germany there it's taken very serious, made a lot of words, but little action. As far as I am reading now - written here quite clearly ... N.Y. Times - loosing earth or as video with the current state of... (37 Replies)
Discussion started by: stomp
37 Replies