On Mon, Feb 16 2015, Nikos Chantziaras wrote: > On 17/02/15 01:39, gottl...@nyu.edu wrote: >> On Mon, Feb 16 2015, Nikos Chantziaras wrote: >> >>> On 16/02/15 22:51, gottl...@nyu.edu wrote: >>>> I apologize in advance for this off topic query. >>>> >>>> I took a video with my phone (galaxy note 4) and via google+ uploaded it >>>> to my mail laptop. It is an mp4 and plays fine on both the phone and >>>> the labtop except that it is sideways. >>>> >>>> I was surprised that neither the player on the phone nor the player on >>>> the laptop (totem, I run gnome) seems to offer a rotation option. >>>> >>>> Am I missing a slightly hidden option or do I need another program. >>>> I do not do video editing and do no plan to in the near future. >>> >>> You can change the metadata of the mp4 file without re-encoding >>> it. This requires that the player you play the video in actually >>> respects that metadata though! mplayer and mpv respect it. Your >>> phone's player might not. >> >> Not worried about the phone. I won't touch the file there and will >> probably delete it when I get the one right on the laptop. >> >>> You need ffmpeg for this (media-video/ffmpeg). >> >> That I have (1.2.6-r1, highest stable). >> >>> ffmpeg -i yourvideo.mp4 -c copy -metadata:s:v:0 rotate=90 output.mp4 >> >> I did this command but the result is not rotated (my player is totem). > > Try mpv or mplayer. If that shows it rotated, then it's totem ignoring > the metadata.
I built and tried mplayer. Again not rotated. I ran it from the terminal. Below is the output up to when I killed it Is it possible I did the ffmpeg command wrong? thanks, allan newlap tmp # mplayer r90.mp4 MPlayer SVN-r36370 (Gentoo)-4.8.3 (C) 2000-2013 MPlayer Team MMX2 supported but disabled Playing r90.mp4. libavformat version 54.63.104 (external) libavformat file format detected. [h264 @ 0x7ff80716e920]Warning: not compiled with thread support, using thread emulation [aac @ 0x7ff80716e920]Warning: not compiled with thread support, using thread emulation [lavf] stream 0: video (h264), -vid 0 [lavf] stream 1: audio (aac), -aid 0, -alang eng VIDEO: [H264] 1920x1080 24bpp 29.917 fps 16996.4 kbps (2074.8 kbyte/s) Clip info: major_brand: isom minor_version: 512 compatible_brands: isomiso2avc1mp41 encoder: Lavf54.63.104 Load subtitles in ./ ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 54.92.100 (external) [h264 @ 0x7ff80716e920]Warning: not compiled with thread support, using thread emulation Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders [aac @ 0x7ff80716e920]Warning: not compiled with thread support, using thread emulation AUDIO: 48000 Hz, 2 ch, floatle, 250.1 kbit/8.14% (ratio: 31257->384000) Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio)) ========================================================================== AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample) Starting playback... Movie-Aspect is undefined - no prescaling applied. VO: [xv] 1920x1080 => 1920x1080 Planar YV12 A: 7.3 V: 7.3 A-V: 0.000 ct: 0.033 0/ 0 70% 1% 0.6% 0 0 Exiting... (Quit) newlap tmp #