DVD ripping and VAMPS shrink. How??

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

User avatar
rcrsn51
Posts: 1389
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: DVD ripping and VAMPS shrink. How??

Post by rcrsn51 »

If the objective is still to make a new DVD, you could skip vamps and try converting the VOB file to an MP4 with ffmpeg. If that gets you a playable file, you could convert it back to a hopefully smaller VOB and author/burn it.

Code: Select all

ffmpeg -y -i input.vob -vf format=yuv420p -vcodec libx264 -acodec aac  output.mp4
ffmpeg -y -i output.mp4 -target pal-dvd -aspect 4:3 final.vob
Last edited by rcrsn51 on Fri Jun 18, 2021 11:14 pm, edited 7 times in total.
User avatar
wizard
Posts: 1973
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2635 times
Been thanked: 685 times

Re: DVD ripping and VAMPS shrink. How??

Post by wizard »

@greengeek

using dpup stretch 7,5rc5

ran a test as follows:

-DVDrip_mplayer.sh used to rip original movie to single file, test.vob = 7.4gb
-use pdvdrsab shrink size set to 3900
-test-shrank.vob= 4.4gb and is full movie

This file could then be converted to a dvd compliant .mpg and authored with pdvdrsab, then burned to disk

Something strange happening with your dvd I think. Try testing the process with a disk that is not damaged.

Also, have you tried polishing the damaged dvd to improve readability?

wizard

Big pile of OLD computers

User avatar
rcrsn51
Posts: 1389
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: DVD ripping and VAMPS shrink. How??

Post by rcrsn51 »

@greengeek Any updates on this situation?

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

Progress report:

Running these tests is a very slow process but I have made some steps forward.

So far I have reached the following conclusions (but there is much more testing to come):

1) The most reliable tool for getting data off the dvd disc is vobcopy which produced 2x 2048MB and 1x1024MB vobs.

In my case (with what appears to be a damaged dvd) the other tools such as pburn, mplayer and pdvdrsab left large sections of the vob data unread, ignored or truncated.

2) Now that I can view the entirety of the film data within the 3 vobs created by vobcopy I can see that the data stream contains 4 different "episodes". (I won't call these "chapters" as I think that would be misleading and has a specific meaning in regard to dvd structure).
I initially tried to shrink these vobs with vamps but have decided that vamps is an unreliable tool and I am not going to use it. That "unreliability" is probably due to a combination of damaged dvd, complexity of the data structure within the vob files, and/or possibly my incorrect usage of vamps commandline parameters/arguments.
(Vamps worked fine on another dvd which contained a much shorter film and no dvd scratches)

So now that I see the dvd contains 4 episodes spread across 3 vobs I wanted to find a way to cut and concatenate the vobs as required (ie: make 4 vobs from 3) instead of trying to shrink them unreliably.

I tried to use ffmpeg to do this trimming (ffmpeg has no trouble clipping and joining mkv, avi etc) but it was not capable of trimming at the correct time boundaries I selected in the vobs. There were error messages about timestamps being irregular and some functions being deprecated:

Code: Select all

Input #0, mpeg, from '/root/TESTin.vob':
  Duration: 00:13:12.28, start: 0.287267, bitrate: 21683 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x20]: Subtitle: dvd_subtitle
    Stream #0:3[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:4[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:5[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:6[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:7[0x84]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:8[0x85]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
[svcd @ 0xa9c5460] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
[svcd @ 0xa9c5460] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, svcd, to 'TESTout.vob':
  Metadata:
    encoder         : Lavf57.41.100
    Stream #0:0: Video: mpeg2video, yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:3 -> #0:1 (copy)
Press [q] to stop, [?] for help
[svcd @ 0xa9c5460] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
frame=  390 fps=0.0 q=-1.0 Lsize=   13466kB time=00:00:15.00 bitrate=7354.2kbits/s speed= 184x    
video:12930kB audio:369kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.256009%

It appears that it is common for timestamps to jump all over the place when handling files from dvds (I suspect this is part of a deliberate strategy to make DVDs hard or impossible to duplicate).

I found the following link which describes such an issue:
https://superuser.com/questions/1389922 ... o-in-and-o

The suggested solution was to use avidemux to manipulate the vobs.
This was very successful. I was able to see all of the data clearly, identify the points at which each episode began and ended - and to save the resulting files as mp4s. Timestamps are now good.

(I had also found links advising how to use ffmpeg to re-format the vobs and rebuild the timestamps without it re-encoding them but I had no success with that approach)

So now I have 4 mp4 files that contain the whole of the 4 episodes that were on the DVD. At least this is first base - even though it is not the route I expected to travel.

My inability to properly manipulate the vobs the way I originally intended is likely due to the dvd scratching. Note to wife: 2 year old grandchildren holding DVDs do not belong near sandpits.

One of my next steps will be how to get from this first base of separate mp4 files back to one full DVD containing 4 episodes. But that will be a different thread as this one was mostly about using Vamps to shrink the ripped dvd but my conclusion is that using vamps may not be a reliable approach.

Although I have now got to first base I still have a number of unresolved questions regarding the best way to get a dvd ripped and shrunk so I have further tests to perform:

1) rcrsn51 » Fri Jun 18, 2021 9:16 pm
According to the vobcopy man page, it will generate a single file with the --large-file option.

2) rcrsn51 » Sat Jun 19, 2021 6:17 am
If the objective is still to make a new DVD, you could skip vamps and try converting the VOB file to an MP4 with ffmpeg. If that gets you a playable file, you could convert it back to a hopefully smaller VOB and author/burn it.
ffmpeg -y -i input.vob -vf format=yuv420p -vcodec libx264 -acodec aac output.mp4
ffmpeg -y -i output.mp4 -target pal-dvd -aspect 4:3 final.vob

3) wizard » Sat Jun 19, 2021 8:11 am
using dpup stretch 7,5 rc5 ran a test as follows:
-DVDrip_mplayer.sh used to rip original movie to single file, test.vob = 7.4gb
-use pdvdrsab shrink size set to 3900
-test-shrank.vob= 4.4gb and is full movie

(I thought my copy of Dpup Stretch was the latest but it does not appear to include DVDrip_mplayer.sh) Need to look more closely at this.

4) Test Devede

5) Test Handbrake

6) Work out why many sites say vob max size is 1GB, yet vobcopy creates 2GB vobs quite happily. (Is this normal?)

Thank you all for the help so far :thumbup: - I will report back once I finish the other tests.

Any further suggestions or questions gratefully received.

Last edited by greengeek on Sun Jun 20, 2021 9:12 pm, edited 3 times in total.
User avatar
wizard
Posts: 1973
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2635 times
Been thanked: 685 times

Re: DVD ripping and VAMPS shrink. How??

Post by wizard »

@greengeek
Look on page 2 of this topic and you'll find my post with the dvdcopy.zip attachment. DVDrip_mplayer.sh is in the zip file. It is a script file I created to run the mplayer command that rips the dvd. Open DVDrip_mplayer.sh in geany and edit for your needs, it just makes things easier.

wizard

Big pile of OLD computers

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

wizard wrote: Sun Jun 20, 2021 7:10 pm

Look on page 2 of this topic and you'll find my post with the dvdcopy.zip attachment.

Of course! Thanks - I had downloaded it and put the scripts to one side. Will look again.

User avatar
wizard
Posts: 1973
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2635 times
Been thanked: 685 times

Re: DVD ripping and VAMPS shrink. How??

Post by wizard »

@greengeek

Make sure you set the permissions for DVDrip_mplayer.sh to executable. For your ongoing project, keep in mind that the .mp4 files will have to be re-coded into a dvd compatible mpg before it can be authored with dvdauthor (pdvdsrab).

wizard

Big pile of OLD computers

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

wizard wrote: Mon Jun 21, 2021 2:33 am

Make sure you set the permissions for DVDrip_mplayer.sh to executable. For your ongoing project, keep in mind that the .mp4 files will have to be re-coded into a dvd compatible mpg before it can be authored with dvdauthor (pdvdsrab).

So do you think it would have been a better choice to get avidemux to save the trimmed files as mpg instead of mp4?

User avatar
amethyst
Posts: 2414
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 57 times
Been thanked: 504 times

Re: DVD ripping and VAMPS shrink. How??

Post by amethyst »

This (re)re-encoding of files will surely result in some quality loss. Surely there must be a simple way for this just to work and retain the original quality of the source media? Just need to find the "correct" software to do the job, I reckon. I'm following this thread with interest. I mean, how many millions of people have successfully copied a DVD, it's not an uncommon task (shouldn't be).

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

rcrsn51 wrote: Fri Jun 18, 2021 9:16 am

According to the vobcopy man page, it will generate a single file with the --large-file option.

Thanks - this syntax worked and generated a 5.6GB vob.
Unfortunately vamps is still unable to shrink this file (due to the same type of fatal errors as before). So far it seems that using avidemux is my only option for converting this file into something smaller and retaining proper timestamps.

If the objective is still to make a new DVD, you could skip vamps and try converting the VOB file to an MP4 with ffmpeg.
ffmpeg -y -i input.vob -vf format=yuv420p -vcodec libx264 -acodec aac output.mp4

Unfortunately when I tried this it seemed to run extremely slowly and I had to stop it.

I will try that again when I can - as it would be interesting to know if the resulting mp4 had good timestamps or not. If so it would allow a possible way to bypass avidemux.

User avatar
rcrsn51
Posts: 1389
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: DVD ripping and VAMPS shrink. How??

Post by rcrsn51 »

greengeek wrote: Mon Jun 21, 2021 10:05 am

Unfortunately when I tried this it seemed to run extremely slowly and I had to stop it.

Then skip that step and convert the .vob directly back into a new .vob with

Code: Select all

ffmpeg -y -i input.vob -target pal-dvd -aspect 4:3 final.vob

Hopefully, that will be small enough to author/burn.

BTW, I don't see how avidemux solves the original problem. Once it glues the three pieces together, won't the result still be too big for a DVD?

User avatar
wizard
Posts: 1973
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2635 times
Been thanked: 685 times

Re: DVD ripping and VAMPS shrink. How??

Post by wizard »

@greengeek
Just a recap to make sure I understand.

-you have a damaged dvd you want to copy to a new dvd
-you used vobcopy to rip into 3 vob files that contain 4 episodes

If you now want to use these to create the new dvd AND you do not need menus, here is a method that I tested and should work for you

Merge multiple vob to dvd:
-put vob files in a directory
-copy merge_video.sh to the directory and set permissions to executable
-edit merge_video.sh to match input vob file names
-open a terminal in the directory and type: ./merge_video.sh
-press enter and it will create a single dvd compatible output.mpg file
-use pdvdrsab to shrink output.mpg if required, pdvdrsab will name the output file to a .vob, rename it back to a .mpg
-use pdvdrsab to author the new shrunken .mpg
-use dvdrsab or pburn to burn dvd

Attachments
merge_video.sh.gz
remove the .gz and set permissions to executable
(273 Bytes) Downloaded 27 times
Last edited by wizard on Mon Jun 21, 2021 9:03 pm, edited 1 time in total.

Big pile of OLD computers

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

rcrsn51 wrote: Mon Jun 21, 2021 10:24 am

BTW, I don't see how avidemux solves the original problem. Once it glues the three pieces together, won't the result still be too big for a DVD?

True. I am only using avidemux as a step along the way.

But let me clarify a couple of things:
- I was hoping to use only inbuilt tools (in this Tahr32) but the specific problem i encountered with ffmpeg failing to read the damaged timestamps required me to search out a different solution. (hence the need for avidemux).
- Avidemux has allowed me to turn 3 vobs into 4 episodes. As well as converting the format to an easy-to-manipulate mp4 format, the file size of these 4 episodes is now much much smaller than the original vobs (by a factor of 10)
- This offers me other ways to use the dvd content without trying the simple rip/shrink/reburn I was originally expecting to do.
These 4 mp4 files will now easily fit on a dvd-r.
- Avidemux has also fixed the timestamps so it now makes it possible for me to use ffmpeg and/or ffconvert to do further manipulation prior to the eventual reburn.

I am still a long way from finding the best way (using inbuilt puppy tools) to easily rip/shrink/reburn a dvd. At least now i know that scratches on the surface of a dvd potentially prevents pdvdsrab etc from doing their jobs. And it's not as obvious as it sounds - neither pBurn nor pdvdrsab told me that they were having problems. (This explains some of my previous failures attempting to get functional reburns). They simply produced truncated files that did not represent the totality of the original content.

I am not 100% certain of my next step.

Now that I know vobcopy can make the one long vob I have more testing to do via ffmpeg and also wizards scripts, as well as other methods. Maybe there is a way to obviate the need for avidemux.

I guess more than anything I am trying to settle on a method that is foolproof for the next time I encounter a dvd that can not be properly handled by pdvdrsab and pburn etc.

The commandline methods give far more visibility for error handing.

As for avidemux - it is supposedly not able to handle vob files (cant create them) but certainly offered me a way to input faulty vobs (damaged timestamps) and output corrected mp4s (with good timestamps that ffmpeg and media players are happy with). Just one step along the way.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

wizard wrote: Mon Jun 21, 2021 5:05 pm

@greengeek
Just a recap to make sure I understand.

-you have a damaged dvd you want to copy to a new dvd
-you used vobcopy to rip into 3 vob files that contain 4 episodes

If you now want to use these to create the new dvd AND you do not need menus, here is a method that I tested and should work for you

Merge multiple vob to dvd:
-put vob files in a directory
-copy merge_video.sh to the directory and set permissions to executable
-edit merge_video.sh to match input vob file names
-open a terminal in the directory and type: ./merge_video.sh
-press enter and it will create a single dvd compatible output.mpg file
-use pdvdrsab to shrink output.mpg if required, pdvdrsab will name the output file to a .vob, rename it back to a .mpg
-use pdvdrsab to author the new shrunken .mpg
-use dvdrsab or pburn to burn dvd

Yes your summary is correct. Thanks for the suggestions.

I am travelling for a few days and won't have my dvd drive with me but hope to continue the testing with the ripped files on my netbook.

Before I go any further I need to improve my understanding of what an "mpg" file actually is.
For example avidemux has a lot of options that appear to be mpg or mpeg related but I am confused about this.
No point me asking avidemux, or ffmpeg or commandline scripts to do conversions that i don't yet understand.

Now that I feel confident that the original dvd content is correctly available (excluding menus and chapters which are probably destroyed) - I need to get my head around what final product I am heading for.

If I don't get my head straight about the end target I will just be re-encoding too much.

amethyst wrote: Mon Jun 21, 2021 7:41 am

This (re)re-encoding of files will surely result in some quality loss. Surely there must be a simple way for this just to work and retain the original quality of the source media?

Fair point.
Now that I am this far down the rabbit hole I need to take a breath and back up a step. Get a clear plan where I want to go.

One thing is for sure - at least now i have a better understanding of the complexity of dvds, and the fact that surface scratches seem able to fool the gui tools.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

Does a vob file on a DVD contain the menu and chapter information or is it just a media file (or group of identical media files in different languages)?

User avatar
amethyst
Posts: 2414
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 57 times
Been thanked: 504 times

Re: DVD ripping and VAMPS shrink. How??

Post by amethyst »

greengeek wrote: Tue Jun 22, 2021 6:34 am

Does a vob file on a DVD contain the menu and chapter information or is it just a media file (or group of identical media files in different languages)?

I seem to recall that I have downloaded already "extracted" DVD content from the internet before and it comprised of a few files (I think a few .vob files inter alia if I remember correctly) contained in a Video_TS folder. The menu, etc. was a seperate .vob file. Clicking on one specific .vob file would play the whole video, including the menu (and the one which contains the menu will play/show the menu if you only select that one). Was able to play and record it to mp4 with VLC.

User avatar
wizard
Posts: 1973
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2635 times
Been thanked: 685 times

Re: DVD ripping and VAMPS shrink. How??

Post by wizard »

@greengeek

The vob files you ripped with vobcopy have no menu information, only the video and audio. Here is a link that outlines the files on a typical dvd.

https://en.wikibooks.org/wiki/Inside_DV ... _Structure

If you want to have menus, you will need to create them from scratch with an authoring program like DeVeDe or DVDstyler. Rockedge mentioned in this post that he has DeVeDe working and I have DVDstyler working in dpup stretch 7.5rc5.

Windows has programs that will rip the entire dvd including the menus. I'm not aware of any programs for puppy that have that capability, hopefully if they exist, someone will weigh in here.

wizard

Big pile of OLD computers

User avatar
rcrsn51
Posts: 1389
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: DVD ripping and VAMPS shrink. How??

Post by rcrsn51 »

@greengeek Now that you have four good mp4 files from avidemux, you could easily convert them back to vobs using ffmpeg. I have given you the command for doing this above.

Then use an authoring tool to make an ISO.

BTW, you can see what's inside a media file with the ffprobe command.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

rcrsn51 wrote: Mon Jun 21, 2021 10:24 am

Then skip that step and convert the .vob directly back into a new .vob with

Code: Select all

ffmpeg -y -i input.vob -target pal-dvd -aspect 4:3 final.vob

Hopefully, that will be small enough to author/burn.

Trying this now.
I am going to try changing 4:3 to 5:4 as that seems to be the same ratio as the 720:576 that is standard for dvd. Hope that is a sensible change.
Will report back when finished. Using a different netbook so not sure how fast this will run.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

I just tried the syntax you suggested (with ratio change):

ffmpeg -y -i input.vob -target pal-dvd -aspect 5:4 final.vob

I ran this against one of the 2048MB vobs originally created by vobcopy and it has completed successfully without truncation. (Whereas vamps would always chop 1/3 off the end)

Here is the size comparison:

Source vob = 2048MB
Output vob = 1149MB

When I get the chance tomorrow I will try the same syntax against the 5.4GB vob.

I will post a truncated summary of the terminal output as there were errors showing at the time which seems to correspond with the point where vamps ended the output video. When I play this ffmpeg output vob I do see pixellated artefacts on screen but the video continues ok:
(For some reason the forum does not display all of the terminal data I have posted but oh well...)

Code: Select all

ffmpeg -y -i BLAZE_13-1.vob -target pal-dvd -aspect 5:4 BLAZErcrfinal.vob

root# ffmpeg -y -i BLAZE_13-1.vob -target pal-dvd -aspect 5:4 BLAZErcrfinal.vob
ffmpeg version 3.1.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/mnt/sda6/ffmpeg-static-master/sffmpeg/build --datadir=/mnt/sda6/ffmpeg-static-master/sffmpeg/build/etc --disable-shared --enable-static --enable-gpl --enable-version3 --enable-nonfree --disable-doc --disable-debug --disable-ffplay --disable-ffserver --disable-outdevs --enable-runtime-cpudetect --enable-memalign-hack --extra-cflags='-I/mnt/sda6/ffmpeg-static-master/sffmpeg/build/include --static' --extra-ldflags=-L/mnt/sda6/ffmpeg-static-master/sffmpeg/build/lib --extra-libs='-lstdc++ -lexpat -ldl' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libopus --enable-librtmp --enable-libfreetype --enable-libass --enable-avresample --enable-x11grab
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mpeg, from 'BLAZE_13-1.vob':
  Duration: 00:13:12.28, start: 0.287267, bitrate: 21683 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x20]: Subtitle: dvd_subtitle
    Stream #0:3[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:4[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:5[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:6[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:7[0x84]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:8[0x85]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
[dvd @ 0xb7f21a0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, dvd, to 'BLAZErcrfinal.vob':
  Metadata:
    encoder         : Lavf57.41.100
    Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 1:1 DAR 5:4], q=2-31, 6000 kb/s, 25 fps, 90k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.48.101 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 9000000/0/6000000 buffer size: 1835008 vbv_delay: -1
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
    Metadata:
      encoder         : Lavc57.48.101 ac3
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
  Stream #0:3 -> #0:1 (ac3 (native) -> ac3 (native))
Press [q] to stop, [?] for help
frame=   79 fps=0.0 q=2.0 size=    1682kB time=00:00:03.04 bitrate=4532.5kbitsframe=  149 fps=148 q=2.0 size=    3656kB time=00:00:05.85 bitrate=5119.1kbitsframe=  198 fps=131 q=2.0 size=    5704kB time=00:00:07.80 bitrate=5988.6kbitsframe=  248 fps=123 q=3.3 size=    7996kB time=00:00:09.81 bitrate=6671.3kbitsframe=  297 fps=118 q=3.3 size=    9540kB time=00:00:11.76 bitrate=6645.5kbitsframe=  350 fps=115 q=2.5 size=   11204kB time=00:00:13.88 bitrate=6611.3kbitsframe=  400 fps=113 q=5.4 size=   12864kB time=00:00:15.89 bitrate=6628.3kbitsframe=  451 fps=112 q=4.4 size=   14492kB time=00:00:17.94 bitrate=6615.1kbitsframe=  517 fps=114 q=2.0 size=   16500kB time=00:00:20.56 bitrate=6574.3kbitsframe=  579 fps=115 q=3.6 size=   18580kB time=00:00:23.06 bitrate=6598.6kbitsframe=  634 fps=114 q=2.7 size=   20310kB time=00:00:25.24 bitrate=6591.9kbitsframe=  685 fps=113 q=4.1 size=   21976kB time=00:00:27.32 bitrate=6588.9kbitsframe=  748 fps=114 q=2.0 size=   23498kB time=00:00:29.80 bitrate=6459.6kbitsframe=  826 fps=117 q=2.0 size=   24198kB time=00:00:32.92 bitrate=6021.6kbitsframe=  887 fps=117 q=2.0 size=   25448kB time=00:00:35.41 bitrate=5885.9kbitsframe=  964 fps=120 q=2.0 size=   27218kB time=00:00:38.45 bitrate=5797.6kbitsframe= 1046 fps=122 q=2.0 size=   28498kB time=00:00:41.72 bitrate=5595.4kbitsframe= 1115 fps=123 q=2.0 size=   29516kB time=00:00:44.48 bitrate=5436.0kbitsframe= 1187 fps=124 q=2.0 size=   30546kB time=00:00:47.38 bitrate=5280.7kbitsframe= 1256 fps=125 q=2.0 size=   31644kB time=00:00:50.12 bitrate=5172.1kbitsframe= 1324 fps=125 q=2.0 size=   32826kB time=00:00:52.84 bitrate=5089.1kbitsframe= 1388 fps=125 q=2.0 size=   34810kB time=00:00:55.40 bitrate=5147.4kbitsframe= 1475 fps=127 q=2.0 size=   36850kB time=00:00:58.88 bitrate=5127.0kbitsframe= 1543 fps=128 q=2.0 size=   38500kB time=00:01:01.62 bitrate=5117.8kbitsframe= 1610 fps=128 q=2.0 size=   39572kB time=00:01:04.28 bitrate=5043.2kbitsframe= 1670 fps=128 q=2.0 size=   40992kB time=00:01:06.68 bitrate=5035.9kbitsframe= 1733 fps=127 q=2.0 size=   42018kB time=00:01:09.27 bitrate=4968.8kbitsframe= 1796 fps=127 q=2.0 size=   43660kB time=00:01:11.72 bitrate=4986.9kbitsframe= 1864 fps=128 q=2.0 size=   45886kB time=00:01:14.44 bitrate=5049.7kbitsframe= 1956 fps=130 q=2.0 size=   47402kB time=00:01:18.17 bitrate=4967.6kbitsframe= 2029 fps=130 q=2.0 size=   48666kB time=00:01:21.11 bitrate=4914.9kbitsframe= 2097 fps=130 q=2.0 size=   50116kB time=00:01:23.76 bitrate=4901.5kbitsframe= 2155 fps=130 q=2.0 size=   51916kB time=00:01:26.17 bitrate=4935.5kbitsframe= 2218 fps=130 q=2.0 size=   53458kB time=00:01:28.63 bitrate=4940.8kbitsframe= 2273 fps=129 q=2.0 size=   55628kB time=00:01:30.80 bitrate=5018.8kbitsframe= 2345 fps=129 q=2.0 size=   57488kB time=00:01:33.69 bitrate=5026.6kbitsframe= 2422 fps=130 q=2.0 size=   59242kB time=00:01:36.82 bitrate=5012.2kbitsframe= 2488 fps=130 q=2.0 size=   60372kB time=00:01:39.41 bitrate=4974.6kbitsframe= 2559 fps=130 q=1.6 size=   61642kB time=00:01:42.29 bitrate=4936.2kbitsframe= 2629 fps=131 q=2.0 size=   62808kB time=00:01:45.04 bitrate=4898.4kbitsframe= 2701 fps=131 q=2.0 size=   64178kB time=00:01:47.93 bitrate=4871.1kbitsframe= 2755 fps=130 q=2.0 size=   65640kB time=00:01:50.08 bitrate=4884.8kbitsframe= 2811 fps=130 q=2.0 size=   66756kB time=00:01:52.32 bitrate=4868.8kbitsframe= 2865 fps=129 q=2.0 size=   68070kB time=00:01:54.52 bitrate=4869.2kbitsframe= 2932 fps=129 q=2.0 size=   69198kB time=00:01:57.16 bitrate=4838.4kbitsframe= 3013 fps=130 q=2.0 size=   70638kB time=00:02:00.40 bitrate=4806.2kbitsframe= 3104 fps=131 q=2.0 size=   71832kB time=00:02:04.05 bitrate=4743.3kbitsframe= 3169 fps=131 q=2.0 size=   72934kB time=00:02:06.68 bitrate=4716.3kbitsframe= 3230 fps=131 q=2.0 size=   74146kB time=00:02:09.08 bitrate=4705.6kbitsframe= 3292 fps=131 q=2.0 size=   75370kB time=00:02:11.56 bitrate=4693.2kbitsframe= 3355 fps=131 q=2.0 size=   76606kB time=00:02:14.13 bitrate=4678.4kbitsframe= 3421 fps=131 q=2.0 size=   77968kB time=00:02:16.72 bitrate=4671.7kbitsframe= 3502 fps=131 q=2.0 size=   79590kB time=00:02:19.99 bitrate=4657.3kbitsframe= 3569 fps=131 q=2.0 size=   80846kB time=00:02:22.64 bitrate=4643.1kbitsframe= 3632 fps=131 q=2.0 size=   81820kB time=00:02:25.16 bitrate=4617.5kbitsframe= 3696 
...
...
...
time=00:22:25.44 bitrate=4541.9kbitsframe=33706 fps=160 q=2.1 size=  748818kB time=00:22:28.13 bitrate=4550.2kbitsframe=33770 fps=160 q=3.3 size=  751768kB time=00:22:30.68 bitrate=4559.5kbitsframe=33830 fps=159 q=2.0 size=  754512kB time=00:22:33.08 bitrate=4568.1kbits[mpeg2video @ 0xb8db700] invalid cbp -1 at 3 29
[mpeg2video @ 0xb8db700] ac-tex damaged at 0 30
[mpeg2video @ 0xb8db700] ac-tex damaged at 33 27
[mpeg2video @ 0xb8db700] slice mismatch
    Last message repeated 1 times
[mpeg2video @ 0xb8db700] invalid cbp -1 at 13 5
[mpeg2video @ 0xb8db700] invalid cbp 0 at 28 32
[mpeg2video @ 0xb8db700] slice mismatch
    Last message repeated 3 times
[mpeg2video @ 0xb8db700] invalid cbp 0 at 35 34
[mpeg2video @ 0xb8db700] ac-tex damaged at 7 9
[mpeg2video @ 0xb8db700] ac-tex damaged at 18 35
[mpeg2video @ 0xb8db700] Invalid mb type in B-frame at 33 10
[mpeg2video @ 0xb8db700] Invalid mb type in B-frame at 13 11
[mpeg2video @ 0xb8db700] ac-tex damaged at 22 12
[mpeg2video @ 0xb8db700] invalid cbp 0 at 13 13
[mpeg2video @ 0xb8db700] mb incr damaged
[mpeg2video @ 0xb8db700] slice mismatch
[mpeg2video @ 0xb8db700] invalid cbp -1 at 5 16
[mpeg2video @ 0xb8db700] ac-tex damaged at 22 17
[mpeg2video @ 0xb8db700] invalid cbp -1 at 34 18
[mpeg2video @ 0xb8db700] Invalid mb type in B-frame at 1 19
[mpeg2video @ 0xb8db700] ac-tex damaged at 0 20
[mpeg2video @ 0xb8db700] invalid cbp -1 at 17 21
[mpeg2video @ 0xb8db700] invalid cbp -1 at 13 22
[mpeg2video @ 0xb8db700] mb incr damaged
[mpeg2video @ 0xb8db700] Invalid mb type in B-frame at 20 24
[mpeg2video @ 0xb8db700] slice mismatch
[mpeg2video @ 0xb8db700] Invalid mb type in B-frame at 7 26
[mpeg2video @ 0xb8db700] slice mismatch
    Last message repeated 1 times
[mpeg2video @ 0xb8db700] Warning MVs not available
[mpeg2video @ 0xb8db700] concealing 1440 DC, 1440 AC, 1440 MV errors in B frame
[mpeg2video @ 0xb8db700] slice mismatch
[mpeg2video @ 0xb8db700] Invalid mb type in B-frame at 3 30
[mpeg2video @ 0xb8db700] slice mismatch
[mpeg2video @ 0xb8db700] ac-tex damaged at 0 32
[mpeg2video @ 0xb8db700] invalid cbp 0 at 1 33
[mpeg2video @ 0xb8db700] ac-tex damaged at 31 16
[mpeg2video @ 0xb8db700] ac-tex damaged at 3 34
[mpeg2video @ 0xb8db700] Invalid mb type in B-frame at 17 35
[mpeg2video @ 0xb8db700] invalid cbp -1 at 35 17
[mpeg2video @ 0xb8db700] mb incr damaged
[mpeg2video @ 0xb8db700] invalid cbp -1 at 0 18
[mpeg2video @ 0xb8db700] ac-tex damaged at 0 19
[mpeg2video @ 0xb8db700] mb incr damaged
[mpeg2video @ 0xb8db700] slice mismatch
    Last message repeated 1 times
[mpeg2video @ 0xb8db700] ac-tex damaged at 5 23
[mpeg2video @ 0xb8db700] invalid cbp -1 at 8 24
[mpeg2video @ 0xb8db700] Invalid mb type in B-frame at 2 25
[mpeg2video @ 0xb8db700] mb incr damaged
    Last message repeated 1 times
[mpeg2video @ 0xb8db700] ac-tex damaged at 14 28
[mpeg2video @ 0xb8db700] Warning MVs not available
[mpeg2video @ 0xb8db700] concealing 900 DC, 900 AC, 900 MV errors in B frame
frame=33892 fps=159 q=2.0 size=  756776kB time=00:22:35.56 bitrate=4573.4kbits[mpeg2video @ 0xb8db700] ac-tex damaged at 41 17
[mpeg2video @ 0xb8db700] Warning MVs not available
[mpeg2video @ 0xb8db700] concealing 675 DC, 675 AC, 675 MV errors in B frame
[ac3 @ 0xbe1afc0] exponent -2 is out-of-range
[ac3 @ 0xbe1afc0] error decoding the audio block
[ac3 @ 0xbe1afc0] frame sync error
Error while decoding stream #0:3: Invalid data found when processing input
frame=33963 fps=159 q=2.0 size=  759232kB time=00:22:38.40 bitrate=4578.6kbitsframe=34034 fps=159 q=2.0 size=  762176kB time=00:22:41.24 bitrate=4586.8kbitsframe=34106 fps=159 q=2.0 size=  764486kB time=00:22:44.16 bitrate=4590.9kbitsframe=34179 fps=159 q=2.0 size=  766954kB time=00:22:47.04 bitrate=4596.0kbitsframe=34252 fps=159 q=2.0 size=  769414kB time=00:22:49.96 bitrate=4600.9kbitsframe=34324 fps=159 q=2.0 size=  771830kB time=00:22:52.86 bitrate=4605.6kbitsframe=34403 fps=159 q=2.0 size=  774944kB time=00:22:56.00 bitrate=4613.6kbitsframe=34483 fps=159 q=2.6 size=  777872kB time=00:22:59.23 
...
...
...
bitrate=4667.4kbitsframe=51347 fps=148 q=2.0 size= 1170986kB time=00:34:13.76 bitrate=4670.8kbitsframe=51405 fps=148 q=2.0 size= 1172414kB time=00:34:16.09 bitrate=4671.2kbitsframe=51465 fps=147 q=2.0 size= 1173460kB time=00:34:18.48 bitrate=4669.9kbitsframe=51533 fps=147 q=2.0 size= 1174718kB time=00:34:21.21 bitrate=4668.7kbitsframe=51596 fps=147 q=2.0 size= 1176054kB time=00:34:23.72 bitrate=4668.4kbits[mpeg2video @ 0xb8db700] ac-tex damaged at 39 5
[mpeg2video @ 0xb8db700] Warning MVs not available
[mpeg2video @ 0xb8db700] concealing 1395 DC, 1395 AC, 1395 MV errors in B frame
[ac3 @ 0xbe1afc0] incomplete frame
frame=51609 fps=147 q=2.0 Lsize= 1176356kB time=00:34:24.28 bitrate=4668.3kbits/s dup=3 drop=0 speed= 5.9x    
video:1038427kB audio:112875kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.176154%
root#

EDIT : Strangely the video appears to be 4:3 even though I specified 5:4 and when I play it with VLC the codec parameters show as 720x576.

May try again tomorrow with 720:576 instead of 5:4

User avatar
rcrsn51
Posts: 1389
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: DVD ripping and VAMPS shrink. How??

Post by rcrsn51 »

greengeek wrote: Wed Jun 23, 2021 10:13 am

EDIT : Strangely the video appears to be 4:3 even though I specified 5:4 and when I play it with VLC the codec parameters show as 720x576.

There is an explanation here. It may look different when played on an actual TV.

I believe that "-aspect 4:3" just means "regular" display as opposed to "16:9" widescreen display.

The pixel resolution inside the file is determined by your choice of NTSC vs PAL.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

rcrsn51 wrote: Mon Jun 21, 2021 10:24 am

Then skip that step and convert the .vob directly back into a new .vob with

Code: Select all

ffmpeg -y -i input.vob -target pal-dvd -aspect 4:3 final.vob

Hopefully, that will be small enough to author/burn.

Today I used your syntax against the 5GB vob that was created by vobcopy using the --largefile argument.
It produced a 3.2GB vob file that appears to contain the entire film contents (ie: 4 episodes).
There were some pixellation artefacts at the point where vamps fails (actually significantly more artefacts than in the previous attempt where I converted one of the 2048MB vobs...) but the film continued playing and the audio track remained in sync - so a great outcome.

(I should note that this time I replaced the 4:3 with 16:9 and the end result was a much better match to the original video. I still retained the -pal parameter so was surprised that it processed 16:9 correctly)

The terminal output ended with the following error:

Code: Select all

time=01:25:03.29 bitrate=5109.7kbitframe=127702 fps=151 q=1.6 size= 3184062kB time=01:25:07.96 bitrate=5106.5kbitPast duration 0.999992 too large  
frame=127803 fps=151 q=2.0 Lsize= 3184792kB time=01:25:12.04 bitrate=5103.6kbits/s dup=169 drop=14 speed=6.04x    
video:2840481kB audio:279111kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.090014%
root#

I don't know what it means when it says "Past duration 0.999992 too large" - but anyway the video is produced successfully.

There were many, many errors reported in the terminal (so many in fact that the terminal scrolled beyond it's limits and I could not access the whole output) - here is a sample:

Code: Select all

[ac3 @ 0xc37f460] error decoding the audio block
[ac3 @ 0xc37f460] frame sync error
Error while decoding stream #0:3: Invalid data found when processing input
[mpeg2video @ 0xc3fe140] ac-tex damaged at 6 29
[mpeg2video @ 0xc3fe140] ac-tex damaged at 2 30
[mpeg2video @ 0xc3fe140] ac-tex damaged at 1 31
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 0 32
[mpeg2video @ 0xc3fe140] ac-tex damaged at 17 33
[mpeg2video @ 0xc3fe140] ac-tex damaged at 26 34
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 0 35
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 13 23
[mpeg2video @ 0xc3fe140] invalid cbp 0 at 0 25
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 0 26
[mpeg2video @ 0xc3fe140] Invalid mb type in B-frame at 1 27
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 0 28
[mpeg2video @ 0xc3fe140] Warning MVs not available
[mpeg2video @ 0xc3fe140] concealing 630 DC, 630 AC, 630 MV errors in B frame
[mpeg2video @ 0xc3fe140] ac-tex damaged at 7 22
[mpeg2video @ 0xc3fe140] ac-tex damaged at 9 28
[mpeg2video @ 0xc3fe140] ac-tex damaged at 9 30
[mpeg2video @ 0xc3fe140] Warning MVs not available
[mpeg2video @ 0xc3fe140] concealing 360 DC, 360 AC, 360 MV errors in I frame
frame=93503 fps=149 q=2.0 size= 2340438kB time=01:02:20.00 bitrate=5126.4kbits[mpeg2video @ 0xc3fe140] ac-tex damaged at 3 22
[mpeg2video @ 0xc3fe140] Invalid mb type in P-frame at 13 24
[mpeg2video @ 0xc3fe140] ac-tex damaged at 11 25
[mpeg2video @ 0xc3fe140] Invalid mb type in P-frame at 16 25
[mpeg2video @ 0xc3fe140] ac-tex damaged at 44 26
[mpeg2video @ 0xc3fe140] mb incr damaged
[mpeg2video @ 0xc3fe140] ac-tex damaged at 14 28
[mpeg2video @ 0xc3fe140] ac-tex damaged at 34 29
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 27 30
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 3 33
[mpeg2video @ 0xc3fe140] ac-tex damaged at 31 32
[mpeg2video @ 0xc3fe140] Invalid mb type in P-frame at 18 33
[mpeg2video @ 0xc3fe140] ac-tex damaged at 31 34
[mpeg2video @ 0xc3fe140] ac-tex damaged at 1 35
[mpeg2video @ 0xc3fe140] Invalid mb type in P-frame at 37 21
[mpeg2video @ 0xc3fe140] ac-tex damaged at 1 1
[mpeg2video @ 0xc3fe140] ac-tex damaged at 26 2
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 15 3
[mpeg2video @ 0xc3fe140] Invalid mb type in P-frame at 2 4
[mpeg2video @ 0xc3fe140] Invalid mb type in P-frame at 13 5
[mpeg2video @ 0xc3fe140] Invalid mb type in P-frame at 2 6
[mpeg2video @ 0xc3fe140] ac-tex damaged at 35 7
[mpeg2video @ 0xc3fe140] mb incr damaged
[mpeg2video @ 0xc3fe140] ac-tex damaged at 16 10
[mpeg2video @ 0xc3fe140] mb incr damaged
    Last message repeated 1 times
[mpeg2video @ 0xc3fe140] invalid cbp 0 at 28 13
[mpeg2video @ 0xc3fe140] mb incr damaged
[mpeg2video @ 0xc3fe140] ac-tex damaged at 7 15
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 8 16
[mpeg2video @ 0xc3fe140] ac-tex damaged at 23 17
[mpeg2video @ 0xc3fe140] Invalid mb type in P-frame at 28 18
[mpeg2video @ 0xc3fe140] mb incr damaged
[mpeg2video @ 0xc3fe140] ac-tex damaged at 5 20
[mpeg2video @ 0xc3fe140] invalid cbp 0 at 7 21
[mpeg2video @ 0xc3fe140] Warning MVs not available
[mpeg2video @ 0xc3fe140] concealing 1575 DC, 1575 AC, 1575 MV errors in P frame
frame=93577 fps=149 q=2.0 size= 2342188kB time=01:02:22.96 bitrate=5126.2kbits[mpeg2video @ 0xc3fe140] ac-tex damaged at 29 29
[mpeg2video @ 0xc3fe140] invalid cbp 0 at 8 12
[mpeg2video @ 0xc3fe140] Invalid mb type in B-frame at 4 13
[mpeg2video @ 0xc3fe140] mb incr damaged
[mpeg2video @ 0xc3fe140] ac-tex damaged at 3 15
[mpeg2video @ 0xc3fe140] ac-tex damaged at 5 16
[mpeg2video @ 0xc3fe140] ac-tex damaged at 4 17
[mpeg2video @ 0xc3fe140] mb incr damaged
    Last message repeated 1 times
[mpeg2video @ 0xc3fe140] slice mismatch
[mpeg2video @ 0xc3fe140] ac-tex damaged at 33 21
[mpeg2video @ 0xc3fe140] Invalid mb type in B-frame at 11 22
[mpeg2video @ 0xc3fe140] mb incr damaged
[mpeg2video @ 0xc3fe140] ac-tex damaged at 6 24
[mpeg2video @ 0xc3fe140] mb incr damaged
    Last message repeated 1 times
[mpeg2video @ 0xc3fe140] ac-tex damaged at 36 27
[mpeg2video @ 0xc3fe140] slice mismatch
[mpeg2video @ 0xc3fe140] Invalid mb type in B-frame at 2 29
[mpeg2video @ 0xc3fe140] Invalid mb type in B-frame at 15 30
[mpeg2video @ 0xc3fe140] slice mismatch
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 0 32
[mpeg2video @ 0xc3fe140] ac-tex damaged at 15 33
[mpeg2video @ 0xc3fe140] invalid cbp -1 at 3 34
[mpeg2video @ 0xc3fe140] invalid cbp 0 at 3 35
[mpeg2video @ 0xc3fe140] Warning MVs not available
[mpeg2video @ 0xc3fe140] concealing 630 DC, 630 AC, 630 MV errors in B frame
Past duration 0.999992 too large
    Last message repeated 4 times
frame=93652 fps=149 q=2.0 size= 2343856kB time=01:02:25.98 bitrate=5125.7kbitsPast duration 0.999992 too large 
frame=93735 fps=149 q=2.0 size= 2345068kB time=01:02:29.28 bitrate=5123.9kbitsframe=93802 fps=149 q=2.0 size= 2347056kB time=01:02:31.96 bitrate=5124.5kbitsframe=93872 fps=149 q=2.0 size= 2348988kB time=01:02:34.76 bitrate=5124.9kbitsframe=93937 fps=149 q=2.0 size= 2351334kB time=01:02:37.37 bitrate=5126.5kbitsframe=94000 fps=149 q=1.6 size= 2354044kB time=01:02:39.93 bitrate=5128.9kbitsframe=94065 fps=149 q=2.4 size= 2357058kB time=01:02:42.48 bitrate=5132.0kbitsframe=94135 fps=149 q=1.6 size= 2359494kB time=01:02:45.28 bitrate=5133.5kbitsframe=94257 fps=149 q=2.0 size= 2360470kB time=01:02:50.16 bitrate=5129.0kbits[mpeg2video @ 0xc3fe140] ac-tex damaged at 19 31
[mpeg2video @ 0xc3fe140] Warning MVs not available
[mpeg2video @ 0xc3fe140] concealing 225 DC, 225 AC, 225 MV errors in B frame
[ac3 @ 0xc37f460] invalid coupling range (15 >= 14)
[ac3 @ 0xc37f460] error decoding the audio block
[ac3 @ 0xc37f460] frame sync error
Error while decoding stream #0:3: Invalid data found when processing input
frame=94367 fps=149 q=2.0 size= 2361178kB time=01:02:54.56 bitrate=5124.5kbits[mpeg2video @ 0xc3fe140] Warning MVs not available
[mpeg2video @ 0xc3fe140] concealing 261 DC, 261 AC, 261 MV errors in P frame
[ac3 @ 0xc37f460] exponent -2 is out-of-range
[ac3 @ 0xc37f460] error decoding the audio block
[ac3 @ 0xc37f460] frame sync error
Error while decoding stream #0:3: Invalid data found when processing input
frame=94475 fps=149 q=2.0 size= 2361990kB time=01:02:58.88 bitrate=5120.4kbitsframe=94580 fps=149 q=2.0 size= 2363078kB time=01:03:03.20 bitrate=5116.9kbitsframe=94681 fps=149 q=2.0 size= 2364104kB time=01:03:07.12 bitrate=5113.8kbitsframe=94787 fps=149 q=2.0 size= 2365148kB time=01:03:11.39 bitrate=5110.3kbits[mpeg2video @ 0xc3fe140] ac-tex damaged at 9 7
[mpeg2video @ 0xc3fe140] skipped MB in I-frame at 38 9
[mpeg2video @ 0xc3fe140] ac-tex damaged at 41 10
[mpeg2video @ 0xc3fe140] skipped MB in I-frame at 32 0
[mpeg2video @ 0xc3fe140] Warning MVs not available
[mpeg2video @ 0xc3fe140] concealing 450 DC, 450 AC, 450 MV errors in I frame
[mpeg2video @ 0xc3fe140] ac-tex damaged at 10 6
[mpeg2video @ 0xc3fe140] Warning MVs not available
[mpeg2video @ 0xc3fe140] concealing 900 DC, 900 AC, 900 MV errors in I frame
[ac3 @ 0xc37f460] frame sync error
Error while decoding stream #0:3: Invalid data found when processing input
[mpeg2video @ 0xc3fe140] ac-tex damaged at 22 10
[mpeg2video @ 0xc3fe140] Warning MVs not available
[mpeg2video @ 0xc3fe140] concealing 585 DC, 585 AC, 585 MV errors in P frame
frame=94900 fps=149 q=2.0 size= 2365888kB time=01:03:15.88 bitrate=5105.9kbits[mpeg2video @ 0xc3fe140] slice below image (65 >= 36)
Error while decoding stream #0:1: Invalid data found when processing input
[ac3 @ 0xc37f460] exponent -2 is out-of-range
[ac3 @ 0xc37f460] error decoding the audio block
[ac3 @ 0xc37f460] frame sync error
Error while decoding stream #0:3: Invalid data found when processing input
frame=95038 fps=149 q=2.0 size= 2366750kB time=01:03:21.40 bitrate=5100.3kbitsframe=95105 fps=149 q=2.0 size= 2368534kB time=01:03:24.08 bitrate=5100.6kbitsframe=95177 fps=149 q=2.0 size= 2370458kB time=01:03:26.96 bitrate=5100.9kbitsframe=95237 fps=149 q=2.5 size= 2373168kB time=01:03:29.37 bitrate=5103.5kbitsframe=95299 fps=149 q=2.1 size= 2375868kB time=01:03:31.84 bitrate=5106.0kbitsframe=95358 fps=149 q=2.5 size= 2378590kB time=01:03:34.20 bitrate=5108.6kbitsframe=95419 fps=149 q=2.1 size= 2381126kB time=01:03:36.64 bitrate=5110.8kbitsframe=95479 fps=149 q=1.6 size= 2383740kB 

And yet the video is usable.

So that is one good method (which I will add in a "solutions" section in the first post.
- rip using vobcopy --large file
- manipulate with ffmpeg as per rcrsn51 syntax above.

I will continue with testing the other posts that I need to catch up on.

User avatar
rcrsn51
Posts: 1389
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: DVD ripping and VAMPS shrink. How??

Post by rcrsn51 »

If the ultimate goal is to make a new DVD disc, you still don't know if this VOB file can be authored successfully since it contains some bad sections.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

rcrsn51 wrote: Thu Jun 24, 2021 10:51 am

If the ultimate goal is to make a new DVD disc, you still don't know if this VOB file can be authored successfully since it contains some bad sections.

True. Since I am still vague on the authoring process I will approach that in a separate thread. Still have plenty of questions around this ripping and shrinking process so quite a bit of testing and checking to go through till i get a better understanding. I feel some good progress though. Appreciate all the help and suggestions I have received.
There is still a lot in this thread i have to test more thoroughly.

Last edited by greengeek on Thu Jun 24, 2021 11:45 am, edited 1 time in total.
User avatar
rcrsn51
Posts: 1389
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: DVD ripping and VAMPS shrink. How??

Post by rcrsn51 »

greengeek wrote: Thu Jun 24, 2021 9:29 am

I still retained the -pal parameter so was surprised that it processed 16:9 correctly

Could you explain that? Do PAL DVDs in New Zealand not come in both regular and widescreen versions?

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

rcrsn51 wrote: Thu Jun 24, 2021 11:42 am
greengeek wrote: Thu Jun 24, 2021 9:29 am

I still retained the -pal parameter so was surprised that it processed 16:9 correctly

Could you explain that? Do PAL DVDs in New Zealand not come in both regular and widescreen versions?

I may have misunderstood the info at the link you gave re pal vs ntsc.

The typical DVD formats are 720 x 480 for “NTSC” countries (525/60Hz). and 720 x 576 for “PAL” (625/60 Hz)

I figured that was suggesting that the ntsc screen is more widescreen than the pal screen - ie the pal ratio of 720x576 is more "boxy" than the ntsc.

I started assuming that the 4:3 or 16:9 might just affect the display on a PC screen - whereas the pal/ntsc defines the TV resolution.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

rcrsn51 wrote: Thu Jun 24, 2021 10:51 am

If the ultimate goal is to make a new DVD disc, you still don't know if this VOB file can be authored successfully since it contains some bad sections.

I have now used pburn to copy (author?) the 3.1GB vob (ffmpeg shrunk from original 5.4GB vob) to a dvd-r and it appears to have created a usable disc containing the whole contents of all 4 episodes run together as one long video.

Very happy with this so far (although I have not watched every single minute through in one sitting yet) and it seems to work well on a home dvd player and the PC.

Obviously there are no chapters or menu (i guess knowing about how to do that is another learning experience) but here is a snapshot of the contents of the video-ts directory on the disc:

pburn_ts_contents.jpg
pburn_ts_contents.jpg (23.06 KiB) Viewed 1201 times

Next i will go back and try some of the other techniques suggested.

ps: i had run ffmpeg specifying 16:9 and also selected 16:9 within pburn and it is perfect. Same as original.

User avatar
rcrsn51
Posts: 1389
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: DVD ripping and VAMPS shrink. How??

Post by rcrsn51 »

That's good news. Are the artifacts from the original damage still in the new disc?

Is there any noticeable loss in quality after going from 5GB to 3GB?

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

rcrsn51 wrote: Sun Jun 27, 2021 9:57 am

That's good news. Are the artifacts from the original damage still in the new disc?

Yes the pixellated artifacts (and some glitchy audio) are present in the new disc - only briefly though. Doesn't detract much from the storyline.

Is there any noticeable loss in quality after going from 5GB to 3GB?

Not that I can see. (Although I'm not an HD purist). Looks perfectly fine to me.

And I also just noticed that the timestamps seem to be restored - VLC now displays the start and end times correctly at the edges of the progress bar and if I hover the mouse at various points along the vlc progress bar the popup shows the correct time offset. It seems to me that using the --largefile argument for vobcopy allowed it to correctly sequence the entire video and set the durations correctly. (The 2x2048MB and 1x1024Mb vobs created using vobcopy without any argument did not display correct duration timestamps).

EDIT : Method added to first post. Further testing of other methods to follow.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: DVD ripping and VAMPS shrink. How??

Post by greengeek »

wizard wrote: Mon Jun 21, 2021 5:05 pm

If you now want to use these to create the new dvd AND you do not need menus, here is a method that I tested and should work for you

Merge multiple vob to dvd:
-put vob files in a directory
-copy merge_video.sh to the directory and set permissions to executable
-edit merge_video.sh to match input vob file names
-open a terminal in the directory and type: ./merge_video.sh
-press enter and it will create a single dvd compatible output.mpg file
-use pdvdrsab to shrink output.mpg if required, pdvdrsab will name the output file to a .vob, rename it back to a .mpg
-use pdvdrsab to author the new shrunken .mpg
-use dvdrsab or pburn to burn dvd

Using this method and burning the output.mpg with pburn created a good dvd.
However using the same method but authoring/burning with pdvdrsab did not. I don't feel confident that I correctly selected the VIDEO_TS directory pdvdrsab was looking for.

The dvd contents ended up with a directory called VIDEO_TS (without any AUDIO_TS) and would not play.

Here are the contents when i mount the dvd:

root# ls
VIDEO_TS
root# cd VIDEO_TS
root# ls
VTS_01_0.BUP VTS_01_1.VOB VTS_01_3.VOB
VTS_01_0.IFO VTS_01_2.VOB VTS_01_4.VOB
root#

The contents seem right but the absence of the AUDIO_TS and the non-playing make me wonder what went wrong

Post Reply

Return to “Users”