Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
a3a9921d
Commit
a3a9921d
authored
Jun 02, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
压缩视频
parent
16957f71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
MediaHelper.java
...image/src/main/java/com/yanzuoguang/util/MediaHelper.java
+7
-1
No files found.
yzg-util-image/src/main/java/com/yanzuoguang/util/MediaHelper.java
View file @
a3a9921d
...
...
@@ -38,7 +38,7 @@ public class MediaHelper {
public
static
final
String
FORMAT_FLV
=
"flv"
;
public
static
final
String
FORMAT_MPEG
=
"mp4"
;
public
static
final
String
FORMAT_MPEG_CODEC
=
"mpeg4"
;
// public static final String FORMAT_MPEG_CODEC = "mpeg";
// public static final String FORMAT_MPEG_CODEC = "mpeg";
public
static
final
String
FORMAT_3PG
=
"3gp"
;
public
static
final
String
FORMAT_3PG_CODEC
=
"mpeg4"
;
...
...
@@ -251,6 +251,12 @@ public class MediaHelper {
MultimediaInfo
fromInfo
=
encoder
.
getInfo
(
source
);
VideoInfo
fromVideo
=
fromInfo
.
getVideo
();
AudioInfo
fromAudio
=
fromInfo
.
getAudio
();
if
(
fromAudio
==
null
)
{
fromAudio
=
new
AudioInfo
();
}
if
(
fromVideo
==
null
)
{
fromVideo
=
new
VideoInfo
();
}
if
(
FORMAT_EMPTY
.
equals
(
format
)
||
format
==
null
)
{
format
=
fromInfo
.
getFormat
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment