<div dir="ltr">I am trying to play a video file.<div>It is failing saying</div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><i>File /tmp/video does not exist in any format
</i>><i> Unable to open /tmp/video (format ulaw|h263|h264)</i></pre></div><div><br></div><div>I am setting the video codec h263 in the call file. File exists and is readable by all.</div><div><br></div><div>looking at the code and attaching with the debugger.</div><div>The last line below is where its failing. Its passing the file exists part and seems like its checking for AST_MEDIA_TYPE_AUDIO and of course its h263 video - so its failing.</div><div><br></div><div>Then I do not see any case for a AST_MEDIA_TYPE_VIDEO.</div><div><br></div><div>What am I missing here to call a softphone and play a video file?</div><div><br></div><div>Thanks,</div><div><br></div><div>Jerry</div><div>------------</div><div><div>struct ast_filestream *ast_openstream_full(struct ast_channel *chan, const char *filename, const char *preflang, int asis)</div><div>{</div><div>        /*</div><div>         * Use fileexists_core() to find a file in a compatible</div><div>         * language and format, set up a suitable translator,</div><div>         * and open the stream.</div><div>         */</div><div>        struct ast_format_cap *file_fmt_cap;</div><div>        int res;</div><div>        int buflen;</div><div>        char *buf;</div><div><br></div><div>        if (!asis) {</div><div>                /* do this first, otherwise we detect the wrong writeformat */</div><div>                ast_stopstream(chan);</div><div>                if (ast_channel_generator(chan))</div><div>                        ast_deactivate_generator(chan);</div><div>        }</div><div>        if (preflang == NULL)</div><div>                preflang = "";</div><div>        buflen = strlen(preflang) + strlen(filename) + 4;</div><div>        buf = ast_alloca(buflen);</div><div><br></div><div>        if (!(file_fmt_cap = ast_format_cap_alloc(AST_FORMAT_CAP_FLAG_DEFAULT))) {</div><div>                return NULL;</div><div>        }</div><div>        if (!fileexists_core(filename, NULL, preflang, buf, buflen, file_fmt_cap) ||</div><div>                !ast_format_cap_has_type(file_fmt_cap, AST_MEDIA_TYPE_AUDIO)) {</div></div></div>