Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link | |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,696
|
ffmpeg and VA-API: How to handle YUV 4:2:2 MJPG?
The question was originally posted in the German doom9/Gleitz board, but we seem to lack of experts, so I will forward it here (because the original poster is not fluent in English and also has to wait for 5 days after registration):
Quote:
Last edited by LigH; 29th May 2018 at 10:15. |
|
![]() |
![]() |
![]() |
#2 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,185
|
Shame the original poster is not using VirtualDub2, as it can open the mjpg.avi container file fine
![]()
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
![]() |
![]() |
![]() |
#3 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,696
|
May work under Linux. But that's not his workflow... and VDub2 won't use VA-API. In the meantime ... he even wonders if it may be a bug in intel's VA-API part of the graphic driver.
|
![]() |
![]() |
![]() |
#4 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,185
|
If it helps... I'm currently using a very cheap Asus laptop with Intel(R) HD graphics, which can play and display the 'test 01' sample just fine....
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
Last edited by SeeMoreDigital; 29th May 2018 at 19:35. |
![]() |
![]() |
![]() |
#5 | Link |
Registered User
Join Date: Mar 2003
Posts: 478
|
I would guess that the GPU simply cannot decode 4:2:2 JPEGs.
I'm not even sure that it supports decoding MJPEG at all as I don't see a MJPEG entry point. Some MJPEGs have different headers for the JPEGs so that it's not even a valid JPEG on its own. In addition to that I guess that the GPU just gets fed the direct video bitstream via the VA API. Even if the MJPEG only contains baseline JPEGs (the only ones supported) I doubt that a standard JPEG decoder could decode a MJPEG bitstream. I'd just use software decode as I don't think that a GPU decode would be noticable faster/efficient for JPEGs on this CPU. |
![]() |
![]() |
![]() |
#6 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,696
|
Indeed, before he knows whether the GPU is able or the driver lacks support ... software decoding may be the simpler solution, and possibly faster without the GPU transfer overhead.
|
![]() |
![]() |
![]() |
#7 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,329
|
From a performance standpoint, (M)JPEG hardware decoding is usually not worth it anyway, unless you plan to do full zero-copy on GPU processing from decode to encode, and even then it will depend on the decoding speed of your CPU if its any faster.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|