LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2004, 06:38 PM   #16
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31

Firts I need to know what DVD movie you backed up.

Second. The original movies, are they ok when you play them in you DVD players.

What I think could possibly be your problem is that you did not setup your DVD player to accept 16:9 (widesceen) movies on a 4:3 television set.

What you need to do is to go in the options of your DVD (read your manual) and set your tv as a 4:3 letterbox so the player will add black bars on the top and bottom of your screen when you play the movie.

I always setup my players that way.
 
Old 11-16-2004, 06:45 AM   #17
marcelofr
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
subtitles and audio tracks

Great howto!!! What about subtitles and more than one audio track? My native language is spanish, so subtitles are a must.
Thanks
 
Old 11-16-2004, 03:27 PM   #18
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
As of now subtiltles are not supported in Linux unless you are very advanced and don't mind getting your hands dirty.

Be patient.
 
Old 11-16-2004, 08:34 PM   #19
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
Hi friend,
I tried to follow your guides. In step 5 I fail badly.

Here's some output:


bruno@frank:/backup5/DVDVOLUME/VIDEO_TS$ tcextract -i movie.vob -t vob -x mpeg2
> movie.m2v
(extract_mpeg2.c) missing start code at 0x11671800
(extract_mpeg2.c) broken stream - skipping data
(extract_mpeg2.c) broken stream - skipping data
(extract_mpeg2.c) broken stream - skipping data
(extract_mpeg2.c) broken stream - skipping data

(repeat this line some 15 times...)


bruno@frank:/backup5/DVDVOLUME/VIDEO_TS$ tcextract -i movie.vob -a 0 -x ac3 -t v ob > movie.ac3
(extract_ac3.c) broken stream - skipping data
(extract_ac3.c) broken stream - skipping data
(extract_ac3.c) broken stream - skipping data
(extract_ac3.c) broken stream - skipping data
(extract_ac3.c) broken stream - skipping data

(more 15 times...)




bruno@frank:/backup5/DVDVOLUME/VIDEO_TS$ tcrequant -i movie.m2v -o shrink ed.m2v -f 1.5

(goes well)



bruno@frank:/backup5/DVDVOLUME/movie$ mplex -f 8 -o final.mpg shrink ed.m2v video.ac3
INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
**ERROR: [mplex] Unable to open file ed.m2v for reading.


I don't have a ed.m2v file. Also, I don't have a video.ac3 file. I have movie.ac3, movie.m2v, movie.vob (the big one), and shrink.


...


(after lots of lines like these, it exits)

++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=608402 required(DTS)=589595
++ WARN: [mplex] Video e0: buf= 235543 frame=000192 sector=00003478
++ WARN: [mplex] Audio bd: buf= 16384 frame=000202 sector=00000077
**ERROR: [mplex] Can't find next AC3 frame: @ 1771008 we have d86b - broken bit-stream?


It seems that extract did something wrong. How can it be that movie.vob has 7.3 GB, but movie.m2v and movie.ac3 sum 5.4GB? There had no compression yet.

When mplex tries to combine shrink and movie.ac3, it fails because these files are wrongly built. Am I wrong?
The only reason I can see is that I didn't use DVD:Rip to extract the original dvd. I used dvdbackup, which I already had installed. Is it possible? Those "broken streams" complains are due to vobs uncorrectly extracted?

Thanks!
 
Old 11-17-2004, 09:13 AM   #20
marcelofr
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
Thumbs up

Quote:
Originally posted by Steel_J
As of now subtiltles are not supported in Linux unless you are very advanced and don't mind getting your hands dirty.

Be patient.
I know... but, if I get the subtitles I want from dvdrip (.ps1)?
And I'm happy to get my hands dirty!!!

--
Marcelo
 
Old 11-17-2004, 07:59 PM   #21
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
I kind of succeeded encoding here. Nice tip. Hey steel, can I translate this document to portuguese?
 
Old 11-17-2004, 11:49 PM   #22
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Well Bruno buys I read your outputed error messages and I can see why step 5 failed.

First you need to know that in my guide I used names like "movie.vob" ,"shrinked.m2v", "movie.ac3", etc.... Those are names I made up for the guide. Usually you will want to replace those names with your own, depending on the movie project you are working on. Mine are juste suggestions.

The reason I am telling you this, is by reading your post I noticed wou seem to copy and paste my command litteraly. That is why it fails.

See here:
Quote:
bruno@frank:/backup5/DVDVOLUME/VIDEO_TS$ tcextract -i movie.vob -t vob -x mpeg2
> movie.m2v
(extract_mpeg2.c) missing start code at 0x11671800
(extract_mpeg2.c) broken stream - skipping data
(extract_mpeg2.c) broken stream - skipping data
(extract_mpeg2.c) broken stream - skipping data
(extract_mpeg2.c) broken stream - skipping data
In the command "tcextract -i movie.vob -t vob -x mpeg2 > movie.m2v" movie.vob is the name of one file that contains all the ripped VOB's that I joined wiht the CAT command as indicated in step 2) of my guide.

