I am developing on a Raspberry Pi Zero 2W running Bullseye OS and am attempting to play short video clips.
My VLC info is : VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2)
My code section of interest is :
video_file = '/var/tmp/video.mp4'
instance = vlc.Instance("--verbose=0","--no-xlib","--vout=mmal_vout")
media_list = instance.media_list_new([video_file])
list_player = instance.media_list_player_new()
list_player.set_media_list(media_list)
list_player.play()
time.sleep(TriggerOnTime.seconds)
list_player.stop()
I can play long clips in both h264 and mp4 formats with no problems, but I get the following errors when I play a clip of less than a second in either format ...
cache_read stream error: cannot pre fill buffer
mjpeg demux error: cannot peek
If I copy the same files over to my PC, I can view them with no issues, so I do not believe that they are corrupt files.
Is this a known limitation of VLC or is there something that I am missing?
Thank you,