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 > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th August 2008, 03:59   #1  |  Link
Ranguvar
Registered User
 
Ranguvar's Avatar
 
Join Date: Feb 2007
Location: ::1
Posts: 1,236
Write SSIM/PSNR to stream header (x264)

When SSIM/PSNR is enabled, could the values be written to the header of the video stream along with the encode settings used?

Ranguvar is offline   Reply With Quote
Old 7th August 2008, 04:09   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
I think this info is only available at the end of the encode, so how could it be written to the header?
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 7th August 2008, 04:35   #3  |  Link
Ranguvar
Registered User
 
Ranguvar's Avatar
 
Join Date: Feb 2007
Location: ::1
Posts: 1,236
Arrgh. Forgot about that. Apologies.
Ranguvar is offline   Reply With Quote
Old 7th August 2008, 05:01   #4  |  Link
cogman
The Crazy Idahoan
 
Join Date: Jun 2007
Location: Idaho
Posts: 249
Not only that, But I believe that goes against the H.264 standard. The authors of x264 are much opposed to that (Doing anything not specified by the accepted standard) I could be wrong as I haven't read the entire standard. But I am pretty sure that is not in the provisions of it.
cogman is offline   Reply With Quote
Old 7th August 2008, 05:02   #5  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by cogman View Post
Not only that, But I believe that goes against the H.264 standard. The authors of x264 are much opposed to that (Doing anything not specified by the accepted standard) I could be wrong as I haven't read the entire standard. But I am pretty sure that is not in the provisions of it.
You can put anything you want in a user-data SEI. x264 already does.
Dark Shikari is offline   Reply With Quote
Old 7th August 2008, 05:09   #6  |  Link
Sagekilla
x264aholic
 
Join Date: Jul 2007
Location: New York
Posts: 1,752
IIRC, if you do --verbose it'll show you all the metric stats on a frame by frame basis, since it prints out SSIM, PSNR, along with the number of bits used for that frame across a number of different uses. The only thing that would have to be done is add an output handler to pass over the stats so it could be written along with that frame to the file. At least, that's what it seems like for me.
Sagekilla is offline   Reply With Quote
Old 7th August 2008, 08:13   #7  |  Link
audyovydeo
Registered User
 
audyovydeo's Avatar
 
Join Date: Apr 2007
Posts: 464
Quote:
Originally Posted by akupenguin View Post
Every video encoding API I've ever heard of takes frames in order, and what has been written is done with. GPAC, libmatroska, libavformat, mencoder, ..., none has any way to change the file header after we're done encoding, short of a whole remux. Worse yet, some formats store the SPS with every keyframe, and you'd have to remember/change all of them.

I asked the same question in another context, akupenguin buried that definitively.

cheers
audyovydeo
audyovydeo is offline   Reply With Quote
Reply

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 05:59.


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