Cannot upload chunked video to twitter - twitter

I have been trying to upload video chunks to twitter using twurl as in the example on the page: https://blog.twitter.com/2015/rest-api-now-supports-native-video-upload
However, I get the "unsupported video" error. I am able to upload smaller sized videos without breaking them into chunks.
I am running twurl on Ubuntu 12.04

It means exactly "unsupported video".
Twitter has a strict video format requirement: https://dev.twitter.com/rest/public/uploading-media#videorecs.
Example: sample mp4 files containing 6-channel audio won't be supported.
Check out my project: https://github.com/mtrung/TwitterVideoUpload.

Related

Processing abandoned The video could not be processed

I followed this link with the second answer (two steps) to implement the video upload to Youtube: Upload video on Youtube using curl and api v3
The code works fine, but when I executed, I got response saying:
status:
embeddable: true
license: "youtube"
privacyStatus: "unlisted"
publicStatsViewable: true
uploadStatus: "uploaded"
That means it is working, but when I went to my youtube account to check the video on videos list, it said:
Processing abandoned
The video could not be processed
The video is not playable with a red triangle, so are there any more info about why? and how to fix it? the video is about 30 seconds long, and when I manually upload from my youtube account UI, it works.
also my scope is configured with:
scopes: ['https://www.googleapis.com/auth/youtubepartner-channel-audit',
'https://www.googleapis.com/auth/youtube.upload']
Export your video again and save it in a different format supported by Youtube. at first, youtube kept abandoning the processing of my mp4 video but when I saved it as MOV, I was able to upload it with ease. Hope it helps because uploading with video classic didn't fix my issue.
This video will explain to you all the possible reasons for your video rejection by youtube.
watch till the end so you can understand what is wrong with your video.
https://youtu.be/-iVtTHhfYtA
This is a new video with new reasons behind youtube rejection
I had the same problem with Electron. Solved by moving the API call from rendering process to main process. Apparently the video didn't upload at all using the node.js API in browser context.

Youtube API: upload a remote video

I was able to programmatically upload a local video to youtube using the example at the bottom of https://developers.google.com/youtube/v3/docs/videos/insert.
However, when I try to upload a remote video file, I get the following error message:
“A service error occurred: Failed to parse Content-Range header”
I want to use a full url instead of a path here:
$videoPath = "/path/to/file.mp4";
vs.
$videoPath = "http:www.example.com/path/to/file.mp4";
Is this possible?
Not supported as of now. Even the main Youtube channel website asks you to upload a video from your device (PC/mobile) and not from a remote URL.

Downloading Gifv files for use in AVPlayer in Swift

I've been working with Imgur's api for fetching a retrieving photos but whenever I try and download a gifv, or webm I can't download or play it. Now Imgur's api has no direct way to download the gifv as an mp4. Is their anyway I can convert the downloaded gifv to a playable mp4 in Swift?
Is their anyway I can convert the downloaded gifv to a playable mp4 in Swift?
Not really.
gifv is not a real file format but a set of HTML5 rules that imgur uses on their webpages to deliver their new GIFs: the server decides which file it delivers upon several criteria like bandwidth.
gifv is actually a wrapper on their server containing a WebM file, a MP4 and a re-encoded GIF.
You can't use it as it is, a GIFV is only playable via an HTML code snippet generated by this imgur page.

create YouTube video slideshow from image and audio inputs

I'd like to upload an audio file to my website, programmatically create an video slideshow using an image already on the server, and then upload that video to YouTube using its API. The website is built on Grails, so a Java solution would be great; Linux command line could also work.
Uploading videos using the YouTube API is working well. I also have no trouble getting avconv or ffmpeg to create videos that will play in, for example, Windows Media Player. This works to make a playable movie:
avconv -i image.jpg -i audio.mp3 video.mpg
However, manually uploading that video to YouTube results in a format error. I can create other files that YouTube will process successfully, but the audio plays back with regular stutters. (A second or so of clear audio, then a brief gap, then some clear audio, ...) For example:
avconv -i image.jpg -i audio.mp3 video.mkv
I have experimented with a variety of output formats and codecs, but all fall into one of those categories: apparent encoding success but YouTube processing failure, or processing success but unacceptable audio playback.
I wonder if anyone can point me in the right direction. I'm open to any solution that will let me solve the basic problem of uploading audio to YouTube via my Grails website without forcing my users to create the video slideshow themselves.
Thanks in advance for any clues.
It is quite easy to create a YouTube slideshow video on iPad. This guide shows the steps.
Adding music, applying transitions, editing photos can all be done there.
I built a pretty similar web service, based on ffmpeg: it's called tovid.io — uploads user-provided mp3 to YouTube as a video, using uploaded image file for a visual track. User uploads mp3 file, an image, then we render a video in the backend, and publish it on YouTube under the user's account.
It is very easy to render an h264 mp4 video following YouTube specs using Linux command line ffmpeg. Let me know if you're interested in our particular command line.

Blackberry, QRs, and video

I've been asked to create a QR image that, on being scanned by a smartphone, will play a short 2-minute video. The video is currently in .mp4 format, but the format can change. The video playback works fine on iPhone however I'm having some problems with the BlackBerry Bold.
When the user scans the QR code the phone directs them to a URL. Right now the URL they are directed to is http://domain.com/video.mp4. However when the user attempts to access this page they get a 413 Error "Entity too large". Basically, too much is being pushed to the client.
Reading the BlackBerryForums.com.au thread titled "Request Entity Too Large", I see you need to increase the allowed request size. But the user is able to play YouTube videos perfectly fine on their blackberry! WHY? is the youtube video size smaller? What format is YouTube using? Why does YouTube work, when my method doesn't?
I know the obvious solution here is to use YouTube as a hoster and embed the video but I am told I cannot use this quick and easy solution.
The problem is that YouTube streams the video. What you're trying to do is get the user to download the whole video file.
You may need to get a streaming server so that the video can be played.
Alternatively, reduce the filesize of the file by reducing the video resolution and bitrate, make sure the sound is mono and low bitrate as well.

Resources