View Full Version : 2 pass 1st pass on-the-fly?
ny555soul
22nd December 2006, 17:45
Since the 1st pass is basicly analizing the data and logging a file for the 2nd pass, could it be possible to do this on-the-fly from a live transport stream?
This would save a considerable amount of time doing a 2-pass XviD encode.
I prefer agk but if its in no way possible, is there any other program out there that can achieve this?
Blue_MiSfit
22nd December 2006, 17:54
No. The very nature of 2 pass requires that the entire first pass be finished before any decisions are made for the second pass. Now, I'm no programmer, and I'm not going to say it's impossible, but from what I understand there's no point to this kind of approach.
I think that if you really want to save time you should do a CQ encode, or CRF with x264.
~MiSfit
ny555soul
22nd December 2006, 18:05
Ok fair enough.
What if the stream was being split up into segments and batch encoding?
I guess there would be sync issues, unless somehow the segments could be analized and logged so they could be combined.
Maybe im just pipe dreaming.
experttech
22nd December 2006, 18:16
Not a bad idea at all...nice point for develoeprs to note.
But IMHO the first pass can max out a dual core CPU so even if pass2 was being carried out at the same time, there is no CPU available unless its shared with pass1 - that slow down P1 and hence the overall conversion would take about the same time.
The only way it can be used is if P1 and P2 use different sections of the CPU - is this possible? I dont know!
ny555soul
22nd December 2006, 18:47
Not a bad idea at all...nice point for develoeprs to note.
But IMHO the first pass can max out a dual core CPU so even if pass2 was being carried out at the same time, there is no CPU available unless its shared with pass1 - that slow down P1 and hence the overall conversion would take about the same time.
The only way it can be used is if P1 and P2 use different sections of the CPU - is this possible? I dont know!
Im not saying 1st and 2nd pass be done at the same time.
Orginally i thought maybe the 1st pass could be working as the .ts file is being created(streaming) then when you stop the stream and the file is finished, it would be done with the 1st pass, and move onto 2nd pass.
But as MiSfit pointed out...1st pass needs to see the "start and finish" of the file so that idea is out.
squid_80
23rd December 2006, 06:33
You don't need to know where the end of a stream is to do the first pass. What you're suggesting is entirely possible, but AFAIK it's only possible with graphedit.
Typically two-pass encodes aim for a target size in which case you'd probably want to edit out commercials and such. You wouldn't be able to do that if the first pass was done "on the fly".
ny555soul
24th December 2006, 14:16
You don't need to know where the end of a stream is to do the first pass. What you're suggesting is entirely possible, but AFAIK it's only possible with graphedit.
Typically two-pass encodes aim for a target size in which case you'd probably want to edit out commercials and such. You wouldn't be able to do that if the first pass was done "on the fly".
No i dont need to edit out commercials.I just wanted to save time by doing the 1st pass while recording.I was hoping i could use autogk to do this.Ive never used graphedit so if thats my only choice then i guess i got some reading to do.
Thanks for the tip
ny555soul
24th December 2006, 23:35
graphedit wont let me import the .ts file while its recording.Only after i stop the recording will it except the file, but VLC will let me play the .ts file while recording though.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.