The codec defined will only be used by encoder to force one of the types.
/* Video codec */
#define VLC_CODEC_MPGV VLC_FOURCC('m','p','g','v')
/* Video codec */
#define VLC_CODEC_MPGV VLC_FOURCC('m','p','g','v')
-#define VLC_CODEC_MP1V VLC_FOURCC('m','p','1','v')
-#define VLC_CODEC_MP2V VLC_FOURCC('m','p','2','v')
#define VLC_CODEC_MP4V VLC_FOURCC('m','p','4','v')
#define VLC_CODEC_DIV1 VLC_FOURCC('D','I','V','1')
#define VLC_CODEC_DIV2 VLC_FOURCC('D','I','V','2')
#define VLC_CODEC_MP4V VLC_FOURCC('m','p','4','v')
#define VLC_CODEC_DIV1 VLC_FOURCC('D','I','V','1')
#define VLC_CODEC_DIV2 VLC_FOURCC('D','I','V','2')
# define VLC_CODEC_S32N VLC_CODEC_S32L
#endif
# define VLC_CODEC_S32N VLC_CODEC_S32L
#endif
+/* Non official codecs, used to force a profile in an encoder */
+#define VLC_CODEC_MP1V VLC_FOURCC('m','p','1','v')
+#define VLC_CODEC_MP2V VLC_FOURCC('m','p','2','v')
+
/**
* It returns the codec associatedto a fourcc within a ES category.
*
/**
* It returns the codec associatedto a fourcc within a ES category.
*
if( /* Raw DV stream */
p_stream->i_fourcc == VLC_CODEC_DV ||
/* Raw MPEG video stream */
if( /* Raw DV stream */
p_stream->i_fourcc == VLC_CODEC_DV ||
/* Raw MPEG video stream */
- p_stream->i_fourcc == VLC_CODEC_MP2V )
+ p_stream->i_fourcc == VLC_CODEC_MPGV )
free( p_access->psz_demux );
p_access->psz_demux = strdup( "rawdv" );
}
free( p_access->psz_demux );
p_access->psz_demux = strdup( "rawdv" );
}
- else if( p_stream->i_fourcc == VLC_CODEC_MP2V )
+ else if( p_stream->i_fourcc == VLC_CODEC_MPGV )
{
free( p_access->psz_demux );
p_access->psz_demux = strdup( "mpgv" );
{
free( p_access->psz_demux );
p_access->psz_demux = strdup( "mpgv" );
/* MPEG2 video elementary stream */
else if( media_type.subtype == MEDIASUBTYPE_MPEG2_VIDEO )
/* MPEG2 video elementary stream */
else if( media_type.subtype == MEDIASUBTYPE_MPEG2_VIDEO )
- i_fourcc = VLC_CODEC_MP2V;
+ i_fourcc = VLC_CODEC_MPGV;
/* DivX video */
else if( media_type.subtype == MEDIASUBTYPE_DIVX )
/* DivX video */
else if( media_type.subtype == MEDIASUBTYPE_DIVX )
__MAX( __MIN( p_sys->i_b_frames, FF_MAX_B_FRAMES ), 0 );
p_context->b_frame_strategy = 0;
if( !p_context->max_b_frames &&
__MAX( __MIN( p_sys->i_b_frames, FF_MAX_B_FRAMES ), 0 );
p_context->b_frame_strategy = 0;
if( !p_context->max_b_frames &&
- ( p_enc->fmt_out.i_codec == VLC_CODEC_MP2V ||
+ ( p_enc->fmt_out.i_codec == VLC_CODEC_MPGV ||
+ p_enc->fmt_out.i_codec == VLC_CODEC_MP2V ||
p_enc->fmt_out.i_codec == VLC_CODEC_MP1V ) )
p_context->flags |= CODEC_FLAG_LOW_DELAY;
p_enc->fmt_out.i_codec == VLC_CODEC_MP1V ) )
p_context->flags |= CODEC_FLAG_LOW_DELAY;
- { VLC_CODEC_MP1V, CODEC_ID_MPEG1VIDEO, VIDEO_ES },
-
- { VLC_CODEC_MP2V, CODEC_ID_MPEG2VIDEO, VIDEO_ES },
+ { VLC_CODEC_MPGV, CODEC_ID_MPEG2VIDEO, VIDEO_ES },
{ VLC_CODEC_MP4V, CODEC_ID_MPEG4, VIDEO_ES },
/* 3ivx delta 3.5 Unsupported
{ VLC_CODEC_MP4V, CODEC_ID_MPEG4, VIDEO_ES },
/* 3ivx delta 3.5 Unsupported
decoder_sys_t *p_sys;
uint32_t i_accel = 0;
decoder_sys_t *p_sys;
uint32_t i_accel = 0;
- if( p_dec->fmt_in.i_codec != VLC_CODEC_MP1V &&
- p_dec->fmt_in.i_codec != VLC_CODEC_MP2V &&
- p_dec->fmt_in.i_codec != VLC_CODEC_MPGV )
+ if( p_dec->fmt_in.i_codec != VLC_CODEC_MPGV )
return VLC_EGENERIC;
/* Select onl recognized original format (standard mpeg video) */
return VLC_EGENERIC;
/* Select onl recognized original format (standard mpeg video) */
/* Init this new stream */
switch( p_input->p_fmt->i_codec )
{
/* Init this new stream */
switch( p_input->p_fmt->i_codec )
{
- case VLC_CODEC_MP1V:
- p_stream->i_stream_id =
- StreamIdGet( p_sys->stream_id_mpgv, 0xe0, 0xef );
- p_stream->i_stream_type = 0x01; /* ISO/IEC 11172 Video */
- break;
- case VLC_CODEC_MP2V:
case VLC_CODEC_MPGV:
p_stream->i_stream_id =
StreamIdGet( p_sys->stream_id_mpgv, 0xe0, 0xef );
case VLC_CODEC_MPGV:
p_stream->i_stream_id =
StreamIdGet( p_sys->stream_id_mpgv, 0xe0, 0xef );
M( "mp4", "mp4", INT_MAX, VLC_CODEC_MP4A, VLC_CODEC_H264, VLC_CODEC_MP4V,
VLC_CODEC_SUBT ),
M( "mp4", "mp4", INT_MAX, VLC_CODEC_MP4A, VLC_CODEC_H264, VLC_CODEC_MP4V,
VLC_CODEC_SUBT ),
- M( "ps", "mpg", 16/* FIXME*/,VLC_CODEC_MPGV, VLC_CODEC_MP1V, VLC_CODEC_MP2V,
+ M( "ps", "mpg", 16/* FIXME*/,VLC_CODEC_MPGV,
VLC_CODEC_MPGA, VLC_CODEC_DVD_LPCM, VLC_CODEC_A52,
VLC_CODEC_DTS,
VLC_CODEC_SPU ),
VLC_CODEC_MPGA, VLC_CODEC_DVD_LPCM, VLC_CODEC_A52,
VLC_CODEC_DTS,
VLC_CODEC_SPU ),
- M( "ts", "ts", 8000, VLC_CODEC_MPGV, VLC_CODEC_MP1V, VLC_CODEC_MP2V,
+ M( "ts", "ts", 8000, VLC_CODEC_MPGV,
VLC_CODEC_H264,
VLC_CODEC_MPGA, VLC_CODEC_DVD_LPCM, VLC_CODEC_A52,
VLC_CODEC_DTS, VLC_CODEC_MP4A,
VLC_CODEC_H264,
VLC_CODEC_MPGA, VLC_CODEC_DVD_LPCM, VLC_CODEC_A52,
VLC_CODEC_DTS, VLC_CODEC_MP4A,
/* */
static const entry_t p_list_video[] = {
/* */
static const entry_t p_list_video[] = {
- B(VLC_CODEC_MP1V, "MPEG-1 Video"),
+
+ B(VLC_CODEC_MPGV, "MPEG-1/2 Video"),
+ A("mpgv"),
A("mp1v"),
A("mpeg"),
A("mpg1"),
A("mp1v"),
A("mpeg"),
A("mpg1"),
- E("PIM1", "Pinnacle DC1000 (MPEG-1 Video)"),
-
- B(VLC_CODEC_MP2V, "MPEG-2 Video"),
A("mp2v"),
A("MPEG"),
A("mpg2"),
A("mp2v"),
A("MPEG"),
A("mpg2"),
+
+ E("PIM1", "Pinnacle DC1000 (MPEG-1 Video)"),
+
E("hdv1", "HDV 720p30 (MPEG-2 Video)"),
E("hdv2", "Sony HDV (MPEG-2 Video)"),
E("hdv3", "FCP HDV (MPEG-2 Video)"),
E("hdv1", "HDV 720p30 (MPEG-2 Video)"),
E("hdv2", "Sony HDV (MPEG-2 Video)"),
E("hdv3", "FCP HDV (MPEG-2 Video)"),
E("xdv2", "XDCAM HD 1080i60"),
E("AVmp", "AVID IMX PAL"),
E("xdv2", "XDCAM HD 1080i60"),
E("AVmp", "AVID IMX PAL"),
- B(VLC_CODEC_MPGV, "MPEG-1/2 Video"),
- A("mpgv"),
-
B(VLC_CODEC_MP4V, "MPEG-4 Video"),
A("mp4v"),
A("DIVX"),
B(VLC_CODEC_MP4V, "MPEG-4 Video"),
A("mp4v"),
A("DIVX"),