下面 是我测试过程的记录,希望对大家有用:)
测试opencore
1.前面完成编译之后,产生的library都放在了这个目录,<opencore>即为解压的opencore所在目录,我这里为 /home/yuchen/opencore
<opencore>/build_config/opencore_dynamic/build/installed_lib/linux
编译产生的可执行文件都放在了这个目录:
<opencore>/build_config/opencore_dynamic/build/bin/linux
2.检查库和可执行文件的完整性
cd <opencore>/build_config/opencore_dynamic/build/bin/linux 进入可执行文件目录
ls 显示文件列表,可以看到里面编译产生的可执行文件
file test_omx_client
从log信息中可以看到该可执行文件使用了动态链接库,下面检查库的完整性
ldd test_omx_client
可以看到有两个library是not found !正是我们编译产生的liabrary,放在了<opencore>/build_config/opencore_dynamic /build/installed_lib/linux 目录
执行如下指令修改动态链接路径
sudo gedit /etc/ld.so.conf
在弹出的编辑中,最后加上
<opencore>/build_config/opencore_dynamic/build/installed_lib/linux 我这里加入的是/home/yuchen/opencore/build_config/opencore_dynamic/build /installed_lib/linux
添加之后记得存档哦!
sudo /sbin/ldconfig.real -v 重新扫描系统中的动态链接库
再次确认进入<opencore>/build_config/opencore_dynamic/build/bin/linux目录,不 是在该目录下使用cd进入
ldd test_omx_client 检查库是否完整,可以看到刚刚not found没有了!
sudo cp <opencore>/pvplayer.cfg <opencore>/build_config/opencore_dynamic/build/bin/linux/ 這個pvplayer.cfg中是紀錄了OpenCORE會用到的library的UUID。我这里相应的为
(sudo cp /home/yuchen/opencore/build_config/opencore_dynamic/pvplayer.cfg /home/yuchen/opencore/build_config/opencore_dynamic/build/bin/linux/ )
3.测试前准备
复制所需的测试文件,分别执行如下两个指令
sudo cp <opencore>/engines/player/test/data/test.mp4 <opencore>/build_config/opencore_dynamic/build/bin/linux/
sudo cp <opencore>/codecs_v2/omx/omx_testapp/data/ba1_sony_c.264 <opencore>/build_config/opencore_dynamic/build/bin/linux/
我这里对应的为:
(sudo cp /home/yuchen/opencore/engines/player/test/data/test.mp4 /home/yuchen/opencore/build_config/opencore_dynamic/build/bin/linux/
sudo cp /home/yuchen/opencore/codecs_v2/omx/omx_testapp/data/ba1_sony_c.264 /home/yuchen/opencore/build_config/opencore_dynamic/build/bin/linux/ )
在<opencore>/build_config/opencore_dynamic/build/bin/linux目录下建立输出文 件,指令为:
touch output.txt
查看该目录下文件,现在应该有如下文件
pvplayer_engine_test est_omx_client pvplayer.cfg test.mp4 ba1_sony_c.264 output.txt
4.下面就可以测试了,测试pvplayer_engine_test,指令如下:
./pvplayer_engine_test -source test.mp4 -test 0 0 -logall
下面是我复制的log信息:
Version: CORE_8.105.1.1 generated on 20100104
Test Program for pvPlayer engine class.
Test case range 0 to 0
Compressed output Video(No) Audio(No)
Log level 8; Log node 1 Log Text 0 Log Mem 0
Starting Test 0: PVLOG:TID(0xb75746d0):Time=0:PVSCHED:Scheduler 'PVPlayerEngineTestScheduler', Thread 0xb75746d0: Installed
PVLOG:TID(0xb75746d0):Time=0:PVSCHED: Ticks frequency %u
New-Delete
Input File: test.mp4
PVLOG:TID(0xb75746d0):Time=41:PVSCHED: AO PVPlayerEngineAsyncTestBase Request complete
PVLOG:TID(0xb75746d0):Time=41:PVSCHED:Scheduler 'PVPlayerEngineTestScheduler', Thread 0xb75746d0: Starting PV Scheduling Loop
PVLOG:TID(0xb75746d0):Time=160:PVMFMediaClock::SetStartTime32 - Clock Start time set to 0
PVLOG:TID(0xb75746d0):Time=161:OsclConfigFileList::Populate './' IN
PVLOG:TID(0xb75746d0):Time=161:OsclConfigFileList::Populate - Searching path ./ ...
PVLOG:TID(0xb75746d0):Time=161: Time taken = 0 ticks
PVLOG:TID(0xb75746d0):Time=161: Number of config files found = 1
PVLOG:TID(0xb75746d0):Time=161:PVPlayerNodeRegistry::AddLoadableModules() IN
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate './pvplayer.cfg' IN
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - found a match, adding to list: libopencore_streamingreg
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - found a match, adding to list: libopencore_downloadreg
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - found a match, adding to list: libopencore_mp4localreg
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Parsing configFile ./pvplayer.cfg ...
PVLOG:TID(0xb75746d0):Time=161: Time taken = 0 ticks
PVLOG:TID(0xb75746d0):Time=161: Lines read = 7
PVLOG:TID(0xb75746d0):Time=161: Libraries found = 3
PVLOG:TID(0xb75746d0):Time=161:OsclSharedLibrary::LoadLib libopencore_streamingreg IN
PVLOG:TID(0xb75746d0):Time=162:OsclSharedLibrary::LoadLib looking for Debug lib libopencore_streamingreg_debug.so
PVLOG:TID(0xb75746d0):Time=162:OsclSharedLibrary::loadlibrary libopencore_streamingreg_debug.so IN
PVLOG:TID(0xb75746d0):Time=164:OsclSharedLibrary - Loading library libopencore_streamingreg_debug.so took 3 ticks ...
PVLOG:TID(0xb75746d0):Time=165:OsclSharedLibrary::LoadLib libopencore_downloadreg IN
PVLOG:TID(0xb75746d0):Time=165:OsclSharedLibrary::LoadLib looking for Debug lib libopencore_downloadreg_debug.so
PVLOG:TID(0xb75746d0):Time=165:OsclSharedLibrary::loadlibrary libopencore_downloadreg_debug.so IN
PVLOG:TID(0xb75746d0):Time=165:OsclSharedLibrary - Loading library libopencore_downloadreg_debug.so took 0 ticks ...
PVLOG:TID(0xb75746d0):Time=166:OsclSharedLibrary::LoadLib libopencore_mp4localreg IN
PVLOG:TID(0xb75746d0):Time=166:OsclSharedLibrary::LoadLib looking for Debug lib libopencore_mp4localreg_debug.so
PVLOG:TID(0xb75746d0):Time=166:OsclSharedLibrary::loadlibrary libopencore_mp4localreg_debug.so IN
PVLOG:TID(0xb75746d0):Time=166:OsclSharedLibrary - Loading library libopencore_mp4localreg_debug.so took 0 ticks ...
PVLOG:TID(0xb75746d0):Time=166:PVPlayerNodeRegistry::AddLoadableModules() OUT
PVLOG:TID(0xb75746d0):Time=166:PVPlayerRecognizerRegistry::AddLoadableModules() IN
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate './pvplayer.cfg' IN
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - found a match, adding to list: libopencore_mp4localreg
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=167:OsclLibraryList::Populate - Parsing configFile ./pvplayer.cfg ...
PVLOG:TID(0xb75746d0):Time=167:
测试opencore
1.前面完成编译之后,产生的library都放在了这个目录,<opencore>即为解压的opencore所在目录,我这里为 /home/yuchen/opencore
<opencore>/build_config/opencore_dynamic/build/installed_lib/linux
编译产生的可执行文件都放在了这个目录:
<opencore>/build_config/opencore_dynamic/build/bin/linux
2.检查库和可执行文件的完整性
cd <opencore>/build_config/opencore_dynamic/build/bin/linux 进入可执行文件目录
ls 显示文件列表,可以看到里面编译产生的可执行文件
file test_omx_client
从log信息中可以看到该可执行文件使用了动态链接库,下面检查库的完整性
ldd test_omx_client
可以看到有两个library是not found !正是我们编译产生的liabrary,放在了<opencore>/build_config/opencore_dynamic /build/installed_lib/linux 目录
执行如下指令修改动态链接路径
sudo gedit /etc/ld.so.conf
在弹出的编辑中,最后加上
<opencore>/build_config/opencore_dynamic/build/installed_lib/linux 我这里加入的是/home/yuchen/opencore/build_config/opencore_dynamic/build /installed_lib/linux
添加之后记得存档哦!
sudo /sbin/ldconfig.real -v 重新扫描系统中的动态链接库
再次确认进入<opencore>/build_config/opencore_dynamic/build/bin/linux目录,不 是在该目录下使用cd进入
ldd test_omx_client 检查库是否完整,可以看到刚刚not found没有了!
sudo cp <opencore>/pvplayer.cfg <opencore>/build_config/opencore_dynamic/build/bin/linux/ 這個pvplayer.cfg中是紀錄了OpenCORE會用到的library的UUID。我这里相应的为
(sudo cp /home/yuchen/opencore/build_config/opencore_dynamic/pvplayer.cfg /home/yuchen/opencore/build_config/opencore_dynamic/build/bin/linux/ )
3.测试前准备
复制所需的测试文件,分别执行如下两个指令
sudo cp <opencore>/engines/player/test/data/test.mp4 <opencore>/build_config/opencore_dynamic/build/bin/linux/
sudo cp <opencore>/codecs_v2/omx/omx_testapp/data/ba1_sony_c.264 <opencore>/build_config/opencore_dynamic/build/bin/linux/
我这里对应的为:
(sudo cp /home/yuchen/opencore/engines/player/test/data/test.mp4 /home/yuchen/opencore/build_config/opencore_dynamic/build/bin/linux/
sudo cp /home/yuchen/opencore/codecs_v2/omx/omx_testapp/data/ba1_sony_c.264 /home/yuchen/opencore/build_config/opencore_dynamic/build/bin/linux/ )
在<opencore>/build_config/opencore_dynamic/build/bin/linux目录下建立输出文 件,指令为:
touch output.txt
查看该目录下文件,现在应该有如下文件
pvplayer_engine_test est_omx_client pvplayer.cfg test.mp4 ba1_sony_c.264 output.txt
4.下面就可以测试了,测试pvplayer_engine_test,指令如下:
./pvplayer_engine_test -source test.mp4 -test 0 0 -logall
下面是我复制的log信息:
Version: CORE_8.105.1.1 generated on 20100104
Test Program for pvPlayer engine class.
Test case range 0 to 0
Compressed output Video(No) Audio(No)
Log level 8; Log node 1 Log Text 0 Log Mem 0
Starting Test 0: PVLOG:TID(0xb75746d0):Time=0:PVSCHED:Scheduler 'PVPlayerEngineTestScheduler', Thread 0xb75746d0: Installed
PVLOG:TID(0xb75746d0):Time=0:PVSCHED: Ticks frequency %u
New-Delete
Input File: test.mp4
PVLOG:TID(0xb75746d0):Time=41:PVSCHED: AO PVPlayerEngineAsyncTestBase Request complete
PVLOG:TID(0xb75746d0):Time=41:PVSCHED:Scheduler 'PVPlayerEngineTestScheduler', Thread 0xb75746d0: Starting PV Scheduling Loop
PVLOG:TID(0xb75746d0):Time=160:PVMFMediaClock::SetStartTime32 - Clock Start time set to 0
PVLOG:TID(0xb75746d0):Time=161:OsclConfigFileList::Populate './' IN
PVLOG:TID(0xb75746d0):Time=161:OsclConfigFileList::Populate - Searching path ./ ...
PVLOG:TID(0xb75746d0):Time=161: Time taken = 0 ticks
PVLOG:TID(0xb75746d0):Time=161: Number of config files found = 1
PVLOG:TID(0xb75746d0):Time=161:PVPlayerNodeRegistry::AddLoadableModules() IN
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate './pvplayer.cfg' IN
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - found a match, adding to list: libopencore_streamingreg
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - found a match, adding to list: libopencore_downloadreg
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - found a match, adding to list: libopencore_mp4localreg
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=161:OsclLibraryList::Populate - Parsing configFile ./pvplayer.cfg ...
PVLOG:TID(0xb75746d0):Time=161: Time taken = 0 ticks
PVLOG:TID(0xb75746d0):Time=161: Lines read = 7
PVLOG:TID(0xb75746d0):Time=161: Libraries found = 3
PVLOG:TID(0xb75746d0):Time=161:OsclSharedLibrary::LoadLib libopencore_streamingreg IN
PVLOG:TID(0xb75746d0):Time=162:OsclSharedLibrary::LoadLib looking for Debug lib libopencore_streamingreg_debug.so
PVLOG:TID(0xb75746d0):Time=162:OsclSharedLibrary::loadlibrary libopencore_streamingreg_debug.so IN
PVLOG:TID(0xb75746d0):Time=164:OsclSharedLibrary - Loading library libopencore_streamingreg_debug.so took 3 ticks ...
PVLOG:TID(0xb75746d0):Time=165:OsclSharedLibrary::LoadLib libopencore_downloadreg IN
PVLOG:TID(0xb75746d0):Time=165:OsclSharedLibrary::LoadLib looking for Debug lib libopencore_downloadreg_debug.so
PVLOG:TID(0xb75746d0):Time=165:OsclSharedLibrary::loadlibrary libopencore_downloadreg_debug.so IN
PVLOG:TID(0xb75746d0):Time=165:OsclSharedLibrary - Loading library libopencore_downloadreg_debug.so took 0 ticks ...
PVLOG:TID(0xb75746d0):Time=166:OsclSharedLibrary::LoadLib libopencore_mp4localreg IN
PVLOG:TID(0xb75746d0):Time=166:OsclSharedLibrary::LoadLib looking for Debug lib libopencore_mp4localreg_debug.so
PVLOG:TID(0xb75746d0):Time=166:OsclSharedLibrary::loadlibrary libopencore_mp4localreg_debug.so IN
PVLOG:TID(0xb75746d0):Time=166:OsclSharedLibrary - Loading library libopencore_mp4localreg_debug.so took 0 ticks ...
PVLOG:TID(0xb75746d0):Time=166:PVPlayerNodeRegistry::AddLoadableModules() OUT
PVLOG:TID(0xb75746d0):Time=166:PVPlayerRecognizerRegistry::AddLoadableModules() IN
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate './pvplayer.cfg' IN
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - found a match, adding to list: libopencore_mp4localreg
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - Found a (, reading uuid
PVLOG:TID(0xb75746d0):Time=166:OsclLibraryList::Populate - uuid not a match, skipping line
PVLOG:TID(0xb75746d0):Time=167:OsclLibraryList::Populate - Parsing configFile ./pvplayer.cfg ...
PVLOG:TID(0xb75746d0):Time=167: