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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 2nd December 2007, 17:44   #681  |  Link
g0blez
Registered User
 
Join Date: Jul 2003
Posts: 31
Quote:
Originally Posted by neuron2 View Post
Does it affect the encoded result?

I'd like to try to duplicate this. How do I see those log messages in MeGUI?
- Select 2 pass encoding (I select HD-DVD Profile but don't think it matters)
- Wait until first pass is done; MegUI will report that the first pass had errors and you can view them in the "log" tab.

Can't say if it affects the output of the encode but I would assume it does; all you get after a 1st pass is a .stats file.

You can probably reproduce with a 1-pass encode.
g0blez is offline  
Old 2nd December 2007, 17:49   #682  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by g0blez View Post
Can't say if it affects the output of the encode but I would assume it does; all you get after a 1st pass is a .stats file.
Do you mean that you cannot run the second pass?

Also, I asked for the stream and you haven't given it to me. I can't help you without it.
Guest is offline  
Old 2nd December 2007, 18:16   #683  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
OK, I tried with the ttt.264 stream and I got errors and MeGUI would not start the second pass. I tricked MeGUI by deleting the jobs from the queue and then re-enqueing the whole job, then delete just pass 1 and start pass 2.

The encode completed and the video looks fine.

So I think this is something that should be addressed by MeGUI. libavcodec is sometimes going to report harmless or recoverable errors, and MeGUI should not abort everything.
Guest is offline  
Old 2nd December 2007, 20:03   #684  |  Link
Deckard2019
Registered User
 
Join Date: Jan 2005
Posts: 110
I tried what you did neuron2. And you're right, the encode completed. But with exactly the same errors as pass 1. Although, the file is playable and video looks fine.
So I think MeGUI stops processing pass 1 only because it reports too many errors. But these errors exist for real. Where do they come from ?
Thank you.

Last edited by Deckard2019; 2nd December 2007 at 20:38.
Deckard2019 is offline  
Old 2nd December 2007, 23:13   #685  |  Link
g0blez
Registered User
 
Join Date: Jul 2003
Posts: 31
Quote:
Originally Posted by neuron2 View Post
OK, I tried with the ttt.264 stream and I got errors and MeGUI would not start the second pass. I tricked MeGUI by deleting the jobs from the queue and then re-enqueing the whole job, then delete just pass 1 and start pass 2.

The encode completed and the video looks fine.

So I think this is something that should be addressed by MeGUI. libavcodec is sometimes going to report harmless or recoverable errors, and MeGUI should not abort everything.
Are these really harmless/recoverable errors? The log is from x264...

Last edited by g0blez; 3rd December 2007 at 01:30.
g0blez is offline  
Old 3rd December 2007, 01:27   #686  |  Link
g0blez
Registered User
 
Join Date: Jul 2003
Posts: 31
Quote:
Originally Posted by neuron2 View Post
Do you mean that you cannot run the second pass?

Also, I asked for the stream and you haven't given it to me. I can't help you without it.
Stream is Transformers HD-DVD (144 minutes).
g0blez is offline  
Old 3rd December 2007, 02:43   #687  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by Deckard2019 View Post
So I think MeGUI stops processing pass 1 only because it reports too many errors. But these errors exist for real. Where do they come from ?
Thank you.
They come from libavcodec.dll, not x264. See the "h264" below?

[h264 @ 6FCFD810]reference picture missing during reorder

It is not happy with the stream. For encoding linearly, I am just handing it the data from the source file. This would have to be taken up with the author of libavcodec. You can use the MP4tech mailing list for that. I'll look into it, but my priority is to get my code working right. I may patch libavcodec.dll to return warnings instead of errors so that MeGUI doesn't give up. I also posted a request to the MeGUI thread asking for an option to ignore errors.

Last edited by Guest; 3rd December 2007 at 02:53.
Guest is offline  
Old 3rd December 2007, 03:54   #688  |  Link
g0blez
Registered User
 
Join Date: Jul 2003
Posts: 31
Quote:
Originally Posted by neuron2 View Post
They come from libavcodec.dll, not x264. See the "h264" below?

[h264 @ 6FCFD810]reference picture missing during reorder

It is not happy with the stream. For encoding linearly, I am just handing it the data from the source file. This would have to be taken up with the author of libavcodec. You can use the MP4tech mailing list for that. I'll look into it, but my priority is to get my code working right. I may patch libavcodec.dll to return warnings instead of errors so that MeGUI doesn't give up. I also posted a request to the MeGUI thread asking for an option to ignore errors.
Thanks for the info neuron2.
g0blez is offline  
Old 3rd December 2007, 05:41   #689  |  Link
Taxidermista
Registered User
 
Join Date: Nov 2001
Location: Spain
Posts: 145
I've demuxed the AVC video from the japanese "Band of Brothers" HD DVD and it seems that DGAVCDec 1.0.0 Alpha 12 has some problems decoding it, I get funny colors after the first few seconds with the HBO logo.

neuron2, I've uploaded a 30 MB sample to Rapidshare for you: BoB HD DVD sample
__________________
Core 2 Duo E4300@3250 MHz | Asus P5B-E Plus | 2 GB MDT DDR2 667@720 | Radeon X1600 Pro | WD Raptor 74GB + 2xSeagate Barracuda 320GB + 2xMaxtor DiamondMax10 250GB | Seasonic M12 500W
Taxidermista is offline  
Old 3rd December 2007, 08:12   #690  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
That appears to be another libavcodec problem, as it does the same thing in VLC.

Last edited by Guest; 3rd December 2007 at 08:15.
Guest is offline  
Old 3rd December 2007, 17:48   #691  |  Link
Soshen
Registered User
 
Join Date: Oct 2003
Posts: 45
Can you exply me how that program work with h264 vfr?
Soshen is offline  
Old 3rd December 2007, 17:57   #692  |  Link
Deinorius
Najarenthur
 
Deinorius's Avatar
 
Join Date: Jan 2006
Location: Austria (Vienna)
Posts: 202
Normally you demux the stream, index with dgavcindex and convert. Then you use the Timecode file from the source to mux again. That's all instead you wanted to know something else. Then you have to ask again.
Deinorius is offline  
Old 4th December 2007, 00:00   #693  |  Link
azazel1103
Registered User
 
Join Date: Mar 2007
Posts: 8
i try to open .ts file and i get the following errors:
1. found nalu w/forbidden_bit set, bit error? let's try ...
hit yes ...
2. found nalu type 29 len 31769 undefined, ignore nalu, moving on
hit yes ...
3. found nalu w/forbidden_bit set, bit error? let's try ...
hit yes ...
4. found nalu type 29 len 12997 undefined, ignore nalu, moving on
hit yes ...
5. trying to use an invalid (unintialized) picture parameter set with id0, expect the unexpected ...
hit yes ...
6. picparset 0 references an invalid (uninitialized) sequence parameter set with id0, expect the unexpected ...
hit yes ...
7. and so on

8. field pictures (PAFF) found. this may blow up in your face! continue?
hit yes ...
9.reserved picture_structure used (can't determine numclockts)
hit ok

game over. what's wrong?

ts parameters:

Format : MPEG-4 Transport
Format/Family : MPEG-4
File size : 2.18 GiB
PlayTime : 26mn 48s
Bit rate : 12 Mbps

Video #0
Codec : AVC
Codec/Info : MPEG-4 AVC
Codec profile : Main@L4.0
PlayTime : 26mn 48s
Bit rate : 11 Mbps
Width : 1920 pixels
Height : 1088 pixels
Aspect ratio : 16/9

or

Format : MPEG-4 Transport
Format/Family : MPEG-4
File size : 6.94 GiB
PlayTime : 59mn 1s
Bit rate : 17 Mbps

Video #0
Codec : AVC
Codec/Info : MPEG-4 AVC
Codec profile : High@L4.0
PlayTime : 59mn 1s
Bit rate : 16 Mbps
Width : 16 pixels
Height : 16 pixels
Aspect ratio : 1.000

the errors are similar

Last edited by azazel1103; 4th December 2007 at 00:07.
azazel1103 is offline  
Old 4th December 2007, 00:10   #694  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by azazel1103 View Post
i try to open .ts file
Did you bother to read the help file section listing the limitations of this software? It clearly states that only raw streams are supported.

You have to demux your video from the transport stream.

Last edited by Guest; 4th December 2007 at 00:13.
Guest is offline  
Old 4th December 2007, 00:11   #695  |  Link
canTsTop
Registered User
 
canTsTop's Avatar
 
Join Date: Apr 2007
Location: Lithuania
Posts: 120
azazel1103, first you need to demux ts, then open with DGAVCDec
canTsTop is offline  
Old 4th December 2007, 00:29   #696  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
@canTsTop

Apparently the libavcodec.dll deblocking fix is not complete, as I duplicated your second crash. My problem is that I can't make it fail for my debug DLL. I'll try to find it with code reading, but it might be a while.

Last edited by Guest; 4th December 2007 at 04:48.
Guest is offline  
Old 4th December 2007, 00:39   #697  |  Link
canTsTop
Registered User
 
canTsTop's Avatar
 
Join Date: Apr 2007
Location: Lithuania
Posts: 120
thank you neuron2 for looking in to this problem
canTsTop is offline  
Old 4th December 2007, 23:38   #698  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Please read the help file and refer to this post:

http://forum.doom9.org/showthread.ph...68#post1072368

Last edited by Guest; 4th December 2007 at 23:41.
Guest is offline  
Old 5th December 2007, 01:36   #699  |  Link
nurbs
Registered User
 
Join Date: Dec 2005
Posts: 1,460
As neuron2 was saying, DGAVCindex cannot open .ts files. You need to demux it and use the program on the raw stream.
nurbs is offline  
Old 5th December 2007, 03:19   #700  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
If it can't open .ts files, then why do they show in the Open dialog? Perhaps the next version, if it does not support .ts, will not show these files, thus preventing users from making such a basic, yet human, mistake, like other applications do.
Because it's still an alpha release. Thanks for pointing that out; I'll fix it.

Quote:
Also, as far as I know AVC elementary streams don't even have a framerate, so how can the user be sure that the reported framerate is correct?
Your supposition is incorrect. Of course raw streams have a frame rate. Do you think DGAVCIndex just makes one up? It is derived from the stream according to the spec. You are correct in that the spec allows a stream to not declare a frame rate. In that case, I default to 25 fps. But I have never seen such a stream. Have you?

Last edited by Guest; 5th December 2007 at 03:23.
Guest is offline  
Closed Thread

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 00:30.


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