【FAQ】全志D1芯片 如何在tina使用tplayerdemo 进行rtsp拉流说明?
-
make menuconfig 选项rtsp
Allwinner libcedarx....................................... libcedarx for allwinner (PACKAGE_libcedarx [=y]) Select cedarx configuration options [*] Support rtsp stream
打上附件的 "support_rtsp.patch"补丁(主要是开启rtsp依赖的模块, 后续会加宏配置好,只选rtsp就好) support_rtsp.patch
diff --git a/allwinner/tina_multimedia/libcedarx/libcore/parser/Makefile.am b/allwinner/tina_multimedia/libcedarx/libcore/parser/Makefile.am index f33af3743..5d1aeaf0c 100755 --- a/allwinner/tina_multimedia/libcedarx/libcore/parser/Makefile.am +++ b/allwinner/tina_multimedia/libcedarx/libcore/parser/Makefile.am @@ -72,4 +72,7 @@ if PLS_PARSER_ENABLE SUBDIRS += pls endif -SUBDIRS += base \ No newline at end of file +SUBDIRS += remux + +SUBDIRS += base + diff --git a/allwinner/tina_multimedia/libcedarx/libcore/parser/base/CdxParser.c b/allwinner/tina_multimedia/libcedarx/libcore/parser/base/CdxParser.c index 44305f3c6..a24273fbc 100755 --- a/allwinner/tina_multimedia/libcedarx/libcore/parser/base/CdxParser.c +++ b/allwinner/tina_multimedia/libcedarx/libcore/parser/base/CdxParser.c @@ -50,7 +50,7 @@ static struct ParserUriKeyInfoS asfKeyInfo = }; #endif -#if 0 +#if 1 extern CdxParserCreatorT remuxParserCtor; static struct ParserUriKeyInfoS remuxKeyInfo = { @@ -460,7 +460,7 @@ void AwParserInit(void) AwParserRegister(&movParserCtor, CDX_PARSER_MOV, &movKeyInfo); #endif -#if 0 +#if 1 AwParserRegister(&remuxParserCtor, CDX_PARSER_REMUX, &remuxKeyInfo); #endif diff --git a/allwinner/tina_multimedia/libcedarx/libcore/parser/base/Makefile.am b/allwinner/tina_multimedia/libcedarx/libcore/parser/base/Makefile.am index 9dbb73590..86174f94e 100755 --- a/allwinner/tina_multimedia/libcedarx/libcore/parser/base/Makefile.am +++ b/allwinner/tina_multimedia/libcedarx/libcore/parser/base/Makefile.am @@ -65,6 +65,8 @@ libcdx_parser_la_LIBADD += $(top_srcdir)/libcore/parser/avi/libcdx_avi_parser.la libcdx_parser_la_CFLAGS += -DAVI_PARSER_ENABLE endif +libcdx_parser_la_LIBADD += $(top_srcdir)/libcore/parser/remux/libcdx_remux_parser.la + if TS_PARSER_ENABLE libcdx_parser_la_LIBADD += $(top_srcdir)/libcore/parser/ts/libcdx_ts_parser.la libcdx_parser_la_CFLAGS += -DTS_PARSER_ENABLE
使用ffmpeg 进行推流
sudo ffmpeg -stream_loop -1 -i 720x480.mp4 -vcodec copy -acodec aac -rtsp_transport tcp -f rtsp rtsp://1.116.32.155/media/test.mp4
拉流
4.1 wifi联网 4.2 tplayerdemo rtsp://1.116.32.155/media/test.mp4
rtsp 播放效果:
-
rtsp://1.116.32.155/media/test.mp4
小白请教一下,这个怎么自己搭建呢?
-
-
-
root@TinaLinux:/# tplayerdemo rtsp://192.168.42.103
WARNING: awplayer <cdx_log_set_level:30>: cdx Set log level to 6
INFO : cedarc CedarPluginVDInit:79: register h264 decoder success!
INFO : cedarc CedarPluginVDInit:84: register mjpeg decoder success!
INFO : cedarc CedarPluginVDInit:86: register mpeg2 decoder success!
INFO : cedarc CedarPluginVDInit:92: register mpeg4dx decoder success!
INFO : cedarc CedarPluginVDInit:79: register mpeg4H263 decoder success!
INFO : cedarc CedarPluginVDInit:90: register mpeg4Normal decoder success!
INFO : cedarc CedarPluginVDInit:74: register vc1 decoder success!
INFO : cedarc CedarPluginVDInit:85: register h265 decoder success!
- This program implements a simple player, you can type commands to control the player.
- To show what commands supported, type 'help'.
dd: writing '/dev/fb0': No space left on device
9601+0 records in
9600+0 records out
argc = 2
argv[0] = tplayerdemo
argv[1] = rtsp://192.168.42.103
may be is one file:cut down suffix is:.103
0:can not play this file:tplayerdemo
destroy all tplayer
- Quit the program, goodbye!
貌似都不能识别RTSP地址
-
-
请问大佬,F133在播放rtsp时出现以下报错要怎么解决?
-
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号