Skip to content

Broken or am i doing something wrong ?? #7

@bluchip-studio-official

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions