Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ot] dvd video fatto con growisofs
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
khris81
Apprentice
Apprentice


Joined: 10 May 2005
Posts: 245

PostPosted: Fri Jul 01, 2005 11:19 pm    Post subject: [ot] dvd video fatto con growisofs Reply with quote

sul pc va benissimo bello fluido, sul dvd da tavolo sembra rallentato!!! cosa può essere?

è un dvd+rw, supportato dal mio lettore dvd, l'ho fatto a 4x può essere quello il prob? nn credo, se è quello butto via il mast xchè nn è possibile metterci tutta la durata del film x fare un dvd! :wink:
Back to top
View user's profile Send private message
khris81
Apprentice
Apprentice


Joined: 10 May 2005
Posts: 245

PostPosted: Fri Jul 01, 2005 11:31 pm    Post subject: Reply with quote

nn si sente nemmeno l'audio!!!!

ho notato che la cartella audio_ts è vuota nn so se sia normale, cmq guardandolo dal pc va perfettamente compreso l'audio e il video bello fluido! da windows vengono perfetti quindi è un prob che ho con linux! nessuno ha mai avuto queto prob?
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Sat Jul 02, 2005 12:10 am    Post subject: Reply with quote

per quanto riguarda il fatto che la cartella audio_ts sia vuota è normale. per ciò che riguarda audio e video potrebbe essere un problema di codec. x l'audio soprattutto. per dire che con win lo fa giusto e con linux no dovresti provare con lo stesso codec. l'hai fatto?
in ogni caso le info che hai dato sono insufficienti per fornire un esito, dovresti postare qualcosa in più.
Back to top
View user's profile Send private message
khris81
Apprentice
Apprentice


Joined: 10 May 2005
Posts: 245

PostPosted: Sat Jul 02, 2005 12:13 am    Post subject: Reply with quote

ok quali informazioni in più voi devo fornire???

lo faccio in mpeg2 il video e l'audio in ac3 stesse impostazioni x quanto riguarda codec e qualità con i prog win e funzionano benissimo con quelli!
Back to top
View user's profile Send private message
Danilo
l33t
l33t


Joined: 05 Feb 2004
Posts: 747
Location: Italy

PostPosted: Sat Jul 02, 2005 7:25 am    Post subject: Reply with quote

Da cosa hai creato il video, sei sicuro che i parametri di trasformazione siano corretti?
Se parti da un avi vi sono vari script sulla rete per automatizzare il tutto.
Per transcode c'e' avi2vob (da modificare in quanto outputta in NTSC).

La sola dei lettori da tavolo e' che vogliono solo "lo standard" mentre mplayer & xine si adeguano a fuori standard...

---- EDIT ----
Dato che il lettore da tavolo riesce ad entrare nei video escluderei un problema di dvdauthor...
Dovresti pero' dirci con cosa e con quali parametri hai ottenuto l'mpeg
Back to top
View user's profile Send private message
RexRocker
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 227
Location: Conegliano, Treviso

PostPosted: Sat Jul 02, 2005 8:29 am    Post subject: Reply with quote

