LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-11-2010, 03:01 PM   #1
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
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
 
Old 01-11-2010, 03:22 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Have you tried converting with ffmpeg or seeing if there is aplugin to use ffmpeg with gstreamer?
 
Old 01-12-2010, 04:36 PM   #3
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
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
 
Old 01-12-2010, 10:16 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
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/

Last edited by craigevil; 01-12-2010 at 10:18 PM.
 
Old 01-13-2010, 02:48 AM   #5
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
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.
 
Old 01-13-2010, 03:05 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
Old 01-13-2010, 06:07 AM   #7
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
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
 
Old 01-14-2010, 03:47 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert MOV to AVI using GStreamer trainpic Linux - General 4 06-10-2006 10:40 AM
Convert small dvd or cd files into to a single layer dvd? suse91pro General 0 09-27-2005 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration