I'm using Android SDK 2.3.3 for playing *.ts file.
TS File Specifications are : Audio - AAC format , Video - AVC format
On button click I'm playing my Transcode.ts from the data directory of
the device.
Video is to be displayed in ViewView widget.
When I select to play Transcoded.ts file, Mediaplayer is able to
detech the TS file and gets metadata out of it.
But when it tries to play the file,I get a notification "Sorry, Video
cannot be played".
In the logcat if u check we get error in Mediaplayer :error
(1,-2147483648)
Can anyone please suggest on this.
Please find the logcat below
I/StagefrightPlayer( 34 ): setDataSource('/data/Transcoded.ts')
I/ ( 34) : found AVC codec config (352 x
256)
I/MPEG2TSExtractor( 34): haveAudio=1, haveVideo=1
D/MediaPlayer( 628) : getMetadata
D/AudioSink( 34) : bufferCount (4) is too small and
increased to 12
E/MediaPlayer( 628) : error (1, -2147483648)
E/MediaPlayer( 628) : Error (1,-2147483648)
D/VideoView( 628) : Error: 1,-2147483648
D/dalvikvm( 270) : GC_EXPLICIT freed 9K, 55% free 2598K/
5703K, external 716K/1038K, paused 2389ms
W/InputManagerService( 69): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@4066b4c0
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en