Thank you man it worked!!!!
On 14.02.18 01:44, salsaman wrote:
You may need something like:
/* Some formats want stream headers to be separate. */
if (oc->oformat->flags & AVFMT_GLOBALHEADER)
c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
where oc is your AvFormatContext * and c is your AvCodecContext.
Gabriel.
http://lives-video.com
https://www.openhub.net/accounts/salsaman
On Tue, Feb 13, 2018 at 11:14 AM, Yuriy Pryyma <priymayu...@gmail.com
<mailto:priymayu...@gmail.com>> wrote:
I have set output format to dash in muxing.c(I have removed audio
stream)
Here:
avformat_alloc_output_context2(&oc, NULL, "dash", filename);
Program generated "chunk-stream0-00001.m4s" "init-stream0.m4s"
"main.mpd"
Looks like everything is good, but video is black when playing
using MP4Client
Note that other containers(.avi, .ts) looks good.
During generation that was warnings
[dash @ 0xca1aa0] Codec for stream 0 does not use global
headers but container format requires global headers
[mp4 @ 0x11f9e00] Codec for stream 0 does not use global
headers but container format requires global headers
What I`m doing wrong?
Thank you in advance.
Sorry by chance send to "libav-user@ffmpeg.org
<mailto:libav-user@ffmpeg.org>"
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org <mailto:Libav-user@ffmpeg.org>
http://ffmpeg.org/mailman/listinfo/libav-user
<http://ffmpeg.org/mailman/listinfo/libav-user>
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user