Archived issue #0030612
Visualization - provide texture map with video as image source
Description
TKService provides a tool for recording video, but doesn't provide interface for mapping video onto texture.
Steps to reproduce
pload MODELING VISUALIZATION
vclear
vinit View1
vrenderparams -perfCounters fps
box b 1 2 3
vdisplay -dispMode 1 b
vfit
vanimation anim -clear
proc drawFrame {thePts} { uplevel #0 vtexture b -video Video.mkv }
vanimation anim/cmd1 -start 0 -dur 100.0 -cmd "drawFrame %pts"
vanimation anim -play
Public activity
21 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Mar 28 00:57:17 2019 +0300
0030612: Visualization - provide texture map with video as image source
Introduced package Media wrapping FFmpeg structures.
Media_PlayerContext class manages video decoding into Media_IFrameQueue interface.
Graphic3d_MediaTextureSet implements Media_IFrameQueue interface and can be used as texture source.
AIS_MediaPlayer implements simple AIS object displaying video.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Mar 28 00:57:17 2019 +0300
0030612: Visualization - provide texture map with video as image source
Introduced package Media wrapping FFmpeg structures.
Media_PlayerContext class manages video decoding into Media_IFrameQueue interface.
Graphic3d_MediaTextureSet implements Media_IFrameQueue interface and can be used as texture source.
AIS_MediaPlayer implements simple AIS object displaying video.
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been updated by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Mar 28 18:36:54 2019 +0300
0030619: Draw Harness, ViewerTest - add continuous rendering option to vrepaint command
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Mar 28 18:36:54 2019 +0300
0030619: Draw Harness, ViewerTest - add continuous rendering option to vrepaint command
Branch [archived branch] has been updated by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Mar 28 18:47:00 2019 +0300
# corrections
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Mar 28 18:47:00 2019 +0300
# corrections
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Patch is ready for review.
http://jenkins-test-12.nnov.opencascade.com:8080/view/CR30612-CR30612-KGV/
http://jenkins-test-12.nnov.opencascade.com:8080/view/CR30612-CR30612-KGV/
Reviewed without remarks
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 16560.720000000027 / 16549.040000000037 [+0.07%]
Products
Total CPU difference: 10479.730000000041 / 9115.580000000047 [+14.97%]
Windows-64-VC14:
OCCT
Total CPU difference: 17968.9375 / 17926.078125 [+0.24%]
Products
Total CPU difference: 12026.71875 / 10583.1875 [+13.64%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 16560.720000000027 / 16549.040000000037 [+0.07%]
Products
Total CPU difference: 10479.730000000041 / 9115.580000000047 [+14.97%]
Windows-64-VC14:
OCCT
Total CPU difference: 17968.9375 / 17926.078125 [+0.24%]
Products
Total CPU difference: 12026.71875 / 10583.1875 [+13.64%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
There are following compilation errors on CentOS64-64 (gcc 4.4.7):
http://jenkins-test-08.nnov.opencascade.com/view/IR-2019-04-05_IR-2019-04-05/view/OCCT%20compile/job/IR-2019-04-05_IR-2019-04-05-OCCT-CentOS64-64-opt-compile/1/parsed_console/
/IR-2019-04-05_IR-2019-04-05/CentOS64-64-opt/OCCT/src/Media/Media_CodecContext.cxx:28:
/dn29/PRODUCTS/maintenance/opencascade-6.7.1/CentOS64-64/ffmpeg-3.1/include/libavutil/common.h:30:2: error: #error missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
/IR-2019-04-05_IR-2019-04-05/CentOS64-64-opt/OCCT/src/Media/Media_CodecContext.cxx:28:
/dn29/PRODUCTS/maintenance/opencascade-6.7.1/CentOS64-64/ffmpeg-3.1/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/dn29/PRODUCTS/maintenance/opencascade-6.7.1/CentOS64-64/ffmpeg-3.1/include/libavutil/common.h:205: error: ‘UINT64_C’ was not declared in this scope
/IR-2019-04-05_IR-2019-04-05/CentOS64-64-opt/OCCT/src/Media/Media_CodecContext.cxx: In member function ‘bool Media_CodecContext::ReceiveFrame(const opencascade::handle<Media_Frame>&)’:
/dn54/builds/IR-2019-04-05_IR-2019-04-05/CentOS64-64-opt/OCCT/src/Media/Media_CodecContext.cxx:265: error: ‘UINT64_C’ was not declared in this scope
Windows-32-vc14-uwp, Windows-64-vc14-uwp:
http://jenkins-test-08.nnov.opencascade.com/view/IR-2019-04-05_IR-2019-04-05/view/OCCT%20compile/job/IR-2019-04-05_IR-2019-04-05-OCCT-Windows-32-VC14-uwp-opt-compile/1/parsed_console/
\IR-2019-04-05_IR-2019-04-05\Windows-32-VC14-uwp-opt\OCCT\src\Media\Media_PlayerContext.cxx(71): error C2065: 'TIMECAPS': undeclared identifier
...
\IR-2019-04-05_IR-2019-04-05\Windows-32-VC14-uwp-opt\OCCT\src\Media\Media_PlayerContext.cxx(72): error C3861: 'timeGetDevCaps': identifier not found
http://jenkins-test-08.nnov.opencascade.com/view/IR-2019-04-05_IR-2019-04-05/view/OCCT%20compile/job/IR-2019-04-05_IR-2019-04-05-OCCT-CentOS64-64-opt-compile/1/parsed_console/
/IR-2019-04-05_IR-2019-04-05/CentOS64-64-opt/OCCT/src/Media/Media_CodecContext.cxx:28:
/dn29/PRODUCTS/maintenance/opencascade-6.7.1/CentOS64-64/ffmpeg-3.1/include/libavutil/common.h:30:2: error: #error missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
/IR-2019-04-05_IR-2019-04-05/CentOS64-64-opt/OCCT/src/Media/Media_CodecContext.cxx:28:
/dn29/PRODUCTS/maintenance/opencascade-6.7.1/CentOS64-64/ffmpeg-3.1/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/dn29/PRODUCTS/maintenance/opencascade-6.7.1/CentOS64-64/ffmpeg-3.1/include/libavutil/common.h:205: error: ‘UINT64_C’ was not declared in this scope
/IR-2019-04-05_IR-2019-04-05/CentOS64-64-opt/OCCT/src/Media/Media_CodecContext.cxx: In member function ‘bool Media_CodecContext::ReceiveFrame(const opencascade::handle<Media_Frame>&)’:
/dn54/builds/IR-2019-04-05_IR-2019-04-05/CentOS64-64-opt/OCCT/src/Media/Media_CodecContext.cxx:265: error: ‘UINT64_C’ was not declared in this scope
Windows-32-vc14-uwp, Windows-64-vc14-uwp:
http://jenkins-test-08.nnov.opencascade.com/view/IR-2019-04-05_IR-2019-04-05/view/OCCT%20compile/job/IR-2019-04-05_IR-2019-04-05-OCCT-Windows-32-VC14-uwp-opt-compile/1/parsed_console/
\IR-2019-04-05_IR-2019-04-05\Windows-32-VC14-uwp-opt\OCCT\src\Media\Media_PlayerContext.cxx(71): error C2065: 'TIMECAPS': undeclared identifier
...
\IR-2019-04-05_IR-2019-04-05\Windows-32-VC14-uwp-opt\OCCT\src\Media\Media_PlayerContext.cxx(72): error C3861: 'timeGetDevCaps': identifier not found
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Please re-check compilation of corrected patch on mentioned platforms.
There is following warning on CentOS64-64-opt:
http://jenkins-test-08.nnov.opencascade.com/view/IR-WEEK15_IR-WEEK15/view/OCCT%20compile/job/IR-WEEK15_IR-WEEK15-OCCT-CentOS64-64-opt-compile/1/warningsResult/
Media_FormatContext.cxx:413, GNU C Compiler 4 (gcc), Priority: Normal
‘AVStream::codec’ is deprecated (declared at /dn29/PRODUCTS/maintenance/opencascade-6.7.1/CentOS64-64/ffmpeg-3.1/include/libavformat/avformat.h:880)
There are following compile errors on Windows-32-VC9-opt and Windows-64-VC9-opt:
http://jenkins-test-08.nnov.opencascade.com/view/IR-WEEK15_IR-WEEK15/view/OCCT%20compile/job/IR-WEEK15_IR-WEEK15-OCCT-Windows-32-VC9-opt-compile/1/parsed_console/
C:\builds\IR-WEEK15_IR-WEEK15\Windows-32-VC9-opt\OCCT\src\Media\Media_FormatContext.cxx(134) : error C2027: use of undefined type 'AVRational'
C:\builds\IR-WEEK15_IR-WEEK15\Windows-32-VC9-opt\OCCT\src\Media\Media_CodecContext.cxx(157) : error C2027: use of undefined type 'AVStream'
http://jenkins-test-08.nnov.opencascade.com/view/IR-WEEK15_IR-WEEK15/view/OCCT%20compile/job/IR-WEEK15_IR-WEEK15-OCCT-CentOS64-64-opt-compile/1/warningsResult/
Media_FormatContext.cxx:413, GNU C Compiler 4 (gcc), Priority: Normal
‘AVStream::codec’ is deprecated (declared at /dn29/PRODUCTS/maintenance/opencascade-6.7.1/CentOS64-64/ffmpeg-3.1/include/libavformat/avformat.h:880)
There are following compile errors on Windows-32-VC9-opt and Windows-64-VC9-opt:
http://jenkins-test-08.nnov.opencascade.com/view/IR-WEEK15_IR-WEEK15/view/OCCT%20compile/job/IR-WEEK15_IR-WEEK15-OCCT-Windows-32-VC9-opt-compile/1/parsed_console/
C:\builds\IR-WEEK15_IR-WEEK15\Windows-32-VC9-opt\OCCT\src\Media\Media_FormatContext.cxx(134) : error C2027: use of undefined type 'AVRational'
C:\builds\IR-WEEK15_IR-WEEK15\Windows-32-VC9-opt\OCCT\src\Media\Media_CodecContext.cxx(157) : error C2027: use of undefined type 'AVStream'
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
> There are following compile errors on Windows-32-VC9-opt and Windows-64-VC9-opt:
Please recheck updated branch on these compilers.
> There is following warning on CentOS64-64-opt:
It is expected, since Standard_DISABLE_DEPRECATION_WARNINGS is not implemented for this old compiler.
Please recheck updated branch on these compilers.
> There is following warning on CentOS64-64-opt:
It is expected, since Standard_DISABLE_DEPRECATION_WARNINGS is not implemented for this old compiler.
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records