Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
40f97350
Commit
40f97350
authored
Feb 11, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print more debug messages from ffmpeg when using the mux module in VLC.
parent
86843e19
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/ffmpeg.c
+5
-5
modules/codec/ffmpeg/ffmpeg.h
modules/codec/ffmpeg/ffmpeg.h
+2
-0
modules/codec/ffmpeg/mux.c
modules/codec/ffmpeg/mux.c
+4
-0
No files found.
modules/codec/ffmpeg/ffmpeg.c
View file @
40f97350
...
...
@@ -365,10 +365,10 @@ static void CloseDecoder( vlc_object_t *p_this )
}
/*****************************************************************************
*
local Functions
*
*****************************************************************************/
static
void
LibavcodecCallback
(
void
*
p_opaque
,
int
i_level
,
const
char
*
psz_format
,
va_list
va
)
void
E_
(
LibavcodecCallback
)
(
void
*
p_opaque
,
int
i_level
,
const
char
*
psz_format
,
va_list
va
)
{
int
i_vlc_level
;
AVCodecContext
*
p_avctx
=
(
AVCodecContext
*
)
p_opaque
;
...
...
@@ -416,7 +416,7 @@ static void LibavcodecCallback( void *p_opaque, int i_level,
+
18
+
5
);
snprintf
(
psz_new_format
,
strlen
(
psz_format
)
+
strlen
(
psz_item_name
)
+
18
+
5
,
"%s (%s@%p)"
,
psz_format
,
p_avc
->
item_name
(
p_opaque
),
p_opaque
);
msg_GenericVa
(
p_this
,
MSG_QUEUE_NORMAL
,
i_vlc_level
,
msg_GenericVa
(
p_this
,
MSG_QUEUE_NORMAL
,
i_vlc_level
,
MODULE_STRING
,
psz_new_format
,
va
);
free
(
psz_new_format
);
}
...
...
@@ -434,7 +434,7 @@ void E_(InitLibavcodec)( vlc_object_t *p_object )
{
avcodec_init
();
avcodec_register_all
();
av_log_set_callback
(
LibavcodecCallback
);
av_log_set_callback
(
E_
(
LibavcodecCallback
)
);
b_ffmpeginit
=
1
;
msg_Dbg
(
p_object
,
"libavcodec initialized (interface %d )"
,
...
...
modules/codec/ffmpeg/ffmpeg.h
View file @
40f97350
...
...
@@ -29,6 +29,8 @@ struct AVCodecContext;
struct
AVCodec
;
void
E_
(
InitLibavcodec
)(
vlc_object_t
*
);
void
E_
(
LibavcodecCallback
)(
void
*
p_opaque
,
int
i_level
,
const
char
*
psz_format
,
va_list
va
);
int
E_
(
GetFfmpegCodec
)
(
vlc_fourcc_t
,
int
*
,
int
*
,
const
char
**
);
int
E_
(
GetVlcFourcc
)
(
int
,
int
*
,
vlc_fourcc_t
*
,
const
char
**
);
int
E_
(
GetFfmpegChroma
)(
vlc_fourcc_t
);
...
...
modules/codec/ffmpeg/mux.c
View file @
40f97350
...
...
@@ -91,6 +91,7 @@ int E_(OpenMux)( vlc_object_t *p_this )
/* Should we call it only once ? */
av_register_all
();
av_log_set_callback
(
E_
(
LibavcodecCallback
)
);
config_ChainParse
(
p_mux
,
"ffmpeg-"
,
ppsz_mux_options
,
p_mux
->
p_cfg
);
...
...
@@ -215,6 +216,9 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
}
codec
=
stream
->
codec
;
/* This is used by LibavcodecCallback (ffmpeg.c) to print messages */
codec
->
opaque
=
(
void
*
)
p_mux
;
switch
(
p_input
->
p_fmt
->
i_cat
)
{
case
AUDIO_ES
:
...
...
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