Let's translate i. "tcextract -i movie.vob -t vob -x mpeg2 > movie.m2v" simply means extract the mpeg2 video stream from imput file (-i) movie.vob and save it as movie.m2v.

It fails because you are trying to process a file you did not create. My guide does not work from a VIDEO_TS folder.

See here again:
Quote:
bruno@frank:/backup5/DVDVOLUME/movie$ mplex -f 8 -o final.mpg shrink ed.m2v video.ac3
INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
**ERROR: [mplex] Unable to open file ed.m2v for reading.
It is not "ed.m2v", read carefully, It is "shrinked.m2v". A space was mistakenly put there.

Another space typo in your other error report:
Quote:
bruno@frank:/backup5/DVDVOLUME/VIDEO_TS$ tcextract -i movie.vob -a 0 -x ac3 -t v ob > movie.ac3
(extract_ac3.c) broken stream - skipping data
(extract_ac3.c) broken stream - skipping data
(extract_ac3.c) broken stream - skipping data
(extract_ac3.c) broken stream - skipping data
(extract_ac3.c) broken stream - skipping data

(more 15 times...)
Can you see the wrong space "v ob" right before the ">movie.ac3". It should spell "vob".

Also to answer your last question, you can use dvdbackup without problem. It does the same as DVD::Rip. As long as you join the extracted VOB's with the CAT command.

Do you see your mistakes?

P.S If you did join the VOB's and it did not work then maybe you should use DVD:Rip instread of dvdbackup.
 
Old 11-17-2004, 11:59 PM   #23
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Sure you can translate it

You can post it to any potugese Linux forum if you want to after that.
 
Old 11-18-2004, 12:08 PM   #24
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
Hi steel, thanks for your thorough answer. I'm looking forward to complete an entire dvd backup!

After much hacking around, I found the typos and corrected them. There's a typo in your first post, a space between shrink and ed.m2v (shrink ed.m2v, 4th step), which was why my pasting wasn't working. The video_ts dir was irrelevant, actually, I was inside it and the commands did not create any other dirs above that.

Anyway, I managed to get past this step. Mplex seems to complain about some missing headers or infos. It seems that mplex needs the first vob of the sequence, to be able to mount the file (A+V) again. Whitout it, it can't go on. Its a good place to hack, because if we can discard the first vob, we save space and reduce encoding time. Its common feature in a dvd, the first vob is just some stupid presentation, company logo and things like that. Can we cat starting from the real begining of the movie?
Thanks!

Obs - And, sure, I will translate it!
 
Old 11-18-2004, 02:00 PM   #25
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
I never tried it. I based my guide on using just one whole title set, not the entire DVD. In linux cloning a DVD9 (like DVDShrink in Windows) as not been done with great success so far

When I rip whit DVD::rip I rip only the main title and my language of choice (english ac3 6 channels). So actually there is no long presentation at all at the beginning. The movie starts right away. There is no loss of space for encoding.

Instead of mplex you could aslo use tcmplex. Sometimes one will work when the other ones does not. Use it like so for muxing DVD's:

tcmplex -o movie.mpg -i movie.m2v -p movie.ac3 -m d

but mplex should work now if you rip only the main movie titleset.

Although, if you manage to make this all work with all the titles on a DVD, tell me how. It could be possible.

Now I will go edit my original post to correct those typo's. This way I will prevent problems for other users.
 
Old 11-18-2004, 04:20 PM   #26
cybermonkey
LQ Newbie
 
Registered: Jul 2003
Posts: 13

Rep: Reputation: 0
DVd

See i followed your tutorial except i don't use DVD::Rip i use Vobcopy
The last movie i tried was Shrek and i tried the dvd in 4 Dvdplayers 2 Apex a sony and a unknown
Tried the dvd on a 14in 20in 32in Tv's it's like the movies are just to wide for any Dvd/Tv i try them in
this isn't really a problem because the dvd i produce is of very good quality it's as if this tutorial is the inner workings of a Dvd Shrink for Linux for me everything work's great except that anoying to wide of a movie for a tv screen . Good work though im working on a gui to automat this prossess for the newb's.


(16:9 (widesceen) movies on a 4:3 television)
Is there an option when encodeing the dvd to specify that the dvd movie be sutable for a
16:9 (widescreen) or 4:3 (Television)?

I use VobCopy because it doesn't make a dvd dir based on what movie i am copying and plus it's a console utillity there for building an appt that does the job with a gui that run's shell scripts is very versitile

Last edited by cybermonkey; 11-18-2004 at 06:04 PM.
 
