[FFmpeg-devel] [PATCH 5/5] lavd: add uncoded_frame test program.
Lukasz Marek
lukasz.m.luki at gmail.com
Thu Feb 6 00:24:13 CET 2014
On 05.02.2014 10:06, Nicolas George wrote:
> Le septidi 17 pluviôse, an CCXXII, Lukasz Marek a écrit :
>> I compiled. I tried to use it, but without any success.
>> Can you pass some example command lines?
>
> uncoded_frame-test some_video xv:- alsa:default
>
> or
>
> uncoded_frame-test some_video uncodedframecrc:pipe:1
>
> (the "-" -> "pipe:1" case is not handled)
>
> ALSA does not support planar frames yet, so you need the audio to be decoded
> in packet format; opus works.
>
> I should probably add an example in the comments at least.
>
> Regards,
>
I figured this out finally, but this could be changed:
+ if (argc < 3 || argc > 4) {
+ av_log(NULL, AV_LOG_ERROR, "Usage: %s input out [out2]\n",
+ argv[0]);
+ exit(1);
+ }
into
av_log(NULL, AV_LOG_ERROR,
"Usage: %s input device:dev_name [device2:dev_name]\n", argv[0]);
and maybe not AV_LOG_ERROR but AV_LOG_INFO.
Other thing that could be better it reject input files with more than 1
stream. But it is nice to have suck testing tool anyway.
--
Best Regards,
Lukasz Marek
Royale with Cheese.
More information about the ffmpeg-devel
mailing list