Changeset f5c5a773147fccc0255acabd50961e042ade393f
- Timestamp:
- 03/31/06 00:58:23
(2 years ago)
- Author:
- Christophe Mutricy <xtophe@videolan.org>
- git-committer:
- Christophe Mutricy <xtophe@videolan.org> 1143759503 +0000
- git-parent:
[ea48b014dd494d61a93768090944f392a0e78c2b]
- git-author:
- Christophe Mutricy <xtophe@videolan.org> 1143759503 +0000
- Message:
String review in codec. 1st part. ffmpeg.h to be improve. refs #438
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r369ccbe |
rf5c5a77 |
|
| 14 | 14 | SOURCES_mpeg_audio = mpeg_audio.c |
|---|
| 15 | 15 | SOURCES_libmpeg2 = libmpeg2.c |
|---|
| | 16 | SOURCES_libvc1 = libvc1.c |
|---|
| 16 | 17 | SOURCES_rawvideo = rawvideo.c |
|---|
| 17 | 18 | SOURCES_quicktime = quicktime.c |
|---|
| r150509e |
rf5c5a77 |
|
| 148 | 148 | p_dec->fmt_in.audio.i_channels > 5 ) |
|---|
| 149 | 149 | { |
|---|
| 150 | | msg_Err( p_dec, "bad channels count(1-5)" ); |
|---|
| | 150 | msg_Err( p_dec, "invalid number of channel (not between 1 and 5): %i", |
|---|
| | 151 | p_dec->fmt_in.audio.i_channels ); |
|---|
| 151 | 152 | return VLC_EGENERIC; |
|---|
| 152 | 153 | } |
|---|
| … | … | |
| 237 | 238 | } |
|---|
| 238 | 239 | |
|---|
| 239 | | msg_Dbg( p_dec, "format: samplerate:%dHz channels:%d bits/sample:%d " |
|---|
| | 240 | msg_Dbg( p_dec, "format: samplerate:%d Hz channels:%d bits/sample:%d " |
|---|
| 240 | 241 | "blockalign:%d samplesperblock:%d", |
|---|
| 241 | 242 | p_dec->fmt_in.audio.i_rate, p_dec->fmt_in.audio.i_channels, |
|---|
| r2cb472d |
rf5c5a77 |
|
| 205 | 205 | p_dec->fmt_in.audio.i_channels > 8 ) |
|---|
| 206 | 206 | { |
|---|
| 207 | | msg_Err( p_dec, "bad channels count (1-8)" ); |
|---|
| | 207 | msg_Err( p_dec, "bad channels count (1-8): %i", |
|---|
| | 208 | p_dec->fmt_in.audio.i_channels ); |
|---|
| 208 | 209 | return VLC_EGENERIC; |
|---|
| 209 | 210 | } |
|---|
| ra1e597b |
rf5c5a77 |
|
| 99 | 99 | |
|---|
| 100 | 100 | #ifdef CMML_DEBUG |
|---|
| 101 | | msg_Dbg( p_dec, "I am at %p", p_dec ); |
|---|
| | 101 | msg_Dbg( p_dec, "i am at %p", p_dec ); |
|---|
| 102 | 102 | #endif |
|---|
| 103 | 103 | |
|---|
| r2cb472d |
rf5c5a77 |
|
| 66 | 66 | #define ENC_QUALITY_TEXT N_("Encoding quality") |
|---|
| 67 | 67 | #define ENC_QUALITY_LONGTEXT N_( \ |
|---|
| 68 | | "Allows you to specify a quality between 1.0 (low) and 10.0 (high)." ) |
|---|
| | 68 | "Quality of the encoding between 1.0 (low) and 10.0 (high)." ) |
|---|
| 69 | 69 | |
|---|
| 70 | 70 | vlc_module_begin(); |
|---|
| r22f2830 |
rf5c5a77 |
|
| 4 | 4 | ***************************************************************************** |
|---|
| 5 | 5 | * Copyright (C) 2003 ANEVIA |
|---|
| 6 | | * Copyright (C) 2003-2005 VideoLAN (Centrale Réseaux) and its contributors |
|---|
| | 6 | * Copyright (C) 2003-2005 the VideoLAN team |
|---|
| 7 | 7 | * $Id$ |
|---|
| 8 | 8 | * |
|---|
| … | … | |
| 53 | 53 | "You can enforce the subpicture position on the video " \ |
|---|
| 54 | 54 | "(0=center, 1=left, 2=right, 4=top, 8=bottom, you can " \ |
|---|
| 55 | | "also use combinations of these values).") |
|---|
| | 55 | "also use combinations of these values (e.g. 6=top-right)).") |
|---|
| 56 | 56 | |
|---|
| 57 | 57 | #define ENC_POSX_TEXT N_("X coordinate of the encoded subpicture") |
|---|
| … | … | |
| 103 | 103 | add_integer( ENC_CFG_PREFIX "x", -1, NULL, ENC_POSX_TEXT, ENC_POSX_LONGTEXT, VLC_FALSE ); |
|---|
| 104 | 104 | add_integer( ENC_CFG_PREFIX "y", -1, NULL, ENC_POSY_TEXT, ENC_POSY_LONGTEXT, VLC_FALSE ); |
|---|
| 105 | | add_integer( ENC_CFG_PREFIX "timeout", 15, NULL, TIMEOUT_TEXT, TIMEOUT_LONGTEXT, VLC_FALSE ); |
|---|
| | 105 | add_integer( ENC_CFG_PREFIX "timeout", 15, NULL, TIMEOUT_TEXT, TIMEOUT_LONGTEXT, VLC_FALSE ); |
|---|
| 106 | 106 | vlc_module_end(); |
|---|
| 107 | 107 | |
|---|
| … | … | |
| 923 | 923 | if( i_coding_method > 1 ) |
|---|
| 924 | 924 | { |
|---|
| 925 | | msg_Dbg( p_dec, "Unknown DVB subtitling coding %d is not handled!", i_coding_method ); |
|---|
| | 925 | msg_Dbg( p_dec, "unknown DVB subtitling coding %d is not handled!", i_coding_method ); |
|---|
| 926 | 926 | bs_skip( s, 8 * (i_segment_length - 2) - 6 ); |
|---|
| 927 | 927 | return; |
|---|
| r32438ff |
rf5c5a77 |
|
| 87 | 87 | #if defined(MODULE_NAME_is_ffmpegaltivec) \ |
|---|
| 88 | 88 | || (defined(CAN_COMPILE_ALTIVEC) && !defined(NO_ALTIVEC_IN_FFMPEG)) |
|---|
| 89 | | set_description( _("AltiVec ffmpeg audio/video decoder/encoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") ); |
|---|
| | 89 | set_description( _("AltiVec FFmpeg audio/video decoder/encoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") ); |
|---|
| 90 | 90 | /*add_requirement( ALTIVEC );*/ |
|---|
| 91 | 91 | set_capability( "decoder", 71 ); |
|---|
| 92 | 92 | #else |
|---|
| 93 | | set_description( _("ffmpeg audio/video decoder/encoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") ); |
|---|
| | 93 | set_description( _("FFmpeg audio/video decoder/encoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") ); |
|---|
| 94 | 94 | set_capability( "decoder", 70 ); |
|---|
| 95 | 95 | #endif |
|---|
| … | … | |
| 125 | 125 | set_capability( "chroma", 50 ); |
|---|
| 126 | 126 | set_callbacks( E_(OpenChroma), E_(CloseChroma) ); |
|---|
| 127 | | set_description( _("ffmpeg chroma conversion") ); |
|---|
| | 127 | set_description( _("FFmpeg chroma conversion") ); |
|---|
| 128 | 128 | |
|---|
| 129 | 129 | /* encoder submodule */ |
|---|
| 130 | 130 | add_submodule(); |
|---|
| 131 | 131 | set_section( N_("Encoding") , NULL ); |
|---|
| 132 | | set_description( _("ffmpeg audio/video encoder") ); |
|---|
| | 132 | set_description( _("FFmpeg audio/video encoder") ); |
|---|
| 133 | 133 | set_capability( "encoder", 100 ); |
|---|
| 134 | 134 | set_callbacks( E_(OpenEncoder), E_(CloseEncoder) ); |
|---|
| … | … | |
| 188 | 188 | /* demux submodule */ |
|---|
| 189 | 189 | add_submodule(); |
|---|
| 190 | | set_description( _("ffmpeg demuxer" ) ); |
|---|
| | 190 | set_description( _("FFmpeg demuxer" ) ); |
|---|
| 191 | 191 | set_capability( "demux2", 2 ); |
|---|
| 192 | 192 | set_callbacks( E_(OpenDemux), E_(CloseDemux) ); |
|---|
| … | … | |
| 196 | 196 | set_capability( "video filter2", 50 ); |
|---|
| 197 | 197 | set_callbacks( E_(OpenFilter), E_(CloseFilter) ); |
|---|
| 198 | | set_description( _("ffmpeg video filter") ); |
|---|
| | 198 | set_description( _("FFmpeg video filter") ); |
|---|
| 199 | 199 | |
|---|
| 200 | 200 | /* crop/padd submodule */ |
|---|
| … | … | |
| 202 | 202 | set_capability( "crop padd", 10 ); |
|---|
| 203 | 203 | set_callbacks( E_(OpenCropPadd), E_(CloseFilter) ); |
|---|
| 204 | | set_description( _("ffmpeg crop padd filter") ); |
|---|
| | 204 | set_description( _("FFmpeg crop padd filter") ); |
|---|
| 205 | 205 | |
|---|
| 206 | 206 | /* video filter submodule */ |
|---|
| … | … | |
| 208 | 208 | set_capability( "video filter2", 0 ); |
|---|
| 209 | 209 | set_callbacks( E_(OpenDeinterlace), E_(CloseDeinterlace) ); |
|---|
| 210 | | set_description( _("ffmpeg deinterlace video filter") ); |
|---|
| | 210 | set_description( _("FFmpeg deinterlace video filter") ); |
|---|
| 211 | 211 | add_shortcut( "ffmpeg-deinterlace" ); |
|---|
| 212 | 212 | |
|---|
| r32438ff |
rf5c5a77 |
|
| 86 | 86 | *****************************************************************************/ |
|---|
| 87 | 87 | #define DR_TEXT N_("Direct rendering") |
|---|
| | 88 | /* FIXME Does somebody who knows what it does, explain */ |
|---|
| | 89 | #define DR_LONGTEXT N_("Direct rendering") |
|---|
| 88 | 90 | |
|---|
| 89 | 91 | #define ERROR_TEXT N_("Error resilience") |
|---|
| 90 | 92 | #define ERROR_LONGTEXT N_( \ |
|---|
| 91 | | "ffmpeg can do error resilience.\n" \ |
|---|
| | 93 | "Ffmpeg can do error resilience.\n" \ |
|---|
| 92 | 94 | "However, with a buggy encoder (such as the ISO MPEG-4 encoder from M$) " \ |
|---|
| 93 | 95 | "this can produce a lot of errors.\n" \ |
|---|
| … | … | |
| 96 | 98 | #define BUGS_TEXT N_("Workaround bugs") |
|---|
| 97 | 99 | #define BUGS_LONGTEXT N_( \ |
|---|
| 98 | | "Try to fix some bugs\n" \ |
|---|
| | 100 | "Try to fix some bugs:\n" \ |
|---|
| 99 | 101 | "1 autodetect\n" \ |
|---|
| 100 | 102 | "2 old msmpeg4\n" \ |
|---|
| … | … | |
| 103 | 105 | "16 no padding\n" \ |
|---|
| 104 | 106 | "32 ac vlc\n" \ |
|---|
| 105 | | "64 Qpel chroma") |
|---|
| | 107 | "64 Qpel chroma.") |
|---|
| 106 | 108 | |
|---|
| 107 | 109 | #define HURRYUP_TEXT N_("Hurry up") |
|---|
| 108 | 110 | #define HURRYUP_LONGTEXT N_( \ |
|---|
| 109 | | "Allow the decoder to partially decode or skip frame(s) " \ |
|---|
| | 111 | "The decoder can partially decode or skip frame(s) " \ |
|---|
| 110 | 112 | "when there is not enough time. It's useful with low CPU power " \ |
|---|
| 111 | 113 | "but it can produce distorted pictures.") |
|---|
| … | … | |
| 135 | 137 | "this provides a big speedup." ) |
|---|
| 136 | 138 | |
|---|
| 137 | | #define LIBAVCODEC_PP_TEXT N_("ffmpeg post processing filter chains") |
|---|
| | 139 | #define LIBAVCODEC_PP_TEXT N_("FFmpeg post processing filter chains") |
|---|
| 138 | 140 | /* FIXME (cut/past from ffmpeg */ |
|---|
| 139 | 141 | #define LIBAVCODEC_PP_LONGTEXT \ |
|---|
| … | … | |
| 178 | 180 | |
|---|
| 179 | 181 | #define ENC_KEYINT_TEXT N_( "Ratio of key frames" ) |
|---|
| 180 | | #define ENC_KEYINT_LONGTEXT N_( "Allows you to specify the number of frames " \ |
|---|
| | 182 | #define ENC_KEYINT_LONGTEXT N_( "Number of frames " \ |
|---|
| 181 | 183 | "that will be coded for one key frame." ) |
|---|
| 182 | 184 | |
|---|
| 183 | 185 | #define ENC_BFRAMES_TEXT N_( "Ratio of B frames" ) |
|---|
| 184 | | #define ENC_BFRAMES_LONGTEXT N_( "Allows you to specify the number of " \ |
|---|
| | 186 | #define ENC_BFRAMES_LONGTEXT N_( "Number of " \ |
|---|
| 185 | 187 | "B frames that will be coded between two reference frames." ) |
|---|
| 186 | 188 | |
|---|
| 187 | 189 | #define ENC_VT_TEXT N_( "Video bitrate tolerance" ) |
|---|
| 188 | | #define ENC_VT_LONGTEXT N_( "Allows you to specify the video bitrate " \ |
|---|
| 189 | | "tolerance in kbit/s." ) |
|---|
| | 190 | #define ENC_VT_LONGTEXT N_( "Video bitrate tolerance in kbit/s." ) |
|---|
| 190 | 191 | |
|---|
| 191 | 192 | #define ENC_INTERLACE_TEXT N_( "Enable interlaced encoding" ) |
|---|
| 192 | | #define ENC_INTERLACE_LONGTEXT N_( "Allows you to enable dedicated " \ |
|---|
| | 193 | #define ENC_INTERLACE_LONGTEXT N_( "Enable dedicated " \ |
|---|
| 193 | 194 | "algorithms for interlaced frames." ) |
|---|
| 194 | 195 | |
|---|
| 195 | 196 | #define ENC_INTERLACE_ME_TEXT N_( "Enable interlaced motion estimation" ) |
|---|
| 196 | | #define ENC_INTERLACE_ME_LONGTEXT N_( "Allows you to enable interlaced " \ |
|---|
| | 197 | #define ENC_INTERLACE_ME_LONGTEXT N_( "Enable interlaced " \ |
|---|
| 197 | 198 | "motion estimation algorithms. It requires more CPU." ) |
|---|
| 198 | 199 | |
|---|
| 199 | | #define ENC_PRE_ME_TEXT N_( "Enable pre motion estimation" ) |
|---|
| 200 | | #define ENC_PRE_ME_LONGTEXT N_( "Allows you to enable the pre motion " \ |
|---|
| 201 | | "estimation." ) |
|---|
| | 200 | #define ENC_PRE_ME_TEXT N_( "Enable pre-motion estimation" ) |
|---|
| | 201 | #define ENC_PRE_ME_LONGTEXT N_( "Enable the pre-motion " \ |
|---|
| | 202 | "estimation algorithm.") |
|---|
| 202 | 203 | |
|---|
| 203 | 204 | #define ENC_RC_STRICT_TEXT N_( "Enable strict rate control" ) |
|---|
| 204 | | #define ENC_RC_STRICT_LONGTEXT N_( "Allows you to enable the strict rate " \ |
|---|
| | 205 | #define ENC_RC_STRICT_LONGTEXT N_( "Enable the strict rate " \ |
|---|
| 205 | 206 | "control algorithm." ) |
|---|
| 206 | 207 | |
|---|
| 207 | 208 | #define ENC_RC_BUF_TEXT N_( "Rate control buffer size" ) |
|---|
| 208 | | #define ENC_RC_BUF_LONGTEXT N_( "Allows you to specify the rate control " \ |
|---|
| 209 | | "buffer size." ) |
|---|
| | 209 | #define ENC_RC_BUF_LONGTEXT N_( "Rate control " \ |
|---|
| | 210 | "buffer size (in kbytes)." ) |
|---|
| 210 | 211 | |
|---|
| 211 | 212 | #define ENC_RC_BUF_AGGR_TEXT N_( "Rate control buffer aggressiveness" ) |
|---|
| … | … | |
| 214 | 215 | |
|---|
| 215 | 216 | #define ENC_IQUANT_FACTOR_TEXT N_( "I quantization factor" ) |
|---|
| 216 | | #define ENC_IQUANT_FACTOR_LONGTEXT N_( "Allows you to specify the " \ |
|---|
| 217 | | "quantization factor of I frames, compared with P frames (for instance " \ |
|---|
| | 217 | #define ENC_IQUANT_FACTOR_LONGTEXT N_( \ |
|---|
| | 218 | "Quantization factor of I frames, compared with P frames (for instance " \ |
|---|
| 218 | 219 | "1.0 => same qscale for I and P frames)." ) |
|---|
| 219 | 220 | |
|---|
| 220 | 221 | #define ENC_NOISE_RED_TEXT N_( "Noise reduction" ) |
|---|
| 221 | | #define ENC_NOISE_RED_LONGTEXT N_( "Allows you to enable a simple noise " \ |
|---|
| | 222 | #define ENC_NOISE_RED_LONGTEXT N_( "Enable a simple noise " \ |
|---|
| 222 | 223 | "reduction algorithm to lower the encoding length and bitrate, at the " \ |
|---|
| 223 | 224 | "expense of lower quality frames." ) |
|---|
| … | … | |
| 230 | 231 | |
|---|
| 231 | 232 | #define ENC_HQ_TEXT N_( "Quality level" ) |
|---|
| 232 | | #define ENC_HQ_LONGTEXT N_( "Allows you to specify the quality level " \ |
|---|
| | 233 | #define ENC_HQ_LONGTEXT N_( "Quality level " \ |
|---|
| 233 | 234 | "for the encoding of motions vectors (this can slow down the encoding " \ |
|---|
| 234 | 235 | "very much)." ) |
|---|
| 235 | 236 | |
|---|
| 236 | 237 | #define ENC_HURRYUP_TEXT N_( "Hurry up" ) |
|---|
| 237 | | #define ENC_HURRYUP_LONGTEXT N_( "Allows you to specify if the encoder " \ |
|---|
| 238 | | "should make on-the-fly quality tradeoffs if your CPU can't keep up with " \ |
|---|
| | 238 | #define ENC_HURRYUP_LONGTEXT N_( "The encoder " \ |
|---|
| | 239 | "can make on-the-fly quality tradeoffs if your CPU can't keep up with " \ |
|---|
| 239 | 240 | "the encoding rate. It will disable trellis quantization, then the rate " \ |
|---|
| 240 | 241 | "distortion of motion vectors (hq), and raise the noise reduction " \ |
|---|
| … | … | |
| 250 | 251 | |
|---|
| 251 | 252 | #define ENC_TRELLIS_TEXT N_( "Enable trellis quantization" ) |
|---|
| 252 | | #define ENC_TRELLIS_LONGTEXT N_( "Allows you to enable trellis " \ |
|---|
| | 253 | #define ENC_TRELLIS_LONGTEXT N_( "Enable trellis " \ |
|---|
| 253 | 254 | "quantization (rate distortion for block coefficients)." ) |
|---|
| 254 | 255 | |
|---|
| 255 | 256 | #define ENC_QSCALE_TEXT N_( "Use fixed video quantizer scale" ) |
|---|
| 256 | | #define ENC_QSCALE_LONGTEXT N_( "Allows you to specify a fixed video " \ |
|---|
| | 257 | #define ENC_QSCALE_LONGTEXT N_( "A fixed video " \ |
|---|
| 257 | 258 | "quantizer scale for VBR encoding (accepted values: 0.01 to 255.0)." ) |
|---|
| 258 | 259 | |
|---|
| 259 | 260 | #define ENC_STRICT_TEXT N_( "Strict standard compliance" ) |
|---|
| 260 | | #define ENC_STRICT_LONGTEXT N_( "Allows you to force a strict standard " \ |
|---|
| | 261 | #define ENC_STRICT_LONGTEXT N_( "Force a strict standard " \ |
|---|
| 261 | 262 | "compliance when encoding (accepted values: -1, 0, 1)." ) |
|---|
| 262 | 263 | |
|---|
| 263 | 264 | #define ENC_LUMI_MASKING_TEXT N_( "Luminance masking" ) |
|---|
| 264 | | #define ENC_LUMI_MASKING_LONGTEXT N_( "Allows you to raise the quantizer for " \ |
|---|
| | 265 | #define ENC_LUMI_MASKING_LONGTEXT N_( "Raise the quantizer for " \ |
|---|
| 265 | 266 | "very bright macroblocks (default: 0.0)." ) |
|---|
| 266 | 267 | |
|---|
| 267 | 268 | #define ENC_DARK_MASKING_TEXT N_( "Darkness masking" ) |
|---|
| 268 | | #define ENC_DARK_MASKING_LONGTEXT N_( "Allows you to raise the quantizer for " \ |
|---|
| | 269 | #define ENC_DARK_MASKING_LONGTEXT N_( "Raise the quantizer for " \ |
|---|
| 269 | 270 | "very dark macroblocks (default: 0.0)." ) |
|---|
| 270 | 271 | |
|---|
| 271 | 272 | #define ENC_P_MASKING_TEXT N_( "Motion masking" ) |
|---|
| 272 | | #define ENC_P_MASKING_LONGTEXT N_( "Allows you to raise the quantizer for " \ |
|---|
| | 273 | #define ENC_P_MASKING_LONGTEXT N_( "Raise the quantizer for " \ |
|---|
| 273 | 274 | "macroblocks with a high temporal complexity (default: 0.0)." ) |
|---|
| 274 | 275 | |
|---|
| 275 | 276 | #define ENC_BORDER_MASKING_TEXT N_( "Border masking" ) |
|---|
| 276 | | #define ENC_BORDER_MASKING_LONGTEXT N_( "Allows you to raise the quantizer " \ |
|---|
| | 277 | #define ENC_BORDER_MASKING_LONGTEXT N_( "Raise the quantizer " \ |
|---|
| 277 | 278 | "for macroblocks at the border of the frame (default: 0.0)." ) |
|---|
| 278 | 279 | |
|---|