<div dir="ltr">Hi,<div><br></div><div>I am having problems with sending a video stream to Icecast server. On the icecast management platform my stream is being considered as an audio stream?? and I am unable to play it</div><div><br></div><div>I am with no ideas on how to solve this. Am I doing something wrong? Please take a look on the code bellow</div><div><br></div><div>Thanks in advance</div><div><br></div><div>genre     various<br>listener_peak  0<br>listeners    0<br>listenurl    <a href="http://192.168.11.61:8000/gcs.ogg">http://192.168.11.61:8000/gcs.ogg</a><br>max_listeners  unlimited<br>public       0<br>server_description   Unspecified description<br>server_name    Unspecified name<br>server_type   audio/mpeg<br>slow_listeners      0<br>source_ip    192.168.11.61<br>stream_start     Thu, 11 Jul 2019 15:56:46 +0100<br>stream_start_iso8601   2019-07-11T15:56:46+0100<br>total_bytes_read      877800<br>total_bytes_sent        0<br>user_agent   Lavf/58.20.100<br></div><div><br></div><div><br></div><div><b>Code:</b></div>            int ret;<br>            _pOutputFormatContext = ffmpeg.avformat_alloc_context();<br>            fixed (AVFormatContext** ppOutputFormatContext = &_pOutputFormatContext)<br>            {<br>                ret = ffmpeg.avformat_alloc_output_context2(ppOutputFormatContext, null, "webm", configuration.Destination);<br>                if (ret < 0)<br>                {<br>                    return false;<br>                }<br>            }<br><br>            // Configure output video stream<br>            _pOutputStream = ffmpeg.avformat_new_stream(_pOutputFormatContext, null);<br><br>            AVStream* pInputVideoStream = null;<br><br>            for (var i = 0; i < _pInputFormatContext->nb_streams; i++)<br>            {<br>                if (_pInputFormatContext->streams[i]->codec->codec_type == AVMediaType.AVMEDIA_TYPE_VIDEO)<br>                {<br>                    pInputVideoStream = _pInputFormatContext->streams[i];<br>                }<br>            }<br><br>            _pOutputStream->avg_frame_rate = pInputVideoStream->avg_frame_rate;<br>            _pOutputStream->time_base = pInputVideoStream->time_base;<br>            _pOutputStream->sample_aspect_ratio = pInputVideoStream->sample_aspect_ratio;<br>            ffmpeg.avcodec_parameters_copy(_pOutputStream->codecpar, pInputVideoStream->codecpar);<br>            _pOutputStream->codecpar->codec_type = AVMediaType.AVMEDIA_TYPE_VIDEO;<br>            _pOutputStream->codecpar->codec_id = AVCodecID.AV_CODEC_ID_THEORA;<br><br>            fixed (AVFormatContext** ppOutputFormatContext = &_pOutputFormatContext)<br>            {<br>                ret = ffmpeg.avio_open(&_pOutputFormatContext->pb, configuration.Destination, ffmpeg.AVIO_FLAG_WRITE);<br>                if (ret < 0)<br>                {<br>                    return false;<br>                }<br>            }<br><br>            ret = ffmpeg.avformat_write_header(_pOutputFormatContext, null);<br><br>            if (ret < 0)<br>            {<br>                return false;<br>            }<br><br>            ffmpeg.av_dump_format(_pOutputFormatContext, 0, configuration.Destination, 1);<br><br><div>            return true; <br clear="all"><div><br></div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Pedro Constantino</div></div></div>