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 19th August 2008, 18:17   #1321  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
I have found another bug:

When in dgavcindex, and you load a h264 file, it indexes correctly. If you then close off that file and load another file to index in the same instance of dgavcindex, the file is not indexed correctly. The second indexing results in the following two lines not being added to the very start of the index data:
SPS 1
PPS 31 0

If you close of dgavcindex and load the same file, these two lines and correctly added. The result of these two lines not being in the indexed file is that the file still encodes, but at a significantly slower speed. x264 drops from utilising approx 95 percent of cpu down to around 50 percent. This alone does not account for the speed drop of the encoding by a factor of 10! I don't know what those two lines mean, but their importance is obvious!

This is using the latest 1.0.0 alpha 34 version.
burfadel is offline  
Old 19th August 2008, 18:54   #1322  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
I can't duplicate it. The two DGA files are identtical for me.

Please provide the two files and describe the COMPLETE, EXACT sequence of operations that lead to the problem. E.g., when you say "open another file" tell me exactly how you do that.

Thank you.
Guest is offline  
Old 19th August 2008, 19:30   #1323  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
It happens with any input .264 file, including the h264 output from x264 from a newly encoded file. Without fail, load once its ok, but even if you reload the same file in the same instance of dgavcindex (that is, remove it from the file list dialogue and re-add it), and open, then the output of the .dga file is missing those two lines! The rest of the file is identical.

Here is an excerpt:

First time open:
PHP Code:
STREAM 0
FO 0
YUVRGB 1
LUMFILT 0 0
CLIP 0 0 0 0
RANGE 0 723605927
AUDIO 

SPS 1 
PPS 31 0
LPOC 0
IDR 769 
FRM 7 0
FRM 5 1
FRM 5 2
FRM 5 3
FRM 5 4
FRM 5 5
FRM 5 6
FRM 5 7
FRM 5 8
FRM 5 12
FRM 6 10
FRM 6 9
FRM 6 11 
Second time open in the same instance of dgavcindex, same file:
PHP Code:
STREAM 0
FO 0
YUVRGB 1
LUMFILT 0 0
CLIP 0 0 0 0
RANGE 0 723605927
AUDIO 

LPOC 0
IDR 769 
FRM 7 0
FRM 5 1
FRM 5 2
FRM 5 3
FRM 5 4
FRM 5 5
FRM 5 6
FRM 5 7
FRM 5 8
FRM 5 12
FRM 6 10
FRM 6 9
FRM 6 11 
The same occurs for every file I tried. The value for PPS on some files were 30 0 and of course the frame data were different, no matter what I tried those two lines are missing on any second file opening in the same instance (keeping the dgavcindex programme open).

Additionally, have just found that if I click save project, save it under any file name, then straight away do a second save (with a different name of course, for comparison), the second file has those two lines missing! What do they do anyway?

Last edited by burfadel; 19th August 2008 at 19:32.
burfadel is offline  
Old 19th August 2008, 19:37   #1324  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
OK, thanks, I can duplicate it now.
Guest is offline  
Old 23rd August 2008, 22:31   #1325  |  Link
lchiu7
Registered User
 
Join Date: Apr 2002
Posts: 279
dgavcindex alpha 34 crashes when demuxing a .ts stream AAC audio

Trying to demux a DVB-T stream with AVC video and AAC-HE LATM audio.

The application crashes part way through the way with no useful (well to me anyway) error messages, just the usual Windows error messages.

Since the file is quite large (3.3g) I have been trying to isolate a segment that can cause the crash. This has not proven to be easy. Cutting the file to include the frame where the crash happens results in a file that doesn't crash . So after lots of trial and error I have managed to create a file that will crash and have uploaded it here.

www.datamix.info/stargate.ts

Sorry can't make it smaller than the 90Mb it is but I have found that even if I reduce the beginning of the file by a few meg (but still include what I think is the bad segment), the crash doesn't occur. This leads me to think the crash is caused by a sequence of data - not just the data segment where the crash occurs.

I am using TS Packet Editor to edit the .ts files.

Any ideas on what is happening greatly appreciated.

Thanks

Larry

Last edited by lchiu7; 24th August 2008 at 04:22.
lchiu7 is offline  
Old 23rd August 2008, 23:33   #1326  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by lchiu7 View Post
So after lots of trial and error I have managed to create a file that will crash and have uploaded it here.
Thank you. I appreciate your perserverance!

Investigation under way...
Guest is offline  
Old 24th August 2008, 00:00   #1327  |  Link
Eragon4ever
lost program in the net
 
Join Date: Jun 2006
Location: Germany
Posts: 106
I just tried opening an exe file and DGIndex crashed after a lot of libavcodec warnings. As this is clearly not intended usage i'm not sure if you want to fix this, too. If yes just say so and i'll upload the file for you.
Eragon4ever is offline  
Old 24th August 2008, 00:07   #1328  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by Eragon4ever View Post
I just tried opening an exe file
It's going to be hard to catch every possible pilot error. I'm glad that it crashed. That's usually a pretty good sign that you are doing something wrong (but not always; see above).
Guest is offline  
Old 24th August 2008, 00:17   #1329  |  Link
Eragon4ever
lost program in the net
 
