-
Notifications
You must be signed in to change notification settings - Fork 7
Description
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