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 13th December 2023, 13:41   #1  |  Link
DreckSoft
Registered User
 
Join Date: Mar 2002
Posts: 118
Tool to find x264 encoding parameters?

I'm trying to add credits to an existing video file. For this to work, the encoding parameters need to match (I don't want to reencode everything).

I can get CABAC / ref-frames from media info but matching thiose is not enough.

Is there any tool that can read or guess the correct parameters from a video file?
DreckSoft is offline   Reply With Quote
Old 13th December 2023, 15:17   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,335
a. If your video was encoded with x264 the encoding settings should be available in the headers too (unless someone removed them).
b. you could also use h264_parse on the raw .264 stream to get enough data to create compatible streams with x264 (assuming the stream isn't paff encoded); worked for me in MKVCutter.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 13th December 2023, 18:39   #3  |  Link
DreckSoft
Registered User
 
Join Date: Mar 2002
Posts: 118
Unfortunately that's an old HDTV recording with strange parameters
Main profile, CABAC, 2 ref frames is what I've got.

h264parse from gStreamer? That seems awfully complex software.
DreckSoft is offline   Reply With Quote
Old 13th December 2023, 20:09   #4  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,335
No, h264_parse from mpeg4ip, see: https://github.com/timmattison/h264_parse
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 14th December 2023, 08:35   #5  |  Link
ivanb
Registered User
 
Join Date: May 2023
Posts: 26
Quote:
Is there any tool that can read or guess the correct parameters from a video file?
You can use VTCLab Media Analyzer (or just `mediainfo --Details=1`) to get SPS/PPS parameters, but then you'll have to figure out how to translate them into x264 options
ivanb is offline   Reply With Quote
Old 15th December 2023, 14:24   #6  |  Link
DreckSoft
Registered User
 
Join Date: Mar 2002
Posts: 118
No luck so far. The original file seems to use really strange parameters and I can't read anything useful from those programs.
DreckSoft 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 21:52.


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