LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Gstreamer to convert DVD? (https://www.linuxquestions.org/questions/linux-general-1/gstreamer-to-convert-dvd-781546/)

jsteel 01-11-2010 03:01 PM

Gstreamer to convert DVD?
 
Hi,

I'm having trouble finding information on using gstreamer to convert videos from the command line. I've seen examples to convert audio and know it's possible to convert video (Thoggen does this with gstreamer) but what would the command be to execute this? I assume it will use gst-launch but there are so many following switches that it gets confusing. I'm interested in converting a DVD to OGG (as Thoggen does).

I ask this because Thoggen:

1) Doesn't remember my preferences (quality, picture size etc.)
2) Gives me a huge preview window that I do not need (while it is encoding)

I would find it much easier (quicker) to just insert a disc and run a command.

Thank you

Mr-Bisquit 01-11-2010 03:22 PM

Have you tried converting with ffmpeg or seeing if there is aplugin to use ffmpeg with gstreamer?

jsteel 01-12-2010 04:36 PM

I have not tried ffmpeg, I'm interested in using gstreamer as I use it to convert audio (as well as play back audio and video). I would like to stay consistent and use it for my video converting too.

Yes I believe there is an ffmpeg plugin for gstreamer. My question is what would the command pipeline be?

Thanks

craigevil 01-12-2010 10:16 PM

transmageddon - video transcoder for Linux and Unix systems built using GStreamer, however it isnt a CLI app.

Description: video transcoder for Linux and Unix systems built using GStreamer
Transmageddon supports almost any format as its input and can generate a very
large host of output files. The goal of the application was to help people to
create the files they need to be able to play on their mobile devices and for
people not hugely experienced with multimedia to generate a multimedia file
without having to resort to command line tools with ungainly syntaxes.
.
The currently supported codecs are:
* Containers:
- Ogg
- Matroska
- AVI
- MPEG TS
- flv
- QuickTime
- MPEG4
- 3GPP
- MXT
* Audio encoders:
- Vorbis
- FLAC
- MP3
- AAC
- AC3
- Speex
- Celt
* Video encoders:
- Theora
- Dirac
- H264
- MPEG2
- MPEG4/DivX5
- xvid
- DNxHD
.
It also provide the support for the GStreamer's plugins auto-search.
Homepage: http://www.linuxrising.org/transmageddon/

jsteel 01-13-2010 02:48 AM

Thanks that software looks good but it doesn't seem geared towards converting DVDs; is that correct? I can't find a way to point it at the drive, only at the individual VOB files.

H_TeXMeX_H 01-13-2010 03:05 AM

Well, I usually rip DVDs as follows:

1) Use vobcopy to rip the vob (mpeg2) from the DVD.
2) Use ffmpeg (or other converting program) to convert the video to whatever format you want.

There also exist programs specially designed for ripping like DVD::Rip and OGMRip.

jsteel 01-13-2010 06:07 AM

H_TeXMeX_H,
I'm interested in trying ffmpeg. In the man page it suggests:

ffmpeg -i snatch_1.vob -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec libmp3lame -ab 128k snatch.avi

But I would like something that can recognise the main title of the DVD (there are a number of VOBs). If that is possible, would you mind giving me an example command that you run to convert the VOBs to a single file (MPEG, OGG or similar).

Thanks

H_TeXMeX_H 01-14-2010 03:47 AM

Well, vobcopy should recognize a different title for each DVD it rips. Now, the title is usually not too readable, but each one is different.

As for converting the vob using ffmpeg to say an Xvid that can be played on Divx certified players, I usually run:

Code:

ffmpeg -i input.vob -vcodec libxvid -qscale 5 -s 640x272 -r 23.976 -aspect 40:17 -g 240 -bf 2 -acodec libmp3lame -ab 160k -ar 48000 -async 48000 -ac 2 -pass 1 -an -f rawvideo -y /dev/null
ffmpeg -i input.vob -vcodec libxvid -qscale 5 -s 640x272 -r 23.976 -aspect 40:17 -g 240 -bf 2 -acodec libmp3lame -ab 160k -ar 48000 -async 48000 -ac 2 -pass 2 output.avi

That's for a 2-pass encode. Make sure to change the output resolution, frame rate, aspect, GOP (should be 10 x frame rate as you can see 240), audio bitrate and audio sample rate (keep async equal to the sample rate to prevent A/V desync). You can use a lower qscale for higher quality and vice versa.


All times are GMT -5. The time now is 06:38 AM.