No audio/sound while playing .mkv movie on VideView - android

I'm working on android video player using VideoView. It plays all formats songs like mp4, 3gp and mkv. But when I play a movie having .mkv extension its still working fine but I can't hear its sound. Can you guys please help me like how to fix the problem for mkv files to pitch its sound?

Related

H264 mp4 video not seekable in exoplayer

I am playing the .mp4 h264 video in exoplayer with defaultExtractor. Video is not seekable. When i seek the video it goes to start everytime i want to seek it. Others MP4 videos plays fine without any issue . Help me I am beginner of exoplayer .

AC-3 Codec - no audio

I'm playing a video using BetterVideoPlayer but video is playing but no audio is coming out. As i analysed, i found that this video is using AC-3 Codec(May be).
Google's Video player have also the same behaviour, but MX Player is also to play that video perfectly.

Audio Video Playing together in android

I have mute video file and separate audio file for same video. How can I play video with separate audio in android? I have tried using VideoView but unable to play audio separately. can anyone help in this!!
Before you start everything running, first you prepare both video and audio. When both of them are prepared only after that you can push the Start button.. and they should be synchronized ( if you recorded the audio part at the same time you started the video part)

android 2.3 MediaPlayer MPEG AAC Audio

I am trying to play an audio recorded from iPhone in android. The following are the source code the playing the video in android. The extension of the file is MP4.
Uri savedUri = Uri.fromFile(savedUri_file);
MediaPlayer mediaPlayer = MediaPlayer.create(MainActivity.this, getImageUri());
mediaPlayer.start();
The MediaPlayer.create returns a null value. In VLC I have checked the codec information of the audio. It is MPEG AAC Audio (mp4a).
I need to play this in android 2.3. In jelly bean its is working fine. Also I tried with videoview in 2.3, its working. The audio is playing.
Also when I tried play the same file from SD card (by taping on the MP4 file) its played int he default player.
But when I am trying to play the audio created from android device its playing. The codec information of the audion file created from android is AMR Narrow Band (samr).
The following are the code used for creating audio from
NSMutableDictionary *defaultSettings = [[[NSMutableDictionary alloc] init]autorelease];
[defaultSettings setValue :[NSNumber numberWithInt:kAudioFormatMPEG4AAC] forKey:AVFormatIDKey];
[defaultSettings setValue:[NSNumber numberWithFloat:16000.0] forKey:AVSampleRateKey];
[defaultSettings setValue:[NSNumber numberWithInt: 1] forKey:AVNumberOfChannelsKey];
Any hints?

How to play just sound from mp4 file in android?

Can we play just audio from mp4 file ?
I don't want to view video so that i can play mp4 file in background in live wallpaper .
I tried to play mp4 file by using MediaPlayer but sound is not playing .
Any hint ?
check this link it shows something ..
(1). Adding-Background-Music-to-Android-App
(2). play-foreground-and-background-music
and to play audio with video you can go for this ..
(3). how-play-video-and-audio-android

Categories

Resources