Detailed Description
In the process of implementing the present application, the inventors found that, in the prior art, different non-editing tools cannot directly use engineering files for exchange, for example, FCPX cannot open AAF files; however, the format of the used source material file cannot be commonly used, and the Avid Media Composer also has the problem of offline material when opening the adius-exported AAF file, and the like, because the material format quoted on the Edius non-editing time line is various, the path of the material is not uniform, and the material format used by the Avid Media Composer non-editing time line and the path of the material are fixed and uniform, if not processed, the adius-exported AAF file can be imported into the Avid Media Composer, but the material has the problem of offline.
Although there are some general engineering file format definitions, because the material file formats supported by the non-editing tools are different and no tool for converting the material file formats in engineering is provided, the existing scheme can only output the engineering file of one non-editing software into a media file and then import the media file into another non-editing software for use if different non-editing tools are required to be used. The scheme does not inherit the clipping information, and materials in the original project are invisible, so that the editing can not be continuously carried out on the basis of the original project.
In order to solve the above problem, embodiments of the present application provide a method and an apparatus for converting a program engineering file, so as to solve the problem that in the prior art, the program production efficiency is reduced because the engineering file cannot be transferred between different non-editing tools.
By adopting the method and the device for converting the program engineering file, the source engineering file can be analyzed, and a material file, a timeline file, and the position, the out point and the in point of the material on a timeline are respectively obtained; then, respectively converting the material file and the timeline file into a material file and a timeline file corresponding to the target engineering file; then, according to the program clipping information of the source file, namely the position, the out point and the in point of the material on the timeline, the converted material file is associated with the timeline file to obtain a target project file; therefore, the transmission of the project files among different non-editing tools is realized, and the program making efficiency is improved.
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Example one
Fig. 1 is a flowchart illustrating a method for converting a program project file according to a first embodiment of the present application.
As shown in fig. 1, a method for converting a program project file according to a first embodiment of the present application includes the following steps:
s101, acquiring and analyzing a source engineering file, and respectively acquiring a material file and a timeline file of the source engineering file, and a position, an out point and an in point of the material on a timeline.
In the specific implementation, when analyzing the source project file, the information such as the project basic information, the material information, the track and the clip information on the timeline can be obtained first. Specifically, the engineering basic information includes: project name, project type (high definition or standard definition), etc.; the material information includes: material name, material path, material type, material media length, etc.; the timeline track information includes: the type of the track, the number of the tracks, the length of the time line and the like; timeline clip information: material location, in point, out point, name, etc. And then, acquiring a material file according to the material path.
S102, transcoding the material file into a target material file format corresponding to the target project file to obtain a new material file; the source project file and the target project file are project files corresponding to different non-editing tools.
In specific implementation, before this step, the target material file format may be further determined according to a non-editing tool corresponding to the target project file.
For example, if the non-editing tool running the target project file is Avid Media Composer, the target material file is MXF DNxHD material format file, and if the non-editing tool running the target project file is FCPX, the target material file is MOV ProRes material format file.
In specific implementation, before the step, a worker can manually select or input the format of the target material file; this is not limited by the present application.
In specific implementation, the material file can also be a low-bit-rate material file; the new material file may also be a high bit rate material file. That is, the method for converting program engineering files in the embodiment of the present application may also be applied to converting engineering files with different code rates in the same non-editing tool.
In the specific implementation, in this step, when transcoding the material, the transcoding length of the material may be preset by the staff. For example, the length of the material in the source project file is 10 seconds, and the staff can preset transcoding for only 5 seconds; rather than requiring the full transcoding of the 10 second material in the source project file.
S103, converting the timeline file into a timeline file corresponding to the target project file to obtain a new timeline file.
In specific implementation, the timeline file in this step may be converted from an AAF file without editing a to an AAF file without editing B, or from an AAF file without editing a to an XML file without editing B, because even though the same AAF is used, the non-editing format standards of different manufacturers are different and are not completely compatible, so that it is necessary to perform conversion during program production.
And S104, associating the new material file with the new timeline file according to the position, the out point and the in point of the material on the timeline to obtain a target project file.
In specific implementation, before this step, the method may further include: judging whether the operating system operated by the source project file is consistent with the operating system operated by the target project file; and if not, modifying the material path of the new material file according to the path naming rule of the operating system operated by the target project file. For example, if the source project file runs on a Windows operating system and the target project file runs on a Mac operating system, the path of the transcoded material file needs to be modified to a file path that can be recognized by the Mac operating system.
By adopting the conversion method of the program engineering file provided by the embodiment of the application, the source engineering file can be analyzed, and a material file, a timeline file, and the position, the out point and the in point of the material on the timeline are respectively obtained; then, respectively converting the material file and the timeline file into a material file and a timeline file corresponding to the target engineering file; then, according to the program clipping information of the source file, namely the position, the out point and the in point of the material on the timeline, the converted material file is associated with the timeline file to obtain a target project file; therefore, the transmission of the project files among different non-editing tools is realized, and the program making efficiency is improved.
In addition, by adopting the scheme in the embodiment of the application, a data model is abstracted to express the project, the material and the time line based on data analysis of the source project files generated by the non-editing tools, compared with a mode of directly exporting and importing the finished project files, complete clipping information can be inherited, and the material also generates a corresponding new material file through transcoding, so that the original material content is also available for use, and good experience is provided on the editing consistency.
Example two
A method for converting a program project file according to the second embodiment of the present application will be described below with reference to a specific example.
The program engineering file conversion method in the embodiment of the application is applied to cross-operating systems and cross-non-editing tools, namely heterogeneous non-editing scenes.
In specific implementation, due to different formats of material media files supported by different non-coding tools, transcoding of the format of the material file is required, the corresponding relation of the material file is recorded, and the transcoded material file is associated when a new project file is generated, so that the situation that the material is offline when the generated project file is opened by a target non-coding tool can be ensured.
Taking a source engineering file as an Avid AAF engineering file corresponding to an Avid Media Composer non-editing tool and a target engineering file as an FCPX XML engineering file corresponding to an FCPX non-editing tool as an example, assuming that the converted input file name is avidExport.aaf and the target output file name is fcpxExport.fcpxml; the aaf project file uses a material named clip, which includes a video stream and two audio streams, and the video stream and the audio streams are both marked with in-out points and tiled on the track of the timeline.
The specific process of conversion is as follows:
1. analyzing the source engineering file to obtain a material file and a timeline file in the source engineering file; and engineering basic information, material information, timeline track information, timeline clipping information, and the like.
Specifically, analyzing a source project file with the type of an AAF file to obtain information such as a path, a length and the like of a clip material file, and recording information such as an in-out point, position information and the like on a time line track;
2. and transcoding the material files in the data model one by one to generate new material files, wherein the new material files use the file format used by the target non-coding tool.
Specifically, the association relationship between the original material and the new material can be recorded.
In this embodiment, as the Avid Media Composer uses MXF files with separated audio and video, the corresponding relationship at this time is that one original file corresponds to a group of object files; the target project file type is FCPX, which is the more common material format for MOV ProRes and therefore requires transcoding.
Specifically, a transcoding tool can be called to set a ProRes transcoding template, the transcoding source file is a clip V.mxf, clip A01.mxf or clip A02.mxf file group, and the transcoding target file is a clip. The correspondence data may be stored using json records or xml.
Specifically, the following json data can be employed to describe the correspondence between materials (where mxf file groups correspond to mov files, but are distinguished using different groupType):
3. and replacing the original material information with the information of the new material file generated by transcoding according to the material association relation.
In specific implementation, after the data of the material corresponding relation is obtained, the original MXF file information can be deleted, and clipV.mxf, clipA01.mxf and clipA02.mxf can be deleted; MOV file information is recorded, type, length etc. of clip.
4. When the engineering file needs to be switched and used among different operating systems, the material path information can be subjected to replacement processing.
For example, when a project file needs to be switched between Windows and Mac platforms for use, for example, an original project is exported by a non-programming tool under a Windows system, a generated new project file is required to be opened in the non-programming tool under the Mac system, and the project file is placed on a shared mounting disc, so that the project file can be accessed in different systems, but path representations are different under different systems, and at this time, the material path information can be replaced.
If the path of the transcoded MOV media file under the Windows system is "M: \ Material \ Project001\ clip.mov", where M is a shared disk file, the path becomes "file:///Volumes/Material/Project 001/clip.mov" when mounted under the Mac system, so that the path information of the Material file is required to be "M: "replace by" file:///Volumes ".
5. And converting the timeline file of the source engineering file into the timeline file of the target engineering file to obtain a new timeline file.
Specifically, the time line is a key point for describing the engineering file, and contains a production result compiled and guided in post production, wherein the production result contains important information such as an audio and video material reference relation, the position of a material segment in the time line, the input and output points of the time line material segment and the like, when the information is converted into the target engineering file, the information needs to be inherited to a target time line, and if the transcoded material is a local material of a source material, the input and output points of the time line material segment need to be correspondingly changed. The calculation formula is as follows: the position of the new in-out point of the material segment is the in-out point of the source material segment + the offset of the new material relative to the source material.
When the material is referred, the source material is sometimes the audio/video related material, and when the transcoded material is the audio/video integrated material, the association relationship of each audio segment needs to be modified again to point to the corresponding audio/video integrated material after transcoding. When various non-programs describe the project, if the units of the description parameters are inconsistent, conversion is required according to the parameter description modes of the source and the target.
6. And associating the new material files with the new timeline file, and exporting to generate corresponding target project files.
The target non-editing tool is FCPX, fcpxexport-fcpxml engineering files can be directly exported according to new material files and timeline files, the generated target engineering files can contain information of timeline tracks, clip in-out points, positions and the like which are consistent with those of a source engineering, and the target engineering files contain new material files clip.
By adopting the conversion method of the program engineering file provided by the embodiment of the application, the source engineering file can be analyzed, and a material file, a timeline file, and the position, the out point and the in point of the material on the timeline are respectively obtained; then, respectively converting the material file and the timeline file into a material file and a timeline file corresponding to the target engineering file; then, according to the program clipping information of the source file, namely the position, the out point and the in point of the material on the timeline, the converted material file is associated with the timeline file to obtain a target project file; therefore, the transmission of the project files among different non-editing tools is realized, and the program making efficiency is improved.
EXAMPLE III
Next, a description will be given of a program project file conversion method according to a third embodiment of the present application.
The method for converting the program project files in the embodiment of the application is applied to the conversion scene of isomorphic non-edited project files. In particular, the method can be applied to application scenes for supporting high and low codes containing special effects and subtitle timelines.
For the same non-programmed software, the conversion of the engineering file is sometimes required. For example, low-code materials are used during engineering editing, and the low-code materials need to be converted into high-code materials for outputting, and the scheme in the application also supports the conversion of the condition of switching high and low codes and can correctly process special effect contents in the high-code materials.
The conversion process is as follows:
1. analyzing the source engineering file, and acquiring and recording information such as materials, tracks, editing in-out points and the like in the source engineering file;
2. transcoding the material files one by one to generate new material files, and recording the corresponding association relationship between the original material files and the new material files;
3. updating material information according to the corresponding association relationship of the materials;
4. generating a temporary project file using the new material information;
5. and mixing the source project file and the temporary project file to generate a target project file containing new materials, the source timeline clip and the special effect information.
By adopting the conversion method of the program engineering file provided by the embodiment of the application, the transcoding of the engineering file in the same non-editing tool can be realized; the program production efficiency is improved.
Based on the same inventive concept, the embodiment of the present application further provides a device for converting a program project file, and as the principle of the device for solving the problem is similar to the method provided in the first embodiment of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
Example four
Fig. 2 is a schematic structural diagram of a conversion apparatus for program project files according to a fourth embodiment of the present application.
As shown in fig. 2, the apparatus 200 for converting a program project file according to the fourth embodiment of the present application includes: an obtaining and analyzing module 201, configured to obtain and analyze a source engineering file, to obtain a material file and a timeline file of the source engineering file, and a position, an out point, and an in point of the material on a timeline; the material transcoding module 202 is used for transcoding the material file into a target material file format corresponding to the target project file to obtain a new material file; the source engineering file and the target engineering file are engineering files corresponding to different non-editing tools; the timeline converting module 203 is configured to convert the timeline file into a timeline file corresponding to the target engineering file, so as to obtain a new timeline file; and the associating module 204 is configured to associate the new material file with the new timeline file according to the position, the out point, and the in point of the material on the timeline, so as to obtain the target engineering file.
In specific implementation, the material transcoding module can be further specifically used for calling a transcoding tool and setting a transcoding template corresponding to the target material format; and transcoding the material file into a target material file format corresponding to the target project file through the transcoding template.
In a specific implementation, the apparatus 200 for converting a program project file according to the fourth embodiment of the present application may further include: the judging module is used for judging whether the operating system operated according to the source project file is consistent with the operating system operated according to the target project file; and the path modification module is used for modifying the material path of the new material file according to the path naming rule of the operating system operated by the target project file when the target project file is inconsistent with the operating system.
In a specific implementation, the apparatus 200 for converting a program project file according to the fourth embodiment of the present application may further include: and the recording module is used for recording the corresponding relation between the material file and the new material file.
In a specific implementation, the apparatus 200 for converting a program project file according to the fourth embodiment of the present application may further include: and the material format determining module is used for determining the format of the target material file according to the non-editing tool corresponding to the target engineering file.
By adopting the conversion device of the program engineering file provided by the embodiment of the application, the source engineering file can be analyzed, and a material file, a timeline file, and the position, the out point and the in point of the material on a timeline are respectively obtained; then, respectively converting the material file and the timeline file into a material file and a timeline file corresponding to the target engineering file; then, according to the program clipping information of the source file, namely the position, the out point and the in point of the material on the timeline, the converted material file is associated with the timeline file to obtain a target project file; therefore, the transmission of the project files among different non-editing tools is realized, and the program making efficiency is improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.