Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jvoisin
mat2
Commits
08c4b386
Commit
08c4b386
authored
6 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Add a warning
parent
c5708c07
No related branches found
No related tags found
1 merge request
!27
Add mp4 support
Pipeline
#20288
passed
6 years ago
Stage: linting
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libmat2/video.py
+6
-0
6 additions, 0 deletions
libmat2/video.py
mat2
+2
-0
2 additions, 0 deletions
mat2
with
8 additions
and
0 deletions
libmat2/video.py
+
6
−
0
View file @
08c4b386
...
...
@@ -84,6 +84,12 @@ class MP4Parser(AbstractFFmpegParser):
'
TrackVolume
'
:
'
0.00%
'
,
}
def
remove_all
(
self
)
->
bool
:
logging
.
warning
(
'
The format of
"
%s
"
(video/mp4) has some mandatory
'
'
metadata fields; mat2 filled them with standard data.
'
,
self
.
filename
)
return
super
().
remove_all
()
def
get_meta
(
self
)
->
Dict
[
str
,
Union
[
str
,
dict
]]:
meta
=
super
().
get_meta
()
...
...
This diff is collapsed.
Click to expand it.
mat2
+
2
−
0
View file @
08c4b386
...
...
@@ -20,6 +20,8 @@ __version__ = '0.5.0'
assert
Tuple
assert
Union
logging
.
basicConfig
(
format
=
'
%(levelname)s: %(message)s
'
,
level
=
logging
.
WARNING
)
def
__check_file
(
filename
:
str
,
mode
:
int
=
os
.
R_OK
)
->
bool
:
if
not
os
.
path
.
exists
(
filename
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment