Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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!
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.
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.
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.
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.
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.
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.
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
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
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
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
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">
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.