Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for decrypting and encrypting data by Gstreamer

A technology for encrypting data and data, which is applied in the field of streaming media data processing, and can solve the problems of no plug-ins, failure of pipeline encryption data, etc.

Active Publication Date: 2016-07-13
SHENZHEN TCL DIGITAL TECH CO LTD
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] To sum up, although the pipeline creation process is very convenient, the current plug-ins implemented by GStreamer are all for clear stream files, but for encrypted data, such as streaming media data with DRM (Data Rights Management, digital rights management) encrypted information, there is no The corresponding plug-in implements the decryption process of encrypted data, which causes the pipeline to fail to play encrypted data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for decrypting and encrypting data by Gstreamer
  • Method and device for decrypting and encrypting data by Gstreamer
  • Method and device for decrypting and encrypting data by Gstreamer

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0076] Based on the first embodiment above, in the second embodiment of the present invention, step S20 includes:

[0077] Step S21: Set the state of the source element as being in processing state, pass the encrypted data containing the uri attribute transmitted from the pipeline to the data collection module, and save the encrypted data into a temporary buffer through the data collection module;

[0078] Step S22: transfer the encrypted data in the buffer to the queue of the source element by the callback function;

[0079] Step S23: Set the source pad according to the attribute of the source element, push the encrypted data from the callback to the source pad, and push the encrypted data to the decryption element through the source pad.

[0080] In this embodiment, the encrypted data collected is processed by setting the state of the source element as the processing state, and the encrypted data transmitted from the pipeline containing the uri (UniformResourceIdentifier, Un...

no. 4 example

[0102] Based on the fourth embodiment above, in the fifth embodiment of the present invention, step S50 includes:

[0103] Step S51: Analyze the URL identifying the source element according to the pysrc protocol, and find the pysrc element to be downloaded;

[0104] Step S52: Modify the uri attribute of the playbin2 pipeline to the attribute corresponding to the pysrc element;

[0105] Step S53: adding the pysrc element to the pipeline through the playbin2 pipeline according to the uri attribute;

[0106] Step S54: Modify the attributes of the pysrc element to make it ready;

[0107] Step S55: creating a queue for managing the encrypted data in the pysrc element;

[0108] Step S56: Set the source pad according to the attribute of the pysrc element, so as to push the encrypted data read by the queue to the source pad.

[0109] The playback system accesses the streaming media data through the URL (UniformResourceLocator, Uniform Resource Locator) of the streaming media, and g...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention discloses a method for decrypting and encrypting data by a Gstreamer. The method comprises a step of creating an independent data collection module in a pipeline, integrating the independent data collection module into a source element, collecting encrypted data through the data collection module, transmitting the collected encrypted data into the queue of the source element, and pushing the encrypted data to a decrypting element, a step of decrypting the encrypted data by the decrypting element, and pushing the decrypted data to a decoding element, and a step of decoding the decrypted data by the decoding element so as to play the decoded data. The invention also discloses a corresponding device for decrypting and encrypting data by a Gstreamer. According to the method and the device, the downloaded encrypted data can be normally played in the pipeline, the decryption of the encrypted data is realized, and the pipeline can normally play the encrypted data.

Description

technical field [0001] The invention relates to the technical field of streaming media data processing, in particular to a method and device for decrypting encrypted data by GStreamer. Background technique [0002] GStreamer is an open source streaming media framework. GStreamerr is based on plug-ins. Some plug-ins provide a variety of multimedia digital signal codecs, and some plug-ins provide other functions. All plug-ins can be linked into any defined dataflow pipeline. [0003] The source plug-ins in the current GStreamer plug-ins basically cover various file formats, for example, single audio data wma, and the main components (that is, plug-ins) used in the pipeline (pipeline) are source components (that is, source components), demux components ( That is, the demultiplexer element), the decode element (that is, the decoding element), the converter element (that is, the converter element), and the sink element (that is, the receiver element), they are constructed into a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/438H04N21/4405H04N21/435
CPCH04N21/438
Inventor 陈耀宗
Owner SHENZHEN TCL DIGITAL TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products