When playing the mov on a win32 latest VLC 2.2.4, the video is not rotated (my ubuntu 14.04 is stuck to VLC2.1.6).
I think when people catch a video (or photo) with a phone and they have autorotation disabled, depending on the way they physically hold the phone rotated or not is the reason we get original recording rotated. So transcoding seems to be required if I understand well.
I don't care at all with CPU usage as long as it's the only way to reach the goal.
So I did the conversion with windows
Code: Select all
C:\Documents and Settings\me\Sync>"C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy ".\Titou2.mov" --transform-type=90 --sout="#transcode{vcodec=h264,vfilter=transform}:std{access=file,dst=.\Titou2v.mov}" vlc://quit
This is far better as the ouput, although roughly a third in size (what Rémi calls "
degrading the video quality." I believe, or this opinion was about mov/h264 ->mp4 additional loss in conversion ?). The output plays fine in ubuntu both in other player and vlc216 (ratio/proportion=preset/prédéfinie), but strangely in windows vlc224 I have to force ratio to 16:9 (when Crtl+J says 720x1280 !) to get a fine view. More strangely a snapshot is good when video plays bad (1:1) and snap is KO (same bad ratio as bad video) when vid is OK! ???
Back to ubuntu to try zcot conversion (very slightly tweaked) I get from
Code: Select all
cvlc "IMG_1362.MOV" --transform-type=90 :sout='#transcode{vcodec=mp4v,vfilter=transform}:std{access=file,dst="Titou2v.mp4"}'
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[0x895c98] dummy interface: using the dummy interface module...
[0x7f4e500039a8] stream_out_transcode stream out error: cannot find audio encoder (module:any fourcc: ). Take a look few lines earlier to see possible reason.
[0x7f4e500039a8] stream_out_transcode stream out error: cannot create audio chain
[0x7f4e50c1bba8] main decoder error: cannot create packetizer output (mp4a)
[mpeg4 @ 0x7f4e44005200] removing common factors from framerate
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[0x7f4e44003478] vaapi generic error: Failed to initialize the VAAPI device
[mpeg4 @ 0x7f4e4455c320] removing common factors from framerate
[h264 @ 0x7f4e44001920] Cannot parallelize deblocking type 1, decoding such frames in sequential order
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[0x7f4e4800b0d8] vaapi generic error: Failed to initialize the VAAPI device
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f4e44001ca8] main vout display error: Failed to resize display
[0x7f4e44003308] xcb_window window error: X server failure
a bad video 1/10 weight against original, double square one above the other with a flickering band between each (beside no sound which is another off topic issue).
When using h264 instead:
Code: Select all
cvlc "IMG_1362.MOV" --transform-type=90 :sout='#transcode{vcodec=h264,vfilter=transform}:std{access=file,dst="Titou2v.mov"}'
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[0x1c269f8] dummy interface: using the dummy interface module...
[0x7f10e4000958] x264 encoder: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[0x7f10e4000958] x264 encoder: profile Constrained Baseline, level 3.1
[0x7f10d40039a8] stream_out_transcode stream out error: cannot find audio encoder (module:any fourcc: ). Take a look few lines earlier to see possible reason.
[0x7f10d40039a8] stream_out_transcode stream out error: cannot create audio chain
[0x7f10d4c1ba68] main decoder error: cannot create packetizer output (mp4a)
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[0x7f10e4c0d138] vaapi generic error: Failed to initialize the VAAPI device
[0x7f10e4000958] x264 encoder: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[0x7f10e4000958] x264 encoder: profile Constrained Baseline, level 3.1
[h264 @ 0x7f10e4c0c100] Cannot parallelize deblocking type 1, decoding such frames in sequential order
[0x7f10e4000958] x264 encoder: frame I:3 Avg QP:20.00 size: 97213
[0x7f10e4000958] x264 encoder: frame P:698 Avg QP:23.13 size: 20912
[0x7f10e4000958] x264 encoder: mb I I16..4: 100,0% 0,0% 0,0%
[0x7f10e4000958] x264 encoder: mb P I16..4: 3,9% 0,0% 1,5% P16..4: 64.7% 12.6% 1.3% 0.0% 0.0% skip:16.0%
[0x7f10e4000958] x264 encoder: coded y,uvDC,uvAC intra: 46.5% 40.8% 6.6% inter: 35,4% 27,4% 0,0%
[0x7f10e4000958] x264 encoder: i16 v,h,dc,p: 11% 57% 19% 13%
[0x7f10e4000958] x264 encoder: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 50% 18% 3% 3% 1% 7% 1% 7%
[0x7f10e4000958] x264 encoder: i8c dc,h,v,p: 36% 46% 8% 10%
[0x7f10e4000958] x264 encoder: kb/s:4247.70
[h264 @ 0x7f10d8c09bc0] A non-intra slice in an IDR NAL unit.
[h264 @ 0x7f10d8c09bc0] decode_slice_header error
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[0x7f10d4001e88] vaapi generic error: Failed to initialize the VAAPI device
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f10e4000958] main vout display error: Failed to resize display
[0x7f10e40094d8] xcb_window window error: X server failure
a bad video 1/2 weight against original, double square one above the other with a green band between each (beside same no sound).
As a summary, only windows helped, although quality loss.
Thanks for tips you gave
Bye