Quantcast FFmpeg: Idea to use Ffstats File - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
02-09-2004, 06:46 AM
marcellus marcellus is offline
Invalid Email / Banned / Spammer
 
Join Date: Feb 2004
Location: Bucharest, Romania, GMT+2h
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
@Kwag and all with programing skills
One crazy idea (I think crazy enough to work):

I noticed that in the output tab you can choose to save a ffstats file. If you are making a second encoding of the same source you can choose to use the previously created ffstats file, that way you can do a second pass encoding.
I opened in a text viewer such a file and I noticed that is in plain text. I think that you or somebody with programing skills and more understanding than me of how things work can understand what is in that file and how it can be modified to work the way we want.
My idea: it could be great if we could feed FFVFW first with a sampled file (made with sampler.dll), modify the obtained ffstats by extrapolating the values and then using the resulted file for final encoding.

What do you think?
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-09-2004, 07:40 AM
Razorblade2000 Razorblade2000 is offline
Free Member
 
Join Date: Aug 2002
Posts: 323
Thanks: 0
Thanked 0 Times in 0 Posts
you already can do that... there is an xvid tool that can access ancd change the file...

but also ffvfw can do so (thats what he does in the 2nd pass )
Reply With Quote
  #3  
02-09-2004, 07:59 AM
marcellus marcellus is offline
Invalid Email / Banned / Spammer
 
Join Date: Feb 2004
Location: Bucharest, Romania, GMT+2h
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Razorblade2000
you already can do that... there is an xvid tool that can access ancd change the file...

but also ffvfw can do so (thats what he does in the 2nd pass )
You didn't pay attention. The ffstats file that I'm talking about is diferent of the stats file ffvfw is making during first pass encoding. That one is unreadable directly by any human. The one I'm talking about is made during CBR encoding and actually you can see in it how encoder works. But this one is unreadable with that Xvid tool.
Reply With Quote
  #4  
02-09-2004, 08:21 AM
Razorblade2000 Razorblade2000 is offline
Free Member
 
Join Date: Aug 2002
Posts: 323
Thanks: 0
Thanked 0 Times in 0 Posts
oooooops
To extrapolating the sample we only need its size and length (as done with CCE, TMPGEnc and so on)

But AFAIK we couldn't do much with I,P and B Framevalues because they are only the results for the sample we encoded... the other part of the video doesn't have anything to do with this.

(But only AFAIK... mybe it does )
Reply With Quote
  #5  
02-09-2004, 10:06 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by marcellus
@Kwag and all with programing skills
One crazy idea (I think crazy enough to work):
Not crazy at all
You should see some of my crazy posts
Quote:

I noticed that in the output tab you can choose to save a ffstats file. If you are making a second encoding of the same source you can choose to use the previously created ffstats file, that way you can do a second pass encoding.
I opened in a text viewer such a file and I noticed that is in plain text. I think that you or somebody with programing skills and more understanding than me of how things work can understand what is in that file and how it can be modified to work the way we want.
My idea: it could be great if we could feed FFVFW first with a sampled file (made with sampler.dll), modify the obtained ffstats by extrapolating the values and then using the resulted file for final encoding.

What do you think?
The problem is that these statistics are for useable if we have control of the encoder. For example, even though we can have a footage analysis with the stats, we can't apply them to TMPEG (or other encoders) because we can't determine what the compresibility of the encoded mpeg will be. Every encoder will have different internal algorithms, so we can't tell what the output will be.
Only if we have full control of the encoder quantization, etc., then we could apply the stats for a post-process.
So the stats created by ffvfw are really usefull for it's internal second pass, when it finally works!, because right now it bombs on the second pass.

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
FFMPEG: File size? Razorblade2000 Video Encoding and Conversion 14 02-10-2004 07:13 PM
No tengo ni p*** idea karurosu Convertir y Codificar Video (Español) 4 02-03-2004 06:01 AM
An idea for Kwag ak47 Off-topic Lounge 1 06-30-2003 10:18 PM
can we adapt this idea in kvcds? jorel Video Encoding and Conversion 0 11-24-2002 10:31 PM
What an original great idea kwag Off-topic Lounge 1 06-09-2002 11:49 AM




 
All times are GMT -5. The time now is 02:56 AM  —  vBulletin © Jelsoft Enterprises Ltd