Revision 0fc2c0f6

View differences:

doc/ffmpeg-doc.texi
505 505
@item -newvideo
506 506
Add a new video stream to the current output stream.
507 507

  
508
@item -vlang @var{code}
509
Set the ISO 639 language code (3 letters) of the current video stream.
510

  
508 511
@end table
509 512

  
510 513
@section Advanced Video Options
ffmpeg.c
134 134
static int video_discard = 0;
135 135
static char *video_codec_name = NULL;
136 136
static int video_codec_tag = 0;
137
static char *video_language = NULL;
137 138
static int same_quality = 0;
138 139
static int do_deinterlace = 0;
139 140
static int top_field_first = -1;
......
3179 3180
        }
3180 3181
    }
3181 3182
    nb_ocodecs++;
3183
    if (video_language) {
3184
        av_metadata_set(&st->metadata, "language", video_language);
3185
        av_freep(&video_language);
3186
    }
3182 3187

  
3183 3188
    /* reset some key parameters */
3184 3189
    video_disable = 0;
......
3913 3918
    { "dc", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&intra_dc_precision}, "intra_dc_precision", "precision" },
3914 3919
    { "vtag", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_video_tag}, "force video tag/fourcc", "fourcc/tag" },
3915 3920
    { "newvideo", OPT_VIDEO, {(void*)opt_new_video_stream}, "add a new video stream to the current output stream" },
3921
    { "vlang", HAS_ARG | OPT_STRING | OPT_VIDEO, {(void *)&video_language}, "set the ISO 639 language code (3 letters) of the current video stream" , "code" },
3916 3922
    { "qphist", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, { (void *)&qp_hist }, "show QP histogram" },
3917 3923
    { "force_fps", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&force_fps}, "force the selected framerate, disable the best supported framerate selection" },
3918 3924

  

Also available in: Unified diff