Cannot play MJPG encoded AVI file
Posted: 18 Oct 2024 18:27
by lapsed_time
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.
Re: Cannot play MJPG encoded AVI file
Posted: 19 Oct 2024 14:55
by Lotesdelere
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.
Re: Cannot play MJPG encoded AVI file
Posted: 25 Oct 2024 17:48
by lapsed_time
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
Re: Cannot play MJPG encoded AVI file
Posted: 26 Oct 2024 14:18
by Lotesdelere
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.
Re: Cannot play MJPG encoded AVI file
Posted: 28 Oct 2024 20:50
by lapsed_time
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!
Re: Cannot play MJPG encoded AVI file
Posted: 29 Oct 2024 12:41
by Lotesdelere
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.
Re: Cannot play MJPG encoded AVI file
Posted: 29 Oct 2024 15:20
by lapsed_time
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.
Re: Cannot play MJPG encoded AVI file
Posted: 30 Oct 2024 12:38
by Lotesdelere
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
Re: Cannot play MJPG encoded AVI file
Posted: 09 Nov 2024 03:50
by lapsed_time
Thank you, will do.