io ho un problema simile nel senso che in certi fotogrammi mi scatta da panico sia audio che video e non ne capisco il motivo :(

Ma avi2vob è uno script che fa in automatico la conversione? PErchè io di solito uso transcode + mplex per unire i flussi e creare l0mpgh e poi passo tutto a dvdauthor.
_________________
Gentoo on AMD64
.::Gentoo Rulez::.

registered Linux user number 390877
Back to top
View user's profile Send private message
Danilo
l33t
l33t


Joined: 05 Feb 2004
Posts: 747
Location: Italy

PostPosted: Sat Jul 02, 2005 8:36 am    Post subject: Reply with quote

RexRocker wrote:
io ho un problema simile nel senso che in certi fotogrammi mi scatta da panico sia audio che video e non ne capisco il motivo :(

Ma avi2vob è uno script che fa in automatico la conversione? PErchè io di solito uso transcode + mplex per unire i flussi e creare l0mpgh e poi passo tutto a dvdauthor.


Si gli dai uno o piu' files avi e lui ti genera gli mpeg.
Avi2vob e' uno script che trovi proprio nel sito (wiki mi sembra) di transcode e usa proprio transcode + mplex e qualcos'altro.

Il problema e' che e' fatto per ntsc, sto verificando se da buoni risultati con le mie modifiche per PAL.

Solo che oggi ho stoppato le prove per l'emerge di kde ;-)

-- EDIT --

Anche io sono ai primi passi su questo campo: non e' che in quelle zone al lettore da tavolo arriva un flusso dati troppo grande? Mi sembra il dvd-standard accetti fino a 10 MB...
Inoltre c'e' anche encode2mpeg e sto testando entrambi...
Back to top
View user's profile Send private message
RexRocker
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 227
Location: Conegliano, Treviso

PostPosted: Sat Jul 02, 2005 9:06 am    Post subject: Reply with quote

ok trovato lo script e fatta la conversione per pal (basta modificare 2 righe) lo sto testando ora, vediamo come viene

il mio script è questo:
Code:

 #!/bin/sh

 # ***************************************************************
 # This is a batch processing script for normalizing and converting
 # a mixed collection of .avi files into .mpg files that can be fed
 # to dvdauthor to create dvd's that will play perfectly on nearly
 # all NTSC dvd players and analog/digital televisions.
 #
 # A special feature of this script is the overscan compensation
 # based on laborious trial and error. Because I went to this
 # trouble your subtitles and/or supertitles will be visible
 # on even the most badly overcompensated television screen, but
 # you will not see deformed edges on a television that has 'normal'
 # overscan.
 #
 # The list of input files should be edited below, replacing
 # file_01.avi, file_02 etc. with your batch of filenames.
 # No other editing is required.
 #
 # NOTE: This script takes it's input filenames from the
 #       command line if provided, otherwise it will use
 #       the list declared below on the 'files=' line.
 #
 # This script requires transcode, mplayer, sox, and toolame.
 #
 # Performance on my 2.8 GHz system is 30-40 fps conversion.
 #
 # copyright 2004 Phil Ehrens <phil@slug.org>
 # Valuable contributions by Adam Di Carlo <adam@onshored.com>
 # ***************************************************************
 # declare the list of root filenames to operate on. this is
 # the only line of this file that is edited for use. list the
 # names of all the files you want to process.
 # The source files will NOT be deleted.
 #
 # YOU MAY EDIT THE FOLLOWING LINE TO BE THE LIST OF INPUT
 # FILES IF YOU DO NOT WISH TO PROVIDE THEM ON THE COMMAND
 # LINE.
 #
 # For example:
 #
 #   files="file_01.avi file_02.avi file_03.avi file_04.avi"
 #
 
 files=""
 
 #
 # YOU DO NOT NEED TO EDIT ANYTHING BELOW HERE!!
 #

 # this block writes out the ffmpeg.cfg file with some
 # possibly useful values. Note that the lines in this
 # block must begin in text column zero or the script
 # will exit at this point!

 
cat > ffmpeg.cfg <<_EOF


[mpeg2video]
vhq = 1
vqcomp = 0.7
vqblur = 0.3
_EOF

 # Script will take input file(s) on the command line, or, if
 # no arguments are passed, will use the 'files' list declared
 # above.

 [ ! -z "$1" ] && files="$@";

 for arg in $files ;

 do

 # strip the .avi, .mkv, .mov, or .ogm file extension

 file=`echo $arg | sed -e 's/\.[amo][vkgo][ivm]$//'`
 ext=`echo $arg | sed -e 's/^.*\.//'`

 # test for file existence

 if [ ! -f "$file.$ext" ];

 then

 echo "file '$file.$ext' doesn't exist" >&2
 exit 1

 fi

 # use mencoder to force frame rate to 29.970 all the way through.
 # this is because an avi may be a concatenated series of subfiles
 # each with a different frame rate, or even a single avi file
 # may have a varying frame rate in the worst case.
 #
 # the expectation that this will work with all sorts of non
 # avi input containers is naive at best. offering support
 # for container formats that support essentially arbitrary
 # stream content type is probably a mistake!

 mencoder -oac copy \
          -ovc copy \
          -ofps 29.970 \
          -o output.avi \
          "$file.$ext" > /dev/null 2>&1

 # input files of type .ogm and .mkv can have multiple audio tracks
 # and multiple (soft) subtitle tracks. to produce an output .avi
 # with a hard subtitle, it is at least necessary to re-encode while
 # specifying a subtitle track with the -sid option, i.e.:
 #
 # mencoder -oac copy \
 #          -ovc lavc \
 #          -lavcopts vcodec=mpeg4:vhq:v4mv:trell:vbitrate=3000 \
 #          -aid 0 \
 #          -sid 0 \
 #          -o $file.avi "$file.$ext" >& /dev/null
 #
 # note that, for didactic purposes, I have included the -aid option
 # which is used for the audio stream selection.
 # using this code will require changing the -i option of the
 # transcode invocation below from output.avi to $file.avi

 # At this point you can extract and make use of an ac3 audio
 # track by doing this and skipping all the other audio processing
 # steps:
 #        tcextract -i $file.avi -x ac3 > $file.ac3
 #
 # Remember to mplex the ac3 file!

 # dump the audio to a .wav file using mplayer

 mplayer -ao pcm \
         -vo null \
         -vc dummy \
         output.avi > /dev/null 2>&1

 # if the sound turns out to be 8 bit, then sox needs
 # extra options to handle it correctly.
 # thanks to Kenneth Stailey for this patch!

 file audiodump.wav | grep -qs 'PCM, 8 bit'
 if [ $? = 0 ]; then
    B=-b
    W=-w
 else
    B=
    W=
 fi

 # if the incoming sound is at 44100
 # upsample the sound to 48000.
 # here we rely on the fact that sox will abort if the input
 # frequency is 48000.
 # there will be a stub 44 byte long output.wav if sox aborts.

 if sox $B audiodump.wav -r 48000 $W output.wav resample ; then
    WAVFILE=output.wav
 else

 # otherwise sound was already 48000

    WAVFILE=audiodump.wav
 fi

  # and make it into toolame mp2 format, nice!

  nice -n 20 toolame -p 2 -b 384 $WAVFILE output.mp2 > /dev/null 2>&1
  rm -f output.wav audiodump.wav

 # note the use of '-x mplayer,null' to remove export problems
 # imposed by bugs in ffmpeg that sometimes cause segfaults.
 #
 # the -j option here is intended to account for a phenomenon
 # of the NTSC standard and analog TV sets called 'overscan'.
 # the black borders created by this option will NOT be visible
 # on your TV screen unless the source .avi has already got
 # overscan compensation, which is HIGHLY unlikely.
 #
 # There is an additional interesting side effect of -j that can
 # be exploited. Using values that are no mod(8) seems to improve
 # the output quality quite a bit. Try using -j -18,-34,-22,-34.
 # Using non mod(8) values will slow down transcoding by about
 # 20%.
 #
 # note also that we add -e 48000,16,2 in the transcode invocation
 # forcing the sync adjustment to -1600@1000
 #
 # When encoding animated material, adding the option
 # -J hqdn3d will produce significant improvements in image
 # quality and an impressive decrease in file size!
 #
 # If your source has a 'washed out' appearance, you can
 # brighten it up with a gamma adjustment using the -G
 # option. A value of 0.9 or 0.8 will make quite a large
 # difference (in this case, 0.8 is a stronger correction
 # than 0.9).
 #
 # To create a 2-pass invocation (for significant quality
 # improvement with live-action material) simply make two
 # identical calls to transcode, but with the options
 # '-R 1,2pass.log' and '-R 2,2pass.log' in the respective
 # invocations.

 transcode --nice 20 \
           --print_status 500 \
           -x mplayer,null \
           -y ffmpeg,null \
           -F mpeg2video \
           -e 48000,16,2 \
           --export_asr 3 \
           --export_fps 25.000 \
           --export_prof dvd-pal \
           -Z 720x480,fast \
           -j -16,-32,-16,-32 \
           -o output \
           -i output.avi

 rm -f output.avi

 # mplex supports constant sync offset correction.
 # '-O -300ms' would, for example, start audio 300 ms
 # earlier than otherwise.

 mplex -f 8 -o "$file.mpg" output.m2v output.mp2

 rm -f output.m2v output.mp2 ;

 # now you have .mpg files, all ready for dvdauthor.
 # like so:
 #          dvdauthor -t -o mydvd -c 0,11:30 file_01.mpg -c 0,11:30 file_02.mpg -c 0,11:30 file_03.mpg
 #          (and possibly -v ntsc+4:3+720xfull if you get errors
 #          and want to be certain that nothing funny happens.)
 #          dvdauthor -T -o mydvd
 #          mkisofs -dvd-video -o mydvd.dvd.iso mydvd
 #          dvdrecord -v -sao dev=0,0,0 driveropts=burnfree mydvd.dvd.iso

 done

 # end of script


_________________
Gentoo on AMD64
.::Gentoo Rulez::.

registered Linux user number 390877
Back to top
View user's profile Send private message
Danilo
l33t
l33t


Joined: 05 Feb 2004
Posts: 747
Location: Italy

PostPosted: Sat Jul 02, 2005 10:40 am    Post subject: Reply with quote

RexRocker wrote:
ok trovato lo script e fatta la conversione per pal (basta modificare 2 righe) lo sto testando ora, vediamo come viene

il mio script è questo:


Si ma io sto usando il dual pass.
Ho un problema fastidioso: sui miei mpeg importati da dixv le immagini in movimento lasciano una scia, se vado a vedere il singolo fotogramma mi risulta come una "fusione" tra due fotogrammi.

A proposito sai se ci si potrebbe passare qualche parametro in piu' senza farmi fare troppe prove?
Back to top
View user's profile Send private message
RexRocker
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 227
Location: Conegliano, Treviso

PostPosted: Sat Jul 02, 2005 10:44 am    Post subject: Reply with quote

guarda per quel parametro in più non saprei, so solamente che sia che vada da shell senza X che con KDE avviato vado a 2.5 fps con un athlon xp 2.4 O_O

non capisco perchè va cosi lento... devo vedere quali sono le opzioni che lo fanno rallentare cosi :(
_________________
Gentoo on AMD64
.::Gentoo Rulez::.

registered Linux user number 390877
Back to top
View user's profile Send private message
Danilo
l33t
l33t


Joined: 05 Feb 2004
Posts: 747
Location: Italy

PostPosted: Sat Jul 02, 2005 11:45 am    Post subject: Reply with quote

RexRocker wrote:
guarda per quel parametro in più non saprei, so solamente che sia che vada da shell senza X che con KDE avviato vado a 2.5 fps con un athlon xp 2.4 O_O

non capisco perchè va cosi lento... devo vedere quali sono le opzioni che lo fanno rallentare cosi :(

Io vado con un athlon700 immagina il tempo ;-)

Il tempo non e' un problema per me, tanto il mio computer e' acceso h24. Gli dai in pasto una lista di files e lo fai frullare...


Code:
man transcode
(...)
  --nice N
              set niceness to N [off]
              The  option  --nice  which renices transcode to the given positive or negative value.
              -10 sets a high priority; +10 a low priority.  This might be useful for cluster mode.

Questo gli da una mano x la lentezza, ma non so se con un monoprocessore impatti sulla qualita'.
Prova a portarlo a --nice 10 e vedi gli fps generati
Back to top
View user's profile Send private message
RexRocker
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 227
Location: Conegliano, Treviso

PostPosted: Sat Jul 02, 2005 12:05 pm    Post subject: Reply with quote

ho levato il nice e va a 11-12 fps cosi un po' migliora la cosa.

cmq è sempre più lento rispetto a prima, magari però fa un lavoro più accurato e riesce a risolvere i miei problemi
_________________
Gentoo on AMD64
.::Gentoo Rulez::.

registered Linux user number 390877
Back to top
View user's profile Send private message
khris81
Apprentice
Apprentice


Joined: 10 May 2005
Posts: 245

PostPosted: Sun Jul 03, 2005 10:11 pm    Post subject: Reply with quote

è impazzito il mio pc????

chris film # ./divx_to_dvd
bash: ./divx_to_dvd: /bin/bash: bad interpreter: Permission denied


anche da root stesso errore! ma che cavolo è?
Back to top
View user's profile Send private message
RexRocker
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 227
Location: Conegliano, Treviso

PostPosted: Mon Jul 04, 2005 7:30 am    Post subject: Reply with quote

posta lo script magari può aiutare :)

hai messo
Code:

#!/bin/bash

all'inizio?
_________________
Gentoo on AMD64
.::Gentoo Rulez::.

registered Linux user number 390877
Back to top
View user's profile Send private message
khris81
Apprentice
Apprentice


Joined: 10 May 2005
Posts: 245

PostPosted: Mon Jul 04, 2005 10:06 am    Post subject: Reply with quote

ovviamente si!

cmq l'unico modo x farlo andare è stato:

sh script,

peccato che a me lo script nn va correttamente, mi da errore quando apre il file audio creato dallo script stesso. :(
Back to top
View user's profile Send private message
Truzzone
Guru
Guru


Joined: 16 Oct 2003
Posts: 492
Location: Italy

PostPosted: Mon Jul 04, 2005 11:09 am    Post subject: Reply with quote

khris81 wrote:
è impazzito il mio pc????

chris film # ./divx_to_dvd
bash: ./divx_to_dvd: /bin/bash: bad interpreter: Permission denied


anche da root stesso errore! ma che cavolo è?


Code:
chmod +x divx_to_dvd


Ciao by Truzzone :?
Back to top
View user's profile Send private message
khris81
Apprentice
Apprentice


Joined: 10 May 2005
Posts: 245

PostPosted: Mon Jul 04, 2005 2:43 pm    Post subject: Reply with quote

truzzone niente da fare,

chris film # ./divx_to_dvd
bash: ./divx_to_dvd: Permission denied
Back to top
View user's profile Send private message
Danilo
l33t
l33t


Joined: 05 Feb 2004
Posts: 747
Location: Italy

PostPosted: Mon Jul 04, 2005 3:28 pm    Post subject: Reply with quote

RexRocker wrote:
posta lo script magari può aiutare :)

Se non vi sono problemi a postarlo...
Back to top
View user's profile Send private message
khris81
Apprentice
Apprentice


Joined: 10 May 2005
Posts: 245

PostPosted: Mon Jul 04, 2005 11:57 pm    Post subject: Reply with quote

ragazzi lo script è quello che ha postato rexrocker!!!

ma a me nn funziona, se faccio sh prima di lanciare lo script funziona, ma cmq è lo script in se che mi da problemi, oltre a quello dei permessi!
Back to top
View user's profile Send private message
RexRocker
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 227
Location: Conegliano, Treviso

PostPosted: Tue Jul 05, 2005 7:08 am    Post subject: Reply with quote

mmm strano perchè io uso quello script da bash e non mi da problem :)

sicuro di usare la bash? (so che magari è una cavolata ma a questo punto si provano tutte no? )
_________________
Gentoo on AMD64
.::Gentoo Rulez::.

registered Linux user number 390877
Back to top
View user's profile Send private message
khris81
Apprentice
Apprentice


Joined: 10 May 2005
Posts: 245

PostPosted: Tue Jul 05, 2005 9:52 am    Post subject: Reply with quote

addirittura adesso nn va manco più!!!

christian@chris /mnt/dati/video/film $ bash todvd
christian@chris /mnt/dati/video/film $
Back to top
View user's profile Send private message
wildancer
Guru
Guru


Joined: 02 Apr 2004
Posts: 472

PostPosted: Tue Jul 05, 2005 10:12 am    Post subject: Reply with quote

hai provato a vedere se è un problema di permessi?
Code:
# chmod ugo+x /path/dello/script
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
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