Camera Hacks/Improvements - Droid Eris Q&A, Help & Troubleshooting

I couldn't find these answer searching so I figured I would try to find out from the most competent droid forum.
I've read several hacks that Incredible users have been able to do that I wanted to see on the eris.
First, is there any way to modify some of the camera files to create images without compression? I saw that some Incredible users completely removed compression from their images and there was a vast improvement. I lost the link but it only involved modifying a few system files.
Also, is the hardware capable of producing .mp4 format video natively? What about increasing the frame rate? Is the hardware capable of 30fps? What about 25 or 20?

Related

[Q] File browsing issues / video playback general

I'm pretty sure I am not breaking the cardinal sin of asking a stupid question with an answer right in front of me. If I am, I am truly sorry. I searched, and did not find any threads on this.
I recently modded my TP with CM7 (I'm very new to all this). Everything went fine, no issues here.
I plan to use it to play video's from time to time, pre-loaded in case there is no net at the location, etc. I use astro file manager on my phone, and since I love it, I grabbed it for the TP also. Problem is, it really seems like it cant see anything.
I am thinking the folder path mappings are off or something? I see that I can define where I want "external storage" to look, (default is... /mnt/sdcard)?
I even tried to take a screenshot and got... "Error: /mnt/sdcard/tempshot.bmp (Permission denied)" Screenshot saved to null
Anyone know what I'm missing? Thanks!
-- Ps, if I can get this sorted out, my main question was which video files are supported for playback with this CM7 rom through the TP.
These were answered before, but for the most part buried in threads. Your external SD is actually listed as EMMC and it's not in your primary directory, you actually have to go up one.
Android should play most formats it would normally, but as this is still alpha, there is no hardware video acceleration, so anything higher resolution then a internet video will most likely be choppy.
There are some video players that people have had luck with, and overclocking the processor also can help until we get hardware acceleration.
Sent from my SGH-I897 using xda premium
Ah ok. I was somehow able to get the stock filebrowser to see my directories without a problem after I poked around a bit. I then ran into what you already answered for me . Video's do indeed seem choppy... I think I'll try to reduce the quality of an avi I have and see how that go's.
I'm not ballsy enough to OC anything. It took me a lot of guts to flash the damn thing anyway, thanks for the heads up though.
-- figured I'd post how it turned out.
I used Xilisoft HD Converter and converted using the android specific output setting, and 640x480, runs great using double twist.

[Q] Is it possible to record any video with CFR (Constant Frame Rate)?

Here's what I want to do: I'd like to be able to take multiple videos throughout the day and then at the end of the day join them together as one video to upload to YouTube.
Here's the problem: I can't join videos together that are VFR (variable framerate). They need to be converted to CFR first. However, no matter how I try converting them, I always end up with audio/video sync problems. I've spent days and done lots of research and tested several programs/methods to accomplish this. There's still more for me to try, but so far I've not been successful.
Which brings me back to: If I can just get the RAZR to record videos with a constant framerate, the above problem(s) should be eliminated.
My current favorite camcorder app is the LG Camera ("LG" having no relation to the electronics manufacturer). It has many options and blah blah blah. One of the options is to set the framerate. Offers selections as low as 2 FPS up to 60 FPS. Unfortunately (and I have emailed the dev about this), changing this setting doesn't seem to have any effect.
This could be because of a firmware limitation of the device itself, or it could simply be a bug with the app. I don't know yet. I'm trying to find out.
I did find another post around here about recording videos at 120 FPS or something like that. Seems that making some edits to the build.prop file made the phone think it was recording at that FPS but the resulting file showed otherwise. Well, I'm not looking for any real high FPS for my videos. I figure somewhere around 30 should be good enough. The only thing I really want to know is if there is any possible way I can force the camera to record at a constant framerate.
Perhaps the build.prop file can be edited to allow this. I'm not sure. I certainly hope this is possible one way or another, though.
Thanks for your time.
I was one of the people doing the 120fps experiments, and as you noted, nothing worked. I'm thinking the cpu is simply sending a stream of data that the phone must accept.
I'm pretty sure the phone records in a variant of motion jpeg, and simply takes up to 30 stills per second. I've edited these files myself, and it's a pain in the a**.
You need to find a setting in your video editing app that allows for variable framerate content. VFR for short.
Also, .avi containers doesn't support VFR content. You need to save to MKV, MP4, WMV or ASF. Probably more containers, but those are common.
Thanks for the response.
Well, bad news and good news.
Bad news is, I was never able to find any program that could properly convert and/or join the video files without blatant sync problems as a result.
The good news is that the above is not 100% true. After posting my question, I had received some help elsewhere and ended up using ffmpeg and MEncoder (both command line tools for video processing). ffmpeg converts the files to CFR and then MEncoder joins them together. These two utilities combined with the automation power of AutoHotkey allowed me to create an AHK script that will convert and join all the videos successfully simply by dropping the files in the folder and running the script.
In the rare case someone else comes here with the same problem, here's the video-help thread that brought me to this solution: ~~~ Okay, I can't post links. In that case, here's a sample command line for converting the file to CFR:
Code:
ffmpeg -i input01.mp4 -c:v mpeg4 -b:v 1800k -c:a copy -vsync 1 -r 25 temp_output01.mp4
You'll have to run ffmpeg separately on each file, I believe.
Here's a sample MEncoder command line for joining the converted files together:
Code:
mencoder input01.mp4 input02.mp4 input3.mp4 -vf harddup -ovc copy -oac mp3lame -lameopts cbr:br=128 -o joined_output.mp4
You can enter in as many input video filenames as you want to join together.
After I found a solution for converting and joining, I decided to leave this post up because I still wanted to find out if recording in CFR on the Droid was possible. I'm guessing it isn't. That's too bad.
I read about that actually, problem is that directly converting to CFR makes the video somewhat choppy. As you are either playing the same frame twice, or removing a frame to compensate for the fps you're using.
If I'm not too confused, you can interpolate the missing frames to make it appear smoother. At least in some video editors.
Yeah. Fortunately, so far I haven't noticed any obvious issues with the final video.

Camera access in C.

I'm fairly new to Android (or any) development in general, I've currently made a camera app for more functionality for filmmakers. My question lies in accessing the raw frame stream from the level that the media recorder/omx native source uses to compress video? Reason being, this is the only sure way to grab the frames at a locked frame rate and without going through Java's bottlenecks in grabbing consecutive frames at a high frame rate. I'm searching through the OPPO FIND CM 10 device and kernel sources to find where the magic happens so to speak. Just locating the binder interfaces for IPC at the moment. Is V4L at work here?
Ehm ....which one you use, Mono Android?
Sent from my SonyX8 using Tapatalk 2
lkd85 said:
I'm fairly new to Android (or any) development in general, I've currently made a camera app for more functionality for filmmakers. My question lies in accessing the raw frame stream from the level that the media recorder/omx native source uses to compress video? Reason being, this is the only sure way to grab the frames at a locked frame rate and without going through Java's bottlenecks in grabbing consecutive frames at a high frame rate. I'm searching through the OPPO FIND CM 10 device and kernel sources to find where the magic happens so to speak. Just locating the binder interfaces for IPC at the moment. Is V4L at work here?
Click to expand...
Click to collapse
You mean an external camera? Like a USB camera? Or an internal camera? Internal cameras may be different, USB cameras might use different drivers. Anyway V4L is available on Android from the NDK, yes. But there are difficulties you'll have to work on.

[Q] Max supported resolution of a camera? Where and how to change?

Hello guys/girls.
My phone has MediaTek P25 and Samsung s5k3p3 camera hardware.
I know that s5k3p3 is capable of recording 4K videos and I know that P25 supports that. My phone has it set to maximum of 1080p.
My question here is simple... what defines the max video resolution and what would I need to change? Is it just somewhere in some file, defined as a variable or do I need to go into the kernel and change something there?
Phone is rooted and fully unlocked, have some experience with building "custom" ROMs but I was never bothering with this since I didn't have a phone that was limited in such way until now.
Would be really happy if you could help me with that. I'm using Open Camera that has an option to "Enable 4K on unsupported phones" but that doesn't help since obviously the system itself has a limit written somewhere.
C'mon, seriously nobody can give me some guidance to where to start digging for this?
Aaaaaaaanything?

V60 demo unit with retail mode removed , in partially rooted state? Any way to fully root? for camera improvement.

I was recently playing with the idea of modifying certain camera profiles to improve camera performance.
With a demo unit with retail mode removed it appears I can manage to at least view the root directory/files and subfolders like /etc by using Root Browser. I cannot alter files though like delete or change permissions. I can view and copy camera_profiles.XML but cannot alter it. I can edit a copy, but that's about it. I believe it may be possible , if properly rooted to edit at the camera profiles, for at least video to improve quality. The stock camera app only allows low bitrate video. Other apps will allow high bitrate with custom profiles even with 8K video like Freedcam. With this app you can get high bitrate 8K video with customizing profiles with the v60. It also may be possible to get better 64MP stills or maybe even raw by modifying some files
Anyone have any input?

Categories

Resources