If I need to write a new atom under stsd for my stream in the mov muxer <https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/movenc.c> (mov_write_stsd_tag), is it appropriate to indicate that through the AVStream metadata rather than the codec_tag?
On Mon, Jul 10, 2017 at 1:48 AM, wm4 <nfx...@googlemail.com> wrote: > On Fri, 7 Jul 2017 15:24:02 -0700 > "Louis O'Bryan" <louiso-at-google....@ffmpeg.org> wrote: > > > > +static av_cold int encode_init(AVCodecContext *avctx) { > > > > + // Use dummy values for the height and width. > > > > + avctx->width = DUMMY_ENCODER_SIZE; > > > > + avctx->height = DUMMY_ENCODER_SIZE; > > > > + avctx->max_pixels = DUMMY_ENCODER_SIZE; > > > What? This makes no sense. > > > > Using avcodec_encode_video2() seems to require that the width and height > be > > nonzero. What is the recommended way to avoid that? > > Well, that API is for video. So I guess it's natural that it errors out > if some basic parameters that would be necessarily always required for > video are not set. There are other APIs for audio and subtitles. Also, > these API functions are deprecated. > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel