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.
Related
is there any way how to send a message with video content to Slack over its API? I see support only for an image here https://api.slack.com/messaging/composing/layouts
The best you can do is link to a video file in the body of the message, and then Slack will "unfurl" (preview) it alongside the message. There's no native video block today.
You could upload the video to Slack as any other file, using the files.upload method. If you also specify channels and initial_comment parameters, the file will be posted to respective channels with messages.
Alternatively, upload the file without posting to channels, grab the file ID from the response (like F0TD00400) and pass it as an external_id to the File Block.
I want to know details how Mobicent Media server plays audio using URL? In which method it's streaming using URL. For local storage I'm understanding but for remote storage(URL) I'm not getting how it's working. I didn't find anything in the user guide or in website. It will be very helpful if you please inform me details or suggest me any web link.
Thanks.
In order for the Media Server to play a file you need to send a Play signal, where you specify the URL of the file to be played. If the file is local then the URL format will be file://path_to_file/filename.wav; otherwise if the file is hosted remotely then the URL format will be http://something/filename.wav.
Upon receiving the Play request, the Media Server will ask the underlying AudioPlayer to process the URL, first guaranteeing that it is not malformed and that the file type is supported: .wav, .gsm, .tone, .mov, .mp4, .3gp. If all is fine, the player will open a stream to the file right away.
Finally, the AudioPlayer is activated so it can start processing the file and transmitting audio to the remote peer.
You can find a fully detailed discussion about this topic in the mobicents public forum as well (including links to github code):
https://groups.google.com/d/msg/mobicents-public/4zuUOM3zHsM/fQM6o80JEXwJ
Let me know if this helps.
Regards.
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.
I have a link live stream from youtube: https://manifest.googlevideo.com/api/manifest/hls_variant/upn/V377i0zgS9U/id/iGTIK_8ydoI.1/itag/0/gcr/vn/pmbypass/yes/expire/1429081762/sver/3/keepalive/yes/playlist_type/LIVE/source/yt_live_broadcast/maudio/1/signature/648757B5224BB06A23DADA58D1D514F8465B5B01.BEA5B2EE61132AB1A1768E9852B12F6DD641322F/ip/192.168.1.1/key/yt5/ipbits/0/ratebypass/yes/fexp/3300112%2C3300133%2C3300137%2C3300161%2C3310698%2C3311881%2C900720%2C907263%2C916656%2C932627%2C932631%2C934954%2C938028%2C9405998%2C9407115%2C9408031%2C9408163%2C9408347%2C9408708%2C9408732%2C947233%2C947243%2C948124%2C948703%2C951703%2C952612%2C952626%2C952637%2C954815%2C957201%2C961404%2C961406/hfr/1/sparams/gcr%2Chfr%2Cid%2Cip%2Cipbits%2Citag%2Cmaudio%2Cplaylist_type%2Cpmbypass%2Cratebypass%2Csource%2Cexpire/file/index.m3u8
I got this link from page source, but when I cannot restream it with ffmpeg/ffplay, this is error message:
[tcp # 0000000004442220] Failed to resolve hostname manifest.googlevideo.com: Th
e name does not resolve for the supplied parameters
https://......the/above/link...index.m3u8: Input/Output error
Does anyone help me find exactly live streaming link from youtube?
YouTube as of now does not provide you the opportunity to get a direct URL to your live stream. I researched this for a long time as I wanted to put my LIVE Stream on ROKU a streaming device. YouTube however is on Roku well because they are YouTube. But do let me know if you find a way around this.
Working on ios app.
For live streaming.
Using Azure framework.
I am receiving the bytes at run time.
But could not play them in Azure Media Player.
In Demo app we are able to play the static url from the server.
http://nimbuspartnerorigin.cloudapp.net/8260c015-abfb-4c8d-8c3a-689b1448e279/Contoso_93d705de-fe6b-4430-b0ab-4c291665b610-m3u8-aapl.ism/Manifest(format=m3u8-aapl)
But when we are streaming live we have to create the url like from server.
http://nimbuspartnerorigin.cloudapp.net/8260c015-abfb-4c8d-8c3a-689b1448e279/Contoso_93d705de-fe6b-4430-b0ab-4c291665b610-m3u8-aapl.isml/Manifest
Should I convert the Manifest file to .m3u8 format ?
Any body knows how to convert that manifest file to m3u8 file format ?
Please.
http://nimbuspartnerorigin.cloudapp.net/8260c015-abfb-4c8d-8c3a-689b1448e279/Contoso_93d705de-fe6b-4430-b0ab-4c291665b610-m3u8-aapl.isml/Manifest is a Smooth Streaming Manifest that can't be played back using Azure framework. You will need to create HLS live stream.
**For live streaming using Azure framework I was getting 'SmoothStreaming' url.
Which I could not play on iOS device directly.As told by Mingfei Yan in above answer**
So, We searched another way then Azure
We followed this link to set up the IIS server.
http://www.hanselman.com/blog/CommentView.aspx?guid=86968cd5-feeb-47f2-b02e-1eb4fa556379#commentstart
And we got the Apple HLS stream to play in Safari or
WebView(iOS).
Still I am waiting to use Azure Frameork If I configure it properly.