Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th January 2015, 05:27   #1  |  Link
Qjimbo
Registered User
 
Join Date: Sep 2005
Posts: 85
FFMPEG encode specific titles from DVD

I want to encode videos I have recorded on a DVD Recorder with FFMPEG. The DVD recorder stores all the separate titles as if they are one long stream but split into a series of VOB files of equal size, like this:

This DVD has 8 titles/recordings, but the VOB files don't match up to that.
Is there a way I can tell FFMPEG what titles to convert from a series of files like this? I am using FFMPEG on Windows, not Linux, if that makes any difference. Thanks!

Last edited by Qjimbo; 29th January 2015 at 05:30.
Qjimbo is offline   Reply With Quote
Old 29th January 2015, 05:57   #2  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
ffmpeg don't support titles I guess, how about makemkv?
stax76 is offline   Reply With Quote
Old 29th January 2015, 06:08   #3  |  Link
Qjimbo
Registered User
 
Join Date: Sep 2005
Posts: 85
Well the main reason I wanted to use FFMPEG is the control of the deinterlacing - I like using yadif=1 with FFMPEG to get 60fps from 30fps. Also it's just nice to have full control over the encoding. Handbrake doesn't allow this, and it doesn't look like makemkv does this either - thanks for the suggestion though!
Qjimbo is offline   Reply With Quote
Old 29th January 2015, 06:44   #4  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
I think stax means to use MakeMKV to remux titles to single MKV and then use FFMPEG on the remuxed MKV.

MakeMKV is just a remuxer, no deinterlacing or anything. Only exception is audio conversion to FLAC or AAC.

"full control" would be better suited in avisynth.
Indexing mkv with FFMS2 or demux to get m2v elementary stream and index that with DGdec (freeware version; or the paid NVidia version DGdecNV, requires NVidia card).
And then use a sleu of filters. TFM, TDecimate, etc. There's also yadif filter for avisynth.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 29th January 2015, 06:46   #5  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Did you check makemkv's capabilities? It's a extraordinary tool!
stax76 is offline   Reply With Quote
Old 29th January 2015, 08:03   #6  |  Link
Qjimbo
Registered User
 
Join Date: Sep 2005
Posts: 85
Oh I see, I just assumed it encoded as well! I will check it out, looks like a good way to go about doing it.
Qjimbo is offline   Reply With Quote
Old 29th January 2015, 14:01   #7  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Is is necessary to use ffmepg?
Because the way the DVD recorder stores the recordings is quite different than a regular DVD-Video.
You have to extract first the individual movies then, if you insist, recode them with ffmpeg.

Nevertheless, I am of the opinion that recompressing a video obtained from a DVD recorder is "less clever".
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 29th January 2015, 15:53   #8  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Quote:
Originally Posted by Qjimbo View Post
Well the main reason I wanted to use FFMPEG is the control of the deinterlacing - I like using yadif=1 with FFMPEG to get 60fps from 30fps. Also it's just nice to have full control over the encoding. Handbrake doesn't allow this, and it doesn't look like makemkv does this either - thanks for the suggestion though!
For the record, if you select "BOB" as the de-interlacer in Handbrake you get 60fps from 30fps and I'm pretty sure it uses Yadif.

You can Use DVDShrink's re-author function to "prepare" DVDs for encoding. Just make sure it's compression is disabled so it doesn't try to shrink. Or set the target output size in preferences to something large.
If there's a title per episode etc, re-author mode lets you drag each one from the right pane to the left. After using the backup function, you'll have a set of vob files per title (or you can tell DVDShrink not to split the vobs).
If everything's in a single title and (maybe) split by chapters, you can drag the single title to the left pane multiple times, then use the edit function to edit each copy down to a range of chapters (or frames). You can also edit individual titles the same way. Then once again, use the backup function.

I'm of the opinion re-compressing the video obtained from a DVD recorder can be quite clever, especially if it's interlaced and you run it by QTGMC. Better than Yadif, and probably better than any player/TV hardware de-interlacing.
http://avisynth.nl/index.php/QTGMC
http://forum.doom9.org/showthread.php?t=156028

Last edited by hello_hello; 29th January 2015 at 15:56.
hello_hello is offline   Reply With Quote
Old 29th January 2015, 18:46   #9  |  Link
Qjimbo
Registered User
 
Join Date: Sep 2005
Posts: 85
I gave DVDShrink a shot, but it kept saying "Invalid Navigation Structure". MakeMKV also gives an error to begin with, saying "IFO file for VTS #1 is corrupt", but after it scans it it figures it out perfectly, so I'm going to stick with this tool for now. Thanks for the help everyone!
Qjimbo is offline   Reply With Quote
Old 29th January 2015, 19:03   #10  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
With old tools such as DVDShrink you are much more likely to run into issues like out of sync audio when you re-encode. There are DVD structures where many tools fail while MakeMKV handles it all fine.
stax76 is offline   Reply With Quote
Old 29th January 2015, 19:09   #11  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Quote:
Originally Posted by Qjimbo View Post
I gave DVDShrink a shot, but it kept saying "Invalid Navigation Structure". MakeMKV also gives an error to begin with, saying "IFO file for VTS #1 is corrupt", but after it scans it it figures it out perfectly, so I'm going to stick with this tool for now. Thanks for the help everyone!
Maybe if you would have stated your goals, not your intended method, would have been better.

Tools designed for DVDs (Video-DVDs, as opposed to recorded ones) sometimes have problems with the recorded DVDRs. Because the recorders use non-standard infos. A workaround would be to record a movie at a time, and reuse the DVD-RW (+RW, -RAM) after a full/quick erase.
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 29th January 2015, 20:41   #12  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Quote:
Originally Posted by Qjimbo View Post
I gave DVDShrink a shot, but it kept saying "Invalid Navigation Structure". MakeMKV also gives an error to begin with, saying "IFO file for VTS #1 is corrupt", but after it scans it it figures it out perfectly, so I'm going to stick with this tool for now. Thanks for the help everyone!
It does tend to be fussy about DVD files being 100% compliant. At least when using the Open Files menu.
You could try clicking on the re-author button, then using the DVD browser in the right pane to open the folder. You might find it'll offer a listy of titls without complaining.

I've re-authored and ripped about a squillion DVDs with DVDShrink without any audio sync issues. If it can't handle the copy protection on a disc, I run AnyDVD in the background. If MakeMKV is working though, there's no reason not to use it.

Although I have had the odd issue re-encoding mpeg2 video in an MKV with Avisynth and FFMS2 indexing. As a result, I now use TS muxer to remux mpeg2 video in MKVs as TS files before opening with Avisynth and DGIndex, but whatever works.....

Quote:
Originally Posted by Ghitulescu View Post
Maybe if you would have stated your goals, not your intended method, would have been better.

Tools designed for DVDs (Video-DVDs, as opposed to recorded ones) sometimes have problems with the recorded DVDRs.
The goal is to re-encode the existing video.
I'll bite.... what further goal needs stating in order to determine if there's a better tool to prepare it for encoding?

Last edited by hello_hello; 29th January 2015 at 20:50.
hello_hello is offline   Reply With Quote
Old 29th January 2015, 21:07   #13  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
I've re-authored and ripped about a squillion DVDs with DVDShrink without any audio sync issues.
In the past using DVD Decrypter and DGDecode there were many sync issues, with MakeMKV the problems were gone and the process was much simplified.

Quote:
Although I have had the odd issue re-encoding mpeg2 video in an MKV with Avisynth and FFMS2 indexing. As a result, I now use TS muxer to remux mpeg2 video in MKVs as TS files before opening with Avisynth and DGIndex, but whatever works.....
You mean sync issues? For MKV you must account the Video_Delay property as shown by MediaInfo. Only issues with MPEG-2 MKV I've seen is video artifacts but not recently and not from MakeMKV I think.
stax76 is offline   Reply With Quote
Old 29th January 2015, 21:51   #14  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Quote:
Originally Posted by stax76 View Post
In the past using DVD Decrypter and DGDecode there were many sync issues, with MakeMKV the problems were gone and the process was much simplified.
I'm not sure I've experienced any of them. That's pretty much all I've ever done. RipIt4Me for a long time (it uses DVD Decrypter for ripping) although now I mostly use DVDShrink with AnyDVD. For years that'd be followed by re-encoding with AutoGK, which uses DGDecode and AVISynth. These days MeGUI has replaced AutoGK, but honestly, if I've had any audio sync problems after re-encoding DVDs they've been so few and far between I can't recall a specific example, although it probably would have been a copy protection problem. MakeMKV can handle newer copy protections older programs can't. No doubt about that.

Quote:
Originally Posted by stax76 View Post
You mean sync issues? For MKV you must account the Video_Delay property as shown by MediaInfo. Only issues with MPEG-2 MKV I've seen is video artifacts but not recently and not from MakeMKV I think.
No I mean decoding issues. It was probably just a problem with the version of ffms2 I was using at the time. I can't remember exactly what it was, but it wasn't artefacts. I think it was something to do with being able to de-interlace or IVTC the video properly, but as I said, it was probably an FFMS2 issue. I do remember though, after remuxing with TSMuxer and opening the TS files with DGIndex the problem would go away, so I've done the same ever since. Not that I work with MKVs containing mpeg2 video all that much. I still rip to vob files.

Last edited by hello_hello; 29th January 2015 at 21:54.
hello_hello is offline   Reply With Quote
Old 29th January 2015, 22:44   #15  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
@hello_hello

You were lucky if you didn't have any sync problems and I mean subtitles as well, I still keep all 3 three DVDs I had problems with in my samples collection.
stax76 is offline   Reply With Quote
Old 30th January 2015, 00:07   #16  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
All three of them?
hello_hello is offline   Reply With Quote
Old 30th January 2015, 01:50   #17  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
123 thousand problems... with those discs
stax76 is offline   Reply With Quote
Old 30th January 2015, 04:08   #18  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
But just those three?
hello_hello is offline   Reply With Quote
Old 30th January 2015, 14:54   #19  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Quote:
Originally Posted by hello_hello View Post
The goal is to re-encode the existing video.
I'll bite.... what further goal needs stating in order to determine if there's a better tool to prepare it for encoding?
The goal was if I read it correctly - to encode a video from a DVDrecorder with ffmpeg. And it was repeated his next reply.
Quote:
Originally Posted by hello_hello View Post
I've re-authored and ripped about a squillion DVDs with DVDShrink without any audio sync issues.
This is unfortunately less relevant for the topic, as the DVDs from a DVDrecorder differ in a few things from a properly authored industrial DVD.
As I have 3 different makes (not models, these are more than 3, but makes) and I used them in the past, I know DVDshrink may have issues. As well as other tools that expect a pure (or intentionally defective) DVD.


@quimbo:
Have you managed to solve this issue?
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 30th January 2015, 18:11   #20  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Quote:
Originally Posted by Ghitulescu View Post
Maybe if you would have stated your goals, not your intended method, would have been better.

Tools designed for DVDs (Video-DVDs, as opposed to recorded ones) sometimes have problems with the recorded DVDRs.
Quote:
Originally Posted by Ghitulescu View Post
The goal was if I read it correctly - to encode a video from a DVDrecorder with ffmpeg. And it was repeated his next reply.
Obviously I'm a glutton for punishment......
So the goal has been stated? Or when I asked what further goal you think might need stating, you thought I was enquiring after your copying and pasting skills?

You've had more experience than the rest of us with these discs, and as a result you know programs such as DVDShrink may not work, but I look forward to learning more from your experience if Qjimbo returns to clarify the intended goal for you.

Quote:
Originally Posted by Ghitulescu View Post
Have you managed to solve this issue?
Quote:
Originally Posted by Qjimbo View Post
I gave DVDShrink a shot, but it kept saying "Invalid Navigation Structure". MakeMKV also gives an error to begin with, saying "IFO file for VTS #1 is corrupt", but after it scans it it figures it out perfectly, so I'm going to stick with this tool for now. Thanks for the help everyone!
hello_hello is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:33.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.