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.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st August 2023, 16:50   #1  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 485
Skipping NAL Unit 63

I am encoding videos and when I do my dolby vision files I get the message in the subject over and over again thru the entire encode process. Basic encode commands are:

Code:
ffmpeg -i <source>.mkv -sn -an -f yuv4mpegpipe -strict -1 -pix_fmt yuv420p10le - | x265-10b - --input-depth 10 --output-depth 10 --y4m --preset slow --hdr10 --hdr10-opt --high-tier --repeat-headers --crf 19 --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)" --max-cll "1000,629" --chromaloc 2 --no-sao --range limited --keyint 24 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --dolby-vision-rpu rpu.bin --dolby-vision-profile 8.1 --vbv-bufsize 160000 --vbv-maxrate 160000 <output>.hevc
Should I just be ignoring these constant messages scrolling on the screen or is there a fix/alternative?
jriker1 is offline   Reply With Quote
Old 21st August 2023, 17:52   #2  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,817
It's harmless. ffmpeg doesn't have all DV profiles implemented in decoding, so you get that message.
__________________
TV: Samsung QE50Q60T AVR: Denon AVR-X1700H CD: Yamaha CD-S300 Tuner: TechniSat 143v3 BD: Samsung UBD-M8500 Speakers: Klipsch Reference Phono: Audio-Technica AT-LP120X Amp: Marantz PM6007
microchip8 is online now   Reply With Quote
Old 21st August 2023, 22:12   #3  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 485
Thanks. I'll ignore it but since it's so pervasive on the console window scrolling thru what looks like millions of these messages, guessing it's effecting thruput.
jriker1 is offline   Reply With Quote
Old 22nd August 2023, 05:12   #4  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,817
Here is the ticket to that. Might want to comment on it so it hopefully finally gets resolved.

https://trac.ffmpeg.org/ticket/5688
__________________
TV: Samsung QE50Q60T AVR: Denon AVR-X1700H CD: Yamaha CD-S300 Tuner: TechniSat 143v3 BD: Samsung UBD-M8500 Speakers: Klipsch Reference Phono: Audio-Technica AT-LP120X Amp: Marantz PM6007
microchip8 is online now   Reply With Quote
Old 22nd August 2023, 07:44   #5  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Posts: 318
Quote:
Originally Posted by jriker1 View Post
Thanks. I'll ignore it but since it's so pervasive on the console window scrolling thru what looks like millions of these messages, guessing it's effecting thruput.
It is not 'millions', it is one line per frame. A movie has what? 150k to 200k pictures if its 24 Hz?

If you are concerned about speed: pipe the stderr output from ffmpeg to a file instead of console with "2> garbage.txt" after the ffmpeg command. This should prevent a redraw of the console.

For your example this should be
Code:
ffmpeg -i <source>.mkv -sn -an -f yuv4mpegpipe -strict -1 -pix_fmt yuv420p10le - 2> garbage.txt | x265...
rwill is offline   Reply With Quote
Old 22nd August 2023, 19:14   #6  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,653
Quote:
Originally Posted by jriker1 View Post
Thanks. I'll ignore it but since it's so pervasive on the console window scrolling thru what looks like millions of these messages, guessing it's effecting thruput.
You're likely right on the throughput. I remember a version of PageMaker back in 90's was determined to spend 4x more time reporting on the progress of an import than it did on the import itself, as it updated the number of characters processed after every character.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 22nd August 2023, 23:49   #7  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 565
Quote:
Originally Posted by rwill View Post
It is not 'millions', it is one line per frame. A movie has what? 150k to 200k pictures if its 24 Hz?
It's not one per frame, it's one per UNSPEC63 NALU.
It's a whole bitstream, so it could easily go into the millions (parameter sets, SEIs, slices) are all under that type.

That said, I doubt it has any impact on transcoding.
Even for decoding it would be negligible.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 23rd August 2023, 10:32   #8  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 321
If you dont want it to clutter up the console just hide it with setting a less verbose loglevel (e.g -loglevel quiet)
excellentswordfight is offline   Reply With Quote
Old 1st September 2023, 16:47   #9  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 529
Quote:
Originally Posted by microchip8 View Post
It's harmless. ffmpeg doesn't have all DV profiles implemented in decoding, so you get that message.
Technically it does. Just apply the patches: https://patchwork.ffmpeg.org/project...t/?series=7164
Balling is offline   Reply With Quote
Old 3rd September 2023, 12:36   #10  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,817
Quote:
Originally Posted by Balling View Post
Technically it does. Just apply the patches: https://patchwork.ffmpeg.org/project...t/?series=7164
They don't fix NAL 63.
__________________
TV: Samsung QE50Q60T AVR: Denon AVR-X1700H CD: Yamaha CD-S300 Tuner: TechniSat 143v3 BD: Samsung UBD-M8500 Speakers: Klipsch Reference Phono: Audio-Technica AT-LP120X Amp: Marantz PM6007
microchip8 is online now   Reply With Quote
Old 13th September 2023, 18:59   #11  |  Link
caphp
Registered User
 
Join Date: Sep 2023
Posts: 2
Hi jriker1,

you can use the following parameter:

Code:
ffmpeg.exe -loglevel error -stats -i <source>.mkv <followed by your parameters...>
This suppresses the NAL Unit messages and still shows you all errors (if any occur), including ones which can be recovered.

Hope this can help you.

Bye

Last edited by caphp; 18th September 2023 at 09:59.
caphp is offline   Reply With Quote
Reply

Tags
dolby vision, ffmpeg

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 19:09.


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