Sign up to receive free email alerts when patent applications with chosen keywords are publishedSIGN UP

Abstract:

Embodiments of the present invention provide a method and device for
transcoding, which belongs to the computer media processing field. The
method includes: receiving multiple multimedia source files selected by a
user and a transcoding target parameter inputted by the user; separating
each of the multiple multimedia source files into an audio stream and a
video stream; according to the transcoding target parameter, transcoding
each audio stream and each video stream obtained from the separation;
merging transcoded audio streams and transcoded video streams of the
multiple multimedia source files into at least one multimedia target
file. The device includes: a receiving unit, a separating unit, a
transcoding unit and a merging unit. The present invention extends
transcoding modes, improves user experience, and has high practicability.

Claims:

1. A method for transcoding, the method comprises: receiving multiple
multimedia source files selected by a user and a transcoding target
parameter inputted by the user; separating each of the multiple
multimedia source files into an audio stream and a video stream;
according to the transcoding target parameter, transcoding each audio
stream and each video stream both of which are obtained from the
separation; merging transcoded audio streams and transcoded video streams
of the multiple multimedia source files into at least one multimedia
target file.

2. The method according to claim 1, after receiving the transcoding
target parameter inputted by the user, further comprising: determining
whether the transcoding target parameter is valid, if the transcoding
target parameter is valid, performing the process of according to the
transcoding target parameter, transcoding each audio stream and each
video stream both of which are obtained from the separation.

3. The method according to claim 2, wherein separating each of the
multiple multimedia source files into an audio stream and a video stream
comprises: separating each of the multiple multimedia source files into
an audio stream and a video stream one by one; or separating each of the
multiple multimedia source files into an audio stream and a video stream
simultaneously; wherein transcoding each audio stream and each video
stream both of which are obtained from the separation comprises:
transcoding each audio stream and each video stream both of which are
obtained from the separation one by one; or transcoding each audio stream
and each video stream both of which are obtained from the separation
simultaneously.

4. The method according to claim 3, wherein separating each of the
multiple multimedia source files into an audio stream and a video stream
one by one comprises: separating each of the multiple multimedia source
files into an audio stream and a video stream one by one in an order of
creation time or filenames of the multiple multimedia source files; or
separating each of the multiple multimedia source files into an audio
stream and a video stream one by one according to a user-demanded
arrangement sequence of merged transcoded files; wherein transcoding each
audio stream and each video stream both of which are obtained from the
separation one by one comprises: transcoding each audio stream and each
video stream both of which are obtained from the separation one by one in
an order of creation time or filenames of the multiple multimedia source
files; or transcoding each audio stream and each video stream both of
which are obtained from the separation one by one according to a
user-demanded arrangement sequence of merged transcoded files.

5. The method according to claim 1, the transcoding target parameter
comprises: a file format of a multimedia target file or a file size of
the multimedia target file.

9. A device for transcoding, the device comprises: a receiving unit, to
receive multiple multimedia source files selected by a user and a
transcoding target parameter inputted by the user; a separating unit, to
separate each of the multiple multimedia source files into an audio
stream and a video stream; a transcoding unit, to transcode each audio
stream and each video stream separated by the separating unit according
to the transcoding target parameter received by the receiving unit; and a
merging unit, to merge transcoded audio streams and transcoded video
streams of the multiple multimedia source files obtained by the
transcoding unit into at least one multimedia target file.

10. The device according to claim 9, further comprising: a determining
unit, to determine whether the transcoding target parameter received by
the receiving unit is valid, and if the transcoding target parameter is
valid, provide the transcoding target parameter to the transcoding unit.

11. The device according to claim 9, wherein the separating unit
comprises: a first separating unit or a second separating unit; the first
separating unit to separate each of the multiple multimedia source files
into an audio stream and a video stream one by one; the second separating
unit to separate each of the multiple multimedia source files into an
audio stream and a video stream simultaneously; wherein the transcoding
unit comprises: a first transcoding unit or a second transcoding unit;
the first transcoding unit to transcode each audio stream and each video
stream obtained from the separation one by one; the second first
transcoding unit to transcode each audio stream and each video stream
obtained from the separation simultaneously.

