The content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, there is provided a kind of marking videoThe method and apparatus of media attributes and corresponding video broadcasting method and video player, can not by video file latticeFormula is limited, and any beholder can excavate the media attributes of video and is shared with other beholders.
The technical solution adopted for the present invention to solve the technical problems is:Propose a kind of side of the media attributes of marking videoMethod, comprises the following steps:
S1, acquisition video file;
S2, at least one period of video pictures add at least one label;
S3, foundation and the session of label background data base, are obtained when time session id;
S4, the label information of each label at least one described label is carried into the session id it is uploaded to label backstageDatabase, and it is the tag ID that each label is distributed to obtain label background data base, wherein, the label information is included in labelHold, label corresponds to the locus of the period of video pictures, label in video pictures;
S5, the program request address based on video file and each label tag ID generate at least one picture seed, andIssue the picture seed.
In one embodiment, the step S5 further comprises:
The tag ID of each label generates one respectively in program request address and at least one described label based on video fileIndividual picture seed.
In one embodiment, the step S5 further comprises:
Picture where the program request address of video file, tag ID and label is generated into picture using picture fingerprint techniqueSeed.
In one embodiment, the program request address of the video file is film source cryptographic Hash.
The present invention also proposes a kind of device of the media attributes of marking video to solve its technical problem, including:
Video acquiring module, for obtaining video file;
Label editing module, for adding at least one label at least one period of video pictures;
Link block, for setting up the session with label background data base, is obtained when time session id;
Tag ID acquisition module, for the label information of each label at least one described label to be carried into the sessionID is uploaded to label background data base, and it is the tag ID that each label is distributed to obtain label background data base, wherein, the markLabel information includes label substance, label and corresponds to the locus of the period of video pictures, label in video pictures;
Picture seed generation module, for the program request address based on video file and the tag ID of each label generate toA few picture seed, and issue the picture seed.
In one embodiment, program request address of the picture seed generation module based on video file and it is described at least oneThe tag ID of each label generates a picture seed respectively in label.
In one embodiment, the picture seed generation module is by program request address, tag ID and the label of video filePlace picture generates picture seed using picture fingerprint technique.
In one embodiment, the program request address of the video file is film source cryptographic Hash.
The present invention also proposes a kind of video broadcasting method to solve its technical problem, comprises the following steps:
S1, the picture seed for parsing video file, obtain the video file program request address included in picture seed and markSign ID;
S2, according to the tag ID inquiry tag background data base, obtain the label letter of the corresponding label of the tag IDBreath and label corresponding with the tag ID have the label information of same session ID remaining label, wherein, the labelInformation includes label substance, label and corresponds to the locus of the period of video pictures, label in video pictures;
S3, drawn in corresponding video according to program request address playing video file, and according to acquired label informationShow label in face.
The present invention also proposes a kind of video player to solve its technical problem, including:
Parsing module, the picture seed for parsing video file obtains the video file point included in picture seedBroadcast address and tag ID;
Label acquisition module, for according to the tag ID inquiry tag background data base, obtaining the tag ID correspondenceLabel label information and label corresponding with the tag ID have same session ID remaining label label letterBreath, wherein, the label information includes label substance, label and corresponds to the period of video pictures, label in video picturesLocus;
Playing module, for according to program request address playing video file, and according to acquired label information in phaseShow label in the video pictures answered.
The present invention is that the video pictures in video file add all kinds of labels to mark media attributes by mass-rent pattern, andLabel information is submitted in label background data base, then with the shape for the picture seed for including video request program address and tag IDFormula is issued and shares the video file, can be by including when other beholders play the video file by picture seedTag ID from label background data base get corresponding label information with video pictures show.Thus, the present invention is regardedForm of the addition and displaying of frequency marking label all with video file in itself is unrelated, is not limited by video file format, and anyBeholder can add video tab for video file by the method for the present invention and issue and be shared with other beholders, makeOther beholders experience the dual enjoyment of viewing and knowledge augmented.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and ExamplesThe present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, andIt is not used in the restriction present invention.
The present invention proposes a kind of method and apparatus of the media attributes of marking video, is that the video pictures in video file addPlus all kinds of video tabs, and label information is submitted in label background data base, then to include video request program address and markThe form for signing ID picture seed is issued and shares the video file.Video text is played by picture seed in other beholdersDuring part, from label background data base it can get corresponding label information to open up in video pictures by the tag ID that includesShow.Thus, the form of the addition of video tab of the present invention and displaying all with video file in itself is unrelated, not by video file formatLimitation, and any beholder can be that video file is added and video tab and issued by methods and apparatus of the present inventionBe shared with other beholders, realize the mass-rent pattern of marking video media attributes.
Fig. 2 shows the flow chart of the method 100 of the media attributes of the marking video of one embodiment of the invention.Such as Fig. 2Shown, this method 100 starts from step 110.
In later step 120, video file is obtained.
In later step 130, at least one label is added at least one period of video pictures.For example, when sightThe person of seeing is needed to that during the object addition media attributes such as article, personage, position of some picture appearance, can be selected in video fileThe corresponding period occurred in the object(Such as from 00:20:30-00:20:40 this 10 seconds period)In add one or manyIndividual video tab, input label content is to be labeled.
In later step 140, the session with label background data base is set up(session), obtain when time session id(session ID).
In later step 150, the label information of each label added in step 130 is carried what is obtained in step 140Session id is uploaded to label background data base, and it is the tag ID that each label is distributed to obtain label background data base.The present inventionIn, the label added by video pictures is not to be synthesized in video pictures, but is associated with video as adeditive attributeIn file, thus there are each label some property values to be stored in as label information in label background data base.These marksLabel information includes but is not limited to label substance(Text description, label picture such as label), label correspond to video picturesLocus in video pictures of period, label.
In later step 160, the tag ID of program request address and each label based on video file generates at least onePicture seed, and issue the picture seed.The program request address of video file can be film source Hash(hash)Value, video playbackDevice being capable of the program request video by the film source cryptographic Hash.In one specific embodiment, the present invention can based on film source cryptographic Hash withThe tag ID of each label obtained in step 150 from label background data base generates a picture seed respectively.If for example,Some beholder can respectively be given birth to if once with the addition of multiple labels to video file in step 160 based on the plurality of labelInto multiple picture seeds, wherein each picture seed contains the tag ID of a label.In another specific embodiment, the present inventionCan the tag ID generation one based on any one label obtained in film source cryptographic Hash and step 150 from label background data baseIndividual picture seed, has because label information is stored in label background data base, and with all labels once addedIdentical session id, thus the institute with same session ID just can be found out in label background data base by a tag IDThere is label.The generation of picture seed, can be realized by picture fingerprint technique, for example, can use I take charge of patent application day forOn March 29th, 2013, number of patent application be 201310109900.5 Chinese patent application " the seed file processing method of videoAnd device " the middle picture fingerprint technique introduced, the picture where film source cryptographic Hash, tag ID and label is combined into generation pictureSeed.The picture seed can be issued through various channels, the social platform such as microblogging, QQ spaces, so as to other viewingsPerson can get the label added in the picture seed, sharing video frequency file.
Finally, method 100 ends at step 170.
Fig. 3 shows the logic diagram of the device 200 of the media attributes of the marking video of one embodiment of the invention.As schemedShown in 3, the device 200 includes video acquiring module 210, label editing module 220, link block 230, tag ID acquisition module240 and picture seed generation module 250.Wherein, video acquiring module 210 obtains video file, for example, according to the choosing of beholderSelect importing and playing video file.Label editing module 220 is used at least one period in the video pictures of video fileIn add at least one label, input corresponding label substance.The quantity of picture and label residing for label, can be by watchingPerson is selected as needed.Link block 230 is used for after the completion of label editing, sets up and label background data base 300Session(session), obtain when time session id(session ID).Tag ID acquisition module 240 is by label editing module 220The session id that the label information of each label of addition carries the acquisition of link block 230 is uploaded to label background data base 300, andIt is the tag ID that each label is distributed to obtain label background data base 300.Each label that tag ID acquisition module 240 is uploadedLabel information includes but is not limited to label substance(Text description, label picture such as label), label correspond to video pictureThe period, label in face the locus in video pictures.Program request of the picture seed generation module 250 based on video fileLocation(Such as film source cryptographic Hash)And the tag ID of each label of the acquisition of tag ID acquisition module 240 generates at least one pictureSeed, and issue the picture seed.For example, picture seed generation module 250 can use picture fingerprint technique by film source HashPicture where value, tag ID and label combines generation picture seed, and through various channels(Such as microblogging, QQ spacesSocial platform)Issue, so that other beholders can get the label added in the picture seed, sharing video frequency file.FigureThe quantity for the picture seed that piece seed generation module 250 is generated can be random, for example, can be based on film source cryptographic Hash and eachThe tag ID of label generates a picture seed respectively, can also be given birth to based on film source cryptographic Hash and the tag ID of any one labelInto a picture seed.
By the device 200 of the media attributes of the marking video, any one beholder can add to video fileThe video tab of media attributes is marked, and issues by the form of picture seed and shares the video file for carrying label, is allowedOther beholders can see the label of correlation while the video is watched, so that extending video content information, creates innovationConsumer's Experience.According to a particular embodiment of the invention, the device 200 of the media attributes of the marking video can pass through desktopThe form of application program is realized.
The device 200 of the media attributes of marking video has been shown in particular in Fig. 4(Abbreviation labelling apparatus 200 in Fig. 4)With labelInteraction 400 between background data base 300.Please also refer to Fig. 3, the interaction 400 is as follows:
Step 401, the link block of labelling apparatus 200 sends label upload request to label background data base 300;
Step 402, label background data base 300 responds the request, and session id is returned to link block 230;
Step 403, the tag ID acquisition module 240 of labelling apparatus 200 carries the label information of label 1 on the session idIt is transmitted to label background data base 300;
Step 404, label background data base 300 is returned as the tag ID of the distribution of label 1 to tag ID acquisition module 240;
Step 405, the tag ID acquisition module 240 of labelling apparatus 200 carries the label information of label 2 on the session idIt is transmitted to label background data base 300;
Step 406, label background data base 300 is returned as the tag ID of the distribution of label 2 to tag ID acquisition module 240;
Then, labelling apparatus 200 continues to upload to label background data base 300 after the label information of other labels, labelPlatform database 300 is returned as the tag ID of each label distribution one by one, is finished until all labels are uploaded.
For the video file after handled by the method and apparatus of the media attributes by marking video described above,The present invention also proposes a kind of video broadcasting method and video player, will be given below being discussed in detail.
Fig. 5 shows the flow chart of the video broadcasting method 500 of one embodiment of the invention.As shown in figure 5, this method500 start from step 510.
In later step 520, the picture seed of video file is parsed, the video file point included in picture seed is obtainedBroadcast address and tag ID.
In later step 530, according to the tag ID inquiry tag background data base parsed in step 520, the mark is obtainedThe label information of the corresponding labels of ID is signed, and label corresponding with the tag ID has the mark of same session ID remaining labelSign information.As previously described, because in the media attributes of marking video, by the label of all labels added in video fileInformation is uploaded and is saved in label background data base, and has identical session id with the label once added, thus in markSign in background data base, session id can be obtained according to the tag ID included in picture seed, and inquire session id identicalWhole labels.The label information obtained from label background data base includes but is not limited to label substance, label and corresponds to videoThe period, label of picture the locus in video pictures.
In later step 540, according to the program request address playing video file parsed in step 520, and according to step 530In acquired label information show label in corresponding video pictures.For example, can be corresponded in the step according to labelCorresponding positions of the period, label of the video pictures information such as the locus in video pictures in the corresponding video picture of broadcastingPut and show label, click on the label, the content of the label can be shown.
Finally, method 500 ends at step 550.
Fig. 6 shows the logic diagram of the video player 600 of one embodiment of the invention.As shown in fig. 6, the video is broadcastPutting device 600 includes parsing module 610, label acquisition module 620 and playing module 630.Wherein, the parsing of parsing module 610 videoThe picture seed of file, obtains the video file program request address included in picture seed and tag ID.Label acquisition module 620The tag ID inquiry tag background data base 300 parsed according to parsing module 610, obtains the mark of the corresponding label of the tag IDInformation is signed, and label corresponding with the tag ID has the label information of same session ID remaining label.From label backstageThe label information obtained in database 300 includes but is not limited to label substance, label and corresponds to the period of video pictures, labelLocus in video pictures.Playing module 630 plays video text according to the program request address that parsing module 610 is parsedPart, and label information according to acquired in label acquisition module 620 shows label in corresponding video pictures.For example, playingModule 630 can correspond to the information such as the locus of the period, label of video pictures in video pictures according to label and existThe corresponding video picture of broadcasting and relevant position show label, click on the label, can show the content of the label.
The interaction 700 between video player 600 and label background data base 300 has been shown in particular in Fig. 7.Such as Fig. 7Shown, the interaction 700 includes:
Step 701, the tag extraction for carrying tag ID is asked to send by the label acquisition module 620 of video player 600To label background data base 300;
Step 702, label background data base 300 inquires about the corresponding label of the tag ID according to the tag ID, obtains the markThe session id of label;
In step 703, label background data base 300 inquires all marks with same session ID according to the session idLabel;
In step 704, label background data base 300 returns to the label information of all labels on the label of video playerAcquisition module 620.
The scheme of the media attributes of the use mass-rent mode flag video of the present invention, can make full use of the medium of video to belong toProperty, it is that video adds all kinds of video tabs, Eight Diagrams, object origin, stage property setting, Ren Wusheng is entertained using video tab explanationFlat, environmental background, lines source, suspense are set, classical film review, video display explanation, the crucial acute content such as thoroughly, extend movie and television play videoContent information, abundant while amusement and expansion the scope of one's knowledge, teaches through lively activities, creates brand-new Consumer's Experience.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present inventionAny modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.