Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The trouble with money is it costs too much!


aus+uk / uk.comp.os.linux / Re: VLC command line for DVD 'titles' -> mkv or mp4 files

SubjectAuthor
* VLC command line for DVD 'titles' -> mkv or mp4 filesJim Lesurf
`* Re: VLC command line for DVD 'titles' -> mkv or mp4 filesJim Lesurf
 `* Re: VLC command line for DVD 'titles' -> mkv or mp4 filesAragorn
  `* Re: VLC command line for DVD 'titles' -> mkv or mp4 filesJim Lesurf
   `* Re: VLC command line for DVD 'titles' -> mkv or mp4 filesGordon
    `- Re: VLC command line for DVD 'titles' -> mkv or mp4 filesJim Lesurf

1
VLC command line for DVD 'titles' -> mkv or mp4 files

<59cf4b239fnoise@audiomisc.co.uk>

 copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=664&group=uk.comp.os.linux#664

 copy link   Newsgroups: uk.comp.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.orpheusnet.co.uk!news.orpheusnet.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 26 Mar 2022 10:56:24 -0500
From: noi...@audiomisc.co.uk (Jim Lesurf)
Subject: VLC command line for DVD 'titles' -> mkv or mp4 files
Newsgroups: uk.comp.os.linux
Date: Sat, 26 Mar 2022 15:56:17 +0000 (GMT)
Message-ID: <59cf4b239fnoise@audiomisc.co.uk>
User-Agent: Pluto/3.18 (RISC OS/5.29) NewsHound/1.43-32pre3
Organization: None
Cache-Post-Path: slave.orpheusnet.co.uk!unknown@91.84.105.112
X-Cache: nntpcache 3.0.2 (see http://www.nntpcache.com/)
Lines: 29
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-Op2MAkOiGgrPGESoy/Uf0gHBweuoFr4e5oTzgUZmCZm/5lxQtvMFQg8Ig3HLal7QO2jb2sAE5AuHcIo!vMdDhe3aIQMxR66zQX2mutkhQZQIBFrYZ4FmPOx8I6nQnVuW7kRyeqOXnE2v319awx/H2yp7aK4=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2217
 by: Jim Lesurf - Sat, 26 Mar 2022 15:56 UTC

Usually I employ Handbrake for ripping video titles from a DVD. But for
some DVDs this fails and I get garbled output.

On those occasions I have been often able to get VLC to do a satisfactory
output file (mkv) from each title on the disc. However I've only been able
to find a way of doing this one title at a time via the fairly arkane VLC
set of menus, etc. There muse be a sensible command line for this, but I've
not found it. So..

Can someone tell me the syntax, please, and give an example. i.e. if I have
a DVD in optical drive sr0 and want a file of title 2 from it as, say,
diskA-title2.mkv in a given directory, what's the vlc command? And how to
get the best video quality?

If I can do that I write a simple prog to automate the process and speed
things up as well as not have to keep finding out the various buttons to
push in the VLC submenues - which I forget when I've not needed them in
months!

Thanks,

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
Audio Misc http://www.audiomisc.co.uk/index.html

Re: VLC command line for DVD 'titles' -> mkv or mp4 files

<59d1545ad6noise@audiomisc.co.uk>

 copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=665&group=uk.comp.os.linux#665

 copy link   Newsgroups: uk.comp.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.orpheusnet.co.uk!news.orpheusnet.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 30 Mar 2022 09:49:52 -0500
From: noi...@audiomisc.co.uk (Jim Lesurf)
Subject: Re: VLC command line for DVD 'titles' -> mkv or mp4 files
Newsgroups: uk.comp.os.linux
Date: Wed, 30 Mar 2022 15:49:17 +0100
Message-ID: <59d1545ad6noise@audiomisc.co.uk>
References: <59cf4b239fnoise@audiomisc.co.uk>
User-Agent: Pluto/3.18 (RISC OS/5.29) NewsHound/1.43-32pre3
Organization: None
Cache-Post-Path: slave.orpheusnet.co.uk!unknown@91.84.117.174
X-Cache: nntpcache 3.0.2 (see http://www.nntpcache.com/)
Lines: 72
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-fLyOyDfch0nY6ZCyX5+ythREVKU21EyQ2jb40nHjPdupIxk0g+wle4cebCMcHaaoApDWRFpVvSH6awk!LS8tVVE4qdaOzzp53Cz0m05hP6SjSRXf9Csq1NRKwepI3YlRzhpjLpxMRM53cEpmEYV2uyf6tcI=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4254
 by: Jim Lesurf - Wed, 30 Mar 2022 14:49 UTC

Bit more detail in case anyone can spot the gremlin and how to deal with
it.

Using Linux. If I use VLC's GUI the key specific settings are that the
source is:

dvdsimple:///dev/sr0#2 (The "#2" tells VLC the source's 'Title' number.
As on many DVDs T1 is the menu, so the '2' means the first actual item of
video, T2.)

The output spec is of the form you'd expect, e.g. something like:

/home/jim/Videos/New/d4t2.mp4

Ths means it will get transcoded into mp4 by VLC as well, and plonked into
the "d4t2.mp4" file.

Doing this works nicely, but I have to go though the fiddling about for
each title on a disc and set these strings as appropriate each time. So
need to come back every 10 - 20 mins to set the next title going or change
the disc in drive /sr0.

Using cvlc (the command for command-line VLC use) the closest I've got to
to this working is

cvlc dvdsimple:///dev/sr0#2 --sout "#standard{access = file, mux = ts, dst
= /home/jim/Videos/New/d4t2.mpg}"

(That is all one line.) It does rip to the d4t2.mpg file. And VLC will
then *start* playing the result. But-

A) File is as big as the DVD content. I'd expect it to be large as there
is no transcoding. Whereas the GUI route transcodes using h264 for the
video, so gives a resulting mp4 which uses less storage space.

B) File seems this big because it actually seems to hold the *entire*
content of the *DVD* - i.e. in this case *five* titles, not just title 2 !
The first title on the DVD is actually the menu, so the result is about
four times the size it would be if only T2 had been ripped to the file.

C) Although the file starts playing from its beginning, its declared
duration is that of one title, not four or five. And any attempt to skip
forwards may or may not work, VLC gets very confused. Implying the
timestamping in the file is obviously garbled.

D) My usual trick with inappropriately timestamped files is to run them
through an ffmpeg 'acopy/vcopy' pass. This generally cleans them fine. But
in this case trying this gives an output that is simply unusuable. So
makes things worse. The shown duration in time is corrected when I try to
play the result, but access gets muddled. i.e. file doesn't play nicely and
any attempt to jump forwards or back causes probems.

Can anyone spot what I'm doing wrong with the cvlc call and how to correct
it so it decently rips a chosen title into an OK file - ideally an mp4 as
the GUI gives me? I've tried some variations on the command line details,
but no cigars thus far. If I can get cvlc to deliver a good .mpg but not
transcode I can do that later. But it would be better to get what the VLC
GUI lets me output. An mp4 with h264 transcoded video, much smaller than
the source data.

Otherwise I'd need to keep setting up a GUI for each title in turn. Unlike
using Handbrake where I can set up a list and come back later with
everything done OK.

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
Audio Misc http://www.audiomisc.co.uk/index.html

Re: VLC command line for DVD 'titles' -> mkv or mp4 files

<20220330180014.4dd642ed@nx-74205>

 copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=666&group=uk.comp.os.linux#666

 copy link   Newsgroups: uk.comp.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: thoron...@telenet.be (Aragorn)
Newsgroups: uk.comp.os.linux
Subject: Re: VLC command line for DVD 'titles' -> mkv or mp4 files
Date: Wed, 30 Mar 2022 18:00:14 +0200
Organization: A noiseless patient Strider
Lines: 14
Message-ID: <20220330180014.4dd642ed@nx-74205>
References: <59cf4b239fnoise@audiomisc.co.uk>
<59d1545ad6noise@audiomisc.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="8b60699442f332a27dec7c7c425ad0e9";
logging-data="20048"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yvkzWJG7pGuZcrfHPvH0p"
Cancel-Lock: sha1:EnUXMxuHpeLQwIFQLFb3zSfHl8A=
X-Newsreader: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu)
 by: Aragorn - Wed, 30 Mar 2022 16:00 UTC

On 30.03.2022 at 15:49, Jim Lesurf scribbled:

> Bit more detail in case anyone can spot the gremlin and how to deal
> with it.
>
> [...]

Why not use a better tool? I think you'd be better off using ffmpeg
instead of VLC.

--
With respect,
= Aragorn =

Re: VLC command line for DVD 'titles' -> mkv or mp4 files

<59d16047c0noise@audiomisc.co.uk>

 copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=667&group=uk.comp.os.linux#667

 copy link   Newsgroups: uk.comp.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.orpheusnet.co.uk!news.orpheusnet.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 30 Mar 2022 12:34:40 -0500
From: noi...@audiomisc.co.uk (Jim Lesurf)
Subject: Re: VLC command line for DVD 'titles' -> mkv or mp4 files
Newsgroups: uk.comp.os.linux
Date: Wed, 30 Mar 2022 17:59:33 +0100
Message-ID: <59d16047c0noise@audiomisc.co.uk>
References: <59cf4b239fnoise@audiomisc.co.uk>
<59d1545ad6noise@audiomisc.co.uk> <20220330180014.4dd642ed@nx-74205>
User-Agent: Pluto/3.18 (RISC OS/5.29) NewsHound/1.43-32pre3
Organization: None
Cache-Post-Path: slave.orpheusnet.co.uk!unknown@91.84.117.174
X-Cache: nntpcache 3.0.2 (see http://www.nntpcache.com/)
Lines: 44
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-QGO80X6uhj3R6UAbzYzDp1FE09j3444QnY3w5N61J+pjCuhNBMU/tS0q4EwciFSZ54nX7v+H6JbNuqh!XjwbVK3KIagkd3h5PCVFIED21yygOy5gND8yf4KALMKLoapU6Zcn/iryZs7/g5hywfKeyicjeCk=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2705
 by: Jim Lesurf - Wed, 30 Mar 2022 16:59 UTC

In article <20220330180014.4dd642ed@nx-74205>, Aragorn
<thorongil@telenet.be> wrote:
> On 30.03.2022 at 15:49, Jim Lesurf scribbled:

> > Bit more detail in case anyone can spot the gremlin and how to deal
> > with it.
> >
> > [...]

> Why not use a better tool? I think you'd be better off using ffmpeg
> instead of VLC.

Well, usually Handbrake is 'better' from my POV as it lets me process a
set of iso images into (h264) mp4 files, one per DVD 'title' all in a batch
as I do other things. Alas, a few DVDs seem to fail to work, but do render
with VLC.*

I'll have a look on the web for how ffmpeg can do this,see what I can find,
but...

If you can tell me the command line for having ffmpeg rip a selected title
from a DVD disk / iso, please give it, or point to it on the web, and I'll
be happy if it does the job! I can then automate the process to make life
easier in future. :-)

FWIW I often use ffmpeg for other processing/correcting/altering of AV
files. But haven't seen a command line for it to generate mp4's from a
Video DVD/isos.

*Not sure why this happens. Rare. But mostly seems to occur with early UK
DVD videos. Normally, HandBrake is also useful in checking which audio
tracks, etc, I may want. Set it up and leave it chugging for an hour or
few.

Thanks,

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
Audio Misc http://www.audiomisc.co.uk/index.html

Re: VLC command line for DVD 'titles' -> mkv or mp4 files

<jd1924F3n1iU4@mid.individual.net>

 copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=686&group=uk.comp.os.linux#686

 copy link   Newsgroups: uk.comp.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Gor...@leaf.net.nz (Gordon)
Newsgroups: uk.comp.os.linux
Subject: Re: VLC command line for DVD 'titles' -> mkv or mp4 files
Date: 29 Apr 2022 04:49:08 GMT
Lines: 40
Message-ID: <jd1924F3n1iU4@mid.individual.net>
References: <59cf4b239fnoise@audiomisc.co.uk>
<59d1545ad6noise@audiomisc.co.uk> <20220330180014.4dd642ed@nx-74205>
<59d16047c0noise@audiomisc.co.uk>
X-Trace: individual.net HmAm8KuW+UAi/JVz1h3Xmw1GgeJvE7Qfl7mBmf3tfgu6Zi5DHX
Cancel-Lock: sha1:I1wJLSc+LhllldY5bKdIvgbkvT0=
User-Agent: slrn/1.0.3 (Linux)
 by: Gordon - Fri, 29 Apr 2022 04:49 UTC

On 2022-03-30, Jim Lesurf <noise@audiomisc.co.uk> wrote:
> In article <20220330180014.4dd642ed@nx-74205>, Aragorn
><thorongil@telenet.be> wrote:
>> On 30.03.2022 at 15:49, Jim Lesurf scribbled:
>
>> > Bit more detail in case anyone can spot the gremlin and how to deal
>> > with it.
>> >
>> > [...]
>
>> Why not use a better tool? I think you'd be better off using ffmpeg
>> instead of VLC.
>
> Well, usually Handbrake is 'better' from my POV as it lets me process a
> set of iso images into (h264) mp4 files, one per DVD 'title' all in a batch
> as I do other things. Alas, a few DVDs seem to fail to work, but do render
> with VLC.*
>
> I'll have a look on the web for how ffmpeg can do this,see what I can find,
> but...
>
> If you can tell me the command line for having ffmpeg rip a selected title
> from a DVD disk / iso, please give it, or point to it on the web, and I'll
> be happy if it does the job! I can then automate the process to make life
> easier in future. :-)
>
> FWIW I often use ffmpeg for other processing/correcting/altering of AV
> files. But haven't seen a command line for it to generate mp4's from a
> Video DVD/isos.
>
> *Not sure why this happens. Rare. But mostly seems to occur with early UK
> DVD videos. Normally, HandBrake is also useful in checking which audio
> tracks, etc, I may want. Set it up and leave it chugging for an hour or
> few.
>
Off the top of my head. Create an iso file of the DVD and then put that into
Handbrake.

dd BS=4M if=/dev/sr0 of=DVD.iso

Re: VLC command line for DVD 'titles' -> mkv or mp4 files

<59e0ae8302noise@audiomisc.co.uk>

 copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=687&group=uk.comp.os.linux#687

 copy link   Newsgroups: uk.comp.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.orpheusnet.co.uk!news.orpheusnet.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 29 Apr 2022 05:18:15 -0500
From: noi...@audiomisc.co.uk (Jim Lesurf)
Subject: Re: VLC command line for DVD 'titles' -> mkv or mp4 files
Newsgroups: uk.comp.os.linux
Date: Fri, 29 Apr 2022 11:17:05 +0100
Message-ID: <59e0ae8302noise@audiomisc.co.uk>
References: <59cf4b239fnoise@audiomisc.co.uk>
<59d1545ad6noise@audiomisc.co.uk> <20220330180014.4dd642ed@nx-74205>
<59d16047c0noise@audiomisc.co.uk> <jd1924F3n1iU4@mid.individual.net>
User-Agent: Pluto/3.18 (RISC OS/5.29) NewsHound/1.43-32pre3
Organization: None
Cache-Post-Path: slave.orpheusnet.co.uk!unknown@91.84.122.89
X-Cache: nntpcache 3.0.2 (see http://www.nntpcache.com/)
Lines: 25
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-fSIbdT7oEKQwBoe5WojYY9nQKF2S1aoSx8x8KYpy5jl4UFivNOQ4MUAHiuax8P/GsEU1rC1Zxjgofua!w+wMOMZK5Ecp9h6Ij0Cf9U9VbF0wzY8dRNm/6locAyEEjx0zdqxGkoDAfQsYufbZoVh2SPIHNI0=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2164
 by: Jim Lesurf - Fri, 29 Apr 2022 10:17 UTC

In article <jd1924F3n1iU4@mid.individual.net>, Gordon <Gordon@leaf.net.nz>
wrote:
> >
> Off the top of my head. Create an iso file of the DVD and then put that
> into Handbrake.

> dd BS=4M if=/dev/sr0 of=DVD.iso

My SOP is to take an iso image files of some discs and then use Handbrake
(via its GUI) to work though them as I do something else. This almost
always works fine. But not in a few cases - which are the ones I raised
this about. Regardless of being direct from a DVD in the drive, or an iso
image file of that disc, Handbrake fails in some cases... but vlc works.

Have no idea why. Presume it is something 'odd' about the specific discs
that confuses Handbrake, but not VLC.

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
Audio Misc http://www.audiomisc.co.uk/index.html

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor