Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\OC\Preview #4022

Merged
merged 170 commits into from
Aug 31, 2013
Merged

\OC\Preview #4022

merged 170 commits into from
Aug 31, 2013

Conversation

georgehrke
Copy link
Contributor

OC\Preview

This pull requests contains the implementation of the class \OC\Preview.
It also contains updated versions of the files, files_sharing and the files_trashbin app. Those apps make now use of the new preview lib.
To test this pull request, you might need to checkout https://github.com/owncloud/3rdparty/tree/oc_preview

please review
@karlitschek
@jancborchardt
@DeepDiver1975
@LukasReschke

Frank Karlitschek and others added 30 commits November 13, 2012 15:11
…views/thumbnails for images. It get´s more interesting when we add PDFs, movies, mp3, text files and more...
@DeepDiver1975
Copy link
Member

@georgehrke disabled preview fixed? THX

@georgehrke
Copy link
Contributor Author

What do you mean by disabled previews?
invert disable_previews to enable_previews -> done
show mimetype icon after upload if previews are disabled -> done

@DeepDiver1975
Copy link
Member

show mimetype icon after upload if previews are disabled -> done

this is what I was talking about - thx

@DeepDiver1975
Copy link
Member

I'll review this tonight and let's merge then

@georgehrke
Copy link
Contributor Author

Thx

Please excuse my brevity and typos.
Sent from my iPhone

On Aug 30, 2013, at 7:54 PM, Thomas Müller notifications@github.com wrote:

I'll review this tonight and let's merge then


Reply to this email directly or view it on GitHub.

@DeepDiver1975
Copy link
Member

@jancborchardt @georgehrke there is something wrong with the color on the file actions - THX

bildschirmfoto vom 2013-08-30 21 58 37

@DeepDiver1975
Copy link
Member

That's the reason why I get no previews on my vids:
Buffering several frames is not supported. Please consume all available frames before adding a new one.

Input #0, avi, from 'PICT0075.AVI':
  Metadata:
    encoder         : 
  Duration: 00:00:02.99, start: 0.000000, bitrate: 17399 kb/s
    Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
    Stream #0.1: Audio: pcm_u8, 8000 Hz, 1 channels, u8, 64 kb/s
[buffer @ 0x23ad1a0] w:640 h:480 pixfmt:yuvj422p
Output #0, mjpeg, to '/tmp/test.jpeg':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0: Video: mjpeg, yuvj422p, 640x480, q=2-31, 200 kb/s, 90k tbn, 30 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
[buffer @ 0x23ad1a0] Buffering several frames is not supported. Please consume all available frames before adding a new one.
    Last message repeated 30 times
frame=    1 fps=  0 q=3.6 Lsize=      22kB time=0.03 bitrate=5331.1kbits/s    
video:22kB audio:0kB global headers:0kB muxing overhead 0.000000%

@DeepDiver1975
Copy link
Member

@georgehrke we need a proper documentation on which tools are required to enable previews of which type

@ringmaster windows server testing on this is highly necessary - at the moment this is pure linux based implementation - THX

@georgehrke
Copy link
Contributor Author

@georgehrke we need a proper documentation on which tools are required to enable previews of which type

I'll write some doc when this was merged

@jancborchardt
Copy link
Member

@DeepDiver1975 the fileactions color is an issue from master, will be fixed by @petemcfarlane in #4665

@georgehrke
Copy link
Contributor Author

@DeepDiver1975 the fileactions color is an issue from master, will be fixed by @petemcfarlane in #4665

Already fixed it with previous commit

@georgehrke
Copy link
Contributor Author

That's the reason why I get no previews on my vids:
Buffering several frames is not supported. Please consume all available frames before adding a new one.

I'm no ffmpeg cl expert. Does anyone know how to do this with ffmpeg?

@DeepDiver1975
Copy link
Member

I'll write some doc when this was merged

hehe - would have been great to have this information while testing

libreoffice docs are working now as well

@DeepDiver1975
Copy link
Member

I'm no ffmpeg cl expert. Does anyone know how to do this with ffmpeg?

we should anyhow more to avconv as the depreciation warning suggests

And well - as usual - Google is your friend:
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2011-April/000231.html

😉

@Niduroki
Copy link
Member

Gave this a quick test.

While uploading loads of stuff my log gets slowly spammed with this:

{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class 'OC\\Preview' does not have a method 'post_write' at \/home\/http\/testcloud\/lib\/hook.php#72","level":2,"time":"August 30, 2013 20:44:37"}
{"app":"core","message":"Path not in cache: files\/","level":3,"time":"August 30, 2013 20:44:38"}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class 'OC\\Preview' does not have a method 'post_write' at \/home\/http\/testcloud\/lib\/hook.php#72","level":2,"time":"August 30, 2013 20:45:01"}
{"app":"core","message":"Path not in cache: files\/","level":3,"time":"August 30, 2013 20:45:02"}

When navigating into a path with many files the log quickly fills with:

{"app":"PHP","message":"is_file() expects parameter 1 to be a valid path, string given at \/home\/http\/testcloud\/lib\/image.php#395","level":2,"time":"August 30, 2013 20:45:11"}
{"app":"PHP","message":"is_file() expects parameter 1 to be a valid path, string given at \/home\/http\/testcloud\/lib\/image.php#395","level":2,"time":"August 30, 2013 20:45:11"}
{"app":"PHP","message":"is_file() expects parameter 1 to be a valid path, string given at \/home\/http\/testcloud\/lib\/image.php#395","level":2,"time":"August 30, 2013 20:45:11"}

PHP 5.5.2, opensuse 12.3, nginx 1.5.3

@DeepDiver1975
Copy link
Member

on the public share by link page there is a javascript error - no idea if that is related:

Uncaught ReferenceError: file_upload_param is not defined public.js?v=681a23b0649e61ca572cb5bb8db206ec:54
(anonymous function) public.js?v=681a23b0649e61ca572cb5bb8db206ec:54
c jquery-1.10.0.min.js?v=681a23b0649e61ca572cb5bb8db206ec:4
p.fireWith jquery-1.10.0.min.js?v=681a23b0649e61ca572cb5bb8db206ec:4
x.extend.ready jquery-1.10.0.min.js?v=681a23b0649e61ca572cb5bb8db206ec:4
q jquery-1.10.0.min.js?v=681a23b0649e61ca572cb5bb8db206ec:4

@georgehrke
Copy link
Contributor Author

on the public share by link page there is a javascript error - no idea if that is related:

I don't think so

@georgehrke
Copy link
Contributor Author

While uploading loads of stuff my log gets slowly spammed with this:

There definitely is a method post_write
see https://github.com/owncloud/core/blob/oc_preview/lib/preview.php#L595

@icewind1991 Any idea?

@ghost
Copy link

ghost commented Aug 30, 2013

Test passed.
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/791/

@DeepDiver1975
Copy link
Member

@georgehrke will be off for vacation now

@karlitschek @jancborchardt I'd vote for merge now - remaining cleanup can be done afterwards - we need to get this going - any objections?

👍

@karlitschek
Copy link
Contributor

No. Please merge 👍

DeepDiver1975 added a commit that referenced this pull request Aug 31, 2013
@DeepDiver1975 DeepDiver1975 merged commit 92e90c8 into master Aug 31, 2013
@DeepDiver1975 DeepDiver1975 deleted the oc_preview branch August 31, 2013 10:41
@karlitschek
Copy link
Contributor

Yay. Thanks a lot Georg

@MorrisJobke
Copy link
Contributor

Awesome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet