Camera Upside-down
Forum rules
Before you post please read how to get help
Before you post please read how to get help
Camera Upside-down
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
- AZgl1500
- Level 10
- Posts: 3107
- Joined: Thu Dec 31, 2015 3:20 am
- Location: Oklahoma where the wind comes sweeping down the plains
- Contact:
Re: Camera Upside-down
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.
most do, and it is real common with cellphones.
older cameras do not though.
Re: Camera 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
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?
Manjaro openbox/fluxbox/pulse-less
Lubuntu LXDE/fluxbox/pulse-less
Your data and OS are backed up....right?
Manjaro openbox/fluxbox/pulse-less
Lubuntu LXDE/fluxbox/pulse-less
- absque fenestris
- Level 5
- Posts: 772
- Joined: Sat Nov 12, 2016 8:42 pm
- Location: Confoederatio Helvetica
Re: Camera Upside-down
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?
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)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
Re: Camera Upside-down
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
Re: Camera Upside-down
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
- absque fenestris
- Level 5
- Posts: 772
- Joined: Sat Nov 12, 2016 8:42 pm
- Location: Confoederatio Helvetica
Re: Camera Upside-down
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)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
Re: Camera Upside-down
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.
- catweazel
- Level 17
- Posts: 7830
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Camera Upside-down
Which sort of defeats the purpose of having a camera in the first place.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı
- catweazel
- Level 17
- Posts: 7830
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Camera Upside-down
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ɹɟ ɯ,ı
- catweazel
- Level 17
- Posts: 7830
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Camera Upside-down
It's blatantly obvious what @mrmajik45 wants to do.absque fenestris wrote: ⤴Mon May 14, 2018 4:14 pmQuestion 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...
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı
- absque fenestris
- Level 5
- Posts: 772
- Joined: Sat Nov 12, 2016 8:42 pm
- Location: Confoederatio Helvetica
Re: Camera Upside-down
1. turn over the just filming grandmother
2. turn over the camera that is filming
3. turn over the film in progress
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)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
- catweazel
- Level 17
- Posts: 7830
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Camera Upside-down
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.absque fenestris wrote: ⤴Tue May 15, 2018 2:34 am1. turn over the just filming grandmother
2. turn over the camera that is filming
3. turn over the film in progress
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı
- absque fenestris
- Level 5
- Posts: 772
- Joined: Sat Nov 12, 2016 8:42 pm
- Location: Confoederatio Helvetica
Re: Camera Upside-down
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
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)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
Re: Camera Upside-down
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
Re: Camera Upside-down
And I said stream not video.
ReactOS Donator ~ $5.00 | Linux Mint Donator ~ $1.00 in BTC
- absque fenestris
- Level 5
- Posts: 772
- Joined: Sat Nov 12, 2016 8:42 pm
- Location: Confoederatio Helvetica
Re: Camera Upside-down
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.
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)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
Linux Mint 17.3 Rosa (Mate) 64-bit - MacBook Pro 15" (Intel Core2 Duo, 8 GB RAM, 240 GB SSD)
Re: Camera Upside-down
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
- AZgl1500
- Level 10
- Posts: 3107
- Joined: Thu Dec 31, 2015 3:20 am
- Location: Oklahoma where the wind comes sweeping down the plains
- Contact:
Re: Camera Upside-down
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.
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.
Re: Camera Upside-down
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?