Old 11-18-2004, 08:14 PM   #27
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Very good point CyberMonkey.

The usage of DVD::Rip does take us away from the command line. For scripting it becomes a problem.

I am very much intrigued by this "too wide" movie problem. I personally don't experience it at all. My produced movies play fine on my Panasonic S35 and my Pioneer.

Maybe it's the DVD:Rip that does the difference but it should not. A ripped title is a ripped title and that's all. Be it with VobCopy or any other, it makes no difference and you are right about that.

Actually there is no options to indicate 4:3 ore 16:9 because in essence, no change is made to the movie at all. It is only requantized (made smaller) by removing frames. If we were re-encoding, then we could modify the aspect ratio to what we want.

I am going to try testing this to see for myself if I can fix this.

In the meantime, if you could do me a favor and test your next DVD movie by ripping it with DVD::Rip, just to see if that makes a difference. Only Rip the main tiltle and post the result in this thread.

I am also working on a automated script, but I would be very much interested in trying ou yours when it is done. If you want you can e-mail it to me at steel_j1971@yahoo.ca . I would post my test results afterward. Don't worry all credits will remain yours for any scipting effort. This guide was created with the sole reason of helping people in the Linux world.

Last edited by Steel_J; 11-18-2004 at 08:16 PM.
 
Old 11-19-2004, 04:45 AM   #28
cybermonkey
LQ Newbie
 
Registered: Jul 2003
Posts: 13

Rep: Reputation: 0
Ya no problem ill try DVD::Rip out been a while might take a day or two to figure it out again my scripts are just your commands with a little extra added in like eject /dev/DVD and rm -r example
i just added a 3 click gui (COPY SHRINK BURN) thats all Screen shot http://tinypic.com/la9g6 of what i have so far if it wasn't for you id still be searching for a solution i was using vobcopy and vobstripper but your method works better.
Alot of people i know are asking about menus if we could some how use dvdauthor
and a script to some how read the contents of a movie and pass that info to a config.sh file then have dvdauthor read that or have dvdauthor executed from that config.sh file and add just the info in question as text ect ect to a movie as Scene 1 Scene 2 Scene 3 ect ect
the the final movie could passable have the menus needed to be a much more complete DVD movie.
But how would you go about making the movie halt until a scene is chosen.

Last edited by cybermonkey; 11-19-2004 at 05:39 AM.
 
Old 11-19-2004, 12:04 PM   #29
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
Hi,
Encoding succeeded. I am about to test it more, but I guess dvdbackup is to be blamed on first failures.

The recorded dvd movie can play well on my lg dvd player. No widescreen missing inches issues, but it lacks the ability to watch the movie on 16:9. Only 4:3 available. mplayer can play it in 16:9 ok.
 
Old 11-19-2004, 01:07 PM   #30
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Cybermonkey,

Your Gui looks nice! It looks like your develloping an app that does a lot of other things to. If my guide made one little part feasible then I am proud .

When it's finnished I would like to try it.

As for menus, I would actually be quite easy since dvdauthor support any kind of configuration trough a XML file.

A script would setup a basic XML file to use a fixed background image, a play button and a scene selection button.

Then the script could take care of reading the movie title and the number of chapters and use it t ofinnish creating the XML file.

At the authoring stage dvdauthor woul be passed the XML config file.

Here is a excerpt of :http://www.egs-howto.com/mambo/index...sk=view&id=174

It tells you how to create the image, buttons, etc... and XML structure for dvdauthor.



Quote:
Creating the menus
For PAL:
Open up The Gimp and make a new image of size 720×576, with a resolution of 75dpi in the x-axis and 80dpi in the y-axis.

For NTSC:
Make a new image of size 720x480, with a resolution of 81dpi in the x-axis & 72dpi in the y-axis.

Right click on the image, select Image -> Alpha -> Add channel.
Right click on the image, select image -> Layers -> Layers, Channels & Paths
Create a layer called 'button_highlight'.
Create a layer called 'button_select'.
Select the background layer & draw the menu background.

I chose to use the matrix 'green data dribble' as the background, which I downloaded from a free wallpaper website.
Scaled the image to the correct 720x576, right click image -> Image -> Scale Image & set. Then copy/pasted it into the background layer of my new image.
Here is the image -> http://mightylegends.zapto.org/dvd/matrix.jpg

I wanted to have selectable snapshots of each movie in the menu.
Snapshots were taken using xine, images were scaled using gimp, then pasted into the background layer.
Here is the image -> http://mightylegends.zapto.org/dvd/m...background.jpg

Select the button_highlight layer & draw the button outlines. To see howto draw perfect rectangles, squares & circles in the gimp, see here -> http://www.cubicdesign.com/gimp/1_3/
Here is the image -> http://mightylegends.zapto.org/dvd/m..._highlight.png

Hide the button_highlight layer & save the background layer.
Do this by selecting the button_highlight layer & using the Opacity slider in the Layers, Channels & Paths dialog box to make it disappear.
Click on the background layer, right click on the image, select File -> Save as
Save background layer as 'matrix_menu_background.jpg'.
(NOTE - Background MUST be a .jpg)

Save the button_highlight layer in the same way. Use the opacity slider to bring the button_highlight layer back up, & hide the background layer.
Click on the button_highlight layer, right click on the image, select File -> Save as
Save button_highlight layer as 'matrix_menu_highlight.png'.
(NOTE - Button layer MUST be a .png)

Select the button_select layer & draw the button outlines exactly the same as button_highlight, but in a different color. An easy way to do this is to open matrix_menu_highlight.png, right click image, select Image -> Colors -> Color map rotation, set the colour to something different, but that will still be visible against the menu background colour.
Save new colour image as 'matrix_menu_select.png'.
(NOTE - MUST also be a .png)
Here is the image -> http://mightylegends.zapto.org/dvd/m...enu_select.png

Note:
Once your comfortable with the above, & everything is working, have a shot at creating an animated DVD menu.
See here -> http://mightylegends.zapto.org/dvd/d...o_animenu.html


Putting it all together
Convert the menu background into a DVD .mpg.
For PAL:
jpeg2yuv -n 50 -I p -f 25 -j matrix_menu_background.jpg | mpeg2enc -n p -f 8 -o matrix_menu_background.m2v

For NTSC:
jpeg2yuv -n 50 -I p -f 29.97 -j matrix_menu_background.jpg | mpeg2enc -n n -f 8 -o matrix_menu_background.m2v

Create some background audio for the menu:
mplayer yourmusicfile.mp3 -vo null -ao pcm -aofile menu_audio.pcm

Use 'normalize' to make audio softer/louder if necessary:
normalize -a -10dB menu_audio.pcm

Convert to mpeg audio:
mp2enc -r 48000 -o menu_audio.mpa < menu_audio.pcm

If you do not want any audio present in your menu, it is still necessary to create a silent audio file for mplex so the DVD menus will work correctly. Like this:
For PAL:
dd if=/dev/zero bs=4 count=1920 | toolame -b 128 -s 48 /dev/stdin menu_audio.mpa

For NTSC:
dd if=/dev/zero bs=4 count=1601.6 | toolame -b 128 -s 48 /dev/stdin menu_audio.mpa

Merge background menu video/audio:
mplex -f 8 -o matrix_menu.mpg matrix_menu_background.m2v menu_audio.mpa

Use spumux to merge button_highlight & button_select images into the menu video.
Spumux is part of the dvdauthor package. It is configured via an .xml file. Here is the xml config file we will use, save it as 'spumux.xml':
File:
<subpictures>
<stream>
<spu start="00:00:00.0" end="00:00:00.0"
highlight="matrix_menu_highlight.png"
select="matrix_menu_select.png"
autooutline="infer"
autoorder="rows"/>
</stream>
</subpictures>

Create final menu .mpg:
spumux spumux.xml < matrix_menu.mpg > matrix_menu_final.mpg

Authoring the DVD
Dvdauthor is configured via a .xml file. Here is the .xml config file we will use, save it as 'dvdauthor.xml':
File:
<dvdauthor dest="DVD">

<vmgm>
<menus>
<pgc>
<vob file="thx_dvd.mpg"/>
<post>
jump titleset 1 menu;
</post>
</pgc>
</menus>
</vmgm>

<titleset>
<menus>
<pgc>
<button> jump title 1; </button>
<button> jump title 2; </button>
<vob file="matrix_menu_final.mpg" pause="inf"/>
</pgc>
</menus>

<titles>
<pgc>
<vob file="matrix_dvd.mpg"/>
<post>
call menu;
</post>
</pgc>
</titles>

<titles>
<pgc>
<vob file="outtakes_dvd.mpg" />
<post>
call menu;
</post>
</pgc>
</titles>

</titleset>

</dvdauthor>

Create a directory named 'DVD'.
Create the DVD file structure with:
dvdauthor -x dvdauthor.xml

Test the new menus in xine before burning:
xine dvd:/full/path/to/DVD/VIDEO_TS/

Xine should play from the folder as though it's playing from a DVD.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: DVD9 to DVD5 guide Steel_J LinuxAnswers Discussion 331 10-13-2009 01:40 PM
problem at step 5 in "DVD9 to DVD5 guide" Vindane Linux - Software 5 04-24-2005 01:25 PM
DVD backup DVD9 to DVD5 ksgill Linux - Newbie 7 03-05-2005 03:08 PM
DVD9 to DVD5 Klas Linux - Software 2 12-15-2004 12:45 AM
DVD9 to DVD5 Avo Linux - Software 3 10-20-2004 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 AM.

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