return 1;
}
- /* register codecs and formats and other lavf/lavc components*/
- av_register_all();
avformat_network_init();
op = argv[1];
}
input_filename = argv[1];
- /* register codecs and formats and other lavf/lavc components*/
- av_register_all();
-
/* slurp file content into buffer */
ret = av_file_map(input_filename, &buffer, &buffer_size, 0, NULL);
if (ret < 0)
filename = argv[1];
outfilename = argv[2];
- /* register all the codecs */
- avcodec_register_all();
-
pkt = av_packet_alloc();
/* find the MPEG audio decoder */
filename = argv[1];
outfilename = argv[2];
- avcodec_register_all();
-
pkt = av_packet_alloc();
if (!pkt)
exit(1);
video_dst_filename = argv[2];
audio_dst_filename = argv[3];
- /* register all formats and codecs */
- av_register_all();
-
/* open input file, and allocate format context */
if (avformat_open_input(&fmt_ctx, src_filename, NULL, NULL) < 0) {
fprintf(stderr, "Could not open source file %s\n", src_filename);
}
filename = argv[1];
- /* register all the codecs */
- avcodec_register_all();
-
/* find the MP2 encoder */
codec = avcodec_find_encoder(AV_CODEC_ID_MP2);
if (!codec) {
filename = argv[1];
codec_name = argv[2];
- avcodec_register_all();
-
/* find the mpeg1video encoder */
codec = avcodec_find_encoder_by_name(codec_name);
if (!codec) {
}
src_filename = argv[1];
- av_register_all();
-
if (avformat_open_input(&fmt_ctx, src_filename, NULL, NULL) < 0) {
fprintf(stderr, "Could not open source file %s\n", src_filename);
exit(1);
exit(1);
}
- av_register_all();
avfilter_register_all();
if ((ret = open_input_file(argv[1])) < 0)
exit(1);
}
- av_register_all();
avfilter_register_all();
if ((ret = open_input_file(argv[1])) < 0)
in_uri = argv[1];
out_uri = argv[2];
- av_register_all();
avformat_network_init();
if ((ret = av_dict_set(&options, "listen", "2", 0)) < 0) {
return -1;
}
- av_register_all();
-
type = av_hwdevice_find_type_by_name(argv[1]);
if (type == AV_HWDEVICE_TYPE_NONE) {
fprintf(stderr, "Device type %s is not supported.\n", argv[1]);
return 1;
}
- av_register_all();
if ((ret = avformat_open_input(&fmt_ctx, argv[1], NULL, NULL)))
return ret;
AVDictionary *opt = NULL;
int i;
- /* Initialize libavcodec, and register all codecs and formats. */
- av_register_all();
-
if (argc < 2) {
printf("usage: %s output_file\n"
"API example program to output a media file with libavformat.\n"
int ret, i;
- av_register_all();
-
if (argc < 3) {
fprintf(stderr, "Usage: %s <input file> <output file>\n", argv[0]);
return 1;
in_filename = argv[1];
out_filename = argv[2];
- av_register_all();
-
if ((ret = avformat_open_input(&ifmt_ctx, in_filename, 0, 0)) < 0) {
fprintf(stderr, "Could not open input file '%s'", in_filename);
goto end;
exit(1);
}
- /* Register all codecs and formats so that they can be used. */
- av_register_all();
/* Open the input file for reading. */
if (open_input_file(argv[1], &input_format_context,
&input_codec_context))
return 1;
}
- av_register_all();
avfilter_register_all();
if ((ret = open_input_file(argv[1])) < 0)
goto close;
}
- avcodec_register_all();
-
err = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI,
NULL, NULL, 0);
if (err < 0) {
return -1;
}
- av_register_all();
-
ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI, NULL, NULL, 0);
if (ret < 0) {
fprintf(stderr, "Failed to create a VAAPI device. Error code: %s\n", av_err2str(ret));