Method and system for reducing transmission time of media files by parallel encoding and uploading - Patents.com
By dividing media files for parallel transcoding and uploading, the method addresses the inefficiencies of traditional media file transmission, enhancing transmission speed and efficiency, especially in mobile devices.
Patent Information
- Application Number
- JP2020112931
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-07-05
- Filing Date
- 2020-06-30
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2040-06-30
AI Technical Summary
Existing media file transmission methods, particularly in mobile devices, suffer from prolonged transmission times due to the need for complete media file transcoding before uploading, which is constrained by battery and performance limitations, often resulting in failed encodings.
A method and system that divide media files into units for parallel transcoding and uploading, allowing transcoding of one unit while uploading the previous unit, thereby reducing overall transmission time by performing these tasks concurrently.
This approach significantly reduces the time required for media file transmission by allowing simultaneous transcoding and uploading, optimizing transmission efficiency and minimizing the impact of mobile device constraints.
Smart Images

Figure 0007568203000001 
Figure 0007568203000002 
Figure 0007568203000003
Abstract
Description
[Technical field]
[0001] The following description relates to techniques for transmitting media files. [Background technology]
[0002] Instant messenger, a common communication tool, is software that allows users to send and receive messages and data in real time. When a user registers a conversation partner on the messenger, they can exchange messages with the person registered in the conversation list in real time.
[0003] Such messenger functions are becoming commonplace in mobile environments such as mobile communication terminals as well as PCs. For example, Patent Document 1 (Publication date: September 30, 2002) discloses a mobile messenger service system and method for mobile terminals using a wireless communication network, which provides a messenger service between mobile messengers installed in mobile terminals.
[0004] As messenger use becomes more widespread, the functions offered by messengers have become increasingly diverse, and now they include the ability to share media files such as video and audio.
[0005] In services that include or utilize media file sharing functionality, the system tends to be designed so that media transcoding tasks are performed by the client rather than the server, which can reduce configuration and operation costs since the server does not need to be equipped with a large encoding server cluster to perform the encoding.
[0006] However, when transcoding is performed on the client, the entire media file is transcoded before being uploaded, which requires time to convert the file and time to upload the converted file.
[0007] In particular, when the uploading terminal is a mobile device, the time required to convert the media file increases, and problems such as the encoding itself failing due to the mobile operating system environment in which background execution is limited due to the battery and performance constraints of the mobile device may occur. [Prior art documents] [Patent documents]
[0008] [Patent Document 1] Korean Patent Publication No. 10-2002-0074304 Summary of the Invention [Problem to be solved by the invention]
[0009] A method and system are provided that can reduce the transmission time of a media file by processing encoding and uploading the media file in parallel. [Means for solving the problem]
[0010] Provided is a media file transmission method executed by a computer system, the computer system including at least one processor configured to execute computer-readable instructions contained in a memory, the media file transmission method including the steps of: when a media file is selected in a messenger installed on the computer system, dividing the media file into unit sizes and performing transcoding in division units by the at least one processor; and uploading, by the at least one processor, transcoding results of the division units to a server associated with the messenger, wherein, when transcoding of a previous division unit file is completed, transcoding of a next division unit file and uploading of the previous division unit file are processed in parallel.
[0011] According to an aspect, the uploading may include uploading the transcoded result of the division unit in a stream form using a streaming method.
[0012] According to another aspect, the performing of the transcoding may include storing the transcoding result of the division unit in a file format, and the uploading may upload the stored file-format transcoding result of the division unit.
[0013] According to another aspect, the storing step may store the transcoded result of the division unit in a form that can be played back by itself.
[0014] According to another aspect, the at least one processor may include one transcoder and one uploader, and for the media file, the transcoder may perform transcoding of the next division unit file while the uploader simultaneously performs uploading of the previous division unit file.
[0015] According to another aspect, the at least one processor may include multiple transcoders and multiple uploaders, and may perform parallel transcoding of the media file using the multiple transcoders and parallel uploading using the multiple uploaders.
[0016] According to another aspect, performing the transcoding may include dividing the media file into groups of pictures (GOPs) based on key frames.
[0017] According to yet another aspect, in the dividing step, if the GOP unit is smaller than a minimum unit determined in a pre-experiment, the media file may be divided in the minimum unit rather than in the GOP unit.
[0018] A method for transmitting a media file executed by a computer system, the computer system including at least one processor configured to execute computer-readable instructions contained in a memory, the method including: performing, by the at least one processor, a transcoding of the media file when the media file is selected in a messenger installed on the computer system; and uploading, by the at least one processor, a transcoding result of the media file in a stream form by a streaming method to a server associated with the messenger.
[0019] A non-transitory computer-readable recording medium is provided, on which a program for causing a computer to execute the media file transmission method is recorded.
[0020] The computer system includes at least one processor configured to execute computer-readable instructions contained in a memory, wherein when a media file is selected in a messenger installed in the computer system, the at least one processor processes a process of dividing the media file into unit sizes and performing transcoding in units of the divisions, and a process of uploading a transcoding result of the division units to a server associated with the messenger, and when transcoding of a previous division unit file is completed, the computer system processes transcoding of a next division unit file and uploading of the previous division unit file in parallel.
[0021] A computer system is provided, the computer system including at least one processor configured to execute computer-readable instructions contained in a memory, the at least one processor processing a process of performing a transcoding on a media file when the media file is selected in a messenger installed on the computer system, and a process of uploading a result of the transcoding of the media file in a stream form by a streaming method to a server associated with the messenger. [Brief description of the drawings]
[0022] [Figure 1] FIG. 1 illustrates an example of a network environment in accordance with an embodiment of the present invention. [Diagram 2] 2 is a block diagram illustrating the internal configuration of an electronic device and a server according to an embodiment of the present invention. FIG. [Diagram 3] FIG. 2 illustrates example components that may be included in a processor of an electronic device in accordance with an embodiment of the present invention. [Figure 4] 4 is a flow chart illustrating a method for transmitting a media file that can be performed by an electronic device in accordance with an embodiment of the present invention. [Diagram 5]1 is an exemplary diagram illustrating a split transcoding process according to an embodiment of the present invention; [Figure 6] 4 is a flow chart illustrating an example of a method that can reduce transmission time of a media file in accordance with an embodiment of the present invention. [Figure 7] 4 is a flow chart illustrating an example of a method that can reduce transmission time of a media file in accordance with an embodiment of the present invention. [Figure 8] 4 is a flow chart illustrating another example of a method that can reduce transmission time of a media file in accordance with an embodiment of the present invention. [Figure 9] 4 is a flow chart illustrating another example of a method that can reduce transmission time of a media file in accordance with an embodiment of the present invention. [Figure 10] 4 is a flow chart illustrating another example of a method that can reduce transmission time of a media file in accordance with an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0024] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to techniques for transmitting media files.
[0025] Embodiments including those specifically disclosed in this specification can transmit media files to a server in a manner that transcodes and uploads in parallel at the client, thereby reducing the transmission time of the media files and optimizing the transmission efficiency of the media files.
[0026] Fig. 1 is a diagram showing an example of a network environment in one embodiment of the present invention. The network environment in Fig. 1 shows an example including a plurality of electronic devices 110, 120, 130, 140, a plurality of servers 150, 160, and a network 170. Fig. 1 is merely an example for explaining the invention, and the number of electronic devices and the number of servers are not limited to those shown in Fig. 1.
[0027] The electronic devices 110, 120, 130, and 140 may be fixed terminals or mobile terminals realized by computer systems. Examples of the electronic devices 110, 120, 130, and 140 include smartphones, mobile phones, navigation systems, personal computers (PCs), notebook PCs, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), tablets, game consoles, wearable devices, internet of things (IoT) devices, virtual reality (VR) devices, and augmented reality (AR) devices. As an example, FIG. 1 shows a smartphone as an example of the electronic device 110, but in the embodiment of the present invention, the electronic device 110 may mean one of various physical computer systems that can communicate with other electronic devices 120, 130, and 140 and / or servers 150 and 160 via a network 170 using a substantially wireless or wired communication method.
[0028] The communication method is not limited, and may include not only a communication method using a communication network (such as a mobile communication network, a wired Internet, a wireless Internet, a broadcast network, a satellite network, etc.) that the network 170 can include, but also short-range wireless communication between devices. For example, the network 170 may include any one or more of a personal area network (PAN), a local area network (LAN), a campus area network (CAN), a metropolitan area network (MAN), a wide area network (WAN), a broadband network (BBN), the Internet, etc. Furthermore, the network 170 may include any one or more of a network topology including, but not limited to, a bus network, a star network, a ring network, a mesh network, a star-bus network, a tree or a hierarchical network, etc.
[0029] Each of the servers 150 and 160 may be realized by one or more computer devices that communicate with the multiple electronic devices 110, 120, 130, and 140 via the network 170 to provide instructions, codes, files, content, services, and the like. For example, the server 150 may be a system that provides a first service to the multiple electronic devices 110, 120, 130, and 140 connected via the network 170, and the server 160 may be a system that provides a second service to the multiple electronic devices 110, 120, 130, and 140 connected via the network 170. As a more specific example, the server 150 may provide a service (e.g., a messaging service, for example) targeted by an application, which is a computer program installed and executed in the multiple electronic devices 110, 120, 130, and 140, as a first service to the multiple electronic devices 110, 120, 130, and 140. As another example, the server 160 may provide, as a second service, a service of distributing files for installing and executing the above-mentioned application to the multiple electronic devices 110, 120, 130, and 140.
[0030] Fig. 2 is a block diagram for explaining the internal configuration of an electronic device and a server in an embodiment of the present invention. In Fig. 2, the internal configuration of electronic device 110 and the internal configuration of server 150 are explained as examples of electronic devices. In addition, other electronic devices 120, 130, 140 and server 160 may have the same or similar internal configuration as electronic device 110 or server 150 described above.
[0031] The electronic device 110 and the server 150 may include memories 211 and 221, processors 212 and 222, communication modules 213 and 223, and input / output interfaces 214 and 224. The memories 211 and 221 may be non-transitory computer-readable recording media and may include persistent mass storage devices such as random access memory (RAM), read only memory (ROM), disk drives, solid state drives (SSD), flash memories, and the like. Here, persistent mass storage devices such as ROM, SSD, flash memories, and disk drives may be included in the electronic device 110 and the server 150 as persistent storage devices separate from the memories 211 and 221. In addition, the memories 211 and 221 may store an operating system and at least one program code (for example, a browser installed and executed in the electronic device 110, or a code for an application installed in the electronic device 110 to provide a specific service, etc.). Such software components may be loaded from a computer-readable recording medium separate from the memories 211 and 221. Such another computer-readable recording medium may include a computer-readable recording medium such as a floppy drive, a disk, a tape, a DVD / CD-ROM drive, a memory card, etc. In another embodiment, the software components may be loaded into the memory 211, 221 through a communication module 213, 223 that is not a computer-readable recording medium. For example, at least one program may be loaded into the memory 211, 221 based on a computer program (for example, the above-mentioned application) that is installed by a file provided via the network 170 by a developer or a file distribution system that distributes an installation file of the application (for example, the above-mentioned server 160).
[0032] The processors 212, 222 may be configured to process instructions of a computer program by performing basic arithmetic, logic, and input / output operations. The instructions may be provided to the processors 212, 222 by the memory 211, 221 or the communication modules 213, 223. For example, the processors 212, 222 may be configured to execute instructions received according to program code stored in a storage device such as the memory 211, 221.
[0033] The communication modules 213 and 223 may provide a function for the electronic device 110 and the server 150 to communicate with each other via the network 170, or may provide a function for the electronic device 110 and / or the server 150 to communicate with other electronic devices (for example, the electronic device 120) or other servers (for example, the server 160). For example, a request generated by the processor 212 of the electronic device 110 according to a program code recorded in a recording device such as the memory 211 may be transmitted to the server 150 via the network 170 under the control of the communication module 213. Conversely, a control signal, an instruction, a content, a file, etc. provided under the control of the processor 222 of the server 150 may be received by the electronic device 110 through the communication module 213 of the electronic device 110 via the communication module 223 and the network 170. For example, control signals, instructions, content, files, etc. from the server 150 received through the communication module 213 may be transmitted to the processor 212 or memory 211, and the content, files, etc. may be recorded on a recording medium (the above-mentioned permanent recording device) that the electronic device 110 may further include.
[0034] The input / output interface 214 may be a means for interfacing with the input / output device 215. For example, the input device may include a device such as a keyboard, a mouse, a microphone, or a camera, and the output device may include a device such as a display, a speaker, or a haptic feedback device. As another example, the input / output interface 214 may be a means for interfacing with a device in which functions for input and output are integrated into one, such as a touch screen. The input / output device 215 may be configured as one device together with the electronic device 110. Also, the input / output interface 224 of the server 150 may be a means for interfacing with a device for input or output (not shown) that may be connected to the server 150 or included in the server 150. As a more specific example, when the processor 212 of the electronic device 110 processes the instructions of the computer program loaded in the memory 211, a service screen or content configured using data provided by the server 150 or the electronic device 120 may be displayed on a display through the input / output interface 214.
[0035] Also, in other embodiments, the electronic device 110 and the server 150 may include more components than those in FIG. 2. However, it is not necessary to clearly show most of the conventional technical components in the figure. For example, the electronic device 110 may be realized to include at least some of the above-mentioned input / output devices 215, and may further include other components such as a transceiver, a GPS (Global Positioning System) module, a camera, various sensors, a database, etc. As a more specific example, if the electronic device 110 is a smartphone, various components such as an acceleration sensor, a gyro sensor, a camera module, various physical buttons, a button using a touch panel, an input / output port, a vibrator for vibration, etc., which are generally included in a smartphone, may be realized to be further included in the electronic device 110.
[0036] Specific embodiments of a method and system for transmitting media files are described below.
[0037] In this specification, a media file may refer to anything including video and audio.
[0038] This embodiment relates to a technology for transmitting media files from a client to a server, and can be used in services that include or utilize a function for sharing media files via a communication session set up between users, such as messengers and SNS (social network services).
[0039] In the following, a specific embodiment will be described in which a media file is sent using a messenger.
[0040] FIG. 3 is a block diagram illustrating an example of components that may be included in a processor of an electronic device in one embodiment of the present invention, and FIG. 4 is a flowchart illustrating an example of a media file transmission method that may be performed by an electronic device in one embodiment of the present invention.
[0041] A media file transmission system implemented by a computer may be configured in the electronic device 110 according to the present embodiment. For example, the media file transmission system may be implemented in the form of a program that operates independently, or may be implemented in the form of an in-app of a specific application so as to be operable on the specific application.
[0042] Based on instructions provided by an application installed on the electronic device 110, the media file transmission system implemented in the electronic device 110 may perform the media file transmission method shown in FIG.
[0043] To execute the media file transmission method according to Fig. 4, the processor 212 of the electronic device 110 may include, as components, a transcoder 310 and an uploader 320, as shown in Fig. 3. Depending on the embodiment, the components of the processor 212 may be selectively included or excluded from the processor 212. Also, depending on the embodiment, the components of the processor 212 may be separated or combined for expressing the functions of the processor 212.
[0044] Such processor 212 and components of processor 212 may control electronic device 110 to execute steps 410 to 430 included in the media file transmission method of Fig. 4. For example, processor 212 and components of processor 212 may be implemented to execute instructions from operating system code and at least one program code included in memory 211.
[0045] Here, the components of the processor 212 may represent different functions of the processor 212 that are executed by the processor 212 according to instructions provided by a program code stored in the electronic device 110 (e.g., instructions provided by an application executed on the electronic device 110). For example, a transcoder 310 may be used as a functional representation of the processor 212 that controls the electronic device 110 according to the instructions described above so that the electronic device 110 performs transcoding of a media file.
[0046] In step 410, the processor 212 may read necessary instructions from the memory 211 loaded with instructions related to the control of the electronic device 110. In this case, the read instructions may include instructions for controlling the processor 212 to execute steps 420 to 430 described below.
[0047] In step 420, when the user of the electronic device 110 selects a media file to be uploaded from among the media files stored in the electronic device 110 using a messenger installed in the electronic device 110 for sharing with other users, the transcoder 310 may transcode the selected media file. Since the electronic devices 110, 120, 130, and 140 used by the users are diverse, when sharing a media file such as video or audio, a task of converting the file into a consistent file format so that the file can be played on all the electronic devices 110, 120, 130, and 140, i.e., a transcoding task, is required. In other words, the transcoder 310 transcodes the media file selected by the user of the electronic device 110 into a predetermined file format. In particular, the transcoder 310 performs split transcoding, and may perform transcoding in split units by dividing the original media file into a predetermined unit size.
[0048] In step 430, the transcoding operation by the transcoder 310 and the uploading operation by the uploader 320 may be processed in parallel. When transcoding of one division unit file, which is a part of the entire media file, is completed, the transcoder 310 continues to transcode the next division unit file, and at the same time, the uploader 320 may upload the previous division unit file, which has been transcoded, to the server 150 associated with the messenger. In other words, the processor 212 performs uploading operations for a part of the previously transcoded file in parallel while continuing to perform transcoding operations for the remaining part when transcoding of a part of the media file is completed.
[0049] Let's say you upload a video file whose size is 100, and the resulting file size is 100. Previously, a method was used in which after all transcoding work for a video file that a user wanted to upload was completed, a file with a total size of 100 was generated, and then the video file with a total size of 100 was uploaded all at once. The previous method required the sum of the time to generate a file with a size of 100 (file conversion time) (T1) and the time to perform the upload (T2), i.e., T1+T2.
[0050] In the media file transmission method according to the present invention, when transcoding a media file, instead of starting uploading after the conversion of the entire media file is completed, split transcoding is performed on the entire media file. When the transcoding of a part of the file is completed, the transcoding of the next part and the uploading of the previous transcoding result are performed in parallel, thereby making it possible to process the media file in a time shorter than T1+T2.
[0051] First, an embodiment of the division transcoding method will be described as follows.
[0052] FIG. 5 is an exemplary diagram illustrating a split transcoding process according to an embodiment of the present invention.
[0053] As an example, the transcoder 310 may divide a video file into groups of pictures (GOPs) and perform encoding.
[0054] Referring to FIG. 5, the frame types of a GOP may include an I-frame, a P-frame, a B-frame, etc. A P-frame exists between I-frames, and a B-frame exists between I-frames and P-frames. An I-frame is an intra frame having the best image quality and means a key frame. A P-frame is a forward predicted frame and means a frame configured based on information of a previous key frame, and a B-frame is a bidirectionally interpolated frame and means a frame configured based on information of previous and following frames, i.e., an I-frame and a P-frame. For example, a previous I-frame and a next I-frame may be bundled as one GOP unit, and the number of frames included in the bundle is the size of the GOP.
[0055] The transcoder 310 performs division transcoding with GOP units as division units, and at this time, if the GOP size of the original video is large, the size of the division unit increases. If the division unit is very short, the encoding overhead increases due to the increase in the number of file divisions, while if the division unit is very long, the encoding completion time for one division unit increases. An appropriate length that can optimize the encoding completion time for each division unit while minimizing the overhead generated in the encoding process may be determined through a pre-experiment. That is, as another example, the transcoder 310 may divide the original video file with the length determined through a pre-experiment as the division unit.
[0056] As another example, as described above, the transcoder 310 divides the video file basically in GOP units, with the division unit of a length determined through prior experiments being the smallest unit, but if the GOP unit is smaller than the minimum unit, the video file may be divided in the smallest unit determined through experiments instead of in GOP units.
[0057] An embodiment of a method that can reduce the transmission time of a media file is described as follows.
[0058] 6 and 7 are flow charts illustrating an example of a method that may reduce transmission time of a media file in accordance with an embodiment of the present invention.
[0059] When the processor 212 performs split transcoding on a media file and completes transcoding into a portion of the file, the processor 212 may immediately upload the file conversion result of the transcoder 310 in stream form rather than storing it in file form.
[0060] 6, the processor 212 performs segmented transcoding on the media file, and at this time, the result of the transcoder 310 (transcoded stream) may be immediately uploaded to the server 150 via the memory buffer 601 and the uploader 320 in a streaming manner. Since the transcoding of the media file is performed in segments by the transcoder 310, when the transcoding of the previous segmented file is completed, the uploading of the previous segmented file and the encoding of the next segmented file may be processed in parallel.
[0061] While performing split transcoding, the processor 212 immediately uploads the resulting stream to the server 150 rather than storing the transcoded result as a separate file, allowing partial transcoded results to be uploaded even when conversion of the entire media file is not complete.
[0062] Referring to Figure 7, in the case of a method in which transcoding and uploading of a media file are performed in parallel for each division, and some of the divided file transcoding results are uploaded immediately in a stream format without being stored in a file format (see the bottom diagram of Figure 7), the total time required can be reduced compared to a conventional method in which the file conversion results are stored in a file format and uploaded after the conversion of the entire media file is completed (see the top diagram of Figure 7). Since uploading begins before conversion of the entire media file is completed, the time required to complete uploading can be reduced compared to the conventional method.
[0063] In the case of parallel processing in a stream mode, it is possible to perform transcoding not only for a division unit of a media file, but also for the entire media file. The transcoder 310 may record the result of the transcoding process in the memory buffer 601, and the uploader 320 may directly up stream the output stream of the memory buffer 601 to the server 150. In other words, when the transcoding result is recorded in the memory buffer 601 in units of streams, the uploader 320 may instantly upload such streams to the server 150, thereby enabling transcoding and uploading of the media file to be processed in parallel.
[0064] 8-10 are flowcharts illustrating another example of a method for reducing the transmission time of a media file in accordance with an embodiment of the present invention.
[0065] The processor 212 may perform split transcoding on the media files, and when transcoding of some files is completed, may store and upload the file conversion results of the transcoder 310 in file format.
[0066] Referring to FIG. 8, in order to perform encoding and uploading in parallel, the processor 212 may include one transcoder 310 and one uploader 320.
[0067] The transcoder 310 transcodes the media file in units of divisions in sequence and transmits the transcoded result (transcoded chunk file) stored in file form to the uploader 320. The transcoder 310 transcodes the next division unit file when the transcoding of the previous division unit file is completed, and at the same time, the uploader 320 may upload the transcoded result of the previous division unit file to the server 150 in file form.
[0068] Since the processor 212 generates the transcoding result from performing the split transcoding immediately after the encoding of the split unit files is completed, the transcoding result of the split unit files can be uploaded even when the conversion of the entire media file is not completed.
[0069] Referring to FIG. 9, in the case of a method in which transcoding and uploading of a media file is performed in parallel on a division basis and the transcoded results of some of the divided files are uploaded in file form (see the bottom diagram of FIG. 9), the total required time can be reduced compared to the conventional method in which the file conversion results are stored in file form and uploaded after the conversion work for the entire media file is completed (see the top diagram of FIG. 9).
[0070] The time when the first upload starts is the time when conversion of the first divided file is completed, the time when the last upload starts is the time when conversion of the last divided file is completed, and the total time to complete uploading of the entire media file is the time it takes to complete uploading the last divided file. For example, for a media file generated as a result of a transcoding operation that has a size of 100, a method of dividing a media file with a size of 100 into 20 files and transcoding and uploading files of 5 sizes in parallel ultimately leads to a reduction in the total required time, compared to a conventional method of waiting until transcoding of the entire file is completed and then uploading a file of size 100 at once. In other words, since uploading starts before conversion of the entire media file is completed, the time it takes to complete uploading is shorter than the conventional method.
[0071] The method of reducing the transmission time of a media file by parallel processing of transcoding and uploading assumes a situation in which no communication failure occurs during file upload in an environment with guaranteed network quality. As an exception, if a media file is divided into 10 files and uploaded sequentially, and the first 8th divided file is uploaded successfully, but a temporary communication failure causes a problem in the communication session for uploading the 9th file, causing the 10th divided file to complete upload first, the actual upload completion time will be the time when the 9th divided file completes uploading.
[0072] As another example, referring to FIG. 10, in order to perform encoding and uploading in parallel, the processor 212 may include multiple transcoders (Transcoder #1 to #N) 310 and multiple uploaders (Uploader #1 to #N) 320, and in this case, the transcoders 310 and the uploaders 320 may be arranged and configured in a one-to-one relationship.
[0073] In addition to the one-to-one arrangement of the transcoders 310 and the uploaders 320, the arrangement structure of the transcoders 310 and the uploaders 320 may be determined in consideration of the performance of the transcoders 310 and the uploaders 320. In other words, if the performance of the transcoders 310 is superior to that of the uploaders 320, the number of the transcoders 310 may be smaller than that of the uploaders 320, and conversely, if the performance of the uploaders 320 is superior to that of the transcoders 310, the number of the uploaders 320 may be smaller than that of the transcoders 310.
[0074] The processor 212 may divide a media file into division units of a predetermined size, and then assign each division unit file to a plurality of transcoders 310. At this time, each transcoder 310 may perform transcoding on the assigned division unit file and transmit a transcoding result stored in a file format to the uploader 320. Each uploader 320 may receive the transcoding result in a file format from the corresponding transcoder 310 and upload it to the server 150.
[0075] Therefore, by performing parallel transcoding using multiple transcoders 310 and parallel uploading using multiple uploaders 320, the encoding and uploading of media files can be processed in parallel, further reducing file transmission time.
[0076] Furthermore, by executing split transcoding, the processor 212 can redo the work on the split unit file in the event of an error occurring during encoding or uploading.
[0077] With the traditional method of waiting until the entire file is transcoded and then generating a single file to upload all at once, if an error occurs during transcoding or uploading, it can lead to the failure of the entire process.
[0078] In contrast, in the present invention, transcoding and uploading are performed on a divisional unit basis, so that even if an error occurs during the work, the work can be partially resumed for the divisional unit file where the error occurred, thereby reducing the overall time required.
[0079] The processor 212 can upload a media file to the server 150 in a format that can be played only by the transcoded result of the division unit (e.g., a progressive downloadable format) without downloading the entire media file when transmitting the media file to the server 150 by performing transcoding and uploading in a division unit in parallel, and in this case, the server 150 does not need to perform a separate file conversion operation. Even if the media file is uploaded in a format that cannot be played without downloading the entire media file, the cost of re-formatting the uploaded files to the server 150 into a playable format by combining them is relatively small. When the transcoded result of the division unit is uploaded in a stream format rather than a file format, the media file cannot be played without downloading the entire media file, so the server 150 converts the stream corresponding to the transcoded result into a playable format, and the cost and resources consumed in this case are significantly less than the operating cost when the server 150 directly transcodes the media file.
[0080] Thus, according to an embodiment of the present invention, in an environment in which a client transcodes a media file and uploads it to a server, the transcoding and uploading of the media file can be processed in parallel, thereby effectively reducing the overall time it takes to complete the transmission of the media file.
[0081] The above-mentioned devices may be realized by hardware components, software components, and / or a combination of hardware and software components. For example, the devices and components described in the embodiments may be realized using one or more general-purpose or special-purpose computers, such as a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a programmable logic unit (PLU), a microprocessor, or various devices capable of executing and responding to instructions. The processing device may execute an operating system (OS) and one or more software applications that run on the OS. The processing device may also respond to the execution of the software to access, record, manipulate, process, and generate data. For convenience of understanding, a single processing device may be described as being used, but those skilled in the art will understand that the processing device may include multiple processing elements and / or multiple types of processing elements. For example, the processing device may include multiple processors or one processor and one controller. Other processing configurations, such as parallel processors, are also possible.
[0082] The software may include computer programs, codes, instructions, or a combination of one or more of these, and may configure a processing device to operate as desired or instruct the processing device, either independently or collectively. The software and / or data may be embodied in any type of machine, component, physical device, computer storage medium, or device to be interpreted by the processing device or to provide instructions or data to the processing device. The software may be distributed and stored or executed in a distributed manner on computer systems connected by a network. The software and data may be stored on one or more computer-readable storage media.
[0083] The method according to the embodiment may be realized in the form of program instructions executable by various computer means and recorded on a computer-readable medium. Here, the medium may be one that continuously records a computer-executable program or one that temporarily records the program for execution or download. The medium may be one of various recording means or storage means in the form of a single or multiple hardware devices combined, and may not be limited to a medium directly connected to a certain computer system, but may be one that is distributed over a network. Examples of the medium include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and ROMs, RAMs, flash memories, etc., configured to record program instructions. Other examples of the medium include recording media or storage media managed by application stores that distribute applications, or sites, servers, etc. that supply or distribute various other software.
[0084] Although the embodiments have been described based on the limited embodiments and drawings as above, those skilled in the art will be able to make various modifications and variations from the above description. For example, the described techniques may be performed in an order different from that described, and / or the components of the described systems, structures, devices, circuits, etc. may be combined or combined in a manner different from that described, or may be counterbalanced or replaced by other components or equivalents, and still achieve suitable results.
[0085] Therefore, different embodiments are within the scope of the appended claims provided they are equivalent to the claims. [Explanation of symbols]
[0086] 212: Processor 310: Transcoder 320: Uploader
Claims
1. 1. A computer system implemented method for transmitting a media file, comprising: The computer system includes at least one processor configured to execute computer-readable instructions contained in a memory; The media file transmission method includes: When a media file is selected by a messenger installed in the computer system, dividing the media file into unit sizes and performing transcoding in the division units by the at least one processor; uploading the transcoded result of the division unit to a server associated with the messenger by the at least one processor. Including, When the transcoding of the previous division unit file is completed, the transcoding of the next division unit file and the uploading of the previous division unit file are processed in parallel; The uploading step includes: Uploading the transcoded result in the divided units in a stream format using a streaming method. A method for transmitting a media file, comprising:
2. A method for transmitting a media file executed by a computer system, comprising: The computer system includes at least one processor configured to execute computer-readable instructions contained in a memory; The media file transmission method includes: When a media file is selected by a messenger installed in the computer system, dividing the media file into unit sizes and performing transcoding in the division units by the at least one processor; uploading the transcoded result of the division unit to a server associated with the messenger by the at least one processor. Including, When the transcoding of the previous division unit file is completed, the transcoding of the next division unit file and the uploading of the previous division unit file are processed in parallel; The step of performing the transcoding comprises: storing the transcoded result in a file format; Including, The uploading step includes: uploading the transcoded result in the stored file format in the divided units; A method for transmitting a media file, comprising:
3. The storing step includes: Storing the transcoded result of the division unit in a form that can be played back by itself. The method of claim 2, further comprising:
4. the at least one processor includes a transcoder and an uploader; Transcoding the next division unit file of the media file by the transcoder and uploading the previous division unit file by the uploader at the same time. A method for transmitting a media file according to any one of claims 1 to 3, characterized in that
5. the at least one processor includes a plurality of transcoders and a plurality of uploaders; performing parallel transcoding using the plurality of transcoders and parallel uploading using the plurality of uploaders on the media file; A method for transmitting a media file according to any one of claims 1 to 3, characterized in that 6. A method for transmitting a media file executed by a computer system, comprising: The computer system includes at least one processor configured to execute computer-readable instructions contained in a memory; The media file transmission method includes: When a media file is selected by a messenger installed in the computer system, dividing the media file into unit sizes and performing transcoding in the division units by the at least one processor; uploading the transcoded result of the division unit to a server associated with the messenger by the at least one processor. Including, When the transcoding of the previous division unit file is completed, the transcoding of the next division unit file and the uploading of the previous division unit file are processed in parallel; The step of performing the transcoding comprises: Dividing the media file into groups of pictures (GOPs) based on key frames. A method for transmitting a media file, comprising:
7. The dividing step includes: If the GOP unit is smaller than a minimum unit determined by a pre-experiment, the media file is divided into the minimum unit instead of the GOP unit.
7. The method of claim 6, further comprising:
8. A non-transitory computer-readable recording medium having a program recorded thereon for causing a computer to execute the media file transmission method according to any one of claims 1 to 7.
9. 1. A computer system comprising: At least one processor configured to execute computer-readable instructions contained in the memory. Including, The at least one processor When a media file is selected by a messenger installed in the computer system, dividing the media file into unit sizes and performing transcoding on a division basis; and uploading the transcoded result of the division unit to a server associated with the messenger; Process When the transcoding of the previous division unit file is completed, the transcoding of the next division unit file and the uploading of the previous division unit file are processed in parallel; The uploading process includes: Uploading the transcoded result in the divided units in a stream format using a streaming method. A computer system comprising:
10. A computer system comprising: At least one processor configured to execute computer-readable instructions contained in the memory. Including, The at least one processor When a media file is selected by a messenger installed in the computer system, dividing the media file into unit sizes and performing transcoding on a division basis; and uploading the transcoded result of the division unit to a server associated with the messenger; Process When the transcoding of the previous division unit file is completed, the transcoding of the next division unit file and the uploading of the previous division unit file are processed in parallel; The transcoding result of the division unit is stored in a file format, The uploading process includes: uploading the transcoded result in the stored file format in the divided units; A computer system comprising:
11. the at least one processor includes a transcoder and an uploader; Transcoding the next division unit file of the media file by the transcoder and uploading the previous division unit file by the uploader at the same time. A computer system according to any one of claims 9 to 10, characterized in that
12. the at least one processor includes a plurality of transcoders and a plurality of uploaders; performing parallel transcoding using the plurality of transcoders and parallel uploading using the plurality of uploaders on the media file; A computer system according to any one of claims 9 to 10, characterized in that 13. A computer system comprising: At least one processor configured to execute computer-readable instructions contained in the memory. Including, The at least one processor When a media file is selected by a messenger installed in the computer system, dividing the media file into unit sizes and performing transcoding on a division basis; and uploading the transcoded result of the division unit to a server associated with the messenger; Process When the transcoding of the previous division unit file is completed, the transcoding of the next division unit file and the uploading of the previous division unit file are processed in parallel; The step of performing the transcoding includes: Dividing the media file into GOP units based on key frames and performing transcoding. A computer system comprising:
Citation Information
Patent Citations
Data transfer controller
JP1987182919A
Group messaging system and method for providing file sharing by bi-directional interlocking with cloud server and computer-readable recording medium
JP2013161481A
Image processing device, control method therefor and program
JP2013214951A
Service system and method for mobile messenger ofmobile phone using wireless communication network
KR1020020074304A
Systems and methods for supporting the delivery of streamed content
US20020083124A1
