yashsingh1/xdaforums huggingface dataset:
[HTC One X] AscorbicBloggs:
That config file is commented for video-related values, but it's not specifying much and it's no more populated on the phone either; at least not with values that reflect what's happening. And I think those orientation values only specify the start values anyway, as 'camera0' rotates and is not fixed to 90°. There seems to be so much redundant code as I'm finding video/camera related stuff all over the place; none of which reflects what's actually happening on the phone. It was naive/arrogant of me to think I could jump in with a quick fix. It's 2AM here now and I'm no wiser than I was this afternoon. I will have to leave this for the weekend, but I will post my progress. :fingers-crossed:

---
[HTC One X] maxwen:
well - actually I never had the idea to rotate it different then to the left

and I have android phones for quite some time :D

but you are correct - will see if I find something

EDIT: LOL has anyone noticed that videos taken with the front camera

are also upside down even in "normal" portrait mode :D
[HTC One X] seadersn:
AW: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

nope...? on pc or 3rd pty app or both?
[HTC One X] maxwen:
only tested 3rd party e.g. MXPlayer

with the internal android player they are always fine

BTW: does someone know how the orientation is encoded in video formats?

I know for JPEG but for e.g. mp4s?

I would assume internal player is simply using width - height info

to determine how to play it :)
[HTC One X] AscorbicBloggs:
MPEG files use metadata (tags) just like MP3, JPEG, TIFF, etc. There's just more info. If you're on a Windows PC, just right-click an MP4 file, select 'Properties' and click the 'Details' tab. That doesn't explain how it knows which way is up though :D

EDIT: I just found the following snippet from the AOSP VideoCamera.initializeRecorder() activity (courtesy of stackoverflow):

// See android.hardware.Camera.Parameters.setRotation for
// documentation.
// Note that mOrientation here is the device orientation, which is
// the opposite of what getWindowManager().getDefaultDisplay().getRotation()
// would return, which is the orientation the graphics need to rotate
// in order to render correctly.
int rotation = 0;
if (mOrientation != OrientationEventListener.ORIENTATION_UNKNOWN) {
CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
if (info.facing == CameraInfo.CAMERA_FACING_FRONT) {
rotation = (info.orientation - mOrientation + 360) % 360;
} else { // back-facing camera
rotation = (info.orientation + mOrientation) % 360;
}
}
mMediaRecorder.setOrientationHint(rotation);

This provides the camera rotation value to the MediaRecorder.setOrientationHint() method.

---
[HTC One X] danishdaycare:
I flashed nightlies 130327 from Staging 5,wiped cache and dalwik and flashed stock kerneland rthe vendor zip and now I get fc when trying to starttthe app Zedge and the game Backgammon Free. Anyone else get fc?

Maybe I need a full clean install, or maybe a logcat would help but I'm not that familiar with the latter...
[HTC One X] mr.axan:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

Oh ok, using stage. What should I do to fix it? Flash the boot from nightly? Thx

Sent from my HTC One X
[HTC One X] stalvatero:
No, it's not related to the kernel, but some library. Some thread ago someone tried to por this library in staged version... but i don't know about the result. i would advice you to instal the nigthly version performing a full wipe. ;)
[HTC One X] maxwen:
well - its not that easy - there are different orientations and rotations

involved here

-the raw display orientation as delievered from the sensor and used to rotate the screen

-the default orientation of the sensor in the device (thats whats defined in the nvcamera conf files)

-the rotation attribute of the camera driver

I am still trying to find out how that all comes together finally in the video :)

If you are interested look into the file VideoModule.java in the camera app

thats where all those values are used
[HTC One X] sujoynandi1:
hi all just wanna ask, am coming from android revolution ver 19.1(jelly bean) is it possible to flash this rom over that ?
[HTC One X] pandaball:
Wipe data if coming from another rom, and flash vendor blobs when flashing nightlies (read first post before asking :))
[HTC One X] timbo1969:
Cannot Dismiss Alarm

Is anyone else having this issue?

I'm just back from holiday, updated to latest Nightly, flashed the Vendor install and the Kernel and set the alarm to wake me up for work.

It woke me up alright!

After I unlocked the phone the option to dismiss the alarm was nowhere to be found. I went to the Alarm settings and found that the alarm had been set to "OFF" but the alarm was still 'ringing'. The only way to shut it up was to reboot the phone.
[HTC One X] AscorbicBloggs:
I tried gspot and a couple of other metadata readers, but they did not display any information about orientation/rotation. I then tried MediaInfo and, sure enough, it displayed a 'Rotation' value. I loaded a correctly oriented MPEG4 file, created with the HOX stock 4.1 JB and the file did not contain either a 'Rotation' tag or value. I then loaded an upside-down 3GP file, created with CM10.1 STAGING-5 and the 'Rotation' value was 180°. Hmm :confused:

I don't have any other 3GP files, so this weekend I will take several 3GP videos with different cameras/orientations and check the metadata to determine whether a rotation value is only written if the camera is actually rotated beyond the default (as specified in the config file you mentioned), or whether a value is always written. If it's only written upon change from the default orientation, then changing the value in that config file to '270' should resolve the upside-down front camera issue.

As you say, there are different orientations and rotations involved, but from a flow perspective it doesn't make sense for every applet, script and application to use its own independent method for acquiring this. The only value that would be needed is that 'Rotation' value, i.e. 90, 180, 270. It would seem more likely that there is a common single method for providing this value. so once that's determined it should be straightforward to debug.

However, while this value is important for the camera and other display interfaces as they need to rotate the display and controls through all orientations, that doesn't apply to the resulting video file and it shouldn't be pulling this value.

Logically, no rotation value should be written to the video file metadata at all, which it seems was how the stock camera was working. I do recall having to rotate the phone to watch videos recorded in portrait and examining metadata for both portrait and landscape MPEG4 files recorded with the stock ROM, there is no Rotation value for any of them.

EDIT: As to why the bundled player doesn't have this problem, well, if it isn't reading the 'Rotation' value at all, this would answer that question.

So, in theory, a simple fix. Just stop the video capture from writing 'Roatation' metadata. If I wasn't at work, I'd just remove that value from the config file to see what happens, as it really might be that simple. If the same file exists on a stock ROM, then it would be helpful to see what's written there.

I am really sorry if this is difficult to read. I keep coming back to this to add a bit more while working, so it's probably all over the place. I hope you get the gist of what I'm trying to say.

As I said before, I will look into this thoroughly when I have more time over the weekend.
[HTC One X] HessNL:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

With staging build my network drops all the time and with normal cm 10.1 it works great when I'm think that I will go back to cm 10.1
[HTC One X] pbaumi:
@Ganoess: It's a bug from staging build 5: either apply the RIL from nightly or flash nightly.
[HTC One X] vedko:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

Scroll a few pages back, seadersn posted a fix for that, flashable zip. I'm assuming your on staging build 5.

I'm using it and network issues since.
[HTC One X] HessNL:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

On withs page is it

---------- Post added at 05:27 PM ---------- Previous post was at 05:27 PM ----------

What do you mean with RIL?
[HTC One X] Stu|:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

As far as I know you don't need to unlock the phone to silence the alarm anymore. I certainly don't. You just drag across to the right to turn it off and left to snooze
[HTC One X] HessNL:
how can i update cm 10.1-20130312
[HTC One X] devil-kin:
1. Download it from CM's website

2. download the vendor zip from the first post of this thread

3. make a backup

4. flash both

5. flash gapps

PROFIT!
[HTC One X] HessNL:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

So I can't OTA update this and how do I install vedors
[HTC One X] seadersn:
AW: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

rom zip flash, then the same way for both the other zips.
[HTC One X] maxwen:
we use the stock config files

also the values there define the HW rotation

so the rotation the sensor is mounted in the device

you would not like to change them - trust me :)

but disabling writing any rotation to the mpeg stream is easy

and I will try that

EDIT: ok one thing is for sure now

android player IS using the rotation value in the stream

cause if I mess them up its directly visible in the player

The values written in in the stream are 0-90-180-270

correctly matching the display rotation

(0 is landscape by default for the back camera)

