Video write

37 views
Skip to first unread message

J Boggy

unread,
Dec 8, 2016, 10:11:28 AM12/8/16
to web2py-users
i use opencv in web2py to process video frame. And then write video into static/videos folder . It creates successfully .but i don't have any idea to read video fom static/videos folder from html video src.

Marlysson Silva

unread,
Dec 8, 2016, 2:30:14 PM12/8/16
to web2py-users
Already the videos stay in static/videos folder .. try make this in your html template file:

<video width="350" height="350">
    <source src="{{=URL('static','videos/video.mp4'}}" type="video/mp4">
</video>

this it html syntax .. in web2py you just handle views and controller to redirect template right.

J Boggy

unread,
Dec 8, 2016, 8:33:04 PM12/8/16
to web2py-users
Yes .i have been try
<source src='{{=URL()}} />
but it does not work too

Marlysson Silva

unread,
Dec 9, 2016, 6:57:34 AM12/9/16
to web2py-users
How are your code?
Reply all
Reply to author
Forward
0 new messages