Join Date: Jun 2006
Location: Germany
Posts: 106
Well, I could even index one of my pdfs. Maybe you want to make it crash there, too, so everyone knows he's doing something wrong?
Eragon4ever is offline  
Old 24th August 2008, 00:23   #1330  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
You're a funny guy. I like you.
Guest is offline  
Old 24th August 2008, 10:13   #1331  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
Haha =)

Kinda offtopic, but Ichiu7, may I ask which hardware you used to capture that stream? and oh god, Stargate in HD. I hate you so, Israel D:

Last edited by Comatose; 24th August 2008 at 10:53.
Comatose is offline  
Old 24th August 2008, 11:09   #1332  |  Link
lchiu7
Registered User
 
Join Date: Apr 2002
Posts: 279
Quote:
Originally Posted by Comatose View Post
Haha =)

Kinda offtopic, but Ichiu7, may I ask which hardware you used to capture that stream? and oh god, Stargate in HD. I hate you so, Israel D:
I used a Hauppauge WinTV Nova 500 T HD from a UHF antenna. The Stargate isn't in HD - it's upscaled SD to 720p. Over in my neck of the woods we are slowly getting HD TV OTA using h.264 video and AAC-HE LATM audio. Two channels are showing true HD (including the Olympics), one is biding time by broadcasting in HD (720p) but of course upscaling the SD content (pretty well I think).

In about a week they will actually broadcast HD and in AC03 audio.

Larry
lchiu7 is offline  
Old 24th August 2008, 11:14   #1333  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
I don't know lol, I watch Stargate in SD here and this looks tons better, even after I filter and resize the SD Stargate :X
If this is really an upscale, then oh wow.

(and we should probably move to PM since it's turning into more than 2 posts :x)

Last edited by Comatose; 24th August 2008 at 15:20.
Comatose is offline  
Old 24th August 2008, 20:22   #1334  |  Link
lchiu7
Registered User
 
Join Date: Apr 2002
Posts: 279
Quote:
Originally Posted by Comatose View Post
I don't know lol, I watch Stargate in SD here and this looks tons better, even after I filter and resize the SD Stargate :X
If this is really an upscale, then oh wow.

(and we should probably move to PM since it's turning into more than 2 posts :x)
Well just to stay OT for a bit. The broadcasts are h.264/AAC [AAC-HE LATM to be exact]. This is a particularly new audio codec and not much software can play it. What neuron2 did was modify dgavcindex so that it could recognise this stream in the .ts file and demux it so that it could be processed.

I am intrigued what software you used to play the stream and did you get audio?

[Will go PM for the rest]
lchiu7 is offline  
Old 25th August 2008, 04:37   #1335  |  Link
opieant
Registered User
 
Join Date: May 2004
Posts: 27
Minor bug report. DGAVCIndex promptly crashes when attempting to save a project if the input file has no extension (after clicking "Save" in the "Save As" dialog).

The input file is a transport stream. It opens fine and everything works up to the point that Save is clicked. When DGAVCIndex crashes, the error reports that an attempt to access memory at 0x00000001 is being made. If I add an extension back to the file, it can save without any problems.

FYI, when using DGAVCIndex I am currently only trying to obtain the start and end "RANGE" values. These are extremely helpful when using TS cutting applications that accept byte offsets, so I'm very grateful that info is included in DGA files.

Keep up the good work.

Greg
opieant is offline  
Old 25th August 2008, 05:25   #1336  |  Link
rebkell
Registered User
 
Join Date: Oct 2006
Posts: 303
Quote:
Originally Posted by opieant View Post
Minor bug report. DGAVCIndex promptly crashes when attempting to save a project if the input file has no extension (after clicking "Save" in the "Save As" dialog).
Confirmed, it crashes for me also, another little bug, if you run dgavcindex from the command line and use the -e switch, the log file it creates will have no values for any of the fields.
rebkell is offline  
Old 26th August 2008, 17:35   #1337  |  Link
boombastic
Registered User
 
Join Date: Oct 2003
Location: Ascoli Piceno-Italy
Posts: 279
I extracted the video and audio part from a bluray already on my hard disk. The video is ok, but the .pcm audio isn't playable by Media player Classic and VirtualDubMod cannot import.
How can i use it?Many thanks!!
boombastic is offline  
Old 26th August 2008, 17:43   #1338  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,812
Extract audio using eac3to.
Atak_Snajpera is offline  
Old 26th August 2008, 17:56   #1339  |  Link
boombastic
Registered User
 
Join Date: Oct 2003
Location: Ascoli Piceno-Italy
Posts: 279
Quote:
Originally Posted by Atak_Snajpera View Post
Extract audio using eac3to.
I can't manage to do it aand i reported this issue in the eac3to thread...
boombastic is offline  
Old 26th August 2008, 20:05   #1340  |  Link
lchiu7
Registered User
 
Join Date: Apr 2002
Posts: 279
Quote:
Originally Posted by neuron2 View Post
Thank you. I appreciate your perserverance!

Investigation under way...
Any update?

Thanks
lchiu7 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 07:32.


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