From d6c62919bc1bf06caf7e97a73589d19e596316bf Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Sun, 11 Feb 2007 16:26:19 +0000 Subject: [PATCH] Add option to specify which muxer we want to use in ffmpeg (ie: #std{mux=ffmpeg{mux=flv}...) Still seems kind of broken as the resulting file can't be demuxed by vlc/libavformat. Looks like the video and audio codec aren't identified correctly in the ffmpeg muxer. Must be some error in mux.c i guess. --- modules/codec/ffmpeg/ffmpeg.c | 2 ++ modules/codec/ffmpeg/ffmpeg.h | 3 +++ modules/codec/ffmpeg/mux.c | 21 ++++++++++++++++++--- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/modules/codec/ffmpeg/ffmpeg.c b/modules/codec/ffmpeg/ffmpeg.c index a42ecc6483..1324f65226 100644 --- a/modules/codec/ffmpeg/ffmpeg.c +++ b/modules/codec/ffmpeg/ffmpeg.c @@ -193,6 +193,8 @@ vlc_module_begin(); add_submodule(); set_description( _("FFmpeg muxer" ) ); set_capability( "sout mux", 2 ); + add_string( "ffmpeg-mux", NULL, NULL, MUX_TEXT, + MUX_LONGTEXT, VLC_TRUE ); set_callbacks( E_(OpenMux), E_(CloseMux) ); #if defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE) diff --git a/modules/codec/ffmpeg/ffmpeg.h b/modules/codec/ffmpeg/ffmpeg.h index 35dd6b1650..b8cd586832 100644 --- a/modules/codec/ffmpeg/ffmpeg.h +++ b/modules/codec/ffmpeg/ffmpeg.h @@ -297,3 +297,6 @@ N_("[: