Cannot play MJPG encoded AVI file

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
lapsed_time
New Cone
New Cone
Posts: 5
Joined: 18 Oct 2024 18:23

Cannot play MJPG encoded AVI file

Postby lapsed_time » 18 Oct 2024 18:27

I'm taking timelapse photo recordings with a specialty camera. When I try to play the media back in VLC or WMP, the screen stutters in black frames for the extent of the recording, but no media is played. Media information via VLC shows that the video codec is MJPG, and the file ending is AVI (see below). If I convert this video with Handbrake to MP4, I can play it, but I'd rather not have to take that step. Can anyone help? Thank you.

Title: DSCF0002.AVI
Codec: Motion JPEG Video (MJPG)
Type: Video
Video resolution: 6480x4860
Buffer dimensions: 6480x4864
Frame rate: 10
Decoded format: Planar 4:2:2 YUV full scale
Orientation: Top left
Color space: ITU-R BT.601 Range
Chroma location: Center

EDIT - UPDATE: I was able to play the video with ffmpeg. I assumed that it would be playable with VLC as well because it has the decoder for MJPG, but I must be missing something.

Lotesdelere
Cone Master
Cone Master
Posts: 9992
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Cannot play MJPG encoded AVI file

Postby Lotesdelere » 19 Oct 2024 14:55

Please open Tools -> Messages (set Verbosity to 2) before you start the playback, keep the messages window open during the whole process and then paste the full resulting log here or on Pastebin.com or on Justpaste.it if it's too long.

Also upload a short sample of your original problematic file to WeTransfer.com or Disroot.org and then post the link to the file here.
https://wetransfer.com
https://upload.disroot.org

Frame rate: 10

VLC has troubles for playing some low FPS videos, it's a known issue for a long time and still awaiting for a fix.
I've read it should be fixed later in VLC 4.

lapsed_time
New Cone
New Cone
Posts: 5
Joined: 18 Oct 2024 18:23

Re: Cannot play MJPG encoded AVI file

Postby lapsed_time » 25 Oct 2024 17:48

Thank you for responding to my post.

I logged the playback but it's so long that I had to make two Pastebin uploads. It looks like the log repeats the same information over and over throughout the clip with minor variations.

I don't know how to shorten my original problematic file, and the file itself is ~2 gigs. Can you advise on how to shorten to a reasonable but useful size for upload? Thank you again!

1st half of log: https://pastebin.com/WeAwNVbH
2nd half of log: https://pastebin.com/4SbFG72C

Lotesdelere
Cone Master
Cone Master
Posts: 9992
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Cannot play MJPG encoded AVI file

Postby Lotesdelere » 26 Oct 2024 14:18

Code: Select all

main debug: resized to 6480x4860 ... main debug: resized to 3840x1056 main debug: VoutDisplayEvent 'resize' 3840x1056 direct3d11 debug: Created the D3D11 device type 1 level b100. direct3d11 debug: different 0000 device pci\ven_10de&dev_1cb1 vs USB\VID_17E9&PID_4323&MI_01 direct3d11 debug: different 0001 device pci\ven_10de&dev_1cb1 vs USB\VID_17E9&PID_4323&MI_00 ... direct3d11 debug: Using pixel format YUVA for chroma J422 main debug: VoutDisplayEvent 'resize' 6496x4899 direct3d11 debug: using GPU render fence direct3d11 debug: Direct3D11 resources created direct3d11 debug: Direct3D11 device adapter successfully initialized direct3d11 debug: Direct3D11 Open Succeeded main debug: using vout display module "direct3d11" main debug: A filter to adapt decoder J422 to display YUVA is needed main debug: looking for video converter module matching "any": 24 candidates swscale debug: 6480x4860 (6480x4864) chroma: J422 -> 6480x4860 (6480x4864) chroma: YUVA with scaling using Bicubic (good quality)

What is your OS ?
What is your hardware, especially CPU and GPU ?

Looks like this video has a very large resolution, please upload a sample file as requested in my previous post.

lapsed_time
New Cone
New Cone
Posts: 5
Joined: 18 Oct 2024 18:23

Re: Cannot play MJPG encoded AVI file

Postby lapsed_time » 28 Oct 2024 20:50

What is your OS ?
What is your hardware, especially CPU and GPU ?
OS: Windows 11 Pro x64
CPU: AMD Ryzen 5 5600
GPU: NVidia Quadro P1000

Looks like this video has a very large resolution, please upload a sample file as requested in my previous post.
I don't know how to cut the video into a small sample. Can you advise on software? Thank you again!

Lotesdelere
Cone Master
Cone Master
Posts: 9992
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Cannot play MJPG encoded AVI file

Postby Lotesdelere » 29 Oct 2024 12:41

Cut it with DGsplit and read here about how to do it:
https://forum.videolan.org/viewtopic.ph ... 35#p193335

200 MB max should be enough but a full complete short file is better.

lapsed_time
New Cone
New Cone
Posts: 5
Joined: 18 Oct 2024 18:23

Re: Cannot play MJPG encoded AVI file

Postby lapsed_time » 29 Oct 2024 15:20

Cut it with DGsplit and read here about how to do it:

Perfect! Thank you.

Link to 200mb chunk: https://upload.disroot.org/r/puyVDPxB#m ... 2kBcDzqqY=

If you end up needing a "full complete short file", please advise and I will provide. The file above is the first 200 mb chunk of the ~2 gig total file.

Lotesdelere
Cone Master
Cone Master
Posts: 9992
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Cannot play MJPG encoded AVI file

Postby Lotesdelere » 30 Oct 2024 12:38

Yes, I can reproduce the issue while it's playing fine with some other players.
You should create a new report ticket on the VLC issues tracker with your above report, the links to your messages logs, the link to your sample file and the link to this thread:
https://code.videolan.org/videolan/vlc/-/issues

If possible, because of this:
https://forum.videolan.org/viewtopic.ph ... 27#p538427

lapsed_time
New Cone
New Cone
Posts: 5
Joined: 18 Oct 2024 18:23

Re: Cannot play MJPG encoded AVI file

Postby lapsed_time » 09 Nov 2024 03:50

Thank you, will do.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 56 guests