12. The device according to claim 11, after receiving a transcoding
confirmation signal inputted by the user, the first separating unit to
separate each of the multiple multimedia source files into an audio
stream and a video stream one by one in an order of creation time or
filenames of the multiple multimedia source files; or the first
separating unit to separate each of the multiple multimedia source files
into an audio stream and a video stream one by one according to a
user-demanded arrangement sequence of merged transcoded files; the first
transcoding unit to transcode each audio stream and each video stream
obtained from the separation one by one in an order of creation time or
filenames of the multiple multimedia source files; or the first
transcoding unit to transcode each audio stream and each video stream
obtained from the separation one by one according to a user-demanded
arrangement sequence of merged transcoded files.

13. The device according to claim 9, the merging unit to merge transcoded
audio stream and transcoded video stream of each multimedia source file,
and obtain a multimedia target file corresponding to the multimedia
source file.

14. The device according to claim 13, the merging unit further to merge
obtained multiple multimedia target files corresponding to the multiple
multimedia source files, and obtain one multimedia target file.

15. The device according to claim 9, the merging unit to merge transcoded
audio streams of all multimedia source files, and obtain a merged audio
stream; merge transcoded video streams of all multimedia source files,
and obtain a merged video stream; merge the merged audio stream and the
merged video stream, and obtain one multimedia target file.

Description:

FIELD OF THE INVENTION

[0001] The present invention relates to computer multimedia processing
field, and more particularly, to a method and device for transcoding.

BACKGROUND OF THE INVENTION

[0002] With the rapid development of information, multimedia technology
has become an indispensable and important part of people's work and
study. In order to prompt further development of multimedia technology,
and satisfy different demands for multimedia services during people's
daily life, some organization for standardization provide multiple
audio/video coding standards for different service demands. Such as H.263
standard provided for video phone and video conference in multimedia
technology, Moving Picture Expert Group (MPEG2) standard provided for
Digital Video Broadcasting (DVB), High Definition Television (HDTV) and
Digital Versatile Disc (DVD) in multimedia technology, MPEG4 standard
provided for network streaming media service in multimedia technology,
H.264 standard capable of providing better performances in compression
and being friendly, and so on. Since multiple coding standards exist
simultaneously, and the demands for compression efficiency, decompression
speed, and target device used by code stream are different, there are
various multimedia files with different file formats, video formats and
compression formats. To utilize existing multimedia resources effectively
and implement the conversion of files of different standards, the
transcoding technology has attracted much attention. More and more
research and development are performed on the transcoding technology
ceaselessly.

[0003] In the prior art, a software or hardware tool providing conversion
between different standards is called a transcoder. For a multimedia
file, the existing transcoder only provide a one-to-one transcoding
function, that is, one source file is transcoded into one target file.

[0004] When implementing the present invention, at least the following
disadvantages and deficiencies in the prior art are found by the
inventor.

[0005] Since the existing transcoder can only provide a one-to-one
trascoding function, namely, one source file is transcoded into one
target file, transcoding method is unitary, and transcoding efficiency is
not high. When there are multiple source files to be transcoded, it is
required for the user to start up the transcoder many times for
performing transcoding operations, which impairs the user experience.
Especially when the source files are relative small, the multimedia files
transcoded by the transcoder can only be played one by one, the user's
need of continuously playing multiple multimedia files can not be
satisfied.

SUMMARY OF THE INVENTION

[0006] When there are multimedia source files to be transcoded, in order
to decrease transcoding times, improve user experience, raise transcoding
efficiency, and meet the user's need of continuously playing multiple
multimedia files, embodiments of the present invention provide a method
and device for transcoding, the technical solution is as follows.

[0007] On one hand, a method for transcoding is provided by embodiments of
the present invention, the method includes:

[0008] receiving multiple multimedia source files selected by a user and a
transcoding target parameter inputted by the user;

[0009] separating each of the multiple multimedia source files into an
audio stream and a video stream;

[0010] according to the transcoding target parameter, transcoding each
audio stream and each video stream both of which are obtained from the
separation;

[0012] On the other hand, a device for transcoding is provided by
embodiments of the present invention, the device includes:

[0013] a receiving unit, to receive multiple multimedia source files
selected by a user and a transcoding target parameter inputted by the
user;

[0014] a separating unit, to separate each of the multiple multimedia
source files into an audio stream and a video stream;

[0015] a transcoding unit, to transcode each audio stream and each video
stream separated by the separating unit according to the transcoding
target parameter received by the receiving unit; and

[0016] a merging unit, to merge transcoded audio streams and transcoded
video streams of the multiple multimedia source files obtained by the
transcoding unit into at least one multimedia target file.

[0017] The advantages achieved by the technical solution provided by
embodiments of the present invention are as follows.

[0018] Each of multiple source files to be transcoded selected by a user
is separated into an audio stream and a video stream, and each audio
stream and each video stream obtained from the separation is transcoded
according to a transcoding target parameter inputted by the user. Thus,
the transcoding operations on multiple source files may be performed at
one time after the user selects the multiple multimedia source files, the
transcoding operation is not needed to be started multiple times,
transcoding times are decreased, and then the user experience may be
improved. In addition, when merging transcoded audio stream and
transcoded video stream, the transcoded audio stream and transcoded video
stream may be merged into one multimedia target file, thus the user's
need of continuously playing multiple multimedia files is satisfied, and
the user experience may be further improved. Furthermore, by performing
audio/video stream separation and transcoding on multiple source files to
be transcoded simultaneously, the transcoding efficiency may be further
increased.

BRIEF DESCRIPTION OF DRAWINGS

[0019] To clearer describe the technical solution in the embodiments of
the present invention, accompanying drawings for describing the
embodiments will be described in brief hereinafter. Obviously, the
following accompanying drawings are merely some examples of the present
invention. Other drawings may be obtained according to these accompanying
drawings without creative work by those skilled in the art.

[0020] FIG. 1 is a flowchart illustrating a transcoding method in
accordance with the first embodiment of the present invention;

[0021]FIG. 2 is a schematic diagram illustrating a structure of a
transcoder in accordance with the second embodiment of the present
invention;

[0022] FIG. 3 is a flowchart illustrating a transcoding method implemented
based on the schematic diagram shown in FIG. 2 in accordance with the
second embodiment of the present invention;

[0023] FIG. 4 is a schematic diagram illustrating a structure of another
transcoder in accordance with the second embodiment of the present
invention;

[0024]FIG. 5 is a schematic diagram illustrating a transcoding device in
accordance with the third embodiment of the present invention;

[0025]FIG. 6 is a schematic diagram illustrating another transcoding
device in accordance with the third embodiment of the present invention;

[0026]FIG. 7 is a schematic diagram illustrating yet another transcoding
device in accordance with the third embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

[0027] In order to make objectives, technical solutions and advantages of
the present invention clearer, embodiments of the present invention will
be described in detail hereinafter with reference to accompanying
drawings.

The First Embodiment

[0028] When there are multimedia source files to be transcoded, in order
to decrease transcoding times, improve user experience, the embodiment of
the present invention provide a transcoding method, as shown in FIG. 1,
the method includes the following processes.

[0029] 101: receiving multiple multimedia source files selected by a user
and a transcoding target parameter inputted by the user.

[0030] 102: separating each of the multiple multimedia source files into
an audio stream and a video stream.

[0031] 103: according to the transcoding target parameter, transcoding
each audio stream and each video stream obtained from the separation.

[0033] In the method provided by the embodiment of the present invention,
each of the multiple source files to be transcoded selected by a user is
separated into an audio stream and a video stream, and each audio stream
and each video stream obtained from the separation is transcoded
according to a transcoding target parameter inputted by the user. Thus,
the transcoding operations on multiple source files may be performed at
one time after the user selects the multiple multimedia source files, the
transcoding operation is not needed to be started multiple times,
transcoding times are decreased, and then the user experience may be
enhanced.

[0034] The method provide by above-mentioned embodiment will be described
in detail in accordance with the following embodiments.

The Second Embodiment

[0035] When there are multimedia source files to be transcoded, in order
to decrease transcoding times, improve user experience, the embodiment of
the present invention provide a transcoding method, based on the method
provided by the second embodiment, FIG. 2 is a schematic diagram
illustrating a structure of a transcoder for implementing the method
provided by the second embodiment of the present invention. The
transcoder includes: a source file list managing module, an audio/video
stream separating module, an audio transcoding module, a video
transcoding module, an audio/video stream synthesizing module, a merged
transcoding control module and a user parameter configuring module. Based
on the structure of the transcoder, in order to make a schematic
description of the method provided by the embodiment of the present
invention, suppose there are multiple source files to be merged
transcoded, of which filenames are respectively A, B and C. For details,
refer to FIG. 3, the method includes the following processes.

[0036] 201: the source file list managing module of the transcoder
receives source files A, B and C to be merged transcoded selected by the
user.

[0037] The number and types of the source files are not limited by the
embodiment of the present invention. Refer to table 1, which is a
schematic table for illustrating information of source files provided by
the embodiment of the present invention.

[0038] Furthermore, after one or more source files to be merged transcoded
are added in the source file list managing module by the user, according
to needs of the user, operations, such as cancel and reorder, may be
performed on source files in the source file list.

[0039] 202: the user parameter configuring module of the transcoder
receives a transcoding target parameter inputted by the user.

[0040] The transcoding target parameter includes but is not limited to a
file format of a multimedia target file, a file size of the multimedia
target file, code stream of the multimedia target file, and so on. To
facilitate description, suppose the transcoding target parameter inputted
by the user includes a file format of a multimedia target file and a file
size of the multimedia target file. For instance, in the transcoding
target parameter inputted by the user, the file format of the multimedia
target file is Audio Video Interleaved (AVI), and the file size of the
multimedia target file is 15 M.

[0041] Preferable, after receiving the transcoding target parameter
inputted by the user, the user parameter configuring module provided by
the embodiment of the present invention may also determine whether the
transcoding target parameter is valid, if the transcoding target
parameter is valid, forwards the transcoding target parameter inputted by
the user to the audio transcoding module, the video transcoding module
and the audio/video stream synthesizing module; otherwise, prompts the
user of inputting a transcoding target parameter again. The method for
determining whether the transcoding target parameter is valid is not
limited by the embodiment. For example, it is possible to preset a format
parameter, and determine whether received transcoding target parameter is
the format parameter, if the transcoding target parameter is the format
parameter, the transcoding target parameter is considered to be valid;
otherwise, the transcoding target parameter is invalid. The preset format
parameter is not limited by the embodiment.

[0042] 203: the merged transcoding control module of the transcoder
receives a transcoding confirmation signal inputted by the user.

[0043] After inputting selected source files to be transcoded as well as a
transcoding target parameter in the transcoder, the user may initiate a
transcoding confirmation signal to start the transcoding. For instance,
the user may initiate the transcoding confirmation signal to start the
transcoding by pressing a confirmation button provided in advance, so as
to perform the merged transcoding function.

[0044] 204: under the control of the merged transcoding control module,
the multiple source files in the source file list managing module are
sent to the audio/video stream separating module in turn.

[0045] How to send the multiple source files in the source file list
managing module to the audio/video stream separating module in turn is
not limited by the embodiment. For example, the merged transcoding
control module may send source files A, B and C to the audio/video stream
separating module in turn in an order of creation time of the source
files. Or, the merged transcoding control module may send source files A,
B and C to the audio/video stream separating module in turn in an order
of filenames of the source files, or according to an arrangement sequence
of transcoded files.

[0046] With above-mentioned methods for sending the source files in the
source file list managing module to the audio/video stream separating
module in turn, the audio/video stream separating module may perform
audio/video stream separation on each source file in turn according to
the receiving sequence. Alternatively, the audio/video stream separating
module may perform audio/video stream separation on all source files
simultaneously after receiving all source files. The embodiment does not
limit the specific separation method.

[0047] 205: after receiving current source file, the audio/video stream
separating module of the transcoder separates the current source file
into an audio stream and a video stream, and respectively sends the audio
stream and video stream obtained from the separation to corresponding
audio transcoding module and video transcoding module.

[0048] For instance, after receiving current source file A, the
audio/video stream separating module of the transcoder performs
audio/video file analysis on the current source file A, obtains an audio
stream of the current source file A and a video stream of the current
source file A, and sends the audio stream of the current source file A to
the audio transcoding module, sends the video stream of the current
source file A to the video transcoding module, so that the audio stream
and video stream may be respectively transcoded.

[0049] After the audio/video stream separating module of the transcoder
respectively sends the audio stream and video stream obtained from the
separation to corresponding audio transcoding module and video
transcoding module, similar to the audio/video stream separating module,
the audio transcoding module may also transcode each audio stream in turn
or transcode all audio streams simultaneously, and video transcoding
module may also transcode each video stream in turn or transcode all
video streams simultaneously. The embodiment does not limit the specific
transcoding method.

[0050] 206: the audio transcoding module receives the audio stream of the
current source file, transcodes the audio stream according to the
transcoding target parameter received by the user parameter configuring
module, and obtains a target audio stream corresponding to the current
source file.

[0051] As mentioned above, in an example, the transcoding target parameter
inputted by the user includes a file format AVI of a target file. Because
the file format of the source file A is MPEG4, after receiving the audio
stream of the source file A, the audio transcoding module transcodes the
audio stream of the source file A according to the file format AVI of the
target file. Therefore, the audio stream is transcoded to a target audio
stream in user-desired audio format.

[0052] 207: the video transcoding module receives the video stream of the
current source file, transcodes the video stream according to the
transcoding target parameter received by the user parameter configuring
module, and obtains a target video stream corresponding to the current
source file.

[0053] Similar to block 206, the video transcoding module is configured to
transcode the video stream to target video stream in user-desired video
format. In the example, the transcoding target parameter inputted by the
user includes a file format AVI of a target file. Because the file format
of the source file A is MPEG4, after receiving the video stream of the
source file A, the video transcoding module transcodes the video stream
of the source file A according to the file format AVI of the target file.
Therefore, the video stream is transcoded to target video stream in
user-desired video format.

[0054] The performing sequence of block 206 and block 207 is not limited
by the embodiment of the present invention.

[0055] 208: after obtaining the target audio stream corresponding to the
current source file, the audio transcoding module sends the target audio
stream to the audio/video stream synthesizing module; after obtaining the
target video stream corresponding to the current source file, the video
transcoding module sends the target video stream to the audio/video
stream synthesizing module.

[0058] When merging transcoded audio streams and transcoded video streams
of multiple source files into multiple multimedia target files, it is
possible to merge the transcoded audio stream and transcoded video stream
of each multimedia source file, and obtain a multimedia target file
corresponding to the multimedia source file.

[0059] When merging transcoded audio streams and transcoded video streams
of multiple source files into one multimedia target file, there may be
the following two implementing modes, which are not limited here.

[0065] After merging the transcoded audio streams and transcoded video
streams of multiple source files into multiple multimedia target files,
merging the multiple multimedia target files into one multimedia target
file. That is to say, after obtaining the multimedia target files
corresponding to the multimedia source files under the first scene,
merging obtained multimedia target files corresponding to the multimedia
source files, and obtaining one multimedia target file.

[0066] For instance, refer to table 2, which is a schematic table for
illustrating audio streams and video streams obtained after separation,
transcoded audio streams and transcoded video streams of source files
provided by the embodiment of the present invention.

[0069] After the audio stream Axx and video stream Ayy of the target file
corresponding to the source file A are merged, a target file A' is
obtained; after the audio stream Bxx and video stream Byy of the target
file corresponding to the source file B are merged, a target file B' is
obtained; after the audio stream Cxx and video stream Cyy of the target
file corresponding to the source file C are merged, a target file C' is
obtained.

[0071] 1) On the basis of the first mode, the target files A', B' and C'
are merged, and a target file (suppose the target file is M') is
obtained.

[0072] 2) The audio streams of target files corresponding to the source
file A, source file B and source file C are merged, and then a merged
audio stream is obtained; the video streams of target files corresponding
to the source file A, source file B and source file C are merged, and
then a merged video stream is obtained. The merged audio stream and
merged video stream are merged, and then a target file (suppose the
target file is N') is obtained. Namely, Axx, Bxx and Cxx are merged, and
then Nxx is obtained; Ayy, Byy and Cyy are merged, and then Nyy is
obtained. Nxx and Nyy are merged, and then N' is obtained.

[0073] According to actual conditions, the target files M' and N' in above
example may be the same or different. The specific merging mode is not
limited by the embodiment. In order to achieve a better synchronization
between the audio and the video, the mode for merging the audio stream
and video stream of each multimedia source file may be preferably
selected. The separation of audio/video stream and the transcoding of
audio/video stream are existing techniques, no further descriptions will
be provided here.

[0074] With above-mentioned blocks 201-209, after the user selects source
files to be transcoded, the source files are added into a source file
list in a customized order. When files in the source file list are
transcoded into one target file by utilizing the method provided by the
embodiment of the present invention, especially when the source files are
relative small, a target file with a long playing time may be obtained by
merged transcoding. Thus, the user experience is improved, and
transcoding modes are enriched.

[0075] In order to further raise the transcoding efficiency, refer to FIG.
4, which is a schematic diagram illustrating a structure of another
transcoder provided by the second embodiment of the present invention.
The transcoder includes: a source file list managing module, multiple
audio/video stream separating modules, multiple audio transcoding
modules, multiple video transcoding modules, an audio/video stream
synthesizing module, a merged transcoding control module and a user
parameter configuring module. Based on the structure of the transcoder,
when compared with above-mentioned blocks 201-209, the difference is as
follows. In block 204, under the control the merged transcoding control
module, the multiple source files in the source file list managing module
may be respectively sent to their respective audio/video stream
separating modules. The audio/video stream separating modules separate
the source files simultaneously, and send audio streams and video streams
obtained from the separation to their respective corresponding audio
transcoding modules and video transcoding modules. The method is similar
to that mentioned above, and no further descriptions will be provided
here. Since the audio/video stream separation, audio transcoding and
video transcoding may be performed on multiple source files
simultaneously, the transcoding time is further saved, and the
transcoding efficiency is increased.

[0076] Furthermore, the method provided by the embodiment of the present
invention has no requirement on file format of source files. File formats
of the source files may be the same or different. When file formats of
the source files are different, the method provided by the embodiment of
the present invention can provide the merged transcoding function
mentioned in the embodiment of the present invention. When file formats
of the source files are the same, and the user configures the target
multimedia format (i.e. file format of the target file) as the file
format of source files, the method provided by the embodiment of the
present invention can provide a mergence function of multimedia files,
that is, the transcoder provide by the embodiment of the present
invention may serve as a merger for multimedia files.

[0077] Besides, the method provided by the embodiment of the present
invention may be applied in the following occasions.

[0078] When a user shoots a video file of a scene and records an audio
file of the scene at the same time, then a multimedia file with picture
and sound may be obtained by utilizing the function for merging the video
file and audio file of the method provided by the embodiment of the
present invention. Thus, the user's usage experience is improved greatly.

[0079] Overall, the transcoding method provided by embodiments of the
present invention, each of multiple source files to be transcoded
selected by a user is separated into an audio stream and a video stream,
and each audio stream and each video stream obtained from the separation
is transcoded according to a transcoding target parameter inputted by the
user. Thus, the transcoding operations on multiple source files may be
performed at one time after the user selects the multiple multimedia
source files, the transcoding operation is not needed to be started
multiple times, transcoding times are decreased, and then the user
experience may be improved. In addition, when merging transcoded audio
stream and transcoded video stream, the transcoded audio stream and
transcoded video stream may be merged into one multimedia target file,
thus the user's need of continuously playing multiple multimedia files is
satisfied, and the user experience may be further improved. Furthermore,
by performing audio/video stream separation and transcoding on multiple
source files to be transcoded simultaneously, the transcoding efficiency
may be further increased.

The Third Embodiment

[0080] When there are multimedia source files to be transcoded, in order
to decrease transcoding times, enhance user experience, the embodiment of
the present invention provide a transcoding device, refer to FIG. 5, the
device includes:

[0081] A receiving unit 501, configured to receive multiple multimedia
source files selected by a user and a transcoding target parameter
inputted by the user;

[0082] A separating unit 502, configured to separate each of the multiple
multimedia source files into an audio stream and a video stream;

[0083] A transcoding unit 503, configured to transcode each audio stream
and each video stream separated by the separating unit 502 according to
the transcoding target parameter received by the receiving unit 501; and

[0085] Refer to FIG. 6, the transcoding device provided by the embodiment
of the present invention further includes:

[0086] A determining unit 505, configured to determine whether the
transcoding target parameter received by the receiving unit 501 is valid,
and if the transcoding target parameter is valid, provide the transcoding
target parameter to the transcoding unit 503.

[0087] When the determining unit 505 determines whether the transcoding
target parameter is valid, the specific process may be as follows.
Determining whether the transcoding target parameter satisfies a preset
format parameter, if the transcoding target parameter satisfies the
preset format parameter, the transcoding target parameter is valid;
otherwise, the transcoding target parameter is invalid. The preset format
parameter is not limited by the embodiment.

[0088] The separating unit 502 includes a first separating unit or a
second separating unit.

[0089] The first separating unit is configured to separate each of the
multiple multimedia source files into an audio stream and a video stream
in turn.

[0090] The second separating unit is configured to separate each of the
multiple multimedia source files into an audio stream and a video stream
simultaneously.

[0091] Specifically, after receiving a transcoding confirmation signal
inputted by the user, the first separating unit may separate each of the
multiple multimedia source files into an audio stream and a video stream
in turn in an order of creation time of the multiple multimedia source
files; or the first separating unit may separate each of the multiple
multimedia source files into an audio stream and a video stream in turn
in an order of filenames of the multiple multimedia source files; or the
first separating unit may separate each of the multiple multimedia source
files into an audio stream and a video stream in turn according to a
user-demanded arrangement sequence of merged transcoded files.

[0092] The transcoding unit 503 includes a first transcoding unit or a
second transcoding unit.

[0093] The first transcoding unit is configured to transcode each audio
stream and each video stream obtained from the separation one by one.

[0094] The second first transcoding unit is configured to transcode each
audio stream and each video stream obtained from the separation
simultaneously.

[0095] Specifically, the first transcoding unit may transcode each audio
stream and each video stream obtained from the separation one by one in
an order of creation time of the multiple multimedia source files; or the
first transcoding unit may transcode each audio stream and each video
stream obtained from the separation one by one in an order of filenames
of the multiple multimedia source files; or the first transcoding unit
may transcode each audio stream and each video stream obtained from the
separation one by one according to a user-demanded arrangement sequence
of merged transcoded files.

[0096] The transcoding target parameter includes but is not limited to a
file format of a multimedia target file or a file size of the multimedia
target file.

[0097] When there is one multimedia target file, file formats of multiple
multimedia source files are the same or different.

[0101] Refer to FIG. 7, the transcoding device provided by the embodiment
of the present invention may further includes a playing unit 506,
configured to play the multimedia target file merged by the merging unit
504.

[0102] Corresponding to above-mentioned method embodiment, modules in the
device provided by the embodiment of the present invention may be merged
into one module, or be divided into multiple sub-modules furthermore,
which is not limited by the embodiment. For example, the receiving unit
501 in the device provided by the embodiment of the present invention may
be achieved by the source file list managing module and user parameter
configuring module described in the method embodiment of the present
invention. The separating unit 502 in the device provided by the
embodiment of the present invention may be achieved by the audio/video
stream separating module described in the method embodiment of the
present invention. The transcoding unit 503 in the device provided by the
embodiment of the present invention may be achieved by the audio
transcoding unit and the video transcoding unit described in the method
embodiment of the present invention. The merging unit 504 in the device
provided by the embodiment of the present invention may be achieved by
the audio/video stream synthesizing module described in the method
embodiment of the present invention. There are may be at least one
audio/video stream separating unit, and the audio transcoding module and
the video transcoding module are similar.

[0103] In conclusion, the transcoding device provided by embodiments of
the present invention, each of multiple source files to be transcoded
selected by a user is separated into an audio stream and a video stream,
and each audio stream and each video stream obtained from the separation
is transcoded according to a transcoding target parameter inputted by the
user. Thus, the transcoding operations on multiple source files may be
performed at one time after the user selects the multiple multimedia
source files, the transcoding operation is not needed to be started
multiple times, transcoding times are decreased, and then the user
experience may be improved. In addition, when merging transcoded audio
stream and transcoded video stream, the transcoded audio stream and
transcoded video stream may be merged into one multimedia target file,
thus the user's need of continuously playing multiple multimedia files is
satisfied, and the user experience may be further improved. Furthermore,
by performing audio/video stream separation and transcoding on multiple
source files to be transcoded simultaneously, the transcoding efficiency
may be further increased.

[0104] The word "receiving" in the embodiment of the present invention may
be understood as actively obtaining information from another module, or
receiving information sent by another module.

[0105] Persons having ordinary skill in the art may easily learn that the
accompanying drawings are only schematic diagrams of a preferred
embodiment. The modules or processes illustrated in the accompanying
drawings are not definitely necessary to implement the present invention.

[0106] Persons having ordinary skill in the art may understand that the
modules in the device embodiment may be distributed in the device of the
embodiment according to embodiment descriptions, or may change
correspondingly to locate in one or more devices different from the
embodiment. The modules in above embodiment may be merged into one
module, or may be divided into multiple sub-modules furthermore.

[0107] Sequence number in above embodiments of the present invention is
only used for descriptions, which doesn't demonstrate good or better
embodiment.

[0108] Some blocks in the embodiments of the present invention may be
implemented with software. Corresponding software programs may be stored
in readable storage medium, such as Optical Disk (CD) or hard disk.

[0109] The foregoing description is only preferred embodiments of the
present invention and is not used for limiting the protection scope
thereof. Any modification, equivalent substitution, or improvement made
without departing from the spirit and principle of the present invention
should be covered by the protection scope of the present invention.