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 24th November 2007, 01:12   #621  |  Link
g0blez
Registered User
 
Join Date: Jul 2003
Posts: 31
What I've done...

DGAVCDEC:
- Opened .mpv file (h.264 stream)
- Selected force film
- Saved project as dga; during the long process (source is accessed by wifi network), I got one pop-up mentioning something about "NALUs'. Sorry, I didn't carefully read but chose to ignore it.

Notepad:

- Created AVS script:
loadplugin("C:\Program Files\dgavcdec100a10\DGAVCDecode.dll")
AVCSource("video.dga")
Lanczos4Resize(1280,720)

meGUI (x264 build 699):

- Selected SA-HD-DVD profile, RAWAVC container
- Started 1st Pass; at the end of the pass, I got the following logs:
[h264 @ 6FD461F0]reference picture missing during reorder
[h264 @ 6FD461F0]error while decoding MB 18 59, bytestream (td)
[h264 @ 6FD461F0]left block unavailable for requested intra4x4 mode -1 at 0 46
[h264 @ 6FD461F0]error while decoding MB 0 46, bytestream (td)
[h264 @ 6FD461F0]left block unavailable for requested intra4x4 mode -1 at 0 38
[h264 @ 6FD461F0]error while decoding MB 0 38, bytestream (td)
[h264 @ 6FD461F0]reference picture missing during reorder
[h264 @ 6FD461F0]left block unavailable for requested intra mode at 0 10
[h264 @ 6FD461F0]error while decoding MB 0 10, bytestream (td)
[h264 @ 6FD461F0]reference picture missing during reorder


I realize I have an issue but I'm not sure if this is caused by DGAVCDEC or something else.
neuron2, can you comment?

Last edited by g0blez; 24th November 2007 at 01:16.
g0blez is offline  
Old 24th November 2007, 01:57   #622  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
As I said, I need the source stream.
Guest is offline  
Old 24th November 2007, 07:43   #623  |  Link
Turtleggjp
Registered User
 
Join Date: Apr 2006
Posts: 225
Quote:
Originally Posted by g0blez View Post
I have a question concerning the latest alpha 10.
I've demuxed an EVO file. evodemux claimed the source was 60fps. However, looking at the number of calculated frames and taking into consideration the total length of the stream, I calculated that the frame rate was 23.976fps.

When I opened the demuxed mpv (h.264) file in DGAVCDec, the frame rate listed was 29.970030 fps.
How should I treat this stream? Should I force film it?
I ran into this same thing when I transcoded my HD-DVD of Transformers. I was concerned, but I just added AssumeFPS(23.976) to my AVI Synth script, and everything came out fine. I used Alpha 6 (that was the latest when I did this) so there was no Force Film option available then.
Turtleggjp is offline  
Old 24th November 2007, 10:40   #624  |  Link
canTsTop
Registered User
 
canTsTop's Avatar
 
Join Date: Apr 2007
Location: Lithuania
Posts: 120
Quote:
Originally Posted by drmpeg View Post
It's a PAFF bitstream that actually switches between field and frame pictures. Here's the output from the reference decoder that shows if a frame is a field pair.
Code:
----------------------------- JM 13.0 (FRExt) -----------------------------
 Decoder config file                    : (null) 
--------------------------------------------------------------------------
 Input H.264 bitstream                  : bits0001.mpv 
 Output decoded YUV                     : test_dec.yuv 
 Output status file                     : log.dec 
 Input reference file                   : test_rec.yuv does not exist 
                                          SNR values are not available
--------------------------------------------------------------------------
POC must = frame# or field# for SNRs to be correct
--------------------------------------------------------------------------
  Frame          POC  Pic#   QP    SnrY     SnrU     SnrV   Y:U:V Time(ms)
--------------------------------------------------------------------------
Warning: Decoding does not start with an IDR picture.
00023( I )       46    96    30                             4:2:0     220
00020( b )       40    97    30                             4:2:0     150
00021( b | b )   43    97    51                             4:2:0     130
00022( b )       44    97    48                             4:2:0     111
00027( P )       54    97    33                             4:2:0     160
00024( b )       48    98    29                             4:2:0     100
00025( b )       50    98    33                             4:2:0     110
00026( b )       52    98    32                             4:2:0     110
00031( P )       62    98    31                             4:2:0     181
00028( b )       56    99    28                             4:2:0     150
00029( b )       58    99    31                             4:2:0     120
00030( b )       60    99    31                             4:2:0     140
00035( P )       70    99    30                             4:2:0     180
00032( b )       64   100    27                             4:2:0     121
00033( b )       66   100    30                             4:2:0     150
00034( b )       68   100    30                             4:2:0     130
00039( P )       78   100    29                             4:2:0     190
00036( b )       72   101    26                             4:2:0     130
00037( b )       74   101    30                             4:2:0     121
00038( b )       76   101    30                             4:2:0     120
00043( P )       86   101    29                             4:2:0     200
00040( b )       80   102    26                             4:2:0     130
00041( b )       82   102    30                             4:2:0     130
00042( b )       84   102    30                             4:2:0     141
00047( P )       94   102    30                             4:2:0     160
00044( b )       88   103    27                             4:2:0     130
00045( b )       90   103    30                             4:2:0     130
00046( b )       92   103    30                             4:2:0     120
00051( P )      102   103    30                             4:2:0     141
00048( b )       96   104    27                             4:2:0     170
00049( b )       98   104    30                             4:2:0     220
00050( b )      100   104    30                             4:2:0     120
00055( P )      110   104    30                             4:2:0     151
00052( b )      104   105    27                             4:2:0     120
00053( b )      106   105    30                             4:2:0     130
00054( b )      108   105    30                             4:2:0     120
00059( P )      118   105    30                             4:2:0     140
00056( b )      112   106    27                             4:2:0     241
00057( b )      114   106    30                             4:2:0     130
00058( b )      116   106    30                             4:2:0     110
00063( P )      126   106    30                             4:2:0     130
00060( b )      120   107    27                             4:2:0     130
00061( b )      122   107    30                             4:2:0     131
00062( b )      124   107    30                             4:2:0     120
00067( P )      134   107    30                             4:2:0     220
00064( b )      128   108    27                             4:2:0     130
00065( b )      130   108    30                             4:2:0     130
00066( b )      132   108    30                             4:2:0     131
00068( P )      136   108    30                             4:2:0     140
00069( P )      138   109    27                             4:2:0     140
00000(IDR| P )    1     0    24                             4:2:0     341
00001( I | P )    3     1    31                             4:2:0     250
00002( P | P )    5     2    37                             4:2:0     190
00003( P | P )    7     3    41                             4:2:0     170
00004( P | P )    9     4    42                             4:2:0     171
00005( P )       10     5    39                             4:2:0     210
00006( P )       12     6    40                             4:2:0     190
00007( P )       14     7    40                             4:2:0     181
00008( P )       16     8    39                             4:2:0     220
00009( P )       18     9    37                             4:2:0     200
00010( P | P )   21    10    38                             4:2:0     381
00014( P )       28    11    32                             4:2:0     260
00011( b )       22    12    35                             4:2:0     210
00012( b )       24    12    33                             4:2:0     221
00013( b )       26    12    33                             4:2:0     230
00018( P )       36    12    32                             4:2:0     280
00015( b )       30    13    29                             4:2:0     261
00016( b )       32    13    32                             4:2:0     240
00017( b )       34    13    31                             4:2:0     240
00019( P )       38    13    31                             4:2:0     281
00020( P )       40    14    28                             4:2:0     240
00024( P )       48    15    28                             4:2:0     271
00021( b )       42    16    29                             4:2:0     210
00022( b )       44    16    31                             4:2:0     220
00023( b )       46    16    30                             4:2:0     211
00028( P )       56    16    29                             4:2:0     280
00025( b )       50    17    26                             4:2:0     220
00026( b )       52    17    29                             4:2:0     221
00027( b )       54    17    28                             4:2:0     230
00029( P )       58    17    28                             4:2:0     280
00030( P )       60    18    25                             4:2:0     261
00031( P )       62    19    27                             4:2:0     240
00032( P | P )   65    20    32                             4:2:0     240
00033( P | P )   67    21    32                             4:2:0     261
00034( P | P )   69    22    33                             4:2:0     400
00035( P | P )   71    23    33                             4:2:0     251
00036( P | P )   73    24    32                             4:2:0     240
00037( P )       74    25    29                             4:2:0     230
00038( P | P )   77    26    33                             4:2:0     591
00039( P | P )   79    27    32                             4:2:0     241
00040( P | P )   81    28    32                             4:2:0     260
00041( P | P )   83    29    34                             4:2:0     260
00042( P | P )   85    30    34                             4:2:0     241
00046( P | P )   93    31    35                             4:2:0     240
00043( b | b )   87    32    36                             4:2:0     230
00044( b | b )   89    32    37                             4:2:0     231
00045( b | b )   91    32    35                             4:2:0     230
00047( P | P )   95    32    30                             4:2:0     250
00051( P | P )  103    33    31                             4:2:0     271
00048( b | b )   97    34    36                             4:2:0     230
00049( b | b )   99    34    34                             4:2:0     250
00050( b | b )  101    34    35                             4:2:0     221
00000(IDR| P )    1     0    30                             4:2:0     320
00001( P | P )    3     1    32                             4:2:0     231
00002( P | P )    5     2    32                             4:2:0     220
00003( P | P )    7     3    32                             4:2:0     230
00007( P | P )   15     4    33                             4:2:0     241
00004( b | b )    9     5    37                             4:2:0     300
00005( b | b )   11     5    35                             4:2:0     270
00006( b | b )   13     5    34                             4:2:0     251
00008( P | P )   17     5    31                             4:2:0     280
00012( P | P )   25     6    25                             4:2:0     260
00009( b | b )   19     7    29                             4:2:0     281
00010( b | b )   21     7    28                             4:2:0     230
The reference decoder produces 4940 frames from this bitstream. 4940 / 25 = 197.6 seconds, or 3 minutes 17.6 seconds.

Ron
sorry for not understanding. so what does it means? libavcodec is not supporting this video or it something to do with DGAVCIndex? or maybe i need to do some workaround with Avisynth script?
canTsTop is offline  
Old 24th November 2007, 11:02   #625  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,235
Quote:
Originally Posted by canTsTop View Post
sorry for not understanding. so what does it means? libavcodec is not supporting this video or it something to do with DGAVCIndex? or maybe i need to do some workaround with Avisynth script?
Your sample is certainly a bit odd...

For instance. I'm able to play the .TS sample in MediaPlayer Classic (using FFdshow's AVC decoder filter) without any issues - apart from being able to see the interlaced fields.

However, if I de-mux the AVC video stream and re-mux it into the .MP4 container, the file wont play at all.


Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline  
Old 24th November 2007, 11:29   #626  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Isn't that because mp4box doesn't support field/frame repeats, or does it now?
foxyshadis is offline  
Old 24th November 2007, 12:08   #627  |  Link
drmpeg
Registered User
 
Join Date: Jan 2003
Location: Silicon Valley
Posts: 455
Quote:
Originally Posted by canTsTop View Post
sorry for not understanding. so what does it means? libavcodec is not supporting this video or it something to do with DGAVCIndex? or maybe i need to do some workaround with Avisynth script?
Sorry to be vague. I'm not sure exactly where the problem is, but whatever tool you use with this stream must be aware that some coded pictures are fields and some coded pictures are frames.

The number of coded pictures in the bitstream is 6278. If a tool thinks those are all frames, it will arrive at the incorrect length of approximately 04:10 that you have been reporting.

6278 / 25 = 251.12 = 4 minutes 11.12 seconds.

Ron
__________________
HD MPEG-2 Test Patterns http://www.w6rz.net
drmpeg is offline  
Old 24th November 2007, 14:13   #628  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
DGAVCDec needs to divide the field picture count by two. I thought I did that but there must be a bug. You'll have to wait until I get around to it. As the documentation says, PAFF is not yet supported.
Guest is offline  
Old 24th November 2007, 15:05   #629  |  Link
canTsTop
Registered User
 
canTsTop's Avatar
 
Join Date: Apr 2007
Location: Lithuania
Posts: 120
thank you neuron2 and others for help, will be waiting for full PAFF suport
canTsTop is offline  
Old 24th November 2007, 20:31   #630  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by canTsTop View Post
thank you neuron2 and others for help, will be waiting for full PAFF suport
You're welcome.

I have made the fix for your stream (and others like it) and it now comes out right at 3:17 and 4940 frames for the video. I'll put out a new beta later today for you. There are a few other things I am tinkering with.

EDIT: See below.

Last edited by Guest; 25th November 2007 at 02:43.
Guest is offline  
Old 25th November 2007, 02:43   #631  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Version 1.0.0 alpha 11

* Properly counts each pair of field coded pictures as one frame. Should improve PAFF support.

http://neuron2.net/dgavcdec/dgavcdec100a11.zip
Guest is offline  
Old 25th November 2007, 05:22   #632  |  Link
PhillipWyllie
Registered User
 
Join Date: Sep 2004
Posts: 217
Thank neuron2 for this excellent tool. I have a problem though, when I open up the an avs file(using avcsource) in VDub, VDubMod or CCE and try to look at the info (file ->file information in VDubMod for example) it crashes. In CCE when I hit the "chapters" button(a preview window usually pops up) CCE crashes.

When I try using alpha6 this doesn't happen, I also tried using libavcodec.dll from earlier releases of DGAVCDec to no avail.

I'm using alpha11.
__________________
Specs: Intel Core 2 Quad Q6600(4*2.4GHz), Win XP Pro SP2, 2 Gb DDR2, 1*120Gb HDD, 1*500Gb HDD
PhillipWyllie is offline  
Old 25th November 2007, 05:41   #633  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Does it happen for all source files?
Guest is offline  
Old 25th November 2007, 05:50   #634  |  Link
PhillipWyllie
Registered User
 
Join Date: Sep 2004
Posts: 217
Sorry, I don't know what you mean by all source files.
__________________
Specs: Intel Core 2 Quad Q6600(4*2.4GHz), Win XP Pro SP2, 2 Gb DDR2, 1*120Gb HDD, 1*500Gb HDD
PhillipWyllie is offline  
Old 25th November 2007, 05:53   #635  |  Link
check
phjbdpcrjlj2sb3h
 
check's Avatar
 
Join Date: Sep 2005
Location: Western Australia
Posts: 1,691
source file = the input .264 file.
check is offline  
Old 26th November 2007, 05:30   #636  |  Link
g0blez
Registered User
 
Join Date: Jul 2003
Posts: 31
Quote:
Originally Posted by Turtleggjp View Post
I ran into this same thing when I transcoded my HD-DVD of Transformers. I was concerned, but I just added AssumeFPS(23.976) to my AVI Synth script, and everything came out fine. I used Alpha 6 (that was the latest when I did this) so there was no Force Film option available then.
How did you manage that? Each time I open my demuxed stream (transformers) with alpha 6, it crashes.
g0blez is offline  
Old 26th November 2007, 14:03   #637  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by g0blez View Post
How did you manage that? Each time I open my demuxed stream (transformers) with alpha 6, it crashes.
Why do you want to use alpha 6. Use the latest alpha and select Force Film.

Last edited by Guest; 26th November 2007 at 14:44.
Guest is offline  
Old 26th November 2007, 14:52   #638  |  Link
g0blez
Registered User
 
Join Date: Jul 2003
Posts: 31
Quote:
Originally Posted by neuron2 View Post
Why do you want to use alpha 6. Use the latest alpha and select Force Film.
Because I get NALU errors with the latest alpha with or without force film.
I would send a sample if i knew which tool to use to cut an h.264 mpv from coded frame 166132 or from 6,929s.
But apparently Turtleggjp was able to transcode successfully with alpha 6.

Last edited by g0blez; 26th November 2007 at 14:58.
g0blez is offline  
Old 26th November 2007, 15:48   #639  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Use DGSplit from my website to make five 5GB pieces. Then find which one gives the NALU error. Throw away the others. Then split the remaining one and find which one gives the NALU error. Continue until you have a 50MByte file containing the NALU error. Then upload it for me.

I could process my Transformers HD-DVD and see if I run into the same issue, *IF* I had the key. Do you have it? If not, how did you get the raw stream?

@turtleggjp

Have you tried your Transformers decode with the latest alpha?

Last edited by Guest; 26th November 2007 at 15:50.
Guest is offline  
Old 26th November 2007, 16:45   #640  |  Link
desta
Registered User
 
Join Date: Jan 2006
Posts: 220
Quote:
Originally Posted by g0blez View Post
How did you manage that? Each time I open my demuxed stream (transformers) with alpha 6, it crashes.
Did you update your libavcodec?
desta 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 08:28.


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