Page 1 of 1

Auto-rotation of MOV files generated by iPhone

PostPosted: Tue Jan 31, 2012 5:40 am
by huyz
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?

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Tue Jan 31, 2012 5:58 am
by Cerberus
  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>

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Tue Jan 31, 2012 6:07 am
by huyz
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.

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Tue Jan 31, 2012 6:09 am
by Cerberus
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/

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Tue Jan 31, 2012 8:45 am
by huyz
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.

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Tue Jan 31, 2012 8:53 am
by Cerberus
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.

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Tue Jan 31, 2012 9:25 am
by huyz
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.

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Tue Jan 31, 2012 5:15 pm
by Cerberus
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.

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Tue Jan 31, 2012 6:16 pm
by huyz
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.

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Wed Feb 01, 2012 12:58 pm
by zip
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 :-)

Re: Auto-rotation of MOV files generated by iPhone

PostPosted: Wed Feb 01, 2012 5:47 pm
by voodooo
:mrgreen: