Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DVD9 > DVD5 guide
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
BlueShadow
n00b
n00b


Joined: 30 Nov 2004
Posts: 24
Location: Switzerland

PostPosted: Sun Sep 25, 2005 1:39 pm    Post subject: multiple languages and subtitles Reply with quote

Hi there! Great guide, works fine. But i got some additional questions:

How can i get multiple languages on my dvd and is it possible to also copy the subtitles?
I figured who to copy multiple audio streams, but i would like no name them. So the DVD-Player displays e.g. "English, German" now it only displays "??, ??".
Then if it is not possible to get the original chapters, can you generate them yourself (like all 10 minutes or somthing like that)?

thanx!
Back to top
View user's profile Send private message
benny1967
Apprentice
Apprentice


Joined: 25 Apr 2004
Posts: 224

PostPosted: Sat Oct 15, 2005 2:32 pm    Post subject: Re: multiple languages and subtitles Reply with quote

BlueShadow wrote:

Then if it is not possible to get the original chapters, can you generate them yourself (like all 10 minutes or somthing like that)?


Blue, as for the original chapters, it should work using something like this snip of code i found here:
Code:

## Retrieve the chapter list.
echo "Retrieving chapter list from DVD"
tcprobe -i /dev/dvd -T 1 -H 10 2>&1 | egrep "\[Chapter ..\] " | \
cut -d " " -f 4 | perl -pi -e 's/\n/,/' | \
perl -pi -e 's/,$//' >chap.list


this will generate a list of chapters you should be able use with DVDauthor, either within the XML file or from the command line with the -c parameter.
Back to top
View user's profile Send private message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Sat Dec 17, 2005 5:17 pm    Post subject: Reply with quote

Dick Hertz wrote:
mnxAlpha wrote:
That's because the output file is going to be greater than 2GB, and mplex is being careful (in case you're running a system that can't deal with files greater than 2GB). I can run mplex on files far larger than 2GB without any problems, and without any additional command-line options. Maybe mplex didn't get compiled with large file support for some reason?


Would that be a kernel parameter or a USE flag?


No, just use -M switch in command and everything should be fine.
_________________
http://www.meteoadriatic.net/
Back to top
View user's profile Send private message
Schizoid
Apprentice
Apprentice


Joined: 11 Apr 2003
Posts: 267

PostPosted: Mon Jan 30, 2006 7:05 pm    Post subject: Reply with quote

I am stuck at the mplex step (5) in this process...

I have issued the command:
mplex -f 8 -o final.mpg /mnt/hda4/tmp3/shrinked.m2v /mnt/hda4/tmp3/movie.ac3

in the original post it says:
mplex -f 8 -o final.mpg shrink ed.m2v video.ac3

I assume by video.ac3 you really mean movie.ac3 which was made with the tcextract command in step 3?


So assuming my change is correct, the output I get is...
**ERROR: [mplex] Can't find next AC3 frame: @ 101976576 we have 2504 - broken bit-stream?
after a few minutes.

Watching final.mpg only shows about 15 minutes of the film.

Did I screw up somewhere?


One thing I did do was when merging all the VOB files with the cat command I was actually merging 8 vob files that were from two different titles on the dvd. The particular dvd I am using is 170 minutes of video and they have broken it up into two titles on the dvd.

I also used dvdbackup to rip the vobs instead of dvd::rip since I am working with the command line only.

dvdbackup -i /dev/dvd -t 1 -o /mnt/hda4/tmp1
dvdbackup -i /dev/dvd -t 2 -o /mnt/hda4/tmp2

Should this be a problem?

I would blame the fact that I merged vobs from two different titles but mplex stops long before it gets that far in the merged VOB file.

Thank you for any assistance. If there is a better way to do a dvd9-dvd5 that is made of two titles I would love to know.


edit: I tried with final-d%.mpg so mplex would spit out chunks but that didn't help either.
Back to top
View user's profile Send private message
uber.grog
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2006
Posts: 83

PostPosted: Tue Oct 03, 2006 8:19 pm    Post subject: Reply with quote

Hi all. I've been really working to get the original script working, but for me it stops at mplex:

Code:
   INFO: [mplex] Average bit-rate :  3335600 bits/sec
   INFO: [mplex] Peak bit-rate    : 53898400  bits/sec
   INFO: [mplex] BUFFERING stream too short for useful statistics
   INFO: [mplex] AUDIO_STATISTICS: bd
   INFO: [mplex] Audio stream length 546093056 bytes.
   INFO: [mplex] Frames         :   312084
   INFO: [mplex] BUFFERING stream too short for useful statistics
**ERROR: [mplex] MUX STATUS: Frame data under-runs detected!


I've converted the whole process into my own script, so maybe there's something I've done wrong earlier in the process (see below, untested past mplex). Check out the multiple mplex lines to see what I've tried. Coments and/or help greatly appreciated. I just emerged wine, but would really prefer not to go the dvdshrink route!! :(

Code:
#!/bin/sh
# dvd-copy.sh
# from http://forums.gentoo.org/viewtopic.php?t=244625

error_exit() {
    echo "${0##*/} ** ${1:-There has been an error}" >&2
    echo "Usage: ${0##*/} [-d destdir] [-t title]" >&2
    exit 1
}

WORKDIR=path_to_temp_dir
DRIVEIN=/dev/hda
DRIVEOUT=/dev/hdb

while getopts d:t: OPTFLAG; do
  case $OPTFLAG in
    d) [ ! -d $OPTARG ] && error_exit "Invalid backup dir specified"
       WORKDIR=$OPTARG
       ;;
    t) case $OPTARG in
            *[a-zA-Z0-9_-]*) DVDTITLE=$OPTARG ;;
            *) error_exit "the specified title cannot contain specifol chanraters" ;;
       esac
       ;;
    ?) error_exit ;;
  esac
done
shift $(($OPTIND - 1))

if [ -z "$DVDTITLE" ]; then
    DVDTITLE=${DVDTITLE:-$(dvdbackup -i $DRIVEIN -I)} || error_exit
    [ -z "$DVDTITLE" ] && error_exit "error findind dvd title"
fi

AUDIO=$DVDTITLE.AC3
FULL_VIDEO=$DVDTITLE-FULL.M2V
SHRUNK_VIDEO=$DVDTITLE-SHRUNK.M2V
FINAL_VIDEO=$DVDTITLE

set -x

cd $WORKDIR || error_exit

# rip the whole dvd
dvdbackup -M -i $DRIVEIN -o $WORKDIR || error_exit

# eject the disc to indicate the rip function has completed
eject -v $DRIVEIN

cd $DVDTITLE/VIDEO_TS || error_exit

# demutliplex to create m2v & ac3 files.
cat *.VOB | tcextract -t vob -x mpeg2 > $FULL_VIDEO || error_exit
cat *.VOB | tcextract -a 0 -x ac3 -t vob > $AUDIO || error_exit

# calculate the REQUANT_FACTOR (the factor to shrink to fit onto a 4.7GB dvd)
VIDEO_SIZE=$(command ls -l $FULL_VIDEO | awk '{print $5}') || error_exit
[ $VIDEO_SIZE -lt 1 ] && error_exit
AUDIO_SIZE=$(command ls -l $AUDIO | awk '{print $5}') || error_exit
[ $AUDIO_SIZE -lt 1 ] && error_exit
REQUANT_FACTOR=$(echo "scale=1; ($VIDEO_SIZE / (4700000000 - $AUDIO_SIZE)) * 1.04" | bc) || error_exit
DECIMAL=${REQUANT_FACTOR%%.*}
REMAINDER=${REQUANT_FACTOR##*.}

if [ $DECIMAL -gt 1 ] || [ $DECIMAL -ge 1 -a $REMAINDER -gt 0 ]; then
    # requantize (shrink) the video to fit on a 4.7M dvd.
    # NB: the higher the requantize value, the smaller the output (1.5 = 75%, 2 = 50%, etc)
    tcrequant -i $FULL_VIDEO -o $SHRUNK_VIDEO -f $REQUANT_FACTOR || error_exit
else
    ln -s $FULL_VIDEO $SHRUNK_VIDEO
fi

# re-multiplex the 2 files into a compliant DVDauthor file
#mplex -v 0 -f 9 -o $FINAL_VIDEO-%d.MPG $SHRUNK_VIDEO $AUDIO || error_exit
#mplex -v 0 -f 8 -o $FINAL_VIDEO-%d.MPG $SHRUNK_VIDEO $AUDIO || error_exit
#mplex -v 0 -f 8 -r 9400 -o $FINAL_VIDEO-%d.MPG $SHRUNK_VIDEO $AUDIO || error_exit
#mplex -v 0 -f 8 -V -o $FINAL_VIDEO-%d.MPG $SHRUNK_VIDEO $AUDIO || error_exit
mplex -f 8 -o $FINAL_VIDEO-%d.MPG $SHRUNK_VIDEO $AUDIO || error_exit

# create a dvd structure in a folder named NEWDVD
(N=1; while true; do cat $FINAL_VIDEO-$N.MPG 2>/dev/null || break; N=$((N+1)); done) | dvdauthor -o NEWDVD - || error_exit

# Create DVD information (IFO) files:
dvdauthor -o NEWDVD -T || error_exit

if [ $DRIVEIN = $DRIVEOUT ]; then
    echo "HIT ENTER WHEN THE BLANK DISC IS READY IN THE DRIVE"
    read READY
fi

# make sure the drive closed
eject -vt $DRIVEOUT

#cdrdao write --device $DRIVEOUT --driver generic-mmc -v 2 --eject NEWDVD || error_exit
growisofs -Z $DRIVEOUT -dvd-video ./NEWDVD || error_exit
Back to top
View user's profile Send private message
Gotterdammerung
l33t
l33t


Joined: 11 Feb 2004
Posts: 627
Location: Rio de Janeiro, Brazil

PostPosted: Thu Nov 16, 2006 1:55 pm    Post subject: Reply with quote

DVDStyler does some of these steps for the user.
_________________
A mind that is stretched by a new experience can never go back to its old dimensions. - Oliver Wendell Holmes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum