VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Dec 2004
    Location
    England
    Search Comp PM
    I'm trying to re-encode an upscaled (4:3 pillarboxed) 720p50 h264 transport stream to 576i so I can burn it to DVD. I used DGAVCDec to extract the audio and create a *.dga file, which I then put through an AVI Synth script to resize etc. I then loaded the *.avs file into HCEnc, but when I hit Encode I get the following error:

    Click image for larger version

Name:	error.png
Views:	866
Size:	44.3 KB
ID:	3081

    It appears after a few seconds of encoding and the program closes.

    I don't understand the error at all, so what can I do?

    I don't know if it helps, but below is the MediaInfo log of the source file:

    Code:
    General
    ID                               : 3F3
    Format                           : MPEG-TS
    File size                        : 11.2 GiB
    Duration                         : 2h 0mn
    Overall bit rate                 : 13.3 Mbps
    
    Video
    ID                               : 6110 (0x17DE)
    Menu ID                          : 11110 (0x2B66)
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : Main@L4.0
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 5 frames
    Format settings, GOP             : N=16
    Duration                         : 2h 0mn
    Bit rate mode                    : Variable
    Bit rate                         : 11.8 Mbps
    Maximum bit rate                 : 12.0 Mbps
    Width                            : 1 280 pixels
    Height                           : 720 pixels
    Display aspect ratio             : 16:9
    Frame rate                       : 50.000 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.255
    Stream size                      : 9.90 GiB (88%)
    Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
    Transfer characteristics         : BT.709-5, BT.1361
    Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
    
    Audio #1
    ID                               : 6120 (0x17E8)
    Menu ID                          : 11110 (0x2B66)
    Format                           : MPEG Audio
    Format version                   : Version 1
    Format profile                   : Layer 2
    Duration                         : 2h 0mn
    Bit rate mode                    : Constant
    Bit rate                         : 256 Kbps
    Channel(s)                       : 2 channels
    Sampling rate                    : 48.0 KHz
    Video delay                      : 140ms
    Stream size                      : 221 MiB (2%)
    Language                         : German
    Language, more info              : Clean effects
    
    Audio #2
    ID                               : 6121 (0x17E9)
    Menu ID                          : 11110 (0x2B66)
    Format                           : MPEG Audio
    Format version                   : Version 1
    Format profile                   : Layer 2
    Duration                         : 2h 0mn
    Bit rate mode                    : Constant
    Bit rate                         : 192 Kbps
    Channel(s)                       : 2 channels
    Sampling rate                    : 48.0 KHz
    Video delay                      : 33ms
    Stream size                      : 165 MiB (1%)
    Language                         : German
    Language, more info              : Clean effects
    
    Audio #3
    ID                               : 6122 (0x17EA)
    Menu ID                          : 11110 (0x2B66)
    Format                           : AC-3
    Format/Info                      : Audio Coding 3
    Mode extension                   : CM (complete main)
    Duration                         : 2h 0mn
    Bit rate mode                    : Constant
    Bit rate                         : 448 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : Front: L R
    Sampling rate                    : 48.0 KHz
    Bit depth                        : 16 bits
    Video delay                      : -13ms
    Stream size                      : 386 MiB (3%)
    Language                         : German
    Language, more info              : Clean effects
    Quote Quote  
  2. What version of HCEnc ? Try the new HCEnc beta released a few days ago . It fixed some issues with DGNVtools . And older builds of HCenc had known issues with DGAVCDec (I mean really old builds)

    Is your script ok ? Can you preview it in vdub, or avsp ?
    Quote Quote  
  3. Member
    Join Date
    Dec 2004
    Location
    England
    Search Comp PM
    Originally Posted by poisondeathray View Post
    What version of HCEnc ? Try the new HCEnc beta released a few days ago . It fixed some issues with DGNVtools . And older builds of HCenc had known issues with DGAVCDec (I mean really old builds)

    Is your script ok ? Can you preview it in vdub, or avsp ?
    I upgraded to the latest version of HCEnc and I still get the same problem.

    The script opens OK in VDub and AvsP, but if I then press the right arrow key and scroll through the frames (in VDub) it crashes after seven seconds into the video (the same as with HCEnc). But, if I open it and drag the scroller to somewhere in the middle of the video it works fine. If, after doing that, I then drag the scroller back to the beginning of the video and scroll through the frames with the right arrow key as before it works fine, not crashing! I get exactly the same with AvsP as well.

    Maybe there's an error in the original transport stream?
    Quote Quote  
  4. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Try to apply DGAVCIndex to demuxed h264 (use TSMuxer etc.).
    Do you interlace it in script (you only mentioned resizing) or expect it from HCEncoder?
    Quote Quote  
  5. Yeah, that's what I noticed as well. You didn't try and encode progressive 50fps for DVD, did you?

    That may not explain the crashes, though.
    Quote Quote  
  6. Originally Posted by genak View Post
    The script opens OK in VDub and AvsP, but if I then press the right arrow key and scroll through the frames (in VDub) it crashes after seven seconds into the video (the same as with HCEnc). But, if I open it and drag the scroller to somewhere in the middle of the video it works fine. If, after doing that, I then drag the scroller back to the beginning of the video and scroll through the frames with the right arrow key as before it works fine, not crashing! I get exactly the same with AvsP as well.

    Maybe there's an error in the original transport stream?
    Yes. Or a bug in the decoder. Actually, it's a bug in the decoder if it crashes -- ever, even if there is an error in the compressed video being fed to it.
    Quote Quote  
  7. Member
    Join Date
    Dec 2004
    Location
    England
    Search Comp PM
    Originally Posted by Alex_ander View Post
    Try to apply DGAVCIndex to demuxed h264 (use TSMuxer etc.).
    I did this and I get the same error.

    Originally Posted by Alex_ander View Post
    Do you interlace it in script (you only mentioned resizing) or expect it from HCEncoder?
    Yes, the AVI Synth script outputs 576i25.


    Yes. Or a bug in the decoder. Actually, it's a bug in the decoder if it crashes -- ever, even if there is an error in the compressed video being fed to it.
    Is there not much I can do then? It doesn't really matter too much; I can just keep the transport stream...
    Quote Quote  
  8. I would try using a DirectShow decoder (DirectShowSource()) instead of DgIndex. I suspect your source uses PAFF or MBAFF which DgIndex can't handle. ffdshow, CoreAVC, Divx all handle those features properly.
    Quote Quote  
  9. Member
    Join Date
    Dec 2004
    Location
    England
    Search Comp PM
    I installed ffdshow and changed the script so it loaded using DirectShowSource(), but when I try to preview it with VDub, I get the following error:
    Avisynth open failure:
    DirectShowSource: Could not open as video or audio.

    Video returned: "DirectShowSource: couldn't open file ... the source for this file could not be loaded."

    Audio returned: "DirectShowSource: couldn't open file ... the source for this file could not be loaded."

    I guess there's something wrong with my script?

    Code:
    DirectShowSource(\"--.ts\")
    Crop(160,0,-160,-0)
    Lanczos4Resize(720,576)
    SeparateFields.SelectEvery(4,1,2)
    Weave()
    ConvertToYV12()
    Quote Quote  
  10. Do you have a DirectShow TS reader/splitter installed? Try Haali.
    Quote Quote  
  11. Member
    Join Date
    Dec 2004
    Location
    England
    Search Comp PM
    Thanks, I installed Haali and it seems to be encoding fine now
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!