Recording Video: sound delay - LG Optimus Black

Hi,
simple story:
recording video and when playing it (no matter if on phone or pc), the sound is 1,xx seconds delayed.
Very annoying if you are uploading content on youtube (no matter if 480 or HD).
I had to use a video editor to put in 1,6 seconds of title-intro to get it in sync since there is no tool out there to have an easy fix.
Memory card is fine (SDHC).
I'm running Zeus.
Any ideas?

Related

[MOD][CAM] [email protected]@20mbps + auto-focus on CM7

EDIT: [email protected] has been added to nightly and bitrate has been set to 12mbps which is not that bad. Its hence not recommended to flash these anymore. If you want higher bitrate look in the thread for those. I think it was pastime who made them. Alternatively use root explorer to manually edit /etc/mediaprofiles.XML. again, read pastimes and related posts in the thread on that.
This will replace the Camera.apk from CM7 with a more tegra2 friendly version that enables [email protected] recording. There's also included an updated media_profiles.xml file that'll enable different bitrates. Choose wisely . To test the bitrate I recommend having it running for at a minute to make sure everything can keep up. Usually it starts out smooth and then starts stuttering as the ram gets filled up. I also upped the quality for still.
Videos (I'll add experimental stuff as well, such as ultra high bitrates and auto focus):
http://www.youtube.com/user/O2XdevVids
I would stay away with 64mb ram hacks for the time being. Maybe we can find some middle ground in the future .
Anyway, please give me feedback on how it works. Some beautiful videos would be nice. Weather is really depressing here.
Please don't use this for non-tegra 2 devices.
Also, I'm experimenting a lot. Expect a lot to be buggy. I do my best not to put something out that doesn't work, but a couple of runs is really the extend of my testing before it goes up (to be honest). The autofocus-mod is seriously buggy. The bitrate-mod should be pretty much as buggy as the std. cm7 Camera app.
And, of course, thx to all the great ppl who works on cm.
------------------------------------------------------------
Source code (just the 1080p mod):
https://github.com/LeJay/Camera
Versions & Changelog & TODO
--------------Autofocus1.1----------------- (Note this is horribly buggy)
Just adds auto focus (and 25/30fps if you're on nightly), no change to bitrate. Flash this AFTER you do the bitrate mods. Flashing with any of the bitrate mods will replace the Camera app and you'll lose autofocus.
----------------------------------------------
--------------FullHDmod 1.0---------------
->Video:
HD: [email protected]@20mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_high 1.0---------- (works for some, requires fast sd card)
->Video:
HD: [email protected]@26mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_mid 1.0---------- (Recommended)
->Video:
HD: [email protected]@17mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_low 1.0----------
->Video:
HD: [email protected]@14mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_LG 1.0---------- (It's the settings used as stock LG... except for 1080p being 30fps)
->Video:
HD: [email protected]@9mbps
High: [email protected]@4mbps
----------------------------------------------
----------BitrateMod(720p only)---------- (Does not replace Camera.apk. Works for 64mb ram hack, until we find other solution)
->Video:
HD: [email protected]@20mbps
High: [email protected]@10mbps
----------------------------------------------
All audio is 128 kbps and all stills are:
Super fine: 100
Fine: 90
Normal: 80
--------------------------------CHANGELOG----------------------------------------
1.0 Initial release.
---- Small bugfix of CM7s camera app + tegra 2 specific stuff.
1.1-pre-alpha
---- Enables autofocus prior to video capture. Cannot be turned off(I don't do UIs,lol). Need to restart app for each video.
Autofocus 1.1
---- No need to restart app.
Known issues:
Does no longer auto adjust for exposure while recording. In between recordings it will auto adjust again. (I have no idea why).
Cannot disable autofocus (have no idea how to do UI).
Rather buggy, lots of freezes. For best results, don't push it. Ie. don't start and stop recordings rapidly, stuff like that.
Don't switch quickly to video when opening app... I think that might be a cm7 issue.
---------------------------------------TODO----------------------------------------
Touch to focus.
continuous auto-focus.
FAQ
Q: Does this work for non-CM7 ROMS?
A: Probably not. Certainly not froyo. But feel free to try and let me know. On stock rom-based builds, please look at somemadcaaant's awesome work at http://forum.xda-developers.com/showthread.php?t=1090785.
Q: T-Mobile LG G2x support?
A: Yes.
Q: What are the disadvantages?
A: Larger filesize. Takes longer to save (give it time to save before doing anything else with the phone). Potential issues with playback on phone.
Q: Does this work with 64 mb ram hack?
A: No. You can still use a high bitrate 720p mod for that kernel, though.
Q: It stutters after a few secs of recording or freezes once in a while, why is this?
A: Your phone/sdcard is having issues trying to keep up. Try a lower bitrate mod. If there is no lower, ask for one. I'm experimenting a little myself, trying to find a stable bitrate.
Q: If I open the Camera app and very quickly change to video I get a black screen?
A: Don't do that. I get the same bug on std. cm7 Camera app.
Q: Isn't it overkill with an FAQ for a camera mod?
A: Yes. But people kept asking the same questions last time I made a thread.
THX so much I will test it and report.
i would also add "touch to re-focus during video capture"(like in htc's) to the to-do list
Tegra 2 is some impressive hardware.... bitrate goes up crazy high. I'll add some different versions, but do people have any thoughts on what kind of bit rates they'd like to see?
Damn, I think maybe my sdcard cant keep up with the ultra high bit rates I'm testing. Starts stuttering after 10 sec. Maybe someone out there with a class 10 card?
When switching on video mode, i get a black screen and FC afterwards.
ranrick said:
When switching on video mode, i get a black screen and FC afterwards.
Click to expand...
Click to collapse
I purposely made my tweaks so code is first running when you actually start recording... If it's a new problem it's because of the settings file.
Tried restarting the app?
Work great for me on Kang today buid !
gregman26 said:
Work great for me on Kang today buid !
Click to expand...
Click to collapse
Great news.
LeJay said:
I purposely made my tweaks so code is first running when you actually start recording... If it's a new problem it's because of the settings file.
Tried restarting the app?
Click to expand...
Click to collapse
I reinstalled. Thereafter i was able to start it. But Recording doesn't work so far.It starts at 720P but when ending the recodring, I get a FC. 1080p keeps black screen and no FC and no recording. Maybe because of the 64MB RAM hack in the vorkKernal.
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
ranrick said:
I reinstalled. Thereafter i was able to start it. But Recording doesn't work so far.It starts at 720P but when ending the recodring, I get a FC. 1080p keeps black screen and no FC and no recording. Maybe because of the 64MB RAM hack in the vorkKernal.
Click to expand...
Click to collapse
Okay, so it officially doesn't work with the 64 mb ram hack. Not surprising. You can enable high bitrate 720p with some of my other mods.
TattooHtc said:
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
Click to expand...
Click to collapse
Isnt that the case with cm7 nightlies and 1080p recording?
Can someone up a vid?
TattooHtc said:
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
Click to expand...
Click to collapse
Hmm... I just recorded for 1 min straight with no issue. I do get similar issues on som2e of the higher bitrates I've been toying with(40mbps can make most sd cards cry). Does it start lagging as soon as you start recording?
I'm going to make higher and lower bitrate versions.
Works beautifully on the G2x as well. Thanks
@LeJay: you should contact arcee to include your mod in CM tree
TattooHtc said:
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
Click to expand...
Click to collapse
Could you try the low bitrate mod?
Works grat! 40 sec of video went from 18mb to 99mb. Now that we need a fast memory isn't better to use the internal memory?
buch85 said:
@LeJay: you should contact arcee to include your mod in CM tree
Click to expand...
Click to collapse
Agreed.
LeJay, I also think that you should contact Ricardo (arcee) and see if he can merge you changes. He just changed from 1080 to 1088 the other day in the .xml file so we can record 1080p nativly. Kinda wierd that you have to set it to 1088?
The best thing would of course be if he could include all the different modes/profiles for us to freely choose:
"FPS: 15, 25, 30"
"Resolution: 1080p, 720p, ..."
"Bitrate: X, Y, Z"
"Sound: 44 Khz, ..."
etc... because I know my class 2 card can't keep up at the best options. Going to buy me a new one soon though.
Send him a message and see if he's interested. His todo list probably is long though....

[Q] MediaRecorder() stalls at HD setting on EK-GC100

Hi,
I am trying to record 1280 x 720 video in a simple video recording app., targetted at the Samsung Galaxy Camera.
It is returned as an available size in Camera.getParameters().getSupportedVideoSizes();
The app works at other sizes I have tried, I really want 720 px, and would appreciate any feedback on what might be the problem.
This setting doesn't cause problems on other devices, but I haven't had a chance to hook them up to adb.
Using MediaRecorder.setVideoSize() to set this, the app starts recording video as one would expect, but with the size set to these values, on calling MediaRecorder.stop(); the app freezes and continues to record video, but neither stops nor completes the file write. I am calling the MediaRecorder like this:
mRec.setCamera(camera);
mRec.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mRec.setAudioSource(MediaRecorder.AudioSource.MIC);
mRec.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
mRec.setVideoSize(1280,720);
mRec.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
mRec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
mRec.setPreviewDisplay(sh.getSurface());
mRec.setOutputFile(dirPath + fileName + ".mp4");
mRec.prepare();
mRec.start();​

[DEV] Need help to record video with stable FPS

Hi all!
I am developing an app and need to record video with stable FPS.
My app records a video and a text file while the user presses a button to go through a list of items. The app records in the text file the time of the presses of the button, in order for me to split the video based on these recorded times.
The time recorded comes from a System.UptimeMillis() - varInitialTime each time the button is pressed.
I am using MediaRecorder and have tried recording with many different configs, like using Timelapse profile, disabling sound, setting framerate option on media recorder and others. The Timelapse profile should record with fixed fps, and yet it recorded with variable fps.
I tried also using JavaCV for android, but looks like the E1 can't handle it, as it lagged hard in the few times it opened.
I searched the XDA forums and other android resources on the net to no avail.
So, is it possible to force the MediaRecorder (or similar) to record with a stable fps? Are there any workarounds for this problem?

Google photos can't play 4k video longer than a minute

Hi,
When I record a video (with stock camera app) in 4k that is longer than a minute in the photos app it laggs (1-4 fps), the sound is playing normally. When I try to play a 30 sec 4k video it runs smoothly. In other resolution everything is fine.
But, when I play that video in an other app (like Filemanager's built in video player) it is fine.
I deleted app data, and cache, still doesn't work.
I also tried to record a 4k 1 minute long video, wich is about 300MB, then I recorded a 10 minute video in FullHd wich is 1.6 GB, the FullHd video runs smoothly, so I don't think it is a problem with size. What could be the problem?
Same here brother. After i stabilized the video the vudeo become choppy. Or if I see recorded 4k video the video stuck at some piont and show like slidesjow of photos.
For the last 2 days, that is what i am frustratingly suffering. It was not sth existing a few days ago. I was wondering what caused this and saw your post. Appreciate all kinds of recommendations.
If anyone have a solution please let me know, I still have this problem. After June update all of my 4k videos are broken and I can't play them in Google photos.
Are you sure it happens only with videos longer than 1 min? I have the same problem but it's random.
Sometimes videos longer than 1 or 2 minutes play OK, sometimes very short videos lag.
Haven't tried less than 4k, though.
Super annoying - using VLC now.
Thuyamo said:
Hi,
When I record a video (with stock camera app) in 4k that is longer than a minute in the photos app it laggs (1-4 fps), the sound is playing normally. When I try to play a 30 sec 4k video it runs smoothly. In other resolution everything is fine.
But, when I play that video in an other app (like Filemanager's built in video player) it is fine.
I deleted app data, and cache, still doesn't work.
I also tried to record a 4k 1 minute long video, wich is about 300MB, then I recorded a 10 minute video in FullHd wich is 1.6 GB, the FullHd video runs smoothly, so I don't think it is a problem with size. What could be the problem?
Click to expand...
Click to collapse
I am facing the same problem
Hi, so I tried a few things, and it works.
Disable the app. If it asks to replace the app with the factory version click "ok". After that, enable the app, and DON'T update it, even if it asks to.
This worked for me, no problem at all, the 4k works, the slowmotion videos can be played without stopping too.
@Thuyamo so you lost the improved interface, dark mode and all that?
I am just afraid it will cause sync problems or something.
igavuzzo said:
@Thuyamo so you lost the improved interface, dark mode and all that?
I am just afraid it will cause sync problems or something.
Click to expand...
Click to collapse
I'm currently on version 4.11, the newest in play store is 4.19 so it's not that old. For me this downgrade didn't cause any sync problem. Since the screen is so dim I don't want to make it harder to see stuff on my phone outside the house?, so I don't use dark mode at all. But yes, I lost the dark mode feature. The improved interface is there, I didn't lose it.
If you have any questions, please feel free to ask.
I'm on 4.18.0.250747830 version, 1st play of recorded video was playing normally, smooth, but 2nd and so on lagging like hell
@godlesplay
https://www.apkmirror.com/apk/google-inc/photos/photos-4-11-0-236189753-release/
Try the second or the third one, please let me know if it works.
I don't care if it is working or not, to play videos I'm using MX Player Pro.
I created ticket [9-1423000026724] with Google One Support. Let's see how that goes.
Guys, this is a secret so SHHH don't tell anyone.
HTML:
https://play.google.com/store/apps/details?id=org.videolan.vlc
(Because, I mean, who in their right mind uses Google-anything. Just joking, but srsly.)
Ok, here is an update on ticket [9-1423000026724] with Google support.
Long story short, they said Google Photos cannot play 4k videos.
So I said that was not true and sent them screenshots of Photos running on an iPhone and on a Motorola Android phone, including the information pop-up that shows the video resolution.
They replied they did all they could and closed the case.
I am so dissapointed with their service. I did not expect a quick solution, but I thought they would acknowledge the bug.
What do we do now? I think opening more tickets with them is all we can do. Hope you guys can help me on that.

Samsung Galaxy S10 camera SlowMo Functionality Android 10-11

Hi Everyone !
I was wondering how slowmo video storage work with Android 10-11, on Galaxy S10 ?
I am actually on Android 9, UI vers 1.1.
So, when i am recording slowmo vids, i can save and export them with the same FPS they were recorded with (in my case setup is on 240 FPS).
From my experience on a Galaxy S9, on android 10, things were a bit different! If i still was able to record in high FPS for slowmo, when it comes to save and export them, it was only 30 FPS, and only playing in slowmo. Not very useful or convenient when you want to posprod !!! (i am usin mediainfo to get the information).
But when i go back to the original recording, it shows 240 FPS.
Do you know if there is a way to get the video file untouched ?
For exemple, i want to record 15 sec at 240 FPS, but i want to export them like that (no slowmo while playing the video, before post production)
Thanks to every one who read me.

Categories

Resources