VideoHelp Forum




+ Reply to Thread
Results 1 to 16 of 16
  1. Hi all,

    So I need a bit of help. I recently purchased a new album and it came with a DVD which has some music videos on it, I figured each music video would be a separate VOB file... although that is not the case.

    The music videos are contained in two VOB's (VTS_01_1.VOB and VTS_01_2.VOB). So now I would like to re-encode it to x264 although my Avisynth scripting knowledge is pathetic to say the least. I have done some googling but have not found anything useful.


    What I am trying to do is separate the music videos, I want each music video to end up as a separate MKV and preferably be able to specify where each music video beigns / ends with timestamps. Also since the first VOB file ends randomly in the middle of a music video and the 2nd one continues from there I need the script to first join the VOB files.

    If it is not possible to specify with timestamps I would imagine it to be possible to specify with frames, although which application could I use to easily navigate through the VOB files (preferably with them somehow appended) and then take a look at which frames each music video begins / ends.

    If it makes any difference I will use MeGUI to process the script. I also need to be able to split the audio along with the video and they both need to sync up obviously. I would like to make the video X264 and AAC audio.

    If anyone could help me out I would greatly appreciate it!

    Regards,
    Psy
    Quote Quote  
  2. VideoRedo can do it all. They do a thirty day trial.
    At worst you can edit with it and encode with whatever you like.
    Quote Quote  
  3. Originally Posted by transporterfan View Post
    VideoRedo can do it all. They do a thirty day trial.
    At worst you can edit with it and encode with whatever you like.
    Hmm, I would rather try and make use of an avisynth script as then I can do all the encoding with meGUI which I rather like.
    Not sure how specific you can be with the encoding options in Video Redo?
    Although if I have to use it, I will get the 30 day trial and take a look.

    Thanks
    Quote Quote  
  4. Member
    Join Date
    Aug 2006
    Location
    United States
    Search Comp PM
    VideoReDo only re-encodes a few frames near the cuts, at most. If the clip begins and ends on GOP boundaries it does not re-encode at all. You can encode the resulting MPEG-2 clips with MeGUI afterwards.
    Quote Quote  
  5. Originally Posted by usually_quiet View Post
    VideoReDo only re-encodes a few frames near the cuts, at most. If the clip begins and ends on GOP boundaries it does not re-encode at all. You can encode the resulting MPEG-2 clips with MeGUI afterwards.
    I see, so it would basically be splitting the vob files?
    Also what are GOP boundaries?

    So it will only encode the few frames if the split is between the gop boundaries, the rest will stay untouched?
    I'd imagine the audio to not be re-encoded either?

    Thanks,
    Psy
    Quote Quote  
  6. Member
    Join Date
    Aug 2006
    Location
    United States
    Search Comp PM
    I-Frames mark the beginning and end of MPEG-2 GOPs. VideoReDo will also allow clips to end on P frames without re-encoding. The clips you make must begin on an I-Frame and end on an I-Frame or P-Frame to completely avoid re-encoding.

    I-Frames are the only frames in a GOP with complete picture information. B and P reference frames that precede them for some information.

    Audio is not re-encoded unless the cut requires it.
    Last edited by usually_quiet; 12th Apr 2012 at 15:32. Reason: spelling
    Quote Quote  
  7. He's re-encoding both video and audio anyways, so it doesn't matter

    So, you might as well do the cuts in avisynth, so not even a few frames are re-encoded twice. (Instead everything is just encoded once)

    Specify audio in the script and use Trim() for your cuts
    http://avisynth.org/mediawiki/Trim

    e.g.
    Code:
    vid=MPEG2Source()
    aud=NicAC3Source()
    Audiodub(vid, aud)
    DelayAudio()
    Trim()
    If you have different audio, like mp2 you can use FFAudioSource instead, or another source filter

    DelayAudio is the value written in the audio name in ms when demuxed by DGIndex. This will keep it in sync

    Trim(a,b) specfies the cut points, e.g. Trim(1000,2000) would return frames 1000-2000

    You can preview your scripts in a media player e.g. mpc to make sure they are ok and in sync before encoding

    Use search for basic tutorials, this has all been covered before (many times...)
    Quote Quote  
  8. Awesome, thanks a lot guys!

    Am using something like so at the moment:

    Code:
    LoadPlugin("C:\Megui\tools\dgindex\DGDecode.dll")
    video=DGDecode_mpeg2source("C:\VIDEO_TS\one.d2v")
    audio=WAVSource("C:\VIDEO_TS\one.wav")
    Audiodub(video, audio)
    Lanczos4Resize(720,404) # Lanczos4 (Sharp)
    Trim(5175,10950)
    It seems to be working fine so far. Avisynth automatically continues from the next .vob / .d2v and audio track so no need to have the video=xxx + xxx...
    I am assuming it something built into Avisynth which applies to Mpeg2? As with avi sources you would generally have to specify it to continue from the next avi file etc.
    Quote Quote  
  9. If you just want to cut the VOB set into individual MPG files you can use Mpg2Cut2. Open VOB set, mark-in, mark-out, Save this clip, repeat.
    Quote Quote  
  10. Originally Posted by PsyCLown View Post
    It seems to be working fine so far. Avisynth automatically continues from the next .vob / .d2v and audio track so no need to have the video=xxx + xxx...
    I am assuming it something built into Avisynth which applies to Mpeg2? As with avi sources you would generally have to specify it to continue from the next avi file etc.

    What? It doesn't do that... unless I'm misunderstanding what you are saying?

    If you rip it as 1 big VOB or MPEG, or combine the VOBs in DGIndex before indexing then it will treat it as 1 video.

    But if you index a single VOB , the 2nd one isn't necessarily automatically indexed or joined
    Quote Quote  
  11. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    Rip it By Chapter with DVDDecrypter. Concert/Music DVDs are rarely super-copy protected.
    Quote Quote  
  12. Originally Posted by poisondeathray View Post
    Originally Posted by PsyCLown View Post
    It seems to be working fine so far. Avisynth automatically continues from the next .vob / .d2v and audio track so no need to have the video=xxx + xxx...
    I am assuming it something built into Avisynth which applies to Mpeg2? As with avi sources you would generally have to specify it to continue from the next avi file etc.

    What? It doesn't do that... unless I'm misunderstanding what you are saying?

    If you rip it as 1 big VOB or MPEG, or combine the VOBs in DGIndex before indexing then it will treat it as 1 video.

    But if you index a single VOB , the 2nd one isn't necessarily automatically indexed or joined
    Hmm, thats what I thought. I suspected it was just a new feature in a newer version and mine was out-dated...
    Perhaps meGUI auto combined them or something, but I doubt it.

    I had 2 .vob's (first was 19min and 16sec) the second was 44 seconds. I indexed it with the file indexer in meGUI (both of them, one at a time obviously) and then made use of the above avisynth script. When I played the .avs back with MPC it was 20 minutes.
    When I put it into meGUI it was also 20 minutes.

    meGUI did index it with DGindex though something must have happened there then. Otherwise I am not sure how that happened?
    As I originally had this script:

    Code:
    LoadPlugin("C:\Megui\tools\dgindex\DGDecode.dll")
    video=DGDecode_mpeg2source("C:\VIDEO_TS\one.d2v")+DGDecode_mpeg2source("C:\VIDEO_TS\two.d2v")
    audio=WAVSource("C:\VIDEO_TS\one.wav")+WAVSource("C:\VIDEO_TS\two.wav")
    Audiodub(video, audio)
    Lanczos4Resize(720,404) # Lanczos4 (Sharp)
    Which then resulted in the whole video being 20 minutes 44 seconds and the last 44 seconds being repeated starting at the 20 minute mark which initially confused me.

    So I removed the 2nd part of the video and audio in the script and all was good. It was as if the it was already merged.



    Originally Posted by hech54 View Post
    Rip it By Chapter with DVDDecrypter. Concert/Music DVDs are rarely super-copy protected.
    Did not try that, will remember it next time!
    Thanks
    Quote Quote  
  13. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    Messing with "scripting" is a waste of time for simple stuff like this. You could have "chaptered" your entire DVD collection by now with DVDDecrypter and a few mouse clicks.
    Quote Quote  
  14. Originally Posted by hech54 View Post
    Messing with "scripting" is a waste of time for simple stuff like this. You could have "chaptered" your entire DVD collection by now with DVDDecrypter and a few mouse clicks.
    Well I have already finished the encoding and all, although for next time I will remember this.
    Will play around with it when I get home and get a chance to.

    Seldom that I have to split up the VOB's, often have to combine them into a single big one :P haha
    Quote Quote  
  15. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    Originally Posted by PsyCLown View Post
    Originally Posted by hech54 View Post
    Messing with "scripting" is a waste of time for simple stuff like this. You could have "chaptered" your entire DVD collection by now with DVDDecrypter and a few mouse clicks.
    Well I have already finished the encoding and all, although for next time I will remember this.
    Will play around with it when I get home and get a chance to.

    Seldom that I have to split up the VOB's, often have to combine them into a single big one :P haha
    There is also am option in DVDDecrypter called "File Splitting - NONE" that gives you one, giant VOB. VOB2MPEG (also free and easy) does the same thing.
    Quote Quote  
  16. Often the tracks of each DVD are a separate titles on the disc. If you've already ripped the whole disc, you can open it with DVD Shrink and use it's re-author mode. After hitting the re-author button there should be a list of titles in the right hand pane. If each is an individual song you can drag each from the right pane to the left pane, then use DVD Shrink's backup function to save a new copy of the DVD to your hard drive. The new version will have each title (and therefore each video) as an individual vob file.
    Quote Quote  



Similar Threads

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