Therefore the value 90 in nvcamera.conf for the back camera

So actually I am starting to think players like

MXPlayer are the real problem here :)
[HTC One X] AscorbicBloggs:
I've done a bit more work on this since my previous post here:

http://xdaforums.com/showpost.php?p=39666371&postcount=12757

Video file metadata for both the front and back cameras match the values specified in /system/etc/nvcamera.conf. Changes to the values in the config file are also successfully written to the video file. However, those changes also affect the display orientation, so changing the front camera rotation value to fix the upside-down playback issue maxwen mentioned also has the adverse affect of rotating the screen for the camera app. :(

I'm guessing empty values will also mess up the display, but I will check that just to be sure. Not such an easy fix after all! Next step is VideoModule.java.

--

---------- Post added at 02:01 AM ---------- Previous post was at 01:59 AM ----------

I wish I'd seen this earlier :p
[HTC One X] maxwen:
sorry added it later :)

So I hacked directly MPEG4Writer.cpp line 1599

If I change anything there it will mess up even the android player

So the stream rotation is combining

display rotation + value from nvcamera.conf

e.g. landscape left rotation

display rotation = 90 / nvcamera.conf for back = 90 -> 0

right rotation

270 / 90 -> 180

e.g. porttrait default

0 / 90 -> 90

upside down

180 / 90 -> 270
[HTC One X] AscorbicBloggs:
I was sure there was compensation somewhere and that matches what I am seeing. But that doesn't work for you, as you said your front video was upside down :confused:

EDIT: This works if sensor rotation is calculated clockwise (0,90.180,270) for the back camera and anti-clockwise (0,270,180,90) for the front camera, which makes sense as the cameras are opposing.

So, for the back camera:

Landscape left: 90 + 270 = 0 (Yes)

Landscape right: 90 + 90 = 180 (Yes)

Portrait: 90 + 0 = 90 (Yes)

And for the front camera (using reverse/anti-clockwise rotation):

Landscape left: 270 + 90 = 0 (Yes)

Landscape right: 270 + 270 = 180 (Yes)

Portrait 270 + 0 = 270 (Yes)

And zero rotation values are not being written to the metadata.

So that's it ;)
[HTC One X] ametarasu:
I faced a network issue with nightly from 27th. Even though my phone was shown as connected to network, incoming calls and outgoing calls were not working. Restarting the phone fixed the issue. Wondering if anyone else is seeing this issue with latest nightlies.
[HTC One X] mrjayviper:
cm never had OTA updates. you must be confusing cm with the other sense-based ROMs like ARHD/viper/etc
[HTC One X] seadersn:
AW: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

cm has ota updates :) app doing this is named cmupdater.apk. you can download it via phone and flash it via rom manager then. kernel changes can't be applied due to s-off, of course. there is also an third party app, which only updates the differences between the builds > cm delta updater.

@video player: can you check your rotation settings in mx player, pls? for me rotation behaves the same way as in stock cm gallery player, tested it yesterday with some recorded vids. maybe there's a difference between free and pro variant? which version of mx player do you have? i've got 1.7.13 installed.

what's the rotation in other players? can someone tell?

good morning btw :D
[HTC One X] harshalkatakia:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

Any chances Pie Controls can be added back? I'd love to use it from the left and right side of my screen. It's just easier to work around.

Thanks!
[HTC One X] seadersn:
AW: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

install lmt launcher / pie controls from market, this version makes much more sense on our phones :) cm pie controls are only a replacement for software control buttons on nexus devices (or any devices which don't have hw buttons) when using expanded desktop feature. imo: completely useless for our devices, at least in current state. when it get's additions and they can show more than only basic controls which are given with our hw buttons already, one can think about adding them back (which isn't done only via activating, there's more to do, if i remember correctly).
[HTC One X] harshalkatakia:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

Thanks! I did check out Pie Controls app... But that didn't replicate the same kind of looks that the actual Pie Controls has. :(

Edit: I tried Lmt Launcher and I love it! Thanks a lot!
[HTC One X] mrjayviper:
if you read his statement, he was talking along the lines of your regular OTA updates provided by stock/sense-based ROMs.

cyandelta may seemed OTA but you're still flashing the full ROM not just the updates.
[HTC One X] tbalden:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies | STAGING build 5 [Mar

Its recommended to use nightlies with the vendor installer.

Staging build is not having any advantage now that since a week there are no pending patches.

Hope to get a monthly milestone build on get.cm now that all the patches were merged. Will see.
[HTC One X] 7OOKA:
+1 pie controls are for devices with no HW buttons, it does the same job of our HW buttons, and tweaks just cant be merged like that, a lot of tweaks may lead to stability issues, even if it's minor, there are other 4.2 roms here which is heavily tweaked like ICJ but it's not 100% stable like CM (imho), although it may be 90% stable which is good for alot of people, as for me im looking for absolute stability and performance which is CM
[HTC One X] maxwen:
Doesnt make a diff for me (only have free - 1.7.13)

so its independent which value I use for "Orientation"
[HTC One X] RedSkyRoad:
Hi guys,

I'm at my work PC right now with NO fastboot files - do i have to install the whole SDK or are there only a few files i need to flash the boot.img?
[HTC One X] waz675:
Hi. I haven't bothered looking but expect this problem to be too hard no one has seen it before. I flashed this rom, didn't read anything about it and it's rebooting all by itself. Someone told me it needs boot.img but the idiot mustn't have seen that I said I haven't done any reading. Can everyone just please write me a detailed post, pictures and youtube instructions made by each poster be provided. I don't mind if 20+ people spend over half an hour each giving me the answer, the more time spent helping me the better for you all.

Also, I'd like a feature I saw on another phone. Forget the phone, it moved pictures or text really cool. You know what I mean yeah. Can the devs drop evwrything and put this feature in for me. when you do, I might evemn hit thanks if I remember to read this forum again. I won't say thank you as it's obvious the devs haven't written the code by time they read this.

Hurry up, I will be waiting if I think about this again.

:rolleyes: :rolleyes: :rolleyes:
[HTC One X] RedSkyRoad:
SERIOUSLY??? What the hell did YOU ingest?
[HTC One X] waz675:
This helped other roms with headphones. Maybe use it til a fix is done. https://play.google.com/store/apps/details?id=com.woodslink.android.wiredheadphoneroutingfix

---------- Post added at 02:41 PM ---------- Previous post was at 02:39 PM ----------

Got sick of reading so many posts where it's obvious they did no prior searching/reading. Had to let my anger out (wife's best friend aged 25 found out she has breast cancer this week probably contributed to my anger tho)
[HTC One X] ashwin988:
The best thing you should do is ignore stupid questions. Thats what most of us do. The search function is there.. if these people are lazy to read, then they can go f themselves.
[HTC One X] kb0n:
You REALLY didn't get the sarcasm did ya... ;)
[HTC One X] DonPato:
obvious troll is obvious man :P
[HTC One X] kibaa12:
when i try to mod the Framework-res.apk/res/values/arrays.xml

<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>60</item>
<item>60</item>
<item>60</item>
<item>60</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>

to

<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>

which from previous Cyanogen mod version and other roms has worked in disabling the light was there any where else that has had to be modified to enable the ButtonBacklight or is it being held deeper in the kernel to control as i know there was a issue earlier with the light flickering or only working when on autobrightness?

p.s tried deleting selection and yeah gave a bootloop lol
[HTC One X] Slash888:
Thank you! the headphones now manually work, I hope in a fix...
[HTC One X] gcd:
now hd widgets are also working after a couple of restarts. just moved it into phone storage with titanium backup and now it is working.

so anyone still has widget problem, just try to move it to phone storage with titanium backup and after a few restarts, it should't disappear again
[HTC One X] NickDunn:
for mine, its been fixed since preview 4.
[HTC One X] RedSkyRoad:
Thanx for this fix!!! Everything seems to be working now for me :)
[HTC One X] wolverine73:
I had the same issue too - you've got to swap the decoder to HW decoding as opposed to SW in the MX decoder menu - works fine after :good:
[HTC One X] Chad_Petree:
Cm10 on the one x makes it almost my dream device, now if only htc would have gone with onscreen software buttons and a 2000 mah battery would be incredible!
[HTC One X] F4M0U569:
Ok why would you want the onscreen menu buttons? This is not the galaxy nexus buddy
[HTC One X] rjwdon:
only thing that im having issues with is no sound through my headset when playing music etc.

other than that in love with this rom
[HTC One X] hosmsdos:
Every time I tried to copy something through usb I get system force close and I had to force restart
[HTC One X] kibaa12:
Some people just like the on screen keys

Also since flashing the proposed boot.IMG with freq fixed I went from not using less than 305 I now have this

i also get a forced restart when triyng to mount USB logcat is on a previous post
[HTC One X] RedSkyRoad:
NO problems here with mounting USB with Clock Speed fix. All working well...
[HTC One X] KillerTheLord:
A possible fix for the Music Lag problem(worked for me) Make sure your CPU Governor is set to Interactive (performance will just suck the battery out :P).

Settings -> Performance -> Processor -> CPU Governor
[HTC One X] HessNL:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies

So how do i install vendors ? I want to update it but I can't it stuck get HTC logo but normal cm have better battery then staging with staging I'm losing 10% every time and this works nice :p
[HTC One X] seadersn:
AW: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies

you both have 3gp file format @ video recorder? did you try mp4 variant? since i don't think this makes a difference, but... who knows :) as it's working like it should here.

no one else has this problem?? can someone report, pls?
[HTC One X] jacauc:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies

Yes
[HTC One X] sabret00the:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies

I was gonna answer the same question that's been asked and answered so many times but then I thought why bother when people don't bother to even read the thread. :banghead:
[HTC One X] maxwen:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies

actually for me this issue is closed since it works fine with the internal player which is the reference :)
[HTC One X] Maher88:
Re: [ROM][official] HTC OneX CyanogenMod 10.1(4.2.2) Nightlies

@video issue

I've tried many camera apps with deferent players..

It seems to view the video (shot with front camera) correctly on all players except with MX player 1.7.13 free!

I tested the same video on my other device (xperia p) with the same version of MX player and it showed the correct orientation

Anyway I then notesed that it's the decoder fault... H/W+ (set on my HOX) seems to show the video upsidedown but H/W and S/W (set on my XP P) works fine...

After disabling H/W+ on my hox the video worked good!

Edit: S/W is rotating the video 90 degrees CW

Sent from my HTC One X
[HTC One X] AscorbicBloggs:
Good morning :) MX Player Pro 1.7.13. H/W+ on. Doesn't behave the same as stock player. Maxwen helped me figure this out yesterday, summarized here:

http://xdaforums.com/showpost.php?p=39689268&postcount=12770

In summary, captured 3GP video gets rotation metatag as follows:

Rear camera landscape left: 0 (no metatag written)

Rear camera landscape right: 180 (upside down)

Rear camera portrait: 90 (quarter right)

Front camera landscape left: 0 (no metatag written)

Front camera landscape right: 180 (upside down)

Front camera portrait: 270 (quarter left)

While it's now clear how this is happening (see above post) and it's avoidable by always rotating to the left for landscape videos, camera controls rotate all the way through 270°, implying that captured video will always be right-side up, which is not the case. The stock 4.1 camera also rotated through 270°, but captured right-side up on both landscape left and right.

I'm not trying to compare one with the other. I'm just saying if you're coming from stock and know that it doesn't matter which way you tilt the camera, the interface controls imply this is the same, but it's not. Right-tilted landscape videos will be upside-down, despite the controls indicating otherwise.

It's not just MX Player. If I pull a right-tilted landscape video, it's upside-down on WMP and on a Samsung TV, . It must be because it includes a Rotation: 180 tag.

You said portrait videos from the front camera were upside down here:

http://xdaforums.com/showpost.php?p=39648140&postcount=12746

That was the reason I started down this path:confused::(

Really confused :confused:

Yes, 3GP. MP4 is my preference and I was waiting for your patch, but as 3GP is default I was trying to fix this, so I haven't gone MP4 yet. Did you put up a ZIP for this, as I didn't see it?

Thanks for that :)