VideoHelp Forum




+ Reply to Thread
Results 1 to 24 of 24
  1. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    OK, this is my first post here, although I've lurked for quite a while. (You guys are so good I've never been able to not find what I was looking for until now.) I'm by no means an expert on video, although I'm far from a newbie when it comes to computers.

    I've downloaded some FLV files from NBC.com. The short story is that we recorded Heroes on VHS, but my niece got ahold of the tapes with several of the later episodes on before we watched them. The parents don't want to watch them on a computer screen, so I'm trying to put them on DVD. The FLV files are in FLV4 format for the video and the audio is encoded as a mono MP3 at 22050 16-bit samples/second.

    I initially tried using SUPER as I've used in the past to convert stuff - everything seemed to go great until I played back the VOB and noticed SEVERE audio synchronization problems. These occurred whether I used 29.97 FPS as the DVD spec dictates or 25 FPS as the FLV is sourced at. I then tried VLC (AKA VideoLan Client). The files converted to an MPEG fine without any sort of synch problems. (I use Media Player Classic to test, as I've found it's closest to what I obtain when playing video on my set-top DVD player.) Of course, then I got greedy. Instead of just converting each of them, burning em to a few disks, and being happy, I decided to clip out the excess 15 seconds of the "Heroes - NBC" crap that's at the end of each one and join them into one MPEG2 stream so I could create one title for each episode and multiple chapters per episode. Being greedy was my mistake.

    I tried MPEGStreamClip (with QuickTime Alternative as a dependency) with no luck - the AV synch problems were back with a vengeance when I'd save the file. (This is confusing to me, as I thought transcoding to an MPEG should have removed the idiosyncrasies of the FLV that caused the problem... I must be missing something here. ) I tried the 'MPEG Tools' in a very old version of TMPEGEnc to clip out and merge the files with no luck. I tried VirtualDub, but it couldn't read an FLV without help, so I downloaded and installed ffdshow and flvsplitter. This allowed me to read the FLV files directly in VirtualDub, but the synch problems persisted here. It seems like the codec embedded in VLC is the only one that can successfully convert the movie to a standard format and retain the correct synchronization between the audio and video. OK, so I can't do everything I wanted - I'll just transcode each video and burn em to a disk. So what if I have to hit play every few minutes to keep the episode going? Ah, but if it were only that easy...

    I must've installed something or done something to my system that prevents VLC from converting the audio from from the 22050 mono sound in the FLV to either 44100 or 48000 stereo sound for the MPEG. No matter what settings I use in VLC, I get "MPEG Audio", 22050@160 kilobits for the audio. I know from experience that mono sound frankly sounds horrid on my livingroom TV and the kitchen TV won't turn up loud enough to make it understandable. I've been pulling my hair out trying to figure out what happened to make it not convert the audio to stereo anymore. I know that it used to because I have a file I transcoded before I got greedy. I've already uninstalled everything I installed since it worked, re-installed VLC, updated VLC to the latest version, and rebooted windoze more times than I care to think about. I can get good video and good audio as separate files, but when I multiplex them together with any of a variety of tools I've tried, the AV synch problems appear.

    Anybody have any ideas? I found a thread about a similar topic at https://forum.videohelp.com/topic330173.html but don't see anything I haven't already tried with the exception of Jagabo's suggestion to use AVISynth. I didn't really follow what he meant, but am in the process of downloading AVISynth as I write this. (I'm on dial-up, so it's slow going.)

    In an ideal world, I'd like to have a standard DVD that will have each episode as a separate title and maybe half a dozen chapter entry points. I've always been able to convert directly to VOBs using SUPER in the past, but as I said, that doesn't work. I had thought of ripping the FLV decoder out of VLC and somehow telling SUPER to use that when it reads the input file, but really have no idea of how to do this. Right now, I'd settle for getting VLC to convert the FLV to an MPEG-2 stream with stereo sound and forget about it not adhering to the DVD spec. (I have a gold Norcent DP300, so I can play standard MPEG files. I'd rather use the $20 cheap-o player, but am willing to use the Norcent for them if I need to.) It'd be a pain doing it this way, given that VLC has no batch processing mode that I can find, so I'd have to start the conversion of each 8-10 minute chunk of every episode manually - it'd be better than not being able to see the rest of the season.

    Let me know if I can provide any additional information to assist. I appreciate any advice.
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  2. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    I've downloaded AVISynth and learned the simple but effective scripting language it uses. The trimming works fine, as does the upsampling of the audio. I added a conditional because a few of the clips are already in stereo, but that wasn't a big deal. I was able to join all 6 chunks of the show together as well. I loaded the AVS file in VirtualDub and it played fine. However, when I saved the file to an AVI, the audio was out of synch again. I tried to use SUPER to generate a VOB directly from AVISynch, but got the wonderfully descriptive 'An error has occurred' message several seconds after starting the encoding process. (Why there isn't a more descriptive error message somewhere is beyond me - SUPER is a great tool, but this and it always centering itself on the screen are definite negatives.) I've tried using DirectShow and not and even stripped the AVS file to just a simple DirectShowSource("file.flv") line, all to no effect - SUPER refuses to allow it.

    Anyways, I've tried saving the file in several different formats using both VirtualDub and VirtualDubMod. I honestly don't know what else to do. I'm thinking of downloading the source code for VLC and trying to use the decoder with SUPER somehow, but really don't have a clue where to start with this or whether or not it would even work.

    Has anybody else tried to do something like this or have any ideas as to what else I could try?
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Open the avisynth with hcenc or quenc and convert to dvd mpg that you can later author to a dvd(vob files).
    Quote Quote  
  4. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    upload an flv you are having trouble with to a file sharing site.
    Quote Quote  
  5. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    I downloaded both HcEnc and QuEnc at work and tried both of them tonight. HcEnc doesn't do sound and the A/V sync problems are more pronounced than ever with QuEnc. I've tried VBR and CBR in QuEnc - makes no difference.

    I'm on dial-up and the smallest of the FLV files is about 20 meg, so uploading them to a site is out. (I had temporary access to high-speed, which is when I DLed them. Never dreamed that it'd be such a PITA to transcode them to a usable format!) If you use ReplayCatcher, you can go to nbc.com and download them directly from the Heroes page there.
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  6. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    1.there may be something specific about your file, due to methodology, or corruption or whatever.
    2.it's easier to upload than have other people download and install software, and seek, and ...
    3.i'm not in the US.

    getting a sample was a real mother.
    and i can't repeat it either...

    Anyway.
    Don't know where you got 25fps and 22050 mono audio.
    It's mostly 33.33fps vfr with stereo 44.1 mp3.

    This allowed me to read the FLV files directly in VirtualDub
    you can't do that.
    also it's not a decoding issue, and you should know that Super is not
    something you can really mess with.

    As far as i can tell this will work:
    my preference, use flvextract.
    convert audio to ac3 with uncompressed intermediate step. Use an aften gui like encWAVtoAC3 to convert your uncompressed wav.
    Open the extracted avi with avisynth.
    (you mentioned enabling ffdshow flv4 vfw decoding, so avisource, but directshowsource if not)
    Code:
    avisource("heroes.avi")
    assumefps(29.97)
    import into hc.
    encode to mpeg2.

    use audios and videos to author.

    You also mentioned editing.
    Several options.
    Of which the easiest is probably to load wav into avisynth, trim,
    and use quenc instead to go to mpeg2 with audio.
    Code:
    a = avisource("heroes.avi").assumefps(29.97)
    b = wavsource("heroes.wav")
    audiodub(a,b)
    gl
    Quote Quote  
  7. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    Thank you very much for your advice 45tripp. I did some playing with it last night and got it to transcode correctly. I do have a couple of questions though - they're at the bottom of this post. Here's what I did, what works, and what doesn't.

    This past weekend, I tried burning a DVD with the files transcoded via VLC. To my surprise, neither my PoS $10 after rebate DVD player from Sears or my golden Norcent DP300 would play them. I tried using MPV1 and MPV2, made no difference.

    I got the 25 fps from Media Player Classic selecting File->Properties and selecting the Advanced tab.

    I mis-spoke in my last message. I wasn't intending to modify SUPER, but rather invoke ffmpeg (as SUPER does) directly and pass all the parameters to it, somehow telling it to use a DLL from VLC to decode the video. You were right though - it wasn't a decoding issue.

    I tried using FLVExtract and then multiplexing the audio and video streams together and ended up with AV sync problems, so I figured that there was an esoteric problem with it that just happened to pop up with the movie files NBC produced.

    I followed the directions you gave and modified my AVISynth script to use AssumeFPS(29.97). After splitting it with FLVExtract, I used AVISynth to do an AVISource instead of DirectShowSource. I used SUPER to change the audio from MP3 to a straight wave. I then used WavSource to import the audio and synched the two up. (I've pasted both my original and the modified <working> scripts below.)

    I then used QuEnc to encode to MPEG2 and DVDAuthorGUI to add chapter points and build the VOBs from there. I haven't burnt a disk and tried it yet, but plan on doing so tonight.



    My questions are as follows:

    A) DVDAuthorGUI produces MANY warnings, though I did not copy/paste those to my flash drive last night. (3:15 am - somewhat tired) It didn't stop the image from being built though and the resulting VOBs seemed to play fine in MPC. I'll dial in tonight and post samples of the errors; I'm wondering if they're anything to worry about. The DVD authoring applet in QuEnc reports no errors, but it also doesn't have the ability to add chapter entry points.

    B) The resulting file shows a shorter playing time than the sum of the component clips - around 37 minutes instead of 45-47. I haven't watched it to see if it really is shorter or just a flaw in the play-time calculation routine used.

    C) The resulting MPEG2 file is LARGE - around 2.2 gig for 37 minutes. Even at 50 minutes, I would expect it to be about a gig. I had the thought that it might be because I'm importing the wave file directly without compressing it to either AC3 or MP2, but thought that QuEnc would handle encoding the audio as well as the video. (Under the advanced options, MP2 is indicated with a 256kbps data rate.) I left the bit rate in QuEnc set at the default of 8500, but use variable bit rate is not checked - should it be? This frankly isn't that big of a deal though - I can always use DVDShrink to crunch them down smaller.

    D) I'm resizing the video in AVISynth to fit the DVD standard using BicubicResize. This is the first resize function I ran across in the documentation, but I've since seen many more while poking around the internet, but never a list indicating what the best ones are for speed/quality. Do you know of such a list somewhere? If not, what is the best quality resizing method available in AVISynth?

    E) Are there any string manipulation routines in AVISynth scripts? I looked in the docs, but didn't see anything. I'd like to pass in the directory and file name, then concatenate the extension within the function. Maybe a simple + operand would work, but how does one declare a string? (I haven't played with this at all yet; I was just geeked that it worked at all! )


    Thanks again for all your help. I was getting ready to give up on this. It *is* kinda funny that the main problem I had was using ConvertFPS instead of AssumeFPS... reminds me of the time I spent a day and a half debugging a perl program and didn't find the problem. A week later I went back and looked at it - "oh, of course it won't work - there's supposed to be a semi-colon there." Computers are so darned picky...



    My original script - AV sync problems:

    Code:
    AlignedSplice(ConvertFlvToDVD("c:\Heroes\8-1.flv", 10766, 15), \
                  ConvertFlvToDVD("c:\Heroes\8-2.flv", 14930, 5), \
                  ConvertFlvToDVD("c:\Heroes\8-3.flv", 15462, 7), \
                  ConvertFlvToDVD("c:\Heroes\8-4.flv", 10014, 5), \
                  ConvertFlvToDVD("c:\Heroes\8-5.flv", 7512, 12), \
                  ConvertFlvToDVD("c:\Heroes\8-6.flv", 7765, 10) \
                 )
    
    function ConvertFlvToDVD(string clipname, int endpos, int fadelen)
      {	
      DirectShowSource(clipname)
    #  EnsureVBRMP3Sync()    #does nothing???
      Trim(0, endpos, False)
      FadeOut(fadelen)
      BicubicResize(704, 480)
      ConvertFPS(29.97)
      SSRC(44100)
      ConvertAudioTo16bit()
      aud_chan = Normalize(0.98)
      (AudioChannels() == 1) ? MonoToStereo(aud_chan, aud_chan) : NOP()
    #  Info()     #show info
      return last
      }

    My new script - working!
    Code:
    AlignedSplice(ConvertFlvToDVD("c:\Work\8-1.avi", "c:\Work\8-1.wav", 10766, 15), \
                  ConvertFlvToDVD("c:\Work\8-2.avi", "c:\Work\8-2.wav", 14930, 5), \
                  ConvertFlvToDVD("c:\Work\8-3.avi", "c:\Work\8-3.wav", 15462, 7), \
                  ConvertFlvToDVD("c:\Work\8-4.avi", "c:\Work\8-4.wav", 10014, 5), \
                  ConvertFlvToDVD("c:\Work\8-5.avi", "c:\Work\8-5.wav", 7512, 12), \
                  ConvertFlvToDVD("c:\Work\8-6.avi", "c:\Work\8-6.wav", 7765, 10) \
                 )
    
    function ConvertFlvToDVD(string clipname, string wavename, int endpos, int fadelen)
      {	
      AviSource(clipname, False)
      AudioDub(WavSource(wavename).Normalize(0.98))
      Trim(0, endpos, False)
      FadeOut(fadelen)
      BicubicResize(704, 480)
    #  ConvertFPS(29.97)
      AssumeFPS(29.97)
      return last
      }
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  8. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    I use Moyea's FLV2Video Converter Pro ($40 US) and it work like a charm. I've tried many options (not as many as you have), and this software is the only one I've found that converts any FLV to MPEG2 with no out of sync problems.

    http://www.flvsoft.com/products/

    Relayerman
    Quote Quote  
  9. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    Originally Posted by Ruler2112
    , but rather invoke ffmpeg (as SUPER does) directly and pass all the parameters to it, somehow telling it to use a DLL from
    yeah you can build ffmpeg and configure to use external libraries
    but a lot of things are based on libavcodec anyway, like vlc.

    Originally Posted by Ruler2112
    A) DVDAuthorGUI produces MANY warnings,
    I don't use it.
    Borax is about though. When you post the error messages, he'll probably help.

    Originally Posted by Ruler2112
    B) The resulting file shows a shorter playing time than the sum of the component clips - around 37 minutes instead of 45-47.
    running times according to what?
    assumefps(29,97) with the 33.33fps clip is extending the running time
    You are trimming.
    37 min is correct based on the number of frames you are selecting with avisynth.

    Originally Posted by Ruler2112
    C) The resulting MPEG2 file is LARGE - around 2.2 gig for 37 minutes. I left the bit rate in QuEnc set at the default of 8500, but use variable bit rate is not checked - should it be? This frankly isn't that big of a deal though - I can always use DVDShrink to crunch them down smaller.
    Don't do that!
    Encode once to your target size. Don't encode oversized and then transcode with shrink.
    A bitrate calculator to help you set target bitrate:
    https://www.videohelp.com/calc.htm
    If you keep it at 8500 you can go one pass cbr.
    With that source I'd think anything above 4000 wouldn't be doing much.
    Encode a sample with bitrate increments and decide for yourself.
    Selecting VBR is, normaly, preferable.

    Originally Posted by Ruler2112
    D) I'm resizing the video in AVISynth to fit the DVD standard using BicubicResize.
    It's not going to matter much.
    I believe it's between Lanczos4resize and spline36resize.
    I remember reading spline for downsizing and too close to call for upsizing.

    Originally Posted by Ruler2112
    E) Are there any string manipulation routines in AVISynth scripts? Maybe a simple + operand would work, but how does one declare a string?
    I'm code illiterate but,
    yes, + will concatenate strings
    and you declare strings like so: A = "string"


    EnsureVBRMP3Sync() does something.
    you have to have vbr mp3 though, which you don't, and it probably doesn't do what you think it does.
    http://avisynth.org/oldwiki/index.php?page=EnsureVBRMP3Sync

    SSRC(44100) is wrong.
    as DVD needs 48kHz audio.

    gl
    Quote Quote  
  10. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    I went to the bitrate calculator and figured that I can fit 3 episodes on a disk at 4063kbps. I think I'll try 4000 VBR and see how it looks, but you're right when you imply that it's not that good of a source format. And yeah, it would be a heck of a lot more convenient and probably less quality loss encoding once instead of multiple times; it was a viable workaround though.

    I loaded the MPEG that resulted from the QuEnc encoding process into MPC and it showed something around 37 minutes as the run time. I don't have the exact number - I must've deleted the mpeg once I built the VOBs last night... (I definitely gotta stop this 3 am stuff; I'm not in college anymore and am getting too old for it! ) It's a 1 hour show with around 15 minutes of ads, so something somewhere is getting chopped or it's just not calculating right. I'll go back through and verify that all the Trim commands are correct in my script; I'm just happy it worked!

    Thanks for all your help 45tripp - I really appreciate it.




    The DVDAuthorGUI errors are sampled here; I have several thousand lines of the first (the log file is almost 6 meg, 99% of which are warnings like the first type) and a couple hundred lines of the second with different numbers.

    Code:
     WARN: Discontinuity of 7053 in audio channel 8; please remultiplex input. 
     WARN: Previous sector: 0.500 - 0.500 
     WARN: Current sector: 0.578 - 0.578 
     WARN: Discontinuity of 4702 in audio channel 8; please remultiplex input. 
     WARN: Previous sector: 0.578 - 0.578 
     WARN: Current sector: 0.630 - 0.630 
     WARN: Discontinuity of 7053 in audio channel 8; please remultiplex input. 
     WARN: Previous sector: 0.630 - 0.630 
     WARN: Current sector: 0.708 - 0.708
    Code:
     STAT: fixing VOBU at 6MB (17/5538, 0%) 
     STAT: fixing VOBU at 13MB (33/5538, 0%) 
     STAT: fixing VOBU at 20MB (49/5538, 0%) 
     STAT: fixing VOBU at 27MB (65/5538, 1%) 
     STAT: fixing VOBU at 33MB (81/5538, 1%) 
     STAT: fixing VOBU at 40MB (97/5538, 1%)
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  11. Free Flying Soul liquid217's Avatar
    Join Date
    Feb 2002
    Location
    United States
    Search Comp PM
    Code:
     WARN: Discontinuity of 7053 in audio channel 8; please remultiplex input. 
     WARN: Previous sector: 0.500 - 0.500 
     WARN: Current sector: 0.578 - 0.578 
     WARN: Discontinuity of 4702 in audio channel 8; please remultiplex input. 
     WARN: Previous sector: 0.578 - 0.578 
     WARN: Current sector: 0.630 - 0.630 
     WARN: Discontinuity of 7053 in audio channel 8; please remultiplex input. 
     WARN: Previous sector: 0.630 - 0.630 
     WARN: Current sector: 0.708 - 0.708
    I usually see this error when the audio is not samples at 48000 as it should be. The STATS message is normal operations.
    Quote Quote  
  12. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    I have good news and bad news.

    The good news is that you're exactly right liquid217 - I added SSRC(48000) to the AVISynth script, recoded it, and the errors in DVDAuthorGUI went away. The line is now
    Code:
    AudioDub(SSRC(WavSource(clipname).Normalize(0.98), 48000))
    However, the MPEG has a loud whine/buzz that drowns out all other audio in the program. Don't know what's up with that; I'm trying it with AC3 instead of MP2 audio and will report back. Do errors of that type hurt anything?

    More good news is that I found out what the problem was with the total being less than the sum of it's parts. I loaded up each AVI into VirtualDubMod and checked the end frames and believe it or not, they're off by quite a bit. Don't quite know how this works, but I just corrected them and moved on.

    The bad news is that I burnt a copy of the DVD I authored last night and it played fine, except the AV Sync problem again showed up a few minutes into the program!!! I'm hoping that this is just because of the wrong values I passed to Trim; I'll report back on this as well when I have more information.
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  13. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    Code:
    function ConvertFlvToDVD(string clipname, string wavename, int endpos, int fadelen)
      {	
      A = AviSource(clipname, False).AssumeFPS(29.97)
      B = WavSource(wavename).Normalize(0.95).SSRC(48000)
      AudioDub(A,B)
      Trim(0, endpos, False)
      FadeOut(fadelen)
      Lanczos4Resize(704, 480)
      
      return last
      }
    could also try letting trim default to audio padding.

    gl
    Quote Quote  
  14. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    I'll give your changes a try 45tripp.

    I didn't work on it last night, other than to watch the episode I'd done and burnt to DVD+RW. Interesting.... The audio starts off in synch with the video and over the course of a few minutes, wanders until it's very noticeable and distracting. When the video changes to a new segment of the show (different FLV that was joined with AVISynth), the audio is back in synch with the video again. From what I could tell, it takes the same amount of time for each segment for the AV to be out of synch enough to be bothersome.

    The quality was about as good as could be expected, but other than the AV sync problem, is only a touch lower than the episodes I recorded on VHS tape. (And hey, I'm probably going to buy the DVD set eventually; my parents and myself just want to be caught up on the storyline for when the new season begins. I can certainly live with the low quality, but the AV synch problem is highly annoying.)
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  15. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    OK, I took a few days and got away from it, hoping that I'd see something upon my return. I tried using the default value for Trim - no luck. I tried using AssumeFPS(33.33) followed by a ConvertFPS(29.97) that resulted in a far worse AV synch problem. (This, along with each segment taking about the same amount of time to wander off is an indication to me that IF I can find the exact right values for the AssumeFPS command and follow it with a ConvertFPS(29.97) command to convert it to DVD standard, I can probably eliminate the problem.) I even tried doing nothing with the FPS, but AVISynth complained about the files not having the same FPS.

    Other than playing with the values in the two FPS commands, any ideas? Any way to mathematically compute the value I should use in the AssumeFPS command to bring the audio and video back together? I'm going to continue fiddling with this, trying to fix it, but wanted to check in and see if anybody has already run into and fixed this sort of problem before.
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  16. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    You don't say what happened when using the exact script I provided.

    Look at the video and audio lengths of the extracted files from flvextract.

    Find a way to upload 2-3 episode parts.

    gl
    Quote Quote  
  17. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    Same AV Synch problems with your script 45tripp.

    The video and audio lengths are different after extraction. Don't know what's up with that. I did try something last night: I took the total number of frames and divided by the total number of seconds in the file and used AssumeFPS with the 29.29 that I came up with for all the files I tried it with. I then used ConvertFPS(29.97) to put it in DVD format. No go - still trouble with the AV Synchronization.

    Anyways, we're having an off-site sale at work and I was able to push some of the files up to OrbitFiles. Links to the 4 I uploaded are:

    http://www.orbitfiles.com/download/id1670771839
    http://www.orbitfiles.com/download/id1670794957
    http://www.orbitfiles.com/download/id1670806335
    http://www.orbitfiles.com/download/id1670823983
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  18. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    yeah, our samples differ.

    anyway keeping the same idea and tweaking I got to the following which works for me:


    Code:
    AlignedSplice(ConvertFlvToDVD("4-1.avi", "4-1.wav", 11410, 20),\
                  ConvertFlvToDVD("4-2.avi", "4-2.wav", 16473, 5), \
                  ConvertFlvToDVD("4-3.avi", "4-3.wav", 15400, 5), \
                  ConvertFlvToDVD("4-4.avi", "4-4.wav", 10000, 5) \ 
    ).assumefps(29.97, true)
    
    function ConvertFlvToDVD(string clipname, string wavename, int endpos, int fadelen)
      {   
      A = AviSource(clipname, False).assumefps(30)
      B = WavSource(wavename).Normalize(0.95).SSRC(48000)
      AudioDub(A,B)
      Trim(0, endpos)
      FadeOut(fadelen)
      Lanczos4Resize(704, 480)
      
     
      return last
      }
    gl
    Quote Quote  
  19. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    OK, my machine is in the process of chewing on the video as I type this. One thing that I did have a problem with is the ', True' in the AssumeFPS call after the AlignedSplice command. I tried splitting that command out on a separate line, but it made no difference. If I get rid of the ', True', it works. If I leave it in, QuEnc says it's done encoding almost immediately and the size of the resulting file is 0 bytes.

    I'm trying it without the ', True' and will report back with success/failure. I find it curious that it fails and doesn't provide any type of error message or anything though... I'll dig through the docs and see what I can find.
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  20. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    I'm not quite understanding this. When I open the AVS file with ', True' in the AssumeFPS command, it plays with the audio in perfect synch with the video. However, QuEnc won't encode it.

    Ideas as to what I'm doing wrong or what's wrong with my setup?


    *edit - Forgot to mention that not using the ', True' in the AssumeFPS command didn't work - AV synch problem still there without it. *
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  21. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    Nevermind that last post - I found the solution.

    I've been using 1-pass CBR encoding with High Quality turned off. It seems that QuEnc chokes on it if I use 1-pass, but using 2-pass encoding is seeming to work OK.

    Another hour or so and I should know if the problem is solved or not.
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  22. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    replace assume(29.97, true) with changefps(29.97) if you still run into problems,
    or put assumefps(29.97) as the very last line instead, deleting the argument after alignedsplice.

    gl
    Quote Quote  
  23. Member
    Join Date
    Jul 2007
    Location
    Mid-Michigan, USA
    Search Comp PM
    OK, got the encoding problem resolved - I used .ChangeFPS(30000, 1001) after the AlignedSplice command (I think; doing this from memory because the machine is at home) - works perfectly! The audio is perfectly in synch with the video all the way through every chunk of the episode.

    I am having one more intermittent problem with the audio this time. Every now and again, a segment will have a high pitched whine over the entire audio track. It doesn't happen with every file. Within each episode, one or more chunks may have this whine. If I encode one episode twice, it may or may not have the same chunks with the whine. The WAV files are fine. I'm putting 3 episodes per disk; the first 2 went through perfectly first time, but I've encoded the last one 4 times so far, each time a different chunk of the episode has this whine. I'm at a loss as to what may be causing it. Since you've known pretty much exactly how to fix the rest of the problems I've had 45tripp, do you have any ideas or suggestions?
    Nobody is perfect. I am nobody. Therefore, I am perfect.
    Quote Quote  
  24. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    Actually i have no idea.
    When you say 'whine', nothing clicks.
    Whine says faulty recording, or equipment.
    I don't know. I've never had audio whine at me.

    My suggestion is to do separate audio processing.
    Maybe start by killing audio processing in your script, no normalizing, and resample during mp3->wav conversion.
    Next try BeHappy with your audio, which is avisynth and aften.
    Last maybe join wavs with an audio editor like audacity and encode to dolby with an aften gui like EncWAVtoAC3.

    And failing a solution,
    start a new thread, heavy with info on the specific problem,
    so you can perhaps bring it to the attention of someone who might know.


    gl
    Quote Quote  



Similar Threads

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