


To configure YouTube integration in the DAM, we have followed the steps found here: https://docs.adobe.com/docs/en/aem/6-1/author/assets/dynamic-media/video.html#Publishing videos to YouTube.
Everything is working fine for videos up to 5MB in size. When we try to publish a 10MB video, the video never fully uploads to YouTube. The message in YouTube is that it is "Preparing Upload". We've let hours go by and it does not appear to make progress.
Is it possible we are missing a setting somewhere?
Views
Replies
Sign in to like this content
Total Likes
Did you see some errors in error.log fine?
It must have captured something.
Views
Replies
Sign in to like this content
Total Likes
The only error that is in the log related to this is:
08.05.2016 23:48:56.496 *ERROR* [pool-167-thread-5] org.apache.sling.extensions.threaddump.internal.Activator Uncaught exception in Thread Thread[pool-167-thread-5,5,Configuration Admin Service]
java.lang.IllegalArgumentException: Cannot call getProgress() if the specified AbstractInputStreamContent has no content length. Use getNumBytesUploaded() to denote progress instead.
at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
at com.google.api.client.util.Preconditions.checkArgument(Preconditions.java:49)
at com.google.api.client.googleapis.media.MediaHttpUploader.getProgress(MediaHttpUploader.java:933)
at com.day.cq.dam.s7dam.common.youtube.impl.runnable.YouTubeUploadVideoThread.progressChanged(YouTubeUploadVideoThread.java:127)
at com.google.api.client.googleapis.media.MediaHttpUploader.updateStateAndNotifyListener(MediaHttpUploader.java:906)
at com.google.api.client.googleapis.media.MediaHttpUploader.resumableUpload(MediaHttpUploader.java:471)
at com.google.api.client.googleapis.media.MediaHttpUploader.upload(MediaHttpUploader.java:336)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:418)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
at com.day.cq.dam.s7dam.common.youtube.impl.runnable.YouTubeUploadVideoThread.run(YouTubeUploadVideoThread.java:65)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Views
Replies
Sign in to like this content
Total Likes
marissaw98512527 wrote...
The only error that is in the log related to this is:
08.05.2016 23:48:56.496 *ERROR* [pool-167-thread-5] org.apache.sling.extensions.threaddump.internal.Activator Uncaught exception in Thread Thread[pool-167-thread-5,5,Configuration Admin Service]
java.lang.IllegalArgumentException: Cannot call getProgress() if the specified AbstractInputStreamContent has no content length. Use getNumBytesUploaded() to denote progress instead.
at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
at com.google.api.client.util.Preconditions.checkArgument(Preconditions.java:49)
at com.google.api.client.googleapis.media.MediaHttpUploader.getProgress(MediaHttpUploader.java:933)
at com.day.cq.dam.s7dam.common.youtube.impl.runnable.YouTubeUploadVideoThread.progressChanged(YouTubeUploadVideoThread.java:127)
at com.google.api.client.googleapis.media.MediaHttpUploader.updateStateAndNotifyListener(MediaHttpUploader.java:906)
at com.google.api.client.googleapis.media.MediaHttpUploader.resumableUpload(MediaHttpUploader.java:471)
at com.google.api.client.googleapis.media.MediaHttpUploader.upload(MediaHttpUploader.java:336)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:418)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
at com.day.cq.dam.s7dam.common.youtube.impl.runnable.YouTubeUploadVideoThread.run(YouTubeUploadVideoThread.java:65)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Hi
This could be a bug. Please try to upload this video directly to YouTube.
getProgress () : - Gets the upload progress denoting the percentage of bytes that have been uploaded, represented between 0.0 (0%) and 1.0 (100%).
We should not use it if the specified AbstractInputStreamContent has no content length specified. Instead, consider using getNumBytesUploaded() to denote progress.
and
AbstractInputStreamContent :- Serializes HTTP request content from an input stream into an output stream.
Doc:- https://developers.google.com/api-client-library/java/google-api-java-client/reference/1.20.0/com/go... [Last section]
If you are able to upload the video directly then create a daycare ticket at :- https://daycare.day.com/home/createaticket.html
Thanks and Regards
Kautuk Sahni
Views
Replies
Sign in to like this content
Total Likes