Bug 99320 - Rotated videos cannot be inserted
Summary: Rotated videos cannot be inserted
Status: RESOLVED DUPLICATE of bug 99592
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.0.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-15 12:05 UTC by Kevin Evans
Modified: 2017-04-01 00:08 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
PP2013 test files (12.35 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-04-26 20:11 UTC, Kevin Evans
Details
Test file for bug 99320 (PPTX file from PP2013) (6.32 MB, application/vnd.ms-powerpoint.12)
2016-04-27 10:54 UTC, Kevin Evans
Details
MediaInfo on test PP2013 file (80.18 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-04-27 11:59 UTC, Kevin Evans
Details
PP2013 compressed TEST2 file (5.48 MB, application/vnd.ms-powerpoint.12)
2016-04-27 12:05 UTC, Kevin Evans
Details
Waterfall clip, plays sideways on everything else except Powerpoint (9.21 MB, video/quicktime)
2016-04-29 15:14 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Evans 2016-04-15 12:05:46 UTC
LibreOffice 5.0.5.2

I have several PowerPoint 2013 slide presentations with video in them. These presentations have been "compressed" using the "compress video function" within PP2013. I assume that PP2013 compresses them using something like "zip" within the file itself?

Using either PP2013 or the free PP viewer that Microsoft provides, the presentations play OK (well, the video doesn't play with the viewer but the regular slide do). The video plays when in PP2013 itself.

In LIbreOffice, it opens the file OK and presents the first slide (in this case I have my laptop HDMI connected to my AV receiver and it to the TV). If I then tell LO to run a slideshow...I get an "overlaid" white screen and nothing else happens. I then have to kill LO using the Windows Task Manager.

So, my assumption is that LO cannot handle PP2013 compressed video when running a slideshow.

My laptop is Win8.1
Comment 1 Buovjaga 2016-04-26 10:26:24 UTC
Could you create an example file? You can use some public domain video: https://archive.org/search.php?query=mediatype%3A%28movies%29%20AND%20licenseurl%3A%28%22http%3A%2F%2Fcreativecommons.org%2Flicenses%2Fpublicdomain%2F%22%29

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 2 Kevin Evans 2016-04-26 19:58:47 UTC
The original file that I submitted the bug report on doesn't exist anymore as I had many problems with family members trying to load the PowerPoint 2013 slides which were compressed that I removed ALL the video from PP and uploaded those separately to YouTube and rotated the videos using YouTube functions. The non-video PPT files I then uploaded to Google Drive for family members to access.

The original PPT files were documenting an Australia and New Zealand vacation recently (hence various family members trying to access them). So, I took one of the PPT files (none of them have video in them any more) and re-inserted one of the waterfall videos from Queenstown, NZ and then tried to re-create the problem. I created a "problem" but NOT the original problem. See the steps below that I used.

Created a test file in PP2013 (on my desktop)

Rotated the waterfall video in PP2013

Saved the file (as the " not compressed" version I uploaded)

Waterfall plays correctly from top to bottom in PP2013

Opened the "non compressed" in Libre Office (on my laptop)

The video was NOT rotated and played "sideways" (hard to with a waterfall <g>)

Went back to my desktop and saved the file as a "compressed" version

Used PP2013 to rotate the video (double clicked on the video and chose "format")

In PP2013, video played from top to bottom correctly

Compressed the file and re-saved it as the "compressed" version

Open the "compressed" file using my laptop and LO (the files reside on a server, so both the desktop and the laptop pull the file from the same place)

Went to slide 2 (the "inserted" waterfall video)

I did not get the blank white screen this time (laptop is NOT connected to the bug screen via HDMI in this case, but just being used in my office)

The video appears to play in the correct orientation BUT is almost entirely off the page at the bottom, so I can just see a small fraction of the waterfall.

I have uploaded the "compressed" and "non compressed" PP2013 files. I didn't remove any other slides, based on it possibly affecting the resulting file (size etc) so they are relatively large files.
Comment 3 Kevin Evans 2016-04-26 20:11:23 UTC
Created attachment 124658 [details]
PP2013 test files

So, maybe these files are too big to upload (the upload failed).

Let me go back into them and delete a bunch of slides. I did this and will try to upload the smaller files (compressed and non compressed PP2013 files). 

The reduced files still will NOT upload.

They are 17Mb and 147Mb.

Based on your 10MB limit...how do I uploaded the test files to you?

I also couldn't see a way to remove the files from the upload list without selecting another file, so I uploaded the test steps Word document instead.

Regards,

Kevin
Comment 4 Buovjaga 2016-04-27 05:25:10 UTC
It took a bit of work, but I managed to find a suitably small video clip that is Creative Commons licensed: https://archive.org/download/RMCMatrixulationTrailerWMV/RMCMatrixulation_Trailer_512kb.mp4
That is 6.3M. I hope it doesn't make the file go over 10M.
Please give it a try.
Comment 5 Kevin Evans 2016-04-27 10:52:13 UTC
I downloaded and added that mp4 file that you reference to the non-compressed PP2013 file that I have here. It plays OK in PP2013. I save that file (it has all of my other slides in it still). When I open that file on my laptop, all the slide shows (where the video is located) is a big black box with a large gray question mark in it.

If I take that file (above) on my desktop and in PP2013, remove all slides and then add a "new slide" of just that mp4 file that you provided, it plays in PP2013 OK. I save that file as a new filename and close out of PP2013. I then open that file (which has that mp4 video ONLY) on the laptop and all I see is the large black box with the gray question mark again. I will try to upload that file to you.

Regards,

Kevin
Comment 6 Kevin Evans 2016-04-27 10:54:39 UTC
Created attachment 124668 [details]
Test file for bug 99320 (PPTX file from PP2013)

Uploaded test file
Comment 7 Buovjaga 2016-04-27 11:42:09 UTC
The question mark thing means that a video codec is missing.

I wonder what codec is used in the videos you originally faced problems with.

Here is open source software to get the codec info: https://mediaarea.net/en/MediaInfo

One more mystery is what exactly PowerPoint does to the video when it compresses it. It might use H.264 codec for the recompression, but I did not find a clear explanation: https://support.office.com/en-us/article/Compress-the-media-files-in-your-presentation-f0927964-25f3-460c-ac42-c6cc3308604c

That said, it is never recommended to recompress your videos as you always lose quality.
Comment 8 Buovjaga 2016-04-27 11:48:48 UTC
(In reply to Kevin Evans from comment #6)
> Created attachment 124668 [details]
> Test file for bug 99320 (PPTX file from PP2013)
> 
> Uploaded test file

Could you compress the video in Powerpoint and upload the resulting PP file so I can check the codec used?
Comment 9 Kevin Evans 2016-04-27 11:59:56 UTC
Created attachment 124675 [details]
MediaInfo on test PP2013 file
Comment 10 Kevin Evans 2016-04-27 12:05:23 UTC
Created attachment 124676 [details]
PP2013 compressed TEST2 file

Compressed PP2013 TEST2 file that was requested.
Comment 11 Kevin Evans 2016-04-27 12:07:55 UTC
It looks to me as if PP2013 is just using ZIP to compress the video. I used the "Presentation Quality" option when compressing the file in PP2013. This is selected using File/Media Size and Performance.

Kevin
Comment 12 Christian Lohmaier 2016-04-27 12:18:02 UTC
no problem playing back that  the compressed file on linux - if it doesn't on windows, then simply a codec is missing.

that compression feature in powerpoint reencodes the video, and during that  it changes framerate, and it also reencoded audio (but with fixed bitrate, and that in this case increased the size of the audio track)

So if it cannot play back in LO, then it just means a codec is missing. There's no "magic" involved in the pptx compression - it is reencoding with different settings, that are likely to reduce the filesize.
Comment 13 Buovjaga 2016-04-27 12:19:34 UTC
(In reply to Kevin Evans from comment #11)
> It looks to me as if PP2013 is just using ZIP to compress the video. I used
> the "Presentation Quality" option when compressing the file in PP2013. This
> is selected using File/Media Size and Performance.

Thanks for uploading the files.

Nope, it does recompress the actual video. The size went down from 6,3M to 5,5M. The codec stays the same, H.264.

I opened the pptx as a zip file (which it is in reality, same with Open Document files) and noticed there was a ppt folder and inside was a media folder with the video.

I can play the video in both of your test files on LibreOffice 5.1.2 on Linux, where I have the necessary codecs installed.

I am not sure what to try next, if you can't share your vacation vids publicly!
Comment 14 Kevin Evans 2016-04-27 12:22:31 UTC
OK, but I am still not sure what codec is needed on the laptop to be able to play the videos from PP2013 files. How do I determine what codec is needed and where that codec is?

Kevin
Comment 15 Kevin Evans 2016-04-27 12:26:18 UTC
The way that I shared the videos eventually was to remove the video files from the PP2013 files completely. I then uploaded the modified (no video) PPTX files to Google Drive.

The videos were separately uploaded to YouTube. The waterfall videos were rotated via YouTube.

Then both GoogleDrive and YouTube allow me to generate a "link" to those files. The only unfortunate part is that to DL the videos from YouTube seems to require an broswer addin (some of the Australian part of the family run with "limited" monthly bandwidth. Me (in the US) does not have that problem.

Kevin
Comment 16 Buovjaga 2016-04-27 12:55:49 UTC
This seems to be the gold standard for Windows at the moment: https://github.com/Nevcairiel/LAVFilters/releases
Open source, no crapware installed so should be a pleasant experience.
Comment 17 Kevin Evans 2016-04-27 13:24:18 UTC
So, I went to that LAVFilters page, downloaded the LAVFilters-0.68-Installer.exe file and installed it. The TEST2 file still shows the large question mark. The waterfall video is still almost off the bottom of the page.

After the Filters install above, do I need to recreate those PPTX files again or should they just display properly?

I'm a retired software developer but am no expert on this video stuff. Maybe the LO software needs to be a bit more user friendly for Windows in its error messaging (the big question mark will mean nothing to most people) and needing video codecs installed to play PPTX files (which LO purports to do) should either not be necessary or handled in an easier way for users?

I use LO to teach various courses and without video files, LO seems to work just fine. The video experience...not so much.

Your support (via this method) for LO has been excellent though!

Kevin
Comment 18 Buovjaga 2016-04-27 13:45:12 UTC
(In reply to Kevin Evans from comment #17)
> After the Filters install above, do I need to recreate those PPTX files
> again or should they just display properly?

Yes, they should immediately display properly (or maybe after reboot?). I have to try the filters myself tomorrow at work on Windows.

A codec pack one sees mentioned often is K-lite, but it appears to simply bundle the LAV Filters these days: http://www.codecguide.com/download_k-lite_codec_pack_basic.htm Seems pointless to try that then..

It is in times like this that I wish we had a working libVLC solution: https://wiki.documentfoundation.org/Media_Support#VLC
Then everything would Just Work, if VLC was installed.

Btw. Kevin, if you are interested in helping out even with some simple bug testing, we would be really happy :) Here is an introduction to the stuff we do the most: https://wiki.documentfoundation.org/QA/Triage_For_Beginners
Comment 19 Kevin Evans 2016-04-27 14:51:15 UTC
By VLC, do you mean VideoLAN?

If so, VLC is installed on the laptop.

In fact, VLC plays PPTX files (I didn't know that). However, the waterfall is still sideways.

Whatever PP2013 is doing with MOV rotation...doesn't seem to work with anything else I have tried including LO.

I'll look at the testing stuff a bit later (although after 47 years in the IT business...I'm not sure I want to start again <g>...I'm on the way out. When did I find time to work before I retired!

Regards,

Kevin
Comment 20 Buovjaga 2016-04-27 16:19:16 UTC
Yes, Videolan. There is no working VLC integration with LibreOffice currently.

Bug testing is quite non-stressful work, though, as testers are glad when they can crash the software ;)

So there are a couple of issues in this report:
- starting slideshow produces an "overlaid" white screen and nothing else happens
- video rotated with Youtube function does not appear rotated in LibreOffice

I could test the Youtube rotation later myself.
Comment 21 Buovjaga 2016-04-28 07:19:52 UTC
I tested on my Win machine. Before installing LAV Filters, I got "the format of the selected file is not supported" when I tried to insert the .mp4 file. After installing, it worked. Note: it is displayed as a question mark, but it plays just fine.

Next, I went to Youtube, uploaded the Matrixulation mp4 file and edited it. I rotated it. Then I downloaded it and tried to insert to Impress: "the format of the selected file is not supported".

I think we should change this report to be about rotated videos.

I will test the rotated video on Linux later.

Win 7 Pro 64-bit, Version: 5.1.2.2 (x64)
Build ID: d3bf12ecb743fc0d20e0be0c58ca359301eb705f
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: fi-FI (fi_FI)
Comment 22 Buovjaga 2016-04-28 13:06:54 UTC
Hmh, the rotated video can be inserted and played just fine on Linux. So this seems to be a codec issue after all.

I'm sorry, but I have to close this as NOTABUG. As I don't have an answer to the codec problem, you will have to post a question to https://ask.libreoffice.org/
Comment 23 Kevin Evans 2016-04-28 13:14:00 UTC
OK, if you say so...I'm sure you are aware that MANY more people use Windows than Unix based systems. Many of those people will have the same problem. Many of those people may well ditch LO. I'm certainly thinking of Office365 and whether it is worth it to me.

Thanks for the help and fast turnaround.

Regards,

Kevin
Comment 24 Buovjaga 2016-04-28 13:26:00 UTC
(In reply to Kevin Evans from comment #23)
> OK, if you say so...I'm sure you are aware that MANY more people use Windows
> than Unix based systems. Many of those people will have the same problem.

Unix based systems still need codecs installed, if people want to play videos in Impress. I just happen to have the right codecs installed on Linux. I do not know what codecs are missing from our Windows systems, so you should ask at the AskLibO site.
Comment 25 Kevin Evans 2016-04-28 17:25:32 UTC
(In reply to Buovjaga from comment #24)
> (In reply to Kevin Evans from comment #23)
> > OK, if you say so...I'm sure you are aware that MANY more people use Windows
> > than Unix based systems. Many of those people will have the same problem.
> 
> Unix based systems still need codecs installed, if people want to play
> videos in Impress. I just happen to have the right codecs installed on
> Linux. I do not know what codecs are missing from our Windows systems, so
> you should ask at the AskLibO site.

Sorry, but that is NOT much of an answer. LO "professes" to be an alternative to MS Office. PP2013 works without any other codecs installed, so if LO is supposed to be an alternative to MS Office...it should work also.

Kevin
Comment 26 Buovjaga 2016-04-29 06:50:38 UTC
Powerpoint works the same way:
https://support.office.com/en-us/article/Are-you-having-video-or-audio-playback-issues-e0a94444-8ea7-4a00-974b-6ad0d6edc4b1
"If you are having trouble inserting or playing media, it could be that you don't have the proper codec installed."

https://support.office.com/en-us/article/Compatible-multimedia-file-formats-fe6b7fd4-629e-43a0-a7e2-0dd927dac56d
"Although your sound or video file may have the same file extension as one listed below, it may not play correctly if the correct version of the codec is not installed, or if the file is not encoded in a format that is recognized by your version of Microsoft Windows."
Comment 27 Buovjaga 2016-04-29 07:56:51 UTC
(In reply to Kevin Evans from comment #3)
> They are 17Mb and 147Mb.
> 
> Based on your 10MB limit...how do I uploaded the test files to you?

You could use http://filedropper.com/ and share the dl link here.
Comment 28 Kevin Evans 2016-04-29 12:08:40 UTC
(In reply to Buovjaga from comment #26)
> Powerpoint works the same way:
> https://support.office.com/en-us/article/Are-you-having-video-or-audio-
> playback-issues-e0a94444-8ea7-4a00-974b-6ad0d6edc4b1
> "If you are having trouble inserting or playing media, it could be that you
> don't have the proper codec installed."
> 
> https://support.office.com/en-us/article/Compatible-multimedia-file-formats-
> fe6b7fd4-629e-43a0-a7e2-0dd927dac56d
> "Although your sound or video file may have the same file extension as one
> listed below, it may not play correctly if the correct version of the codec
> is not installed, or if the file is not encoded in a format that is
> recognized by your version of Microsoft Windows."

While I truly understand what you saying (BTW one of those articles you referenced is about the 2007 MS product - I'm using the 2013 version).....Powerpoint as installed here didn't need codecs installed to play properly...LO apparently does. That, to me, detracts from LO being an alternative to MS Office.

Kevin
Comment 29 Buovjaga 2016-04-29 12:49:24 UTC
Can you share the document with filedropper?
Comment 30 Kevin Evans 2016-04-29 12:52:26 UTC
(In reply to Buovjaga from comment #29)
> Can you share the document with filedropper?

I'm not sure which file you refer to here. My comment about my file sizes was written before I created a small test file where the waterfall plays sideways in LO and I've uploaded that already.

Kevin
Comment 31 Buovjaga 2016-04-29 12:57:34 UTC
(In reply to Kevin Evans from comment #30)
> (In reply to Buovjaga from comment #29)
> > Can you share the document with filedropper?
> 
> I'm not sure which file you refer to here. My comment about my file sizes
> was written before I created a small test file where the waterfall plays
> sideways in LO and I've uploaded that already.

You have not attached a file with the waterfall video. That is what I am interested in.
Comment 32 Kevin Evans 2016-04-29 13:11:40 UTC
I'll have to try to use FileDropper then as that file is 146Mb with one text slide and the waterfall video.

When opening this file in LO...the video is almost off the bottom of the page (almost can't even see it).

When opening this file in VLC, the video plays OK, but sideways.

When opening in PP2013, the file plays correctly with the waterfall flowing from top to bottom.

Let me look at FileDropper and I will try to upload the file:

Libre_Office_Bug_99320_Waterfall_Not_Compressed

Kevin
Comment 33 Kevin Evans 2016-04-29 13:31:04 UTC
Try this on FileDropper

http://www.filedropper.com/libreofficebug99320waterfallnotcompressed

Kevin
Comment 34 Buovjaga 2016-04-29 15:14:08 UTC
Created attachment 124733 [details]
Waterfall clip, plays sideways on everything else except Powerpoint

I trimmed the clip in Avidemux, so it was not re-encoded.

I confirm the orientation is correct in Powerpoint 2013.

The orientation is sideways on Linux with gstreamer, in every application (LibO, VLC, Avidemux) as well as on Windows in every application besides PP.
Comment 35 Buovjaga 2016-04-29 15:15:44 UTC
There is clearly something special about the video that makes it play foul with the available codecs, but let's entertain the possibility we can mimic Powerpoint and make it work. Setting to NEW.
Comment 36 Kevin Evans 2016-04-29 16:08:59 UTC
(In reply to Buovjaga from comment #35)
> There is clearly something special about the video that makes it play foul
> with the available codecs, but let's entertain the possibility we can mimic
> Powerpoint and make it work. Setting to NEW.

The video was shot with a Canon EOS70D camera, so a relatively new camers (Christmas last year) if that makes any difference? Probably not though.
Comment 37 Buovjaga 2016-04-30 16:51:05 UTC
I only now realized that you had rotated the video *in PowerPoint* and not Youtube (thanks cloph on IRC for noting this).

I created a new enhancement request for the ability to rotate videos in Impress. The missing ability is the root of the problem. I will close this as a duplicate to have a clean slate.

*** This bug has been marked as a duplicate of bug 99592 ***
Comment 38 LibreTraining 2017-04-01 00:08:30 UTC
   
The waterfall.mov file is not actually an MOV format file.
It is an AVI format file with a wrong file extension.
That error will confuse many media players.

Also the file does not play in Windows Media Player with either MOV or the correct AVI file extension. 
This points to a format/codec issue in how the file was created.

If this file was created by PowerPoint when it rotated the original file,
then it appears that PP is creating a non-standard file format.

That will cause issues when LO, or other application, tries to play it.
Perhaps on purpose.