Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken or am i doing something wrong ?? #7

Open
Random-Code-Guy opened this issue Sep 11, 2023 · 0 comments
Open

Broken or am i doing something wrong ?? #7

Random-Code-Guy opened this issue Sep 11, 2023 · 0 comments

Comments

@Random-Code-Guy
Copy link

Random-Code-Guy commented Sep 11, 2023

I am trying to use this to decrypt a dash media segment from a vod movie

i am using nodejs 18 this is the code i am using

`
keys = {
[row.vkid]:row.vkey
};

     const encrypted = fs.readFileSync(combinedLocation);

    mp4decrypt.decrypt(encrypted, keys).then(decrypted => {
         fs.writeFileSync('dec.mp4', decrypted)
    })

`

the media file does not play after decryption using vlc i get the following errors

faad warning: PCE shall be the first element in a frame
faad warning: Channel coupling not yet implemented
faad warning: Invalid number of channels
faad warning: Bitstream value not allowed by specification
faad warning: PCE shall be the first element in a frame
faad warning: Unexpected channel configuration change
faad warning: Channel coupling not yet implemented
faad warning: Bitstream value not allowed by specification
faad warning: Channel coupling not yet implemented
faad warning: Unexpected channel configuration change
faad warning: Bitstream value not allowed by specification
faad warning: Unexpected channel configuration change
faad warning: Invalid number of channels
faad warning: Bitstream value not allowed by specification
faad warning: Unexpected channel configuration change
faad warning: Bitstream value not allowed by specification
faad warning: Unexpected channel configuration change
faad warning: Unexpected fill element with SBR data
faad warning: Maximum number of bitstream elements exceeded
faad warning: PCE shall be the first element in a frame
faad warning: Channel coupling not yet implemented
faad warning: Unexpected channel configuration change
faad warning: Invalid number of channels
faad warning: Channel coupling not yet implemented
faad warning: Invalid number of channels
faad warning: Maximum number of bitstream elements exceeded
faad warning: Invalid number of channels
faad warning: Channel coupling not yet implemented
faad warning: Channel coupling not yet implemented
faad warning: Invalid number of channels
faad warning: Bitstream value not allowed by specification
faad warning: Channel coupling not yet implemented
faad warning: Unexpected channel configuration change
faad warning: PCE shall be the first element in a frame
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Unexpected channel configuration change
faad warning: Channel coupling not yet implemented
faad warning: Bitstream value not allowed by specification
faad warning: Invalid number of channels
faad warning: Channel coupling not yet implemented
faad warning: Gain control not yet implemented
faad warning: Invalid number of channels
faad warning: Bitstream value not allowed by specification
faad warning: Unexpected channel configuration change

I have tested the exact same media files kid and key using mp4decrypt running it as an spawned process and the output plays correctly it is only when using this modual i run into issues but there are no error messages or anything provided for failed decryption or anything so its really hard to tell what the issue is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant