VLC not playing clips less than 1 second

*nix specific usage questions
lmitcham
New Cone
New Cone
Posts: 4
Joined: 31 May 2023 18:10

VLC not playing clips less than 1 second

Postby lmitcham » 19 Oct 2023 15:17

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,

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC not playing clips less than 1 second

Postby Rémi Denis-Courmont » 19 Oct 2023 17:13

That error means that there's no data, i.e. the file is zero bytes long.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

lmitcham
New Cone
New Cone
Posts: 4
Joined: 31 May 2023 18:10

Re: VLC not playing clips less than 1 second

Postby lmitcham » 19 Oct 2023 19:03

I figured out the issue.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 30 guests