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
81c26d88
Commit
81c26d88
authored
Jul 13, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频转换
parent
d6caa6e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
MediaHelper.java
...image/src/main/java/com/yanzuoguang/util/MediaHelper.java
+3
-1
100M.mp4.size_50.quot_50.mp4
...l-image/src/test/java/helper/100M.mp4.size_50.quot_50.mp4
+0
-0
TestMediaHelper.java
yzg-util-image/src/test/java/helper/TestMediaHelper.java
+7
-0
No files found.
yzg-util-image/src/main/java/com/yanzuoguang/util/MediaHelper.java
View file @
81c26d88
...
...
@@ -120,8 +120,10 @@ public class MediaHelper extends ImageHelper {
}
}
finally
{
recorder
.
stop
();
// 设置转码后的视频角度
recorder
.
setMetadata
(
MediaParameter
.
ROTATE
,
String
.
valueOf
(
parameter
.
getVideoRotateFinally
()));
recorder
.
release
();
recorder
.
stop
();
recorder
.
close
();
}
...
...
yzg-util-image/src/test/java/helper/100M.mp4.size_50.quot_50.mp4
0 → 100644
View file @
81c26d88
File added
yzg-util-image/src/test/java/helper/TestMediaHelper.java
View file @
81c26d88
...
...
@@ -45,6 +45,13 @@ public class TestMediaHelper {
public
void
testConvertSingle
()
throws
IOException
{
String
fileName
=
"100M.mp4"
;
// String fileName = "z001594372388232a3017ad69c82a342.MOV";
testConvert
(
fileName
,
0.25f
,
0.25f
);
}
@Test
public
void
testConvertSingle_Two
()
throws
IOException
{
String
fileName
=
"100M.mp4.size_50.quot_50.mp4"
;
// String fileName = "z001594372388232a3017ad69c82a342.MOV";
testConvert
(
fileName
,
0.5f
,
0.5f
);
}
...
...
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