VideoHelp Forum
+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 38 of 38
Thread
  1. Member
    Join Date
    Mar 2010
    Location
    Berlin
    Search PM
    Originally Posted by poisondeathray View Post
    So unless you are adept at configuring your directhow system, I would avoid directshowsource() completely, and use only as last resort
    Ah, okay, seems I didn't listened to you clearly
    So I will use ffmpeg mainly now.

    Originally Posted by poisondeathray View Post
    It does have a frame rate bug with some transport streams (.m2ts, .ts) so you might want to fix it in avisynth (e.g. with assumefps) , or use another source filter to load if your source is transport stream.
    When I work with .ts I convert it with StaxRip. I had so much problems with with .ts (f.e. when I record DVB-T), but StaxRip was the only tool (or "toolpack") which is able to convert it without any problems

    Big thanks again for your great support

    Ok, so I think I can live with those solutions and tips now (hopefully).

    Edit:
    Originally Posted by poisondeathray View Post
    BTW , when you use graphstudio, you open the native file, not the avs, to see the filter chain
    Oops, okay
    So, it opens the .mov with Haali Media Splitter (2ch) --> Microsoft DTV-DVD Audio Decoder (in/out 2ch) --> AC-3 Filter (2ch) --> Default DirectSound Device (2ch). No 5.1/6ch anywhere Don't understand it.

    But who cares, ffmpeg does the trick. ^^
    Last edited by klischee; 11th Sep 2010 at 13:22.
    Quote Quote  
  2. Member
    Join Date
    Mar 2010
    Location
    Berlin
    Search PM
    Hey, me again.

    After a lot of testing, I must say i have a lot of asynchronity issues with FFMS2 & flv. More than with directshow. FFMS2 has an delay at almost all videos of +2500ms. Do you or someone else have any idea why?

    I tried it with ffmpegsource2, FFIndex, AudioDub, ... but 2500ms audio delay all the time. ffindex has an parameter for the delay, but I don't get into it, how can I tell FFMS2 to delay the audio -2500ms? When I do it in VirtualDub (Audio --> Interleaving) it works, but as I work with hundrets of videos a week I don't want to input it all the time manually in VDub.

    And I don't want to go back to DShow
    Quote Quote  
  3. constant delay or variable delay ?

    vfr flv ? (variable frame rate) ?

    mediainfo (view=>text) and post the results of the flv

    vid=ffvideosource("video.flv")
    aud=ffaudiosource("video.flv")
    audiodub(vid,aud)
    DelayAudio(x)

    where "x" is the value in s. It can be - or +
    http://avisynth.org/mediawiki/DelayAudio
    Quote Quote  
  4. Member
    Join Date
    Mar 2010
    Location
    Berlin
    Search PM
    Hey.. man you should get an award for your 24/7 support here

    Please wait for more information, I will document the next days videos which have audio delay issues. There are also some FLVs which get a slow frame rate after I edited them with FFMS. MediaInfo tells they all have a constant frame rate.

    Thanks for your aviscript, it works, the delay get's corrected. But to prevent asynchronities globally I will give you more informations about affected videos later, at moment it's too chaotic to discuss about it seriously
    Last edited by klischee; 6th Nov 2010 at 15:35.
    Quote Quote  
  5. Member
    Join Date
    Mar 2010
    Location
    Berlin
    Search PM
    Please let's have a look at video frame rate issues first. The input video has 15 fps. After editing it with ffmpegsource2("video.flv", atrack=-1) in VirtualDub, it has only 7,518 fps. Do you have an idea why?

    Input:
    Code:
    Video
    Format                           : H.263
    Duration                         : 11mn 2s
    Bit rate                         : 411 Kbps
    Width                            : 640 pixels
    Height                           : 480 pixels
    Display aspect ratio             : 4:3
    Frame rate mode                  : Constant
    Frame rate                       : 14.000 fps
    Bits/(Pixel*Frame)               : 0.095
    Stream size                      : 32.5 MiB (100%)
    Output(after cutted a part out of it with VDub):
    Code:
    Video
    ID                               : 0
    Format                           : MPEG-4 Visual
    Format profile                   : Advanced Simple@L5
    Format settings, BVOP            : Yes
    Format settings, QPel            : No
    Format settings, GMC             : No warppoints
    Format settings, Matrix          : Default (H.263)
    Muxing mode                      : Packed bitstream
    Codec ID                         : XVID
    Codec ID/Hint                    : XviD
    Duration                         : 1mn 41s
    Bit rate                         : 438 Kbps
    Width                            : 640 pixels
    Height                           : 480 pixels
    Display aspect ratio             : 3:2
    Frame rate                       : 7.518 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.190
    Stream size                      : 5.30 MiB (100%)
    Writing library                  : XviD 1.2.1 (UTC  2008-12-04)
    Other video example, same problem (30fps input, 15.152 fps output):

    Original video:
    Code:
    Video
    Format                           : VP6
    Duration                         : 1mn 14s
    Bit rate                         : 269 Kbps
    Width                            : 480 pixels
    Height                           : 360 pixels
    Display aspect ratio             : 4:3
    Frame rate mode                  : Constant
    Frame rate                       : 30.000 fps
    Bits/(Pixel*Frame)               : 0.052
    Stream size                      : 2.40 MiB (88%)
    What VirtualDub get as input through avs:


    Output:
    Code:
    Video
    ID                               : 0
    Format                           : MPEG-4 Visual
    Format profile                   : Advanced Simple@L5
    Format settings, BVOP            : Yes
    Format settings, QPel            : No
    Format settings, GMC             : No warppoints
    Format settings, Matrix          : Default (H.263)
    Muxing mode                      : Packed bitstream
    Codec ID                         : XVID
    Codec ID/Hint                    : XviD
    Duration                         : 9s 900ms
    Bit rate                         : 410 Kbps
    Width                            : 480 pixels
    Height                           : 360 pixels
    Display aspect ratio             : 3:2
    Frame rate                       : 15.152 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.157
    Stream size                      : 496 KiB (98%)
    Writing library                  : XviD 1.2.1 (UTC  2008-12-04)
    VirtualDub receives the input video with the half frame rate, so AviSynth is the one which halfs it down. But why? :O Btw: This affects not all FLV-Videos, but some.
    Quote Quote  
  6. It's hard to make broad generalizations, each one might be a specfic case to look into. If you can upload one of the smaller videos to a free hosting site, I can look into it (e.g. mediafire.com)

    But if the frame count is correct, you can use assumefps

    e.g.

    vid=ffvideosource("video.flv")
    aud=ffaudiosource("video.flv")
    audiodub(vid,aud)
    assumefps(30)

    or whatever the correct value is 14 for the other video

    check your scripts before encoding. You can use info() to see the detected frame rate, and preview .avs in a mediaplayer for sync (e.g. mpc)
    Quote Quote  
  7. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by poisondeathray View Post
    You can use info() to see the detected frame rate, and preview .avs in a mediaplayer for sync (e.g. mpc)
    Also useful is FFInfo() (from ffms2.avsi), which will show the timestamps of each frame, both as seen by Avisynth and by FFVideoSource.
    Quote Quote  
  8. Member
    Join Date
    Aug 2014
    Location
    Cambodia
    Search Comp PM
    [QUOTE=DarrellS;2017035]
    Use gdsmux.exe (part of Haaili splitter) to copy the streams to a TS container

    Thank you! You are God.
    Quote Quote  



Similar Threads

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