![](https://static.wixstatic.com/media/cb6ed6_2c2d559a11964b82a71a4c6b7ae0e404~mv2.jpeg/v1/fill/w_980,h_784,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/cb6ed6_2c2d559a11964b82a71a4c6b7ae0e404~mv2.jpeg)
A:
Thank you for all your comments. I have tested many functions and solutions of other users. But all of them failed to open the video file I specified. I also tried to install "ffplay" and followed the instructions on the website, but it failed to work. Finally, I read the document at this website and found the suggested function of returning the error code. I used the suggested function and the video file can now be opened. The codes I used are as follows:
CODE:
struct libvlc_audio_format_t {
unsigned char b; /*!name)) {
a = 1;
} else {
a = 0;
}
if (0 == strcmp("mp3", format->name)) {
b = 1;
} else {
b = 0;
}
format->b = b;
format->width = 1;
format->depth = 1;
format->interleaving = a;
return 0;
}
CODE:
libvlc_audio_format_t format = {};
/* Open a file */
libvlc_media_t *file_open(const char *url, const char *format,...);
/* Get the file at a path */
libvlc_media_t *file_get_at_path(const char * be359ba680
Related links:
Comments