Playing MPEG Transport Stream

2,442 views
Skip to first unread message

Prageeth

unread,
Jun 7, 2010, 11:34:09 PM6/7/10
to android-platform
Hi All,

I am new to Android and am looking at supporting DTV playback.

The platform has hardware/driver which provides MPEG2-TS(Transport
Stream) packets to the application. Actually, the TS consists of
multiplexed H.264 video and HE-AAC audio, corresponding to Japanese
Mobile DTV standard (ISDB-T/Oneseg).

How can one play the above MPEG2-TS on Android? Can OpenCore framework
help? Any pointers appreciated.

Thanks,
Prageeth

a genius

unread,
Jun 8, 2010, 1:00:55 PM6/8/10
to android-platform
The hardware in most android devices should be compatible with the
H264 and AAC. Assuming that the resolution and bitrates are within the
necessary bounds for the particular hardware, at worst, you'll need to
implement a TS-demultiplexer.

iblues

unread,
Jun 9, 2010, 8:14:58 AM6/9/10
to android-platform
Hi Prageeth,

Assuming that your DTV stack will recieve the packets and you are
looking to integrate this with android framework for playback,
Opencore can be tweaked and used. (Just like how the video telephony
stacks are being integrated)

You will have to create a similar playerdriver, playerengine classes
(like the normal playback usecase , but supporting your own usecase).
You will need to develop a wrapper node from the DTV stack that will
provide the packet. This needs to be connected to the OMX codec node
and then o/p be connected to AudioMIO and VideoMIO node.

Hope I am right aout all the assumptions. :)

TC,
Syed

Prageeth

unread,
Jun 9, 2010, 9:23:52 PM6/9/10
to android-platform
Hi,

Thanks to all for the inputs. I agree that a TS-demux module will
surely be needed. However, a native code based solution will suffice?

As per Wikipedia[1], many programs on vanilla Linux, like ffmpeg,
mplayer, xine,gstreamer,MythTV etc, seems to directly handle MPEG TS.
I could look at porting at least the TS demux modules from these to
Android?

BTW, has this been attempted before? A quick search turned up a ffmpeg
port [2]. Any recommended path to follow?

Thanks,
Prageeth

[1]http://en.wikipedia.org/wiki/
MPEG_transport_stream#Programs_that_open_TS_files
[2]http://gitorious.org/~olvaffe/ffmpeg/ffmpeg-android

Olivier

unread,
Jul 1, 2010, 3:52:20 AM7/1/10
to android-platform
Hi Prageeth,

I have exactly the same problem.

I need to develop an application for Android which will be able to
play mp4 ts streams (320x240).

Did you find a ts demuxer easily portable to Android ?

Cheers,

Olivier

Prageeth

unread,
Jul 2, 2010, 7:20:01 AM7/2/10
to android-platform
Hi Olivier,

I could use libavformat of ffmpeg and from the feasibility tests done
so far, the demux of mpeg2 ts seems to work fine.

HTH,
Prageeth

Some links on porting ffmpeg to Android:
http://groups.google.com/group/android-ndk/browse_thread/thread/f25d5c7f519bf0c5
http://demo860.blogspot.com/2010/06/ffmpeg-libx264-build-for-android.html
http://oo-androidnews.blogspot.com/2010/02/ffmpeg-and-androidmk.html
http://slworkthings.wordpress.com/2010/02/23/ffmpeg-and-android-mk/
> > > > Prageeth- 引用テキストを表示しない -
>
> - 引用テキストを表示 -
Reply all
Reply to author
Forward
0 new messages