简体   繁体   English

使用GStreamer在Android上的Mpeg TS播放器

[英]Mpeg TS player on android using GStreamer

I am supposed to design a MPEG-TS demux and player in android on my win 7 platform using the libraries of GStreamer as well as ffmpeg. 我应该在我的Win 7平台上使用GStreamer和ffmpeg库在android中设计MPEG-TS demux和播放器。 I am using eclipse juno version in my win 7 system. 我在Win 7系统中使用eclipse juno版本。 Now, I was successfully able to configure ffmpeg in eclipse. 现在,我可以在Eclipse中成功配置ffmpeg了。 I downloaded GStreamer sdk from docs.gstreamer.com and successfully configured gstreamer in eclipse. 我从docs.gstreamer.com下载了GStreamer sdk,并在Eclipse中成功配置了gstreamer。 As it turns out, the 5th tutorial of GStreamer is a media player app only. 事实证明,GStreamer的第5个教程仅是媒体播放器应用程序。 But when I execute that project, I am not able to see the video. 但是当我执行该项目时,我看不到视频。 Only audio sound is heard. 仅听到声音。 So, my next step should be configuring gst-ffmpeg plug-in in my eclipse and code a media player accepting transport stream (.ts) files. 因此,我的下一步应该是在eclipse中配置gst-ffmpeg插件,并对接受传输流(.ts)文件的媒体播放器进行编码。 But after surfing a lot on internet, I am not able to get a single solution of moving further. 但是,在网上冲浪很多之后,我无法获得进一步发展的单一解决方案。 I am using windows platform so the problem increases a bit. 我正在使用Windows平台,因此问题有所增加。 I am aware that there is Vplayer that accepts files of .ts format. 我知道有Vplayer接受.ts格式的文件。 But I am not able to reach to the source code of Vplayer. 但是我无法到达Vplayer的源代码。 Can anyone please please guide me further? 任何人都可以请我进一步指导吗? Help needed. 需要帮助。

Try modifying Android.mk in jni folder to include the following plugins in GSTREAMER_PLUGINS: 尝试在jni文件夹中修改Android.mk以在GSTREAMER_PLUGINS中包含以下插件:

mpeg2dec mpegdemux2 mpegtsdemux mpegtsmux

Then re-build. 然后重新构建。 TS files (found on your SD card) should now play. 现在可以播放TS文件(在SD卡上找到)。

If you need other plugins, check plugins.mk in GStreamerSDK/share/gst-android/ndk-build/ 如果您需要其他插件,请在GStreamerSDK / share / gst-android / ndk-build /中检查plugins.mk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM