Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Linshizhi
ffmpeg.wasm-core
Commits
47f9a5b7
Commit
47f9a5b7
authored
Aug 18, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn the user if a pix_fmt != yuv420p was chosen for MPEG-2 video encoding.
Fixes ticket #2870.
parent
63c0e907
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ffmpeg.c
ffmpeg.c
+7
-0
No files found.
ffmpeg.c
View file @
47f9a5b7
...
...
@@ -2355,6 +2355,13 @@ static int transcode_init(void)
"No pixel format specified, %s for H.264 encoding chosen.
\n
"
"Use -pix_fmt yuv420p for compatibility with outdated media players.
\n
"
,
av_get_pix_fmt_name
(
ost
->
filter
->
filter
->
inputs
[
0
]
->
format
));
if
(
!
strncmp
(
ost
->
enc
->
name
,
"mpeg2video"
,
10
)
&&
codec
->
pix_fmt
==
AV_PIX_FMT_NONE
&&
ost
->
filter
->
filter
->
inputs
[
0
]
->
format
!=
AV_PIX_FMT_YUV420P
)
av_log
(
NULL
,
AV_LOG_WARNING
,
"No pixel format specified, %s for MPEG-2 encoding chosen.
\n
"
"Use -pix_fmt yuv420p for compatibility with outdated media players.
\n
"
,
av_get_pix_fmt_name
(
ost
->
filter
->
filter
->
inputs
[
0
]
->
format
));
codec
->
pix_fmt
=
ost
->
filter
->
filter
->
inputs
[
0
]
->
format
;
if
(
!
icodec
||
...
...
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