Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for extracting jpg pictures and mp3 files in batch from swf files

A technology for jpg pictures and files, applied in the field of batch extraction of jpg pictures and mp3 files in swf files, can solve the problems of time-consuming and laborious swf files, inability to deal with swf files, and inability to guarantee file integrity, so as to improve resource utilization, The effect of reducing wasted time, reducing working hours

Inactive Publication Date: 2012-11-28
4399 NETWORK
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] This single local processing method is acceptable if there are only a few files to be processed, but if a large number of files (such as dozens or even hundreds or more) need to be processed, this A single way to process swf files is too time-consuming and laborious
[0005] Moreover, this self-written program cannot handle all swf files, so it has great limitations and cannot be applied in batches, and the integrity of the extracted files cannot be guaranteed.

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 for extracting jpg pictures and mp3 files in batch from swf files
  • Method for extracting jpg pictures and mp3 files in batch from swf files
  • Method for extracting jpg pictures and mp3 files in batch from swf files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, and are not intended to limit the present invention.

[0028] The swf file structure is as follows:

[0029]

[0030]

[0031] The above table reveals the structure of the swf file, where header is the header part of the file, FileAttributes tag is the tag that defines the attributes of the swf file, and the next few tags are tags that store image data and mp3 data and control video playback control tags, including the tag of type "DefineBitsJPEG2" for storing image data, and the tag of type "DefineSound" for storing mp3 data, and finally the end tag, which is used to mark the end of the file.

[0032] The DefineBits...

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 invention discloses a method for extracting jpg pictures and mp3 files in batch from swf files. The method comprises the following steps of: S1, receiving a source swf file set uploaded by a request end; S2, reading a source swf file in the source swf file set in a binary stream mode; S3, resolving a file header of the source swf file read in the S2 to acquire file header information; S4, resolving all tags in the source swf file according to the file header information to acquire all tag information; S5, sequentially judging types of all the tags; if the type of the tags is DefineBitsJPEG2, extracting jpg picture data from the tags, and storing the jpg picture data as jpg files; if the type of the tags is DefineSound, extracting mp3 audio data from the tags, and storing the mp3 audio data as mp3 files; if the type of the tags is End, executing the next step; and S6, repeating S2-S5 till all source swf files in the source swf file set are processed, and ending.

Description

technical field [0001] The invention relates to the technical field of Internet applications, in particular to a method for batch-extracting jpg pictures and mp3 files in swf files. Background technique [0002] For purposes of editing, modifying, etc., it is often necessary to extract the contained jpg picture and mp3 file from the swf file. [0003] However, in the prior art, there is no tool that can completely extract all jpg pictures and mp3 files from a swf file, and when a user needs to extract a jpg picture or an mp3 file from a swf file, it is usually for For a specific swf file, write a swf program by yourself, and use this program to process the swf file locally to extract the jpg picture or mp3 file. But if you need to extract multiple swf files, you can only process them one by one; [0004] This single local processing method is acceptable if there are only a few files to be processed, but if a large number of files (such as dozens or even hundreds or more) n...

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
IPC IPC(8): G06F17/30
Inventor 马华亨
Owner 4399 NETWORK