FAQ  •  Register  •  Login

Auto-rotation of MOV files generated by iPhone

<<

huyz

Serviio newbie

Posts: 15

Joined: Sun Jan 29, 2012 9:50 pm

Post Tue Jan 31, 2012 5:40 am

Auto-rotation of MOV files generated by iPhone

As with any renderer other than Quicktime, my Panasonic TV doesn't properly auto-rotate a MOV video recorded in portrait mode on an iPhone.

I hear that FFmpeg has a transpose filter to do this kind of rotation.

Is it possible for Serviio to support this in the near future?

In the meantime, would the appropriate workaround be to have an FFmpeg wrapper Perl script that does ffmpeg -i on the file, look at the rotation info, and automatically add transpose filter arguments?
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Tue Jan 31, 2012 5:58 am

Re: Auto-rotation of MOV files generated by iPhone

  Code:
<AutomaticImageRotation>true</AutomaticImageRotation>


add the above code to the panasonic profile, right at bottom of it just before you see this code

  Code:
</profile>
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

huyz

Serviio newbie

Posts: 15

Joined: Sun Jan 29, 2012 9:50 pm

Post Tue Jan 31, 2012 6:07 am

Re: Auto-rotation of MOV files generated by iPhone

Cerberus wrote:
  Code:
<AutomaticImageRotation>true</AutomaticImageRotation>


add the above code to the panasonic profile, right at bottom of it just before you see this code

  Code:
</profile>


This is supposed to work for video as well as images?

In any case, I just tried it and it had no effect.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Tue Jan 31, 2012 6:09 am

Re: Auto-rotation of MOV files generated by iPhone

huyz wrote:
Cerberus wrote:
  Code:
<AutomaticImageRotation>true</AutomaticImageRotation>


add the above code to the panasonic profile, right at bottom of it just before you see this code

  Code:
</profile>


This is supposed to work for video as well as images?

In any case, I just tried it and it had no effect.


sorry misread your topic, no will only work on Image, for video i dont know of a way to rotate them.

EDIT: quick google and you can rotate them manualy and save them with correct rotation using.

Google Picasa can rotate videos and save them into a new file. Just install Picasa if you haven't already, find the video, and click the rotate button just as you would for a photo and quick time pro can also do this.

A free option is MPEG Streamclip (awesome program) where you can just choose "Rotate Video" from the Edit menu. If saved as a QuickTime movie it won't require transcoding. http://squared5.com/
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

huyz

Serviio newbie

Posts: 15

Joined: Sun Jan 29, 2012 9:50 pm

Post Tue Jan 31, 2012 8:45 am

Re: Auto-rotation of MOV files generated by iPhone

A free option is MPEG Streamclip (awesome program) where you can just choose "Rotate Video" from the Edit menu. If saved as a QuickTime movie it won't require transcoding. http://www.squared5.com/


That's cool, good to know. It would be cool if Serviio could invoke MPEG Streamclip automatically since it doesn't require transcoding. I guess I might hack it in the perl wrapper.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Tue Jan 31, 2012 8:53 am

Re: Auto-rotation of MOV files generated by iPhone

huyz wrote:
A free option is MPEG Streamclip (awesome program) where you can just choose "Rotate Video" from the Edit menu. If saved as a QuickTime movie it won't require transcoding. http://www.squared5.com/


That's cool, good to know. It would be cool if Serviio could invoke MPEG Streamclip automatically since it doesn't require transcoding. I guess I might hack it in the perl wrapper.


not needed, omce its been done once, it doesnt need to be done again.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

huyz

Serviio newbie

Posts: 15

Joined: Sun Jan 29, 2012 9:50 pm

Post Tue Jan 31, 2012 9:25 am

Re: Auto-rotation of MOV files generated by iPhone

Cerberus wrote:
huyz wrote:
A free option is MPEG Streamclip (awesome program) where you can just choose "Rotate Video" from the Edit menu. If saved as a QuickTime movie it won't require transcoding. http://www.squared5.com/


That's cool, good to know. It would be cool if Serviio could invoke MPEG Streamclip automatically since it doesn't require transcoding. I guess I might hack it in the perl wrapper.


not needed, omce its been done once, it doesnt need to be done again.


Yeah I understand that, but I want to do it in real-time, in the same way that we remux/transcode in real-time. I just prefer to leave the original videos untouched and not have to worry about new videos that I add to the library.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Tue Jan 31, 2012 5:15 pm

Re: Auto-rotation of MOV files generated by iPhone

thats plain silly, it wont be a NEW video it will be same video but with correct rotation, this isnt a transcoding job it a sort your files so there correct then add them to library, you cant expect serviio to do everything for you you have to out in some work yourself.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

huyz

Serviio newbie

Posts: 15

Joined: Sun Jan 29, 2012 9:50 pm

Post Tue Jan 31, 2012 6:16 pm

Re: Auto-rotation of MOV files generated by iPhone

Cerberus wrote:thats plain silly, it wont be a NEW video it will be same video but with correct rotation, this isnt a transcoding job it a sort your files so there correct then add them to library, you cant expect serviio to do everything for you you have to out in some work yourself.


Silly? You could make the exact same argument for remuxing and transcoding. Why don't you pre-remux/pre-transcode all your videos in a format that you know all your devices will play?

And, again, why would anyone want to complicate one's life when storing iPhone videos? Every time I sync my iPhone, I upload my photos/videos to my PC. I do this quite often. If I want to pre-rotate the videos, I'd have to add a step where I post-process all my videos every time I sync. Why do that when you could have Serviio serve them pre-rotated only for renderers that don't support the rotation flag?

This is a rendering problem with the TV (or VLC, WMP, etc.) and one of the functions of Serviio is to process media files to go around these limitations (hence, the real-time remuxing/transcoding). This is absolutely a task to be expected of a DLNA server.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 01, 2012 12:58 pm

Re: Auto-rotation of MOV files generated by iPhone

huyz wrote:This is a rendering problem with the TV (or VLC, WMP, etc.) and one of the functions of Serviio is to process media files to go around these limitations (hence, the real-time remuxing/transcoding). This is absolutely a task to be expected of a DLNA server.

Maybe in future, for now you'll have to hold your iPhone the right way :-)
<<

voodooo

Serviio lover

Posts: 70

Joined: Tue Jan 10, 2012 4:04 pm

Location: Portugal

Post Wed Feb 01, 2012 5:47 pm

Re: Auto-rotation of MOV files generated by iPhone

:mrgreen:

Return to Transcoding

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 15 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.