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

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.

Related

Camera Hacks/Improvements

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?

[How To] Convert 3D videos using Freemake

Hi all,
I thought I'd write this up since Handbrake worked GREAT for converting videos, but every 3D video it converted never outputted audio! It could well have been my fault, but either way this solution is fast, free, and (IMO) a bit more user-friendly. Special thanks to the user who pointed out Freemake.com (I can't find his name now, started with an N. I even messaged him but XDA's not saving my sent messages? God I'm a noob....)
Anyway here you go, this method was flawless for me, I've got about 5 3d movies now on my 3VO with gorgeous sound (Resident evil afterlife is my fave so far):
_____________
1) Download Freemake Video Converter
2) Locate a 3D video file.
-Make sure this is a SIDE-BY-SIDE video--meaning that if you view it NOT in
3D it just looks like 2 images side by side. IF your source video is like
that bluish-redish kind...sorry I don't know how to help.
3) In Freemake, click video--then browse your computer and find the video you want. I've been using standalone .mkv files; I'm guessing this will work when grabbing files off of 3D blurays too though?
4) Double click the video and it's put into the Freemake queue.
4b) Load up more files if you want
5) Now click "to Android" at the bottom of Freemake
6) A box pops up. Click the button under the word "Preset" and go all the way to the bottom and "Add Your Preset"
7) Make name your preset something appropriate like Evo 3D. Now use these settings:
-Frame size: size up to
- Width: 960
- Height: 540
-Adjustment: Original
-Video Codec: H.264
-Frame Rate: Original
-Bitrate Type: Custom
-Bitrate (Kbps): 1500
Then for audio, click the "Custom Audio" button and use these settings:
-Audio Codec: AAC
-Channels: Stereo
-Sample Rate: 48000 Hz
-Bitrate: 256
Click OK and it should save your new preset. Now choose where you want to save your converted files (note: you can't change the file names of your converted files at this point I don't believe). Note that this conversion will leave your original file INTACT.
Click CONVERT and THAT'S IT! You're Done! Check the status bar, but after about 20-40 minutes a regular movie should be done.
Now just plug in your Evo 3D, access the SD card from your PC, and copy/paste the newly converted file onto your SD card (What most of us do is create a new folder on the SD card called "Video" and then place all our converted files here).
Use GALLERY to watch your movies--it should find the files automatically. When watching, it will usually start by playing the file as two images side by side. Just hit the options button and choose "3D", confirm, and there you go!
NOTE: Not all of the above steps/settings may be necessary, and there are probably some great ways to improve it...I only went this route because the route everyone else was taking (using Handbrake instead) never outputted audio for me
Note: if you're looking for 3D movies, search for "side-by-side" or "SBS"...that should be helpful. Some have suggested signing up at 3dtorrents.org, and I agree that that site is worth investigating...
GOOD LUCK!
The Panamaniac
...wow, was I the only one that Handbrake wasn't outputting audio for ????
Works great! Dumped Handbrake for this. Love the way it uses my GPU so my CPU stays low on usage (Handbrake took almost 100% on all 6 cores).
Awesome, so glad it helped!!
The interface is much less intimidating too, IMHO.
Thanks for this. It works great
Great to hear!
Has anyone else seen better or worse results using different audio settings?
Oh, and something I forgot to mention: To get the aspect ratio correct on your EVO 3D, you may need to go fullscreen beFORE entering 3D mode (in Gallery, of course).
Best,
Panamaniac
I followed OP's direction to convert the mkv to mp4, I used the gallery to play the file, I chose play in 3D, but it still played the image top & bottom, no 3d effects.
Handbrake audio wouldn't work for me, but this works perfect!
OK, so your initial file was a top/bottom, not side-by-side (SBS) file, is that correct?
That might make a difference. But first, try this: play your video in Gallery, make sure it's in FULL SCREEN mode, then tap the options button and choose to view in 3D, then confirm.
Do you know a website where I can DL a sample top-bottom 3D video? I haven't seen these before but I've heard of them. Is there an abbreviation for them?
Thanks!
panamaniac said:
OK, so your initial file was a top/bottom, not side-by-side (SBS) file, is that correct?
That might make a difference. But first, try this: play your video in Gallery, make sure it's in FULL SCREEN mode, then tap the options button and choose to view in 3D, then confirm.
Do you know a website where I can DL a sample top-bottom 3D video? I haven't seen these before but I've heard of them. Is there an abbreviation for them?
Thanks!
Click to expand...
Click to collapse
Yes, the initial file is top & bottom, I got it from SBS. I played the file in Gallery in full screen mode then chose view in 3D, no luck, but still thanks for your help.
SBS Stands for side-by-side. When you say you got from SBS...do you mean 3dSBS.com? I looked into that site but downloading seemed like a huge pain..!
So the source file is top-to-bottom?
The bottom line is that I've heard the EVO 3D can't do Top/Bottom 3D files but I have not confirmed that.
OK without having a top-bottom source file to tinker with...
My hilarious but possible useful suggestion is this: after you load up your video into the Freemake queue, click the edit button on the right side (has scissors, etc). THEN click to start watching the video once the edit window pops up and....
HERE'S MY CRAZY IDEA: Rotate the video 90 degrees! Then the two images will be "side by side" now instead of "top to bottom"....
Of course the ratio might be a little weird, and you might have to watch the whole thing as a smaller picture on your phone...but fiddle with it and let me know what you think. In a perfect world that would make you now be able to watch your move in portrait, it'd just be a very tall movie (so then you'd have to lock rotation..plus I"m not even sure gallery let's you watch in portrait so...GLHF there!)
If you want to dropbox or PM me a top/bottom file I'll take a look, but like I said I haven't found any yet so....
Good luck!!!
Panamaniac
panamaniac said:
SBS Stands for side-by-side. When you say you got from SBS...do you mean 3dSBS.com? I looked into that site but downloading seemed like a huge pain..!
So the source file is top-to-bottom?
The bottom line is that I've heard the EVO 3D can't do Top/Bottom 3D files but I have not confirmed that.
OK without having a top-bottom source file to tinker with...
My hilarious but possible useful suggestion is this: after you load up your video into the Freemake queue, click the edit button on the right side (has scissors, etc). THEN click to start watching the video once the edit window pops up and....
HERE'S MY CRAZY IDEA: Rotate the video 90 degrees! Then the two images will be "side by side" now instead of "top to bottom"....
Of course the ratio might be a little weird, and you might have to watch the whole thing as a smaller picture on your phone...but fiddle with it and let me know what you think. In a perfect world that would make you now be able to watch your move in portrait, it'd just be a very tall movie (so then you'd have to lock rotation..plus I"m not even sure gallery let's you watch in portrait so...GLHF there!)
If you want to dropbox or PM me a top/bottom file I'll take a look, but like I said I haven't found any yet so....
Good luck!!!
Panamaniac
Click to expand...
Click to collapse
I got the file from 3DSBS, the clip was the Sports Illustrator Swimsuites 2011.
Ya that site was a nightmare for downloads, I tried to get part 1 of the Swimsuit and it took...10 hours? ppf NTY.
Anyway I did some digging and the short answer is that there might be some really LONGGGGG arduous ways conver over under to side-by-side but I sure didn't find any easy ones.
Since I worked so hard trying to find a solution here, you gotta do me a favor---turn your file 90 degrees, then convert, then try running it as 3d and tell me what happens?
Nice write-up
I was using HandBrake with no success. The audio was consistently patchy.
Going to give this method a try now
Thanks.
Thanks!
Yeah, I never heard anyone else complaining about the audio from the Handbrake method, but I'm assuming that's because most people were only converting 2D movies. All I know is I followed their guide exactly and never heard a peep.
Please let me know if anything doesn't work. Currently I don't know of an easy way to convert over/under 3D video (the limitation here I think is the Gallery Program itself).
Wow thanks for this. I've been looking far and wide!
Awesome, glad I could help!
And like I said above, if you find an easy way to convert over/under 3d for use on the 3-VO that'd be great to add to the knowledge base
I did the exact steps you mentioned but the video conversion didn't seem to work.
Freemake reported that the file would be around 1298 MB but the end file was only 200-something MB. Viewing the video on my phone (and PC) shows a video that is all black, but with the audio.
Anyone else get that problem?
im lost on #2, if we are trying to create a 3d video where are we suppose to be locating a 3d video file
I am still lost on the source video. Please explain to me how to implement this step. When I choose video to convert I am choosing a regular video format right. Where does the source video come into play.
Sent from my EVO 3D on the now or later network

[Q] Video Playback Problems

For some reason when I try to play videos on my Galaxy Tab 10.1 they keep coming out choppy and pixilated. I tried the default player, Mobo, and RockPlayer, and the videos still come out all pixilated and choppy. I tried putting a few movies on there last night like Inception, The Dark Knight, and Limitless and they were all choppy and pixilated. I used .avi, .mp4, and .m4v formats, none of which worked. I even tried downloading vids encoded specifically to work on mobile devices such as iPod/PSP and they didn't work. I even downloaded HandBrake for Mac and followed the directions on Cnet and nothing played properly. Everything played choppy and pixilated on all the players.
A Google search showed that MANY people are all having the same problem, so I don't think it is an isolated issue with my specific Tab. How the hell can I play videos clearly on my Tab???
I use vplayer
try Diceplayer.... IT plays anything i throw at IT..... except 1080 mkv, they stutter sometimes
Use the low profile settings for handbrake from this thread: http://forum.xda-developers.com/showthread.php?t=1060825
Or use the Samsung Kies software and let it automatically convert the video for you when you transfer it to your device (handbrake is faster and slightly better quality imo).
Or as has been suggested already, try DicePlayer from the market and see if it works with your files.
MeGUI is the only way for top video quality in your tablet.
http://forum.xda-developers.com/showthread.php?t=1245668
mine doesn't even play divx.. on my galaxy s its no problem, it plays almost anything
Upload the sample-megui.mp4 file to your tablet and open it with Google Videos app. Let me know if it works and how is the quality. Make sure you tap on the 5.1CH logo to enable the 6 channels sound.
Not sure if you have an unlocked bootloader, but I heard that the Videos will force a bootloader lock. Mines is already locked, so I don't care...
I've the same problem. I've tried everything (change player, video quality, etc.) but the video playback still sucks. I hope the release of vlc for android will fix this issue, but I'm a little bit disappointed..
yqed said:
MeGUI is the only way for top video quality in your tablet.
http://forum.xda-developers.com/showthread.php?t=1245668
Click to expand...
Click to collapse
It may be an option but it isn't the ONLY option (Handbrake is at least one other proven option that many people here use), keep your marketing spam out of this thread.
Anyone who claims that their solution is the ONLY solution is clearly here to do some marketing.
In fact, for those who use MacOS or Linux, MeGUI is NOT an option, period.
Nah, no marketing here. Been on forums for a long time (Google my full name) and I hear what you say... sorry for misunderstanding. I'm an old member on doom9, they are hardcore video people. Handbrake is great for mobile devices, while MeGUI allows you to to encode your video's at any level you want.
Cheers
Please use the Q&A Forum for questions Thanks
Moving to Q&A
Heh, I was on Doom9 when Doom9 the dude was still a regular, and Gej was still pounding on DivX 3.11. Old times, eh.
As for MeGUI, it's not the only front-end around. If you're on Doom9, then you know better. Most do basically the same thing, which is to run x264.dll plus some processing via AVISynth. Each front-end has its own strengths and weaknesses.
Despite its dinosaur interface, Handbrake is still more user friendly than MeGUI or most front-ends, and it does the job more than well enough. The auto-IVTC works well.
MeGUI allows more manual fiddling, as of course do most geek tools. It's been around a while, and there are newer "geek" front-ends with better UI. But for the hardcore, the "only way" is to ignore front-ends and use the tools directly, ie x264.exe and AVISynth, and write scripts as needed.
Check out my "conversion" script below. It's a geek tool geared for noobs (only one menu), but is infinitely adjustable for geeks. The script is only a text file, after all.
http://forum.xda-developers.com/showthread.php?t=1102922
e.mote said:
Heh, I was on Doom9 when Doom9 the dude was still a regular, and Gej was still pounding on DivX 3.11. Old times, eh.
As for MeGUI, it's not the only front-end around. If you're on Doom9, then you know better. Most do basically the same thing, which is to run x264.dll plus some processing via AVISynth. Each front-end has its own strengths and weaknesses.
Despite its dinosaur interface, Handbrake is still more user friendly than MeGUI or most front-ends, and it does the job more than well enough. The auto-IVTC works well.
MeGUI allows more manual fiddling, as of course do most geek tools. It's been around a while, and there are newer "geek" front-ends with better UI. But for the hardcore, the "only way" is to ignore front-ends and use the tools directly, ie x264.exe and AVISynth, and write scripts as needed.
Check out my "conversion" script below. It's a geek tool geared for noobs (only one menu), but is infinitely adjustable for geeks. The script is only a text file, after all.
http://forum.xda-developers.com/showthread.php?t=1102922
Click to expand...
Click to collapse
I totally agree with you, MeGUI is a pro tool not intended for the novice user. However, as you said it so well, you can't beat MeGUI's customization levels allowing you to achieve amazing results. I get both of worlds, I do my own AviSynth scripts directly into MeGUI... I encode all my Bluray's with it for Media Center and push the data through Yammm. Now that I got a tablet, is time to redo some of my faves for the P7510.
BTW, good fortune with Searchlight and Axivo.

[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.

Video Editing in WP8

Is there an OS level restriction preventing someone from making a simple video editor for Windows Phone? I'd love to see something with basic features like:
Trimming clips
making slideshows out of still pics
adding title frame to beginning and end
putting clips together
adding voiceover or music
text over video
I think those things could be done with the dual core processors, right? It seems like the most taxing would be adding audio since the phone would be playing video and recording audio at the same time.
Anyway, I was curious why no one has tackled this. I think it could even be a good commercial, money-making app.
ditto. would really like to see this as well.
Sent from my Windows 8 device using Board Express Pro

Categories

Resources