Commit 4e86c7a6 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

* transcode: follow the same logic for ab than vb. (ie for a small value

it's used as kb/s for higher ones it's b/s).
Just a remember, transcode options are:
acodec= mpga,a52
    ab (kb/s)
vcodec= mpgv,mp4v,h263,DIV1,DIV2,DIV3,I420,I422,I444,RV24,YUY2
    width
    height
    vb (kb/s)
    vt (b/s)
    deinterlace
    croptop
    cropbottom
    cropleft
    cropright
    keyint
    hq
    qmin (between 1 and 32)
    qmax (between 1 and 32)
only acodec and/or vcodec are mandatories (and it's a good idea to always
define vb,vt, and/or ab)
parent cdd8ef24
......@@ -2,7 +2,7 @@
* transcode.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: transcode.c,v 1.14 2003/05/03 18:11:42 fenrir Exp $
* $Id: transcode.c,v 1.15 2003/05/04 18:51:34 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
......@@ -145,6 +145,10 @@ static int Open( vlc_object_t *p_this )
if( ( val = sout_cfg_find_value( p_stream->p_cfg, "ab" ) ) )
{
p_sys->i_abitrate = atoi( val );
if( p_sys->i_abitrate < 4000 )
{
p_sys->i_abitrate *= 1000;
}
}
msg_Dbg( p_stream, "codec audio=%4.4s %dHz %d channels %dKb/s",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment