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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Display Modes
Old 16th February 2026, 11:02   #1  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 40
Strange artifcats after container swap

Hello,

What causes these strange artifcats for one frame after simple container swap from MKV to MP4 with ffmpeg (-c:v copy).
They appear random and I cannot reproduce them.

I first thought that it could've something to do with CPU or SSD peaks produced by other processes during converting.
But I did some stability tests with CPU, RAM and SSD without any errors/problems.

Frame 76 in this sample is defect.
Sample-Video
Defect frame
FLX90 is offline   Reply With Quote
Old 17th February 2026, 21:07   #2  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 40
I don't have a solution for this.
But I know how to detect it:

ffmpeg -v warning -i sample.m4v -map 0 -map -0:s -f null NUL
(this only works for the origin container, not for the sample slice ...)

If anybody know a more reliable/sensitive way to detect these errors/artifacts, feel free to tell me.
FLX90 is offline   Reply With Quote
Old 17th February 2026, 21:39   #3  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 150
We can't replicate the issue because you gave the MP4 result. We need the original source MKV file. Also the full command line you used to go from MKV to MP4.
Columbo is offline   Reply With Quote
Old 18th February 2026, 19:07   #4  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 40
Unfortunately this is not possible because the file is simply to big ...

Code:
ffmpeg^
 -i MARVEL_STUDIOS.Title1491.mkv -i MARVEL_STUDIOS.Title1491_german_forced.srt -i MARVEL_STUDIOS.Title1491_german.srt -i MARVEL_STUDIOS.Title1491_english_forced.srt -i MARVEL_STUDIOS.Title1491_english.srt^
 -filter_complex "[0:a:0]channelmap=map=FL-FL|FR-FR|FC-FC|LFE-LFE|BL-BL|BR-BR|SL-FLC|SR-FRC:channel_layout=7.1(wide)[newlayout1]"^
 -filter_complex "[0:a:1]channelmap=map=FL-FL|FR-FR|FC-FC|LFE-LFE|BL-BL|BR-BR|SL-FLC|SR-FRC:channel_layout=7.1(wide)[newlayout2]"^
 -map 0:0 -map "[newlayout1]" -map "[newlayout2]" -map 1:0 -map 2:0 -map 3:0 -map 4:0^
 -metadata:s:v:0 handler_name="AVC"^
 -metadata:s:a:0 language=deu -metadata:s:a:0 handler_name="Dolby Digital Plus"^
 -metadata:s:a:1 language=eng -metadata:s:a:1 handler_name="DTS-HD Master Audio"^
 -metadata:s:s:0 language=deu -metadata:s:s:0 handler_name="German (forced)"^
 -metadata:s:s:1 language=deu -metadata:s:s:1 handler_name="German"^
 -metadata:s:s:2 language=eng -metadata:s:s:2 handler_name="English (forced)"^
 -metadata:s:s:3 language=eng -metadata:s:s:3 handler_name="English"^
 -movflags disable_chpl^
 -c:s mov_text -c:v copy -c:a alac -sample_fmt:a:0 s16p^
 MARVEL_STUDIOS.m4v

Last edited by FLX90; 18th February 2026 at 19:14.
FLX90 is offline   Reply With Quote
Old 20th February 2026, 09:26   #5  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Location: Between my two ears
Posts: 1,004
2026-02-20_162522.png
Z2697 is offline   Reply With Quote
Old 21st February 2026, 12:23   #6  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 40
Quote:
Originally Posted by Z2697 View Post
Oh nice.
I don't know how these NAL- and SLH-type errors could occur but I'm interested in this detection tool.

Can you tell the name of this tool please?
FLX90 is offline   Reply With Quote
Old 21st February 2026, 13:13   #7  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Location: Between my two ears
Posts: 1,004
Quote:
Originally Posted by FLX90 View Post
Oh nice.
I don't know how these NAL- and SLH-type errors could occur but I'm interested in this detection tool.

Can you tell the name of this tool please?
It's VQ Analyzer.
It's expensive and has a 3 day trial.

I don't understand the errors too, but the video looks like it's from BD, it has open-gop, when it's cut there can be some unexpected issues

Last edited by Z2697; 21st February 2026 at 13:34.
Z2697 is offline   Reply With Quote
Old 21st February 2026, 16:21   #8  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Location: Between my two ears
Posts: 1,004
I compared your sample with a full video I found from somewhere and cut at the same position, the "0xb624ba -th" byte in the raw AVC stream is changed from 0x90 to 0x91 in your sample.
Nothing too complicated, just a bit flip, LOL.

You can search for the corrupted block's byte sequence to confirm where did this corruption happen.
(Ideally, extract to raw bitstream, but the sequence is a marcoblock so unlikely to be broken up in contrainers, so search it directly should work as well)

2D BF F8 07 D0 40 C0 7F A5 2B 8A AF 3D 91 F1 18 03 D4 6F DC 02 BE 3D 8C 51 E4 E2
2D BF F8 07 D0 40 C0 7F A5 2B 8A AF 3D 90 F1 18 03 D4 6F DC 02 BE 3D 8C 51 E4 E2

Last edited by Z2697; 21st February 2026 at 16:34.
Z2697 is offline   Reply With Quote
Old 21st February 2026, 19:59   #9  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 40
Crazy. I changed the byte in full file and the video stream is fixed.

But ffmpeg output remains unchanged:

Code:
ffmpeg -v error -i "full.m4v" -map 0 -map -0:s -f null NUL
[h264 @ 000001e07b8db240] left block unavailable for requested intra mode
[h264 @ 000001e07b8db240] error while decoding MB 0 43, bytestream 34277
FLX90 is offline   Reply With Quote
Old 23rd February 2026, 07:58   #10  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Location: Between my two ears
Posts: 1,004
So the corruption happens in the source MKV?
Z2697 is offline   Reply With Quote
Old 23rd February 2026, 21:40   #11  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 40
No, the source MKV has no errors.
Only the M4V (MP4).

Ah I don't get it ...
I ran the above command with loglevel info and the errors occur at 00:15:26.88 ...
But there is no visible error at this time.
The visible error is at 1:40:12.63 (but there's nothing in the ffmpeg log)...
So I don't know.

I think I double check with:

Quote:
ffmpeg -v warning -i input.m4v -map 0 -map -0:s -f null NUL

VQAnalyzerConsole.exe input.h264 -regress -errors input.log
Then I should be sure that there's no error ...
FLX90 is offline   Reply With Quote
Old 24th February 2026, 00:33   #12  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Location: Between my two ears
Posts: 1,004
Silent bit corruption is very dangerous, I suggest you run the swapping command again (and more), if it's recurring problem, you should find the root cause and fix it.
Z2697 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.