I'm creating an app that has a function that plays user selected video's. Nothing fancy, just playback of video's on the device itself without any advanced settings. Since MediaPlayer has issues with some video types I use Vitamio. It works great on smaller compressed video's but when I select a mp4 video that I've recorded with my phone itself it stutters, both audio and video. I tried changing video quality of the Vitamio Media Player, but it doesn't seem to have any effect.
I'm quite stuck in finding a solution, anyone who has any experience with this?
Please sure the video you recorded is ok, you can playback the video use VPlayer. or pull the video to your computer playback it.
if first ok ,you can try use Vitamio hardware decoder playback it.
Related
I can load a video from the web. All works fine.
However, when a network connection is slow the video is buffering. So I want to set the quality of video while, streaming it automatically or manually.
I am blank about this.
If I am not mistaken, VideoView only plays the video. Here is the documentation on it, doesn't seem to have that option at all.
I'd suggest you use the youtube API instead if you can.
I'm trying to replace the audio of a video in Android.
I think to solutions like mute the video and put on it an audio track, but
that not works very well if you want to save the video with the track on.
Is there a way to replace the sound part of a video to make it savable?
Thanks in advance.
I guess there are easier solutions, but it seems to be possible to use ffmpeg on android (FFmpeg on Android might get you going at installing it). You can then strip the audio (if you have set an audiosource while recording), and add other audio to your video. You can find many example ffmpeg-commands on how to remove from and add audio to your video.
I am building an app using AndroidFFmpeg(https://github.com/appunite/AndroidFFmpeg).
With medium file size(<100MB), the player works well. But with the large file size(from 100MB) or HD video format, the video is so slow and lag, not sync with audio, the audio is break.
Can anyone know this issue, please help me. Any suggestion would be appreciated. Thanks!
both video files were created with the same codecs?
This is very important, because you will experiment an annoying lag if some videos has codecs that are not supported.
In android i have the standard for codecs:
H.264 for video.
AAC for audio.
Hey I'm struggling with a real hard problem for a few days now, hope you guys can help me.
my android app records videos and uploads them to my WCF restful sever, the server streams back the files. all is working well on firefox and chrome, the video is beying streamed without any problems.
on the same android application i recorded the video there is a problem, short videos (under a minute) are beying streamed without any trouble, yet when the video becomes longer the mediaplayer seems to not load it.
I have tried changing the mediarecorder profile fileformat and videocodec yet no change, ive read mediaplayer only supports mpeg4 and 3gp video stream over HTTP and ive tried all the combinations.
mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
CamcorderProfile profile = CamcorderProfile.get(CamcorderProfile.QUALITY_LOW);
profile.fileFormat =2;
profile.videoCodec=3;
mediaRecorder.setProfile(profile);
im pretty sure my server handles the streaming well since its works on browsers, also other formats like audio 3gp and mp3 stream fine on the app only the video isnt streaming.
can somebody put me on the right track here?
Thanks!
well after tampering around i finally found the cause to all this.
it seems the android mediarecorder appends the moov atom to the end of the recorder video yet when streaming with the mediaplayer the file must have its moov atom in the begining.
so there u go for anybody struggling with recorder videos not streaming back
My application uses a simple VideoView .It uses an 3gp file from assetsbut all i can see is a blank screen and music of that video.
Would someone help me to display the video?
P.S-I am trying it on emulator?
Do not use emulator for testing video playback. Its ability to handle video playback is very limited. You should use actual device to play videos.
Check https://stackoverflow.com/a/3005928/1341006 by Commonsware for more details