1 |
On Mon, Feb 16 2015, Nikos Chantziaras wrote: |
2 |
|
3 |
> On 17/02/15 01:39, gottlieb@×××.edu wrote: |
4 |
>> On Mon, Feb 16 2015, Nikos Chantziaras wrote: |
5 |
>> |
6 |
>>> On 16/02/15 22:51, gottlieb@×××.edu wrote: |
7 |
>>>> I apologize in advance for this off topic query. |
8 |
>>>> |
9 |
>>>> I took a video with my phone (galaxy note 4) and via google+ uploaded it |
10 |
>>>> to my mail laptop. It is an mp4 and plays fine on both the phone and |
11 |
>>>> the labtop except that it is sideways. |
12 |
>>>> |
13 |
>>>> I was surprised that neither the player on the phone nor the player on |
14 |
>>>> the laptop (totem, I run gnome) seems to offer a rotation option. |
15 |
>>>> |
16 |
>>>> Am I missing a slightly hidden option or do I need another program. |
17 |
>>>> I do not do video editing and do no plan to in the near future. |
18 |
>>> |
19 |
>>> You can change the metadata of the mp4 file without re-encoding |
20 |
>>> it. This requires that the player you play the video in actually |
21 |
>>> respects that metadata though! mplayer and mpv respect it. Your |
22 |
>>> phone's player might not. |
23 |
>> |
24 |
>> Not worried about the phone. I won't touch the file there and will |
25 |
>> probably delete it when I get the one right on the laptop. |
26 |
>> |
27 |
>>> You need ffmpeg for this (media-video/ffmpeg). |
28 |
>> |
29 |
>> That I have (1.2.6-r1, highest stable). |
30 |
>> |
31 |
>>> ffmpeg -i yourvideo.mp4 -c copy -metadata:s:v:0 rotate=90 output.mp4 |
32 |
>> |
33 |
>> I did this command but the result is not rotated (my player is totem). |
34 |
> |
35 |
> Try mpv or mplayer. If that shows it rotated, then it's totem ignoring |
36 |
> the metadata. |
37 |
|
38 |
I built and tried mplayer. Again not rotated. I ran it from the |
39 |
terminal. Below is the output up to when I killed it |
40 |
|
41 |
Is it possible I did the ffmpeg command wrong? |
42 |
|
43 |
thanks, |
44 |
allan |
45 |
|
46 |
newlap tmp # mplayer r90.mp4 |
47 |
MPlayer SVN-r36370 (Gentoo)-4.8.3 (C) 2000-2013 MPlayer Team |
48 |
MMX2 supported but disabled |
49 |
|
50 |
Playing r90.mp4. |
51 |
libavformat version 54.63.104 (external) |
52 |
libavformat file format detected. |
53 |
[h264 @ 0x7ff80716e920]Warning: not compiled with thread support, using thread emulation |
54 |
[aac @ 0x7ff80716e920]Warning: not compiled with thread support, using thread emulation |
55 |
[lavf] stream 0: video (h264), -vid 0 |
56 |
[lavf] stream 1: audio (aac), -aid 0, -alang eng |
57 |
VIDEO: [H264] 1920x1080 24bpp 29.917 fps 16996.4 kbps (2074.8 kbyte/s) |
58 |
Clip info: |
59 |
major_brand: isom |
60 |
minor_version: 512 |
61 |
compatible_brands: isomiso2avc1mp41 |
62 |
encoder: Lavf54.63.104 |
63 |
Load subtitles in ./ |
64 |
========================================================================== |
65 |
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family |
66 |
libavcodec version 54.92.100 (external) |
67 |
[h264 @ 0x7ff80716e920]Warning: not compiled with thread support, using thread emulation |
68 |
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) |
69 |
========================================================================== |
70 |
========================================================================== |
71 |
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders |
72 |
[aac @ 0x7ff80716e920]Warning: not compiled with thread support, using thread emulation |
73 |
AUDIO: 48000 Hz, 2 ch, floatle, 250.1 kbit/8.14% (ratio: 31257->384000) |
74 |
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio)) |
75 |
========================================================================== |
76 |
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample) |
77 |
Starting playback... |
78 |
Movie-Aspect is undefined - no prescaling applied. |
79 |
VO: [xv] 1920x1080 => 1920x1080 Planar YV12 |
80 |
A: 7.3 V: 7.3 A-V: 0.000 ct: 0.033 0/ 0 70% 1% 0.6% 0 0 |
81 |
|
82 |
Exiting... (Quit) |
83 |
newlap tmp # |