Hi.
so if i'm in the wrong section or if any moderator think that this is sh**t you can delete my post or etc.
I will do the example with a moto g , but this work on any device running kitkat
So, in android 4.4 google introduces a new feature called "Screen Recording" so the tool basically record your screen , i think that if we use some videos an pics in the OP of any rom we will have a better idea of what we will see in our device, if is smooth or slow, or laggy, etc
So basically you will need :
THIS JUST WORK ON DEVICES RUNNING KITKAT
Moto G Drivers(Or drivers of the android device)
ADB
Moto G(Or android device)
So
open a conosole were is adb (shift+open window command here)
remember check adb debugging
try:
adb devices
this will return something like that
https://drive.google.com/file/d/0B9MUCjEugQjgVmpLc0tOSVIxbTQ/edit?usp=sharing
so, if our device is detected we use the next instructions(basic commando):
adb shell screenrecord /sdcard/demo.mp4
if we put attention we will see that the video will be saved in the sdcard(in the root), we can change were the video will be saved, and we see too that demo.mp4 is the name of the video, you can change the name but remember put .mp4 in the end, the length of time it records (the default duration is 3-minutes) and this comand would record at 4mbps THIS COMMAND IS THE BASIC
so this look like that:
https://drive.google.com/file/d/0B9MUCjEugQjgenVMWGhXeG9YRkE/edit?usp=sharing
we know that the video will be in /sdcard/ with the name demo.mp4
so another example of code will be this:
adb shell screenrecord --bit-rate 8000000 --time-limit 30 /sdcard/kit.mp4
now the bitrate of the video will be 8mbps and the time now will be 30 seconds and the name of the video is kit and will be saved in the root of our sdcard.
this look like:
https://drive.google.com/file/d/0B9MUCjEugQjgeER2bGhHcTRPdzQ/edit?usp=sharing
now we have our video, so we will pull the video from our sdcard to our pc:
adb pull /sdcard/kit.mp4
https://drive.google.com/file/d/0B9MUCjEugQjgMTdpbjc3ZHV3Smc/edit?usp=sharing
and DONE we have a little record about our rom,etc
i repeat this is the basic example. a lot of commands are in this page http://developer.android.com/tools/help/adb.html#screenrecord
This are more commands , just added in the command before put /sdcard/
Options Description
--help=======Displays a usage summary.
--size <WIDTHxHEIGHT>======Sets the video size, for example: 1280x720. The default value is the device's main display resolution (if supported), 1280x720 if not. For best results, use a size supported by your device's Advanced Video Coding (AVC) encoder.
--bit-rate <RATE>=======Sets the video bit rate for the video, in megabits per second. The default value is 4Mbps. You can increase the bit rate to improve video quality or lower it for smaller movie files. The following example sets the recording bit rate to 6Mbps:
screenrecord --bit-rate 6000000 /sdcard/demo.mp4
--time-limit <TIME>======Sets the maximum recording time, in seconds. The default and maximum value is 180 (3 minutes).
--rotate=======Rotates the output 90 degrees. This feature is experimental.
--verbose=======Displays log information on command line screen. If you do not set this option, the utility does not display any information while running.
And one more thing you can find all the requirements here :
Drivers For The moto g(download device manager)------https://motorola-global-portal.custhelp.com/app/answers/prod_answer_detail/a_id/97326/p/30,6720,9050/action/auth
Minimal Adb(Thanks to him)----- http://forum.xda-developers.com/showthread.php?t=2317790
Example of the Results:
http://www.youtube.com/watch?v=22C2w6FswAg&feature=youtu.be
Thanks to :
Google
Motorola
@shimp208
and maybe ... me....
THANKS!~ that's really helpful
Related
All, after looking around a bit, I haven't found too much info regarding changing the display resolution when connecting an MHL (HDMI) adapter.
I hacked around a bit and found the following thread which seemed to get close:
http://forum.xda-developers.com/showthread.php?t=2090396
What's the goal?
To try to get the output resolution over MHL to be 720p or lower. I started this thread to provide more info and hopefully spark some interest in the topic.
Why should I care if the output resolution is 720p?
The default resolution over MHL (on every HDTV I've tried) is 1920x1080 @30fps. This resolution is fine for playing movies/Youtube/Netflix/etc. However, having the resolution so high causes the Adreno GPU to really struggle when playing games/emulators over MHL. If the resolution was lower (e.g. 720p), games and general 3D would get a nice boost in frame rate, becoming much less choppy.
Info gathered so far:
I use the Monoprice Galaxy S III MHL kit (http://www.monoprice.com/products/p...10419&cs_id=1083314&p_id=10021&seq=1&format=2). The Samsung MHL adapter may behave differently.
Files in /sys/devices/virtual/graphics/fb1/ seem to be related to (and perhaps even control) the MHL HDMI output.
When the MHL adapter is not plugged in, the "connected" file contains a 0. When the MHL adapter is plugged in, the "connected" file contains a 1.
By default, the "video_mode" file has the contents "34".
Looking at EDID codes (http://en.wikipedia.org/wiki/Extended_display_identification_data), we can see that 34 corresponds to 1920x1080p @ 29.97/30Hz.
By default, the "virtual_size" file has the contents "1920,1080".
The "modes" file contains a list of resolutions.
"U:640x480p-0
U:1920x1080p-0
U:720x480p-0
U:1280x720p-0
U:1920x1080p-0"
The "video_mode_str" file contains a textual description of the output resolution "1920x1080 p30 16/9"
The "edid_modes" file contains "4,3,32,34,1". These modes correspond to the following EDID codes:
1 DMT0659 4:3 640x480p @ 59.94/60Hz
3 480pH 16:9 720x480p @ 59.94/60Hz
4 720p 16:9 1280x720p @ 59.94/60Hz
32 1080p24 16:9 1920x1080p @ 23.98/24Hz
34 1080p30 16:9 1920x1080p @ 29.97/30Hz
Experimentation:
-running "echo 4 > video_mode" as root (in an attempt to change the resolution to EDID code 4 - 1280x720p @ 59.94/60Hz) shrinks the screen to 720p (resolution and framerate stay at 1080p/30) and aligns it to the upper left corner of the screen. The screen remained this way until I reverted "video_mode" back to 34.
-unplugging MHL and re-inserting resets to "video_mode" to mode 34 (1080p/30)
-changing virtual_size to 1280,720 did nothing (both before or after video_mode was set to 4)
Any ideas/help/suggestions would be greatly appreciated. I'm not sure how much time I will have to work on this, so hopefully others become interested as well.
mybook4 said:
Any ideas/help/suggestions would be greatly appreciated. I'm not sure how much time I will have to work on this, so hopefully others become interested as well.
Click to expand...
Click to collapse
Have you tried connecting the mhl adapter, setting video_mode_str then disconnecting from the tv then reconnecting? Maybe the tv would adjust to the resolution being output.
I am also looking for a way to get get a lower resolution when using MHL but me, it`s for a Galaxy Nexus. It`s become really laggy when a plug it and i can`t play game at all... i was expecting to play n64 and SNES emulator but it`s to much laggy even SNES. So i would be really interested to just use a lower resolution or even just disable the phone screen and just use the TV screen wich will certainly boost the performence due to the fact that my Nexus will just have one screen to use.
Any solutions to get 720p on MHL?
Nope. Haven't had much time to play lately and I got an ouya. I would try mojojoe's suggestion.
Sent from my Nexus 7 using xda premium
I came across this thread looking for a solution just wondering if anyone has a work around. Seems like a feature that should be added. I am not having any performance issues but on 3 different TVs now the resolution is not set right for the TVs the out edge is cut off like the resolution is wrong. From my understanding the default is 1080p and all three of these TVs one brand new the other two a bit older the outer edge is cut off and the native rez is 1080p.....
hi folks interesting thread. i want to change the hdmi output on my s4 to 1080p24 with the samsung mhl 2.0 adapter. by default its 1080p60.
i'm rooted and using root explorer have found the relevant files, and sure enough the video_mode files has 16 in it - 1080p60. when i try to change this to 32 (1080p24) using a text editor (its mounted as r/w), the changes don't stick even though it says the file is saved ok. am i doing something wrong here?
with reference to where you said "-running "echo 4 > video_mode" as root (in an attempt to change the resolution to EDID code 4 - 1280x720p @ 59.94/60Hz) shrinks the screen to 720p (resolution and framerate stay at 1080p/30) and aligns it to the upper left corner of the screen. The screen remained this way until I reverted "video_mode" back to 34." - could you explain how you do this please? is this using terminal emulator?
I just purchased the official MHL adapter, plugged into my HDMI switch and it outputted at 24hz. Perfect for movies but choppy for Need for Speed.
Stupidly Samsung haven't given any options to change output format and since the s4 was outputting different hertz to different displays I figured it was just going by EDID.
There's a device called a HDMI doctor that can spoof any EDID information I set the HDMI doctor to setting 4 which is for 720p max output.
The s4 then immediately outputted at 720p/60hz.
The device costs about £50 so it's an expensive solution if you only use it for your phone. I have one because it enables me to output 24hz material to my TV/Projector when my AV amp doesn't support it.
Has there been any update since the last post? Do any new Samsung updates enable changing of output?
Having the same issues on my galaxy note 10.1 2014 edition. This is bull****, hdmi is basically unusable for anything else than video.
FIX!!!!!
I know this post is about 3 years old, but I found this post now while browsing in 2016 so I hope this helps someone out.
To change the resolution and make games and all apps lag free (with the method I found) you MUST be rooted.
If rooted, download a root terminal/cmd and type ru in prompt and hit enter. Then type wm size 720x1280. ***Will stay on indefinitely until reverted back with command ru then wm size 1080x1920***
Now your device will be 720p, but you will notice that your icons are huge. To fix that in CM12.1 go to setting/look and feel/DPI and change from 440 to 320. If you don't have CM12.1 download a DPI changer and change to 320, or find corresponding root cmd to change DPI... I don't know it because CM12.1 has one stock.
Now everything should be lag free and awesome for gaming! I use sixasis and screen standby and have been playing Zelda on the couch the last few evening.
Hope this helps at least one person.
Side note: I'm not sure about the aspect ratio for Samsungs or any other device... But these resolution are 16:9. I know my original note was something weird like 16:10. Most likely all devices now are 16:9, just wanted to make sure everyone was aware of that before changing screen res..... IF for some reason their aspect ratio is different.
ANDREtheG1ANT said:
I know this post is about 3 years old, but I found this post now while browsing in 2016 so I hope this helps someone out.
To change the resolution and make games and all apps lag free (with the method I found) you MUST be rooted.
If rooted, download a root terminal/cmd and type ru in prompt and hit enter. Then type wm size 720x1280. ***Will stay on indefinitely until reverted back with command ru then wm size 1080x1920***
Now your device will be 720p, but you will notice that your icons are huge. To fix that in CM12.1 go to setting/look and feel/DPI and change from 440 to 320. If you don't have CM12.1 download a DPI changer and change to 320, or find corresponding root cmd to change DPI... I don't know it because CM12.1 has one stock.
Now everything should be lag free and awesome for gaming! I use sixasis and screen standby and have been playing Zelda on the couch the last few evening.
Hope this helps at least one person.
Side note: I'm not sure about the aspect ratio for Samsungs or any other device... But these resolution are 16:9. I know my original note was something weird like 16:10. Most likely all devices now are 16:9, just wanted to make sure everyone was aware of that before changing screen res..... IF for some reason their aspect ratio is different.
Click to expand...
Click to collapse
Im trying to do this at present, I'm on a rooted device and when using ru in terminal, I just get 'ru not found,' new to this so further help would be appreciated.
Succulent_Pig said:
Im trying to do this at present, I'm on a rooted device and when using ru in terminal, I just get 'ru not found,' new to this so further help would be appreciated.
Click to expand...
Click to collapse
Your phone must be rooted. Use su command in a terminal and then type wm size 720x1280.
If you have android 4.4+ device you can record screen of the device using android sdk on your pc.! :good:
The screenrecord command is a shell utility for recording the display of devices running Android 4.4 (API level 19) and higher. The utility records screen activity to an MPEG-4 file, which you can then download and use as part of a video presentation. This utility is useful for developers who want to create promotional or training videos without using a separate recording device.
Before I dive into how to record the screen of your Android device, you need to know the way to use this feature is through the Android Debug Bridge (ADB) [which is in ANDROID SDK you can see further details in Video]
OK, Launch into the command line with your Android 4.4 device connected to your computer(USB DEBUGGING ENABLED) and enter the command to record your screen:
adb shell screenrecord /sdcard/video.mp4
You can further customize the bitrate at which it captures video, the duration it records (the default duration is 3-minutes).
Another example of a command to record a video would be :
adb shell screenrecord --bit-rate 7000000 --time-limit 25 /sdcard/video2.mp4
The above command would record at 7Mbps, instead of the default 4Mbps, for a duration of 25-seconds and save it to the SD Card on your device with the name of video2.mp4 . You can find a full list of commands for screenrecord here on the Android Developer Site.
You can watch the video for complete Guide of tutorial : :good: https://www.youtube.com/watch?v=20h7Kms57So
So guys finally the much Awaited feature/MOD is here 60fps 1080p recording on 5x/6p
defcomg has created this MOD which works on FreeDcam(sadly, it doesn't work on Google camera yet) .
He also made an app called libchanger which modifies the libmmcamera_imx377.so file and adds a custom media profile in FreeDcam config folder.
--------------------------------------------------------------------------------------------------------------------
All The Credits goes to @defcomg
So, lets begin.
--------------------------------------------------------------------------------------------------------------------
* Things you need
A Rooted Nexus 5x
Root Browser/ES explorer or any other root browser.
--------------------------------------------------------------------------------------------------------------------
*How to Install (MANUALLY)
1.Download the files attached below.
2.Install FreeDcam
3.open root browser and go to system/vendor/lib/ and rename the STOCK lib from libmmcamera_imx377.so to libmmcamera_imx377.bak and Extract the zip and copy libmmcamera_imx377.so(attached below) file there and set permission to rw--r--r.
4.Then go to DCIM/FreeDcam/config/ and delete CustomMediaProfiles.text(stock one) and if its not there then just copy CustomMediaProfiles.text(attached below).
5.Open FreeDcam and go to menu and apply this settings
*set Video Profile: 1080pHFR
*then scroll down to API and set API: camera1
*set Orientation Correction: On
6. Enjoy the beauty of 1080p @ 60fps
*How to Install(Lib changer app)
Though i would suggest you to copy those files manually but in case if you don't want any hassle then just follow this tutorial made by @decomfg
http://forum.xda-developers.com/nex...ble-60fps-video-recording-libchanger-t3424621
Thank him for this great work.
--------------------------------------------------------------------------------------------------------------------
Download Section
FreeDcam:- https://github.com/troop/FreeDcam/releases
libmmcamera_imx377:- http://forum.xda-developers.com/attachment.php?attachmentid=3821997&d=1469320878
CustomMediaProfiles:- http://forum.xda-developers.com/attachment.php?attachmentid=3821843&d=1469305543
Flashable zip:- http://forum.xda-developers.com/attachment.php?attachmentid=3830539&d=1470094840Thanks to @przemcio510
PS: i am newbie:angel:
maybe sample? pleaseeeeeeeeeeeeeeee
Hello
Looks like fps are still 30:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MOV_2016_08_06_17_21_16.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-08-06 20:21:29
Duration: 00:00:11.46, start: 0.000000, bitrate: 99854 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 100458 kb/s, SAR 1:1 DAR 16:9, 30.01 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2016-08-06 20:21:29
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 191 kb/s (default)
Metadata:
creation_time : 2016-08-06 20:21:29
handler_name : SoundHandle
Doesn't matter the orientation selected, the resulting video is still upside down when the camera is used in "normal" mode (90° anticlockwise ).
Hello everyone. I tried this mod , following all instructions to the letter. And it works. I recorded a couple of videos but they were too big.
Around 1 min in length and 500mb in size. So I converted one of them to slightly lower bitrate mp4 file without audio. In the recordings audio
works. But to reduce file size for easy upload, I disabled audio. Link to sample is given below. The original recordings have orientation issues.
I had to go to VLC player Video effects to rotate video by 180 degrees to watch properly. Anyway, not a big deal. As we now have 60fps 1080p videos.
:victory: :good:
http://d-h.st/9NUU
THANKS TO THE DEVELOPER. AWESOME WORK.
sasank360 said:
Hello everyone. I tried this mod , following all instructions to the letter. And it works. I recorded a couple of videos but they were too big.
Around 1 min in length and 500mb in size. So I converted one of them to slightly lower bitrate mp4 file without audio. In the recordings audio
works. But to reduce file size for easy upload, I disabled audio. Link to sample is given below. The original recordings have orientation issues.
I had to go to VLC player Video effects to rotate video by 180 degrees to watch properly. Anyway, not a big deal. As we now have 60fps 1080p videos.
:victory: :good:
THANKS TO THE DEVELOPER. AWESOME WORK.
Click to expand...
Click to collapse
i forgot to mention first turn on orientation and now tilt ur phone right side ...the camera should be on ur right hand side.
i will upload the sample.
Hello all. I tested this mod after my previous report. It still works. But google camera and the other modded Camera X app crash when i choose slow-motion mode.
Is this expected ? I can provide logs, If needed. Thanks.
pacmanman said:
Hello
Looks like fps are still 30:
[...]
Doesn't matter the orientation selected, the resulting video is still upside down when the camera is used in "normal" mode (90° anticlockwise ).
Click to expand...
Click to collapse
Have you selected camera1 api and 1080pHFR mode in FreeDcam?
sasank360 said:
Hello all. I tested this mod after my previous report. It still works. But google camera and the other modded Camera X app crash when i choose slow-motion mode.
Is this expected ? I can provide logs, If needed. Thanks.
Click to expand...
Click to collapse
Yes, 60 fps kills 120 fps slowmotion.
Hey guys i got this to work without touching system using Magisk, i'm waiting for a response from the developer of Magisk just to make sure i did all the good steps (coding wise) and i will release it here.
Just doubled check here and android pay still works as far as removing or adding cards, just don't know if purchases will work since none of my cards work with pay.
does this work on N?
RonnellTapawan said:
does this work on N?
Click to expand...
Click to collapse
Asking the real questions here
do you have to use the dcam app to have 60fps or after lib change can it be recorded thru stock camera?
It is expected to support 7.1.1??
That's an amazing mod, i love that
Sorry for the incontinence but... Is it on developing a version compatible with Google Camera?
MX Player Pro user here; I use Kodi to stream shows for my kids to watch and it supports EDL files that I use to cut out commercials, certain scenes, mute language, etc. It would be great if this could be added to MX Player as well for when they want to stream on their tablets.
Kodi functionality came from MPlayer EDL and Kodi supports the following types of edits:
Cut - the content is completely removed from playback as if it were never in the original video.
Mute - the audio is muted, video continues playing.
Scene Marker - these can be used to seek to points of interest within a video similar to how chapter seeking works for DVDs.
Commercial Breaks - each commercial break is automatically skipped once during playback.
The name of the file must be the same as the video file but with a file extension of .edl.
The file contains the start and end times of the edits along with the type of action associated with each edit. The file format is:
[start time] [end time] [action]
Start and end times can be defined as seconds, HH:MM:SS.sss, or frames. To specify frames precede the frame number with the # symbol. Supported actions are:
0 - Cut
1 - Mute
2 - Scene Marker (if start and end times are specified, the end time is used)
3 - Commercial Break
For example, the following .edl file content will skip from second 5.3 to second 7.1, mute at 15 seconds, unmute at 16.7 seconds, and commercial skip from 420 seconds to 822 seconds. There will be two scene markers. The first at 255.3 seconds and the next at 720.1 seconds.
5.3 7.1 0
15 16.7 1
420 822 3
1 255.3 2
720.1 2
Full Kodi examples here
Thanks,
Ranbato
+1
Right now I'm using MX Player, and while it's a great player it doesn't let the user set the buffer size for network streams. This means that videos load only a limited amount in advance when streaming regardless of whether the video is paused or playing, which results in frequent stutters especially if you're streaming a high res file
Size of network buffers are set within Android's system file named build.prop
xXx yYy said:
Size of network buffers are set within Android's system file named build.prop
Click to expand...
Click to collapse
Hi
Do i need root to access this file?
Do you have the full path ?
Thx
pizzaaaaa said:
I understand the issue you're facing. Depending on the streaming service or website you're accessing, there may be different ways to adjust the buffer size. However, if you're using a third-party player like MX Player, you may need to use a different app that allows you to adjust the buffer size.
One app you could try is VLC for Android, which allows users to adjust the network caching size for streaming videos. To do this, go to the Settings menu of VLC and select "Input / Codecs". Then, under the "Advanced" sub-menu, you can find the option for the "Network Caching" size. You can adjust this to increase the buffer size for streaming videos and reduce the likelihood of buffering or stuttering during playback.
Another option is to try a different video player that allows users to adjust the buffer size, such as the Kodi app. Keep in mind that adjusting the buffer size too high may also cause longer load times for the video, so you'll need to find the right balance for your needs.
I hope this helps you find a solution for smoother video playback when streaming. If you have any further questions or concerns, feel free to let me know.
Click to expand...
Click to collapse
Thanks
I'll try vlc.
I checked vlc, cache size is in ms and not in Mbit
falciatrice10 said:
Hi
Do i need root to access this file?
Do you have the full path ?
Thx
Click to expand...
Click to collapse
1. YES
2. Depends on Android version: by default it's located in /system partition. It also may be located in /vendor partition. You typically set the buffer sizes via ADB
Code:
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
adb shell "setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208"
adb shell "setprop net.tcp.buffersize.wifi 4095,87380,110208,4096,16384,110208"
adb shell "setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208"
adb shell "setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040"
adb shell "setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680"
Important:
TCP buffer tweaks to the build.prop may not work if they are set in the init.rc and (the init.roamer.rc)