Giter Club home page Giter Club logo

Comments (8)

eropple avatar eropple commented on June 14, 2024

Hey Felipe - sorry we didn't reply earlier to this one. We're investigating internally what's up here.

Thanks,
Ed

from mux-python.

FelipeSBarros avatar FelipeSBarros commented on June 14, 2024

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.

eropple avatar eropple commented on June 14, 2024

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.

FelipeSBarros avatar FelipeSBarros commented on June 14, 2024

@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.

philcluff avatar philcluff commented on June 14, 2024

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.

FelipeSBarros avatar FelipeSBarros commented on June 14, 2024

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.

philcluff avatar philcluff commented on June 14, 2024

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.

FelipeSBarros avatar FelipeSBarros commented on June 14, 2024

Thanks a lot for your help @philcluff, @eropple et al.

from mux-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.