VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Nov 2013
    Location
    Istanbul
    Search Comp PM
    I'm trying to merge two videos with FFVideoSource in MeGUI.
    INTRO: a 10 second intro video, and
    SOURCE: main source video into
    RESULT: output video.

    RESULT = INTRO + SOURCE

    The given script below works when I use two SOURCE videos, SOURCE1 and SOURCE2.

    Code:
    FFIndex(SOURCE1)
    V1 = FFVideoSource(SOURCE1)
    A1 = FFAudioSource(SOURCE1)
    R1 = AudioDub(V1, A1)
    
    FFIndex(SOURCE2)
    V2 = FFVideoSource(SOURCE2)
    A2 = FFAudioSource(SOURCE2)
    R2 = AudioDub(V2, A2)
    
    RESULT = R1 + R2
    However, when I use one of my INTRO videos (that I have created) instead of the downloaded SOURCE files, the program gives this error:

    MeGUI encountered a fatal error and may not be able to proceed.
    Reason: Object reference not set to an instance of an object.
    I try several options for both source files such as
    Code:
    FFVideoSource(..., fpsnum=24000, fpsden=1001, width = 1280, height = 720).AssumeFPS(24000,1001)
    but cannot handle it.

    Is it due to some encoding options that can not be specified in FFVideoSource?
    I have attached the MediaInfo of the INTRO source that can not be merged with other SOURCE files.
    Any suggestions?

    Code:
    General
    Complete name                            : C:\intro-1280x720.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom
    File size                                : 4.45 MiB
    Duration                                 : 12s 833ms
    Overall bit rate                         : 2 908 Kbps
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 12s 833ms
    Bit rate                                 : 2 500 Kbps
    Maximum bit rate                         : 4 881 Kbps
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 30.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.090
    Stream size                              : 3.86 MiB (87%)
    Title                                    : 264#trackID=1:fps=30@GPAC0.5.1-DEV-rev4283
    Writing library                          : x264 core 133 r2334 a3ac64b
    Encoding settings                        : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=9 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
    
    Audio
    ID                                       : 2
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Codec ID                                 : ac-3
    Duration                                 : 12s 800ms
    Bit rate mode                            : Constant
    Bit rate                                 : 384 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Stream size                              : 600 KiB (13%)
    Title                                    : ac3#trackID=1@GPAC0.5.1-DEV-rev4283
    Quote Quote  
  2. Member
    Join Date
    Nov 2013
    Location
    Istanbul
    Search Comp PM
    I have attached the output of the MeGUI log file. Still waiting for help

    Code:
    -[Information] MediaInfo
    -[Error] [1.12.2013 06:48:24] Exception message: Object reference not set to an instance of an object.
    -[NoImage]    at MeGUI.MediaInfoFile.CorrectSourceInformation(MediaInfo& oInfo, String strFile, LogItem infoLog, Int32 iPGCNumber)
    -[NoImage]    at MeGUI.MediaInfoFile.GetSourceInformation(String file, LogItem oLog, Int32 iPGCNumber)
    -[Error] [1.12.2013 06:48:24] Stacktrace
    -[Error] [1.12.2013 06:48:24] Inner exception: null
    --[Error] [1.12.2013 06:48:24] MediaInfo - Unhandled Error
    -[Error] Unhandled error
    Quote Quote  
  3. Post the full avs script

    Can you preview the script in vdub or avspmod ? Any error messages ?

    Did you try updating megui off the development server ?

    Post the mediainfo for the other section
    Quote Quote  
  4. Member
    Join Date
    Nov 2013
    Location
    Istanbul
    Search Comp PM
    The full script is given below:

    Code:
    I="C:\INPUT\intro.mp4"
    V="C:\INPUT\downloaded.mkv"
    
    LoadPlugin("C:\Users\Administrator\Desktop\MeGUI_2356_x86\tools\avs\directshowsource.dll")
    LoadPlugin("C:\Users\Administrator\Desktop\MeGUI_2356_x86\tools\ffms\ffms2.dll")
    
    FFIndex(I)
    V1 = FFVideoSource(I, fpsnum=25000, fpsden=1000, width = 1280, height = 720)
    A1 = FFAudioSource(I).ResampleAudio(44100)
    R1 = AudioDubex(V1, A1)
    
    FFIndex(V)
    V2 = FFVideoSource(V, fpsnum=25000, fpsden=1000, width = 1280, height = 720)
    A2 = FFAudioSource(V).ResampleAudio(44100)
    R2 = AudioDubex(V2, A2)
    
    R1 + R2
    
    ConvertToYV12()
    I cannot run my scripts with VirtualDub, may be it is only a video player?
    When I run the script with AvsPmod, it produces an error:

    Splice: The number of audio channels doesn't match.
    I'm searching for it, but cannot find any solution yet.
    Quote Quote  
  5. Member
    Join Date
    Nov 2013
    Location
    Istanbul
    Search Comp PM
    Thank you again poisondeathray, updating MeGUI produces the same errors now.
    I have solved the problem as given below:

    Code:
    AUDIO = FFAudioSource(SOURCE).ResampleAudio(44100)
    LEFT = GetChannel(AUDIO , 1) 
    RIGHT = GetChannel(AUDIO , 2)  
    BOTH = mergechannels(LEFT, RIGHT)  
    R = AudioDubex(VIDEO, BOTH)
    Quote Quote  



Similar Threads

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