Comments (8)
Hey Felipe - sorry we didn't reply earlier to this one. We're investigating internally what's up here.
Thanks,
Ed
from mux-python.
Dear @eropple , thanks for the contact.
Just to give you more context about what a need to do:
Next week we will have an event using StreamYard. The streaming will be linked to mux.
After the event I will need to access all videos in high resolution for edition purpose.
This is way I have been trying tho iterate over all asset list enabling MP4 to, later, iterate again downloading them.
I wonder if updating the asset to enable master access should be done instead of only enabling MP4 extension?
either ways I got the same error, as I am still using the asset id from assets_api.list_assets()
.
Error message:
raise NotFoundException(http_resp=r)
mux_python.exceptions.NotFoundException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'max-age=0, private, must-revalidate', 'Content-Length': '121', 'Content-Type': 'application/json; charset=utf-8', 'Date': 'Thu, 23 Sep 2021 11:37:48 GMT', 'Server': 'Mux API Server v1.131.9', 'X-Request-Id': 'FqdwfC7rpb6dlC0Aq9uG'})
HTTP response body: {"error":{"type":"not_found","messages":["The requested resource either doesn't exist or you don't have access to it."]}}
from mux-python.
Hey Felipe - sorry for the delay, little bit swamped. You want the highest-quality MP4 we have, so you should want master access - but as you can see, our exercised examples don't seem to hit this same issue, so there might be something on your end of things that's causing trouble.
Are these test assets that you're using?
from mux-python.
@eropple , that is what we need: the highest-quality MP4.
By now, we have five or six test assets. By Monday 27th we will start receiving the stream content from the event.
I could understand that your exercise examples don't hit the same issue. I guess that perhaps there is something related to the fact that I am not using an assets_api.create_asset(create_asset_request)
object, although seems to be reasonable trying to change the availability to the master asset from the asset list.
So, how could you help on this issue?
I already have confirmed with my coordinator that I have admin role. ( @Delawen )
Perhaps I could share cod example showing how to update an asset from the asset list, enabling access to the master version?
Thanks in advance.
from mux-python.
Hey @FelipeSBarros, there's a full example of enabling Master Access in Python here:
https://github.com/muxinc/mux-python/blob/master/examples/video/exercise-assets.py#L101-L109
You'll need to pass the Asset ID from your List Assets call.
You'll then need to wait for the master to generate. We send you a video.asset.master.ready
webhook when this is complete. You can then use the Get Asset call to get the master access URL.
You can see a full guide for enabling Master Access here: https://docs.mux.com/guides/video/download-for-offline-editing
If you continue to experience issues, please feel free to share the IDs of the Assets that you're trying to enable master access on with [email protected]
.
from mux-python.
Hi, @philcluff . This is what I was trying to do, and mentioned above.
Already sent to help email.
the process done is:
# Authentication Setup
configuration = mux_python.Configuration()
configuration.username = config('MUX_USERNAME')
configuration.password = config('MUX_PASSWORD')
# API Client Initialization
assets_api = mux_python.AssetsApi(mux_python.ApiClient(configuration))
list_assets_response = assets_api.list_assets()
#test with first video
asset = list_assets_response.data[0]
# master
update_asset_master_access_request = mux_python.UpdateAssetMasterAccessRequest(master_access="temporary")
asset_response_master = assets_api.update_asset_master_access(asset.id,
update_asset_master_access_request)
from mux-python.
Hi @FelipeSBarros, I've replied on the support request you raised but also putting it here for posterity.
The API key you're using doesn't seem to have the video:write
permission. If you re-create the API key with that permission, it should work just fine.
Thanks.
from mux-python.
Thanks a lot for your help @philcluff, @eropple et al.
from mux-python.
Related Issues (20)
- Impossible to import Exceptions HOT 3
- Direct Upload Signed URL PUT failing with CORS error HOT 2
- how I can change the value of verify_ssl? HOT 21
- Add Mux webhook verification HOT 6
- Realtime engagement counts not working properly for views HOT 1
- "max_continuous_duration" parameter HOT 12
- Create .mp4 stream instead of m3u8
- Change "hls_segment_type" from .ts to .fmp4 HOT 1
- Lower video resolution before download HOT 1
- Add playback policy to new clip example?
- Update `list exports` example
- Additional cases where UnauthorizedException may raise? HOT 2
- Documentation for creating audio-only assets HOT 2
- Add `asset_id` to `video_views_api.get_video_view` response HOT 2
- Upload local file(not from URL) and get playbackID as response
- Could we add license information to PyPI metadata? HOT 2
- DeprecationWarning: HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0 HOT 3
- Uploading asset in Python is not working
- How to fix "Video is not currently available The live stream or video files are not ready yet." ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mux-python.