Re: Video von vob nach flv umwandeln

David Haller <[email protected]>
Newsgroups gmane.linux.suse.multimedia.german
Message-ID <[email protected]>
Hallo,

Am Sam, 04 Jul 2009, Heinz W. Pahlke schrieb:
>ffmpeg -i Datei.vob -vcodec libx264 -b 1024k \
>-r 29.97 -acodec libmp3lame -ar 22050 -ab 96k -ac 2 -f flv Datei.flv
 ^^^^^^^^ Mit Absicht die NTSC Rate genommen?

>Ein testweise Einbau auf einer Webseite und Test auf meinem PC
>bringt allerdings mit dem flv-player ein derartig ruckelndes Bild,
>dass man es niemandem zumuten kann. Und hier werden die Daten vom
>eigenen PC abgegriffen. Wenn dann noch der Download aus dem Internet
>hinzu kommt, kann man es ganz vergessen.
>
>Die Ursache ist mir allerdings völlig unklar. Dass die Datei immer
>noch 22 MB groß ist, dürfte auf dem eigenen PC eigentlich keine
>Rolle spielen.

1024kbps sind für H.264 auch schon sehr hoch. Ich hab mal ne
schwierige Stelle einer DVD Films (PAL, 720x576 anamorph) per
'mencoder -ovc x264 ...' rekodiert, mit nem Quantizer von 18.
Zum Quantizer schreibt man mencoder:

====
   x264enc (-x264encopts)
[..]
       qp=<0-51>
              This selects the quantizer to use for P-frames.  I-
              and  B-frames are offset from this value by ip_fac­
              tor and pb_factor, respectively.  20-40 is a useful
              range (default: 26).  Lower values result in better
              fidelity, but  higher  bitrates.
====

Resultierende Bitrate: 719 kpbs.

Direkt in ein flv bekommst du das so:

  mencoder -of lavf -lavfopts format=flv \
    -af resample=22050:0:2 \
    -oac mp3lame -lameopts cbr:br=96:mode=2 \
    -ovc x264 -x264encopts qp=26:trellis=1:pass=1:turbo=1 \
    -o ausgabe.flv eingabe.vob

  mencoder -of lavf -lavfopts format=flv \
    -af resample=22050:0:2 \
    -oac mp3lame -lameopts cbr:br=96:mode=2 \
    -ovc x264 -x264encopts qp=26:trellis=1:pass=2 \
    -o ausgabe.flv eingabe.vob

wobei ich eher average-bitrate beim audio empfehlen würde.
    -lameopts abr:br=96:mode=2

Am 'qp=' bei den x264encopts kannst du ja selber drehen ;)

Statt dem vob kannst du auch direkt Bilder verfüttern. via
    -mf fps=25 mf://*.jpg -audiofile AUDIODATEI
zum Beispiel ...

Achso, ich weiß nicht wie gut die Ausgabe nach flv funktioniert,
ggfs. erstmal in ein .avi schreiben lassen, d.h. '-of lavf -lavfopts
format=flv' einfach weglassen und dann per ffmpeg nur umpacken (ffmpeg
-i foo.avi -vcodec copy -acodec copy -f flv foo.flv).

HTH,
-dnh

-- 
 Disclaimer: I do not have an orbital mind control laser; you are free to post
 your own opinion, but be prepared to back it up, because I *will* call you on
 it if I think it's bullshit.  That's how the Internet, and life, works.
                                                    -- Mark 'Kamikaze' Hughes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.