Camera Upside-down

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
User avatar
mrmajik45
Level 4
Level 4
Posts: 419
Joined: Tue Aug 29, 2017 9:51 pm
Location: USA, indiana
Contact:

Camera Upside-down

Post by mrmajik45 » Mon May 14, 2018 3:22 pm

When my grandma uses her camera, the video is shown upside-down. I have the laptop so I can actually work on it. But I haven't gotten any actual results. Help.
ReactOS Donator ~ $5.00 | Linux Mint Donator ~ $1.00 in BTC

User avatar
AZgl1500
Level 9
Level 9
Posts: 2885
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Camera Upside-down

Post by AZgl1500 » Mon May 14, 2018 3:29 pm

Look at the camera settings, does it offer a sensor to detect "UP"?

most do, and it is real common with cellphones.

older cameras do not though.

User avatar
Flemur
Level 16
Level 16
Posts: 6290
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Camera Upside-down

Post by Flemur » Mon May 14, 2018 3:51 pm

mrmajik45 wrote:
Mon May 14, 2018 3:22 pm
When my grandma uses her camera, the video is shown upside-down.
Shown on what? The camera? Linux programs? Windows programs? Which ones?

Anyway, various video converters can flip or rotate the image; you might check ffmpeg/avconv, which are command line, but IIRC they can correct the image orientation by changing some metadata rather than re-encoding the video.

"Rotate a video with FFmpeg (100% lossless, and quick) "
https://gist.github.com/ViktorNova/1dd6 ... 9507c73ee2

Code: Select all

ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO
https://stackoverflow.com/questions/393 ... ith-ffmpeg

Code: Select all

Rotate 90 clockwise:
ffmpeg -i in.mov -vf "transpose=1" out.mov

For the transpose parameter you can pass:
0 = 90 CounterCLockwise and Vertical Flip (default)
1 = 90 Clockwise
2 = 90 CounterClockwise
3 = 90 Clockwise and Vertical Flip
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
absque fenestris
Level 5
Level 5
Posts: 656
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Camera Upside-down

Post by absque fenestris » Mon May 14, 2018 3:53 pm

As far as I understand a landscape / portrait problem.
But your question: what do you want to do? Convert an upright image / video to a horizontal one?
Linux Mint 18.3 Sylvia (Mate) 32-bit - Acer D250 Netbook (Intel Atom N270, 2 GB RAM, 120 GB SSD)

User avatar
mrmajik45
Level 4
Level 4
Posts: 419
Joined: Tue Aug 29, 2017 9:51 pm
Location: USA, indiana
Contact:

Re: Camera Upside-down

Post by mrmajik45 » Mon May 14, 2018 3:53 pm

Google Chrome. KDE. Camera is built-in. And she is using it on Facebook for her streams
ReactOS Donator ~ $5.00 | Linux Mint Donator ~ $1.00 in BTC

User avatar
mrmajik45
Level 4
Level 4
Posts: 419
Joined: Tue Aug 29, 2017 9:51 pm
Location: USA, indiana
Contact:

Re: Camera Upside-down

Post by mrmajik45 » Mon May 14, 2018 3:56 pm

I want to know if there is a way to change how the system would show the output. Like make the system flip the output before giving it the program that needs it
ReactOS Donator ~ $5.00 | Linux Mint Donator ~ $1.00 in BTC

User avatar
absque fenestris
Level 5
Level 5
Posts: 656
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Camera Upside-down

Post by absque fenestris » Mon May 14, 2018 4:14 pm

Question and answer, respectively problem and solution are here on a Monty Python level: what do you want to do - and what could you do on a Mint-Linux level? There is definitely no new grandmother...
Linux Mint 18.3 Sylvia (Mate) 32-bit - Acer D250 Netbook (Intel Atom N270, 2 GB RAM, 120 GB SSD)

andersau
Level 2
Level 2
Posts: 63
Joined: Wed Jan 21, 2009 8:27 pm

Re: Camera Upside-down

Post by andersau » Tue May 15, 2018 1:05 am

A few years ago I had a HP laptop that did have the camera module installed upside down. Apparently it wasn't unusual. I had difficulty correcting the problem using software - it was actually a hardware issue. I eventually fixed it by taking the computer apart and putting the camera back in the correct orientation. You should be able to find some information about how to do it online, depending on what model the computer is. It could also be a warranty issue that the manufacturer will correct.

User avatar
catweazel
Level 17
Level 17
Posts: 7774
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Camera Upside-down

Post by catweazel » Tue May 15, 2018 2:16 am

Flemur wrote:
Mon May 14, 2018 3:51 pm
Anyway, various video converters can flip or rotate the image
Which sort of defeats the purpose of having a camera in the first place.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

User avatar
catweazel
Level 17
Level 17
Posts: 7774
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Camera Upside-down

Post by catweazel » Tue May 15, 2018 2:19 am

mrmajik45 wrote:
Mon May 14, 2018 3:22 pm
When my grandma uses her camera, the video is shown upside-down. I have the laptop so I can actually work on it. But I haven't gotten any actual results. Help.
https://askubuntu.com/questions/796082/ ... bcam-video

See the response about v4l-utils.

Or try this: https://ubuntuforums.org/showthread.php?t=870681&page=2

"Apparently, the fix for this is to add a parameter to the driver when the module is loaded, like so..."
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

User avatar
catweazel
Level 17
Level 17
Posts: 7774
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Camera Upside-down

Post by catweazel » Tue May 15, 2018 2:21 am

absque fenestris wrote:
Mon May 14, 2018 4:14 pm
Question and answer, respectively problem and solution are here on a Monty Python level: what do you want to do - and what could you do on a Mint-Linux level? There is definitely no new grandmother...
It's blatantly obvious what @mrmajik45 wants to do.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

User avatar
absque fenestris
Level 5
Level 5
Posts: 656
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Camera Upside-down

Post by absque fenestris » Tue May 15, 2018 2:34 am

1. turn over the just filming grandmother
2. turn over the camera that is filming
3. turn over the film in progress
Linux Mint 18.3 Sylvia (Mate) 32-bit - Acer D250 Netbook (Intel Atom N270, 2 GB RAM, 120 GB SSD)

User avatar
catweazel
Level 17
Level 17
Posts: 7774
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Camera Upside-down

Post by catweazel » Tue May 15, 2018 2:52 am

absque fenestris wrote:
Tue May 15, 2018 2:34 am
1. turn over the just filming grandmother
2. turn over the camera that is filming
3. turn over the film in progress
I don't feel that humour would be appreciated in direct response to a technical issue. It sidetracks the thread, which isn't in the interests of fixing the OP's issue. At the end, ok, but not while the OP still has the issue. It's not too far removed from hijacking.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

User avatar
absque fenestris
Level 5
Level 5
Posts: 656
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Camera Upside-down

Post by absque fenestris » Tue May 15, 2018 4:47 am

This works:
ffmpeg -i in.mov -vf "transpose=1" out.mov

my example
ffmpeg -i '/home/msz/Downloads/Lus.mp4' -vf "transpose=1" '/home/msz/Downloads/neu.mp4'

This command has nothing changed:
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO
Linux Mint 18.3 Sylvia (Mate) 32-bit - Acer D250 Netbook (Intel Atom N270, 2 GB RAM, 120 GB SSD)

User avatar
mrmajik45
Level 4
Level 4
Posts: 419
Joined: Tue Aug 29, 2017 9:51 pm
Location: USA, indiana
Contact:

Re: Camera Upside-down

Post by mrmajik45 » Tue May 15, 2018 5:14 pm

Nothing... I got the camera:

Code: Select all

Bus 001 Device 002: ID 064e:a116 Suyin Corp. UVC 1.3MPixel WebCam
ReactOS Donator ~ $5.00 | Linux Mint Donator ~ $1.00 in BTC

User avatar
mrmajik45
Level 4
Level 4
Posts: 419
Joined: Tue Aug 29, 2017 9:51 pm
Location: USA, indiana
Contact:

Re: Camera Upside-down

Post by mrmajik45 » Tue May 15, 2018 5:16 pm

And I said stream not video.
ReactOS Donator ~ $5.00 | Linux Mint Donator ~ $1.00 in BTC

User avatar
absque fenestris
Level 5
Level 5
Posts: 656
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Camera Upside-down

Post by absque fenestris » Wed May 16, 2018 1:54 pm

Same problem here:
Do videos have metadata for orientation?
Post by jimallyn » Fri May 11, 2018 2:13 am

viewtopic.php?f=58&t=269236&p=1468138&h ... n#p1468138

Maybe it helps.
Linux Mint 18.3 Sylvia (Mate) 32-bit - Acer D250 Netbook (Intel Atom N270, 2 GB RAM, 120 GB SSD)

User avatar
mrmajik45
Level 4
Level 4
Posts: 419
Joined: Tue Aug 29, 2017 9:51 pm
Location: USA, indiana
Contact:

Re: Camera Upside-down

Post by mrmajik45 » Wed May 16, 2018 3:02 pm

It's not a video. Stop giving me this. Pls. It's directly from the camera. Being used for a LIVESTREAM on Facebook. I've already told you this before. And no it's not just Facebook.
ReactOS Donator ~ $5.00 | Linux Mint Donator ~ $1.00 in BTC

User avatar
AZgl1500
Level 9
Level 9
Posts: 2885
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Camera Upside-down

Post by AZgl1500 » Wed May 16, 2018 3:35 pm

Facebook does NOT honor the camera's internal geo settings.

I do NOT ever post a picture from a cellphone/tablet camera on Facebook anymore, UNLESS, I look at it with GIMP and let GIMP correct the rotation. Then I post it up with my PC.

User avatar
MrEen
Level 8
Level 8
Posts: 2014
Joined: Mon Jun 12, 2017 8:39 pm

Re: Camera Upside-down

Post by MrEen » Wed May 16, 2018 4:22 pm

Looks like it could be a driver issue. This site is the best I could find quickly: Why Is My Webcam Showing Me Upside Down?

Post Reply

Return to “Hardware Support”