MKVs im Batch in M4V umwandeln - wie geht das?

Dedi

Dedi

Aktives Mitglied
Thread Starter
Dabei seit
28.09.2008
Beiträge
699
Reaktionspunkte
26
Hi,

ich würde gerne MKVs im Batch in M4Vs umwandeln. Mit Handbrake geht das, allerdings müssen da alle Dateien einzeln hinzugefügt werden. Geht das auch einfacher oder mit einer anderen Software?

Danke für Eure Antworten!
 
ich würde dir ffmpeg empfehlen.

kann sehr einfach über MacPorts installiert werden. dann brauchst du nur noch die man lesen, oder google benutzen.

hier aber dennoch ein link für den leichten einstieg http://bit.ly/tOK5v
 
Hi,

ich würde gerne MKVs im Batch in M4Vs umwandeln. Mit Handbrake geht das, allerdings müssen da alle Dateien einzeln hinzugefügt werden. Geht das auch einfacher oder mit einer anderen Software?

Danke für Eure Antworten!

Jenes erwähnte Programm hat eine Kommandozeilenversion. Wie man das im Batch nutzen kann, um z.B. die "Spassfilmsammlung" zu konvertieren, gibt es Anleitungen in deren Forum zu Hauf! Google?
 
Super, vielen Dank für die Antworten! Dann werde ich mich mal einlesen und ausprobieren :)
 
das kodiert die aber wohl neu, was total unnötig ist. man muss ja nur den container ändern...
 
mkv to m4v würde helfen...
 
Hallo oneOeight,

ich finde da leider nichts. Nur Tools, die langwierig neu rendern (mkvtools, handbrake). Ich hatte Dich so verstanden, dass das "quasi on the fly" geht. Wenn ich Dich da richtig verstanden habe, würde ich mich über weitere Hilfe sehr freuen.
 
ja, es sollte zumindest gehen ohne die video spur neu zu kodieren.
am leichtesten wird es wohl mit ffmpeg gehen.
so in der art:
ffmpeg -i input.mkv -vcodec copy -acodec copy output.m4v
 
Zuletzt bearbeitet:
Hallo oneOeight,

mein Versuch ffmpeg mit Macport zu installieren ist leider fehlgeschlagen. Hier der Terminal Output. Kannst Du helfen? (Xcode neueste Version, ebenfalls ffmeg)

i$ sudo port install ffmpeg
Password:
---> Computing dependencies for ffmpeg
---> Dependencies to be installed: XviD bzip2 dirac cppunit faac autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake libtool faad2 gmake lame libogg libsdl xorg-libXext pkgconfig xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXrandr xorg-randrproto xrender xorg-renderproto libtheora libvorbis libvpx yasm schroedinger orc speex texi2html x264 zlib
---> Fetching XviD
---> Attempting to fetch xvidcore-1.2.2.tar.bz2 from http://downloads.xvid.org/downloads/
---> Verifying checksum(s) for XviD
---> Extracting XviD
---> Applying patches to XviD
---> Configuring XviD
---> Building XviD
---> Staging XviD into destroot
---> Installing XviD @1.2.2_0
---> Activating XviD @1.2.2_0
---> Cleaning XviD
---> Fetching bzip2
---> Attempting to fetch bzip2-1.0.5.tar.gz from http://lil.fr.distfiles.macports.org/bzip2
---> Verifying checksum(s) for bzip2
---> Extracting bzip2
---> Applying patches to bzip2
---> Configuring bzip2
---> Building bzip2
---> Staging bzip2 into destroot
---> Installing bzip2 @1.0.5_3
---> Activating bzip2 @1.0.5_3
Error: Target org.macports.activate returned: Image error: /opt/local/lib/libbz2.1.0.dylib already exists and does not belong to a registered port. Unable to activate port bzip2. Use 'port -f activate bzip2' to force the activation.
Log for bzip2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/main.log
Error: The following dependencies failed to build: bzip2 dirac cppunit faac autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake libtool faad2 gmake lame libogg libsdl xorg-libXext pkgconfig xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXrandr xorg-randrproto xrender xorg-renderproto libtheora libvorbis libvpx yasm schroedinger orc speex texi2html x264 zlib
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

$ port -f activate bzip2
Warning: Failed to open Portfile from registry for bzip2 @1.0.5_3
---> Activating bzip2
Error: port activate failed: sqlite error: attempt to write a readonly database (8)
 
da muss noch ein sudo vor:
sudo port -f activate bzip2
 
Vielen Dank für den SUDO Tip! Da hätte ich auch selber drauf kommen können...

Jetzt ist ffmpeg installiert. Nun taucht das nächste Problem auf:


$ ffmpeg -i test.mkv -vcodec copy -acodec copy test.m4v
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
built on Sep 7 2010 12:40:01 with gcc 4.2.1 (Apple Inc. build 5664)
configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --enable-nonfree --mandir=/opt/local/share/man --enable-shared --enable-pthreads --disable-indevs --cc=/usr/bin/gcc-4.2 --arch=x86_64
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 1.11. 0 / 1.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[matroska @ 0x12180c800]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 24.00 (24/1)
Input #0, matroska, from 'test.mkv':
Metadata:
doctype : matroska
Duration: 02:23:11.93, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Video: h264, yuv420p, 1280x528, PAR 1:1 DAR 80:33, 23.98 fps, 24 tbr, 1k tbn, 47.95 tbc
Stream #0.1(ger): Audio: dca, 48000 Hz, 6 channels, s16
File 'test.m4v' already exists. Overwrite ? [y/N] y
[ipod @ 0x121814a00]track 1: could not find tag, codec not currently supported in container
Output #0, ipod, to 'test.m4v':
Metadata:
encoder : Lavf52.64.2
Stream #0.0(eng): Video: libx264, yuv420p, 1280x528 [PAR 1:1 DAR 80:33], q=2-31, 1k tbn, 1k tbc
Stream #0.1(ger): Audio: 0x0000, 48000 Hz, 6 channels
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Could not write header for output file #0 (incorrect codec parameters ?)
$
 
der beschwert sich wohl wegen dem ac3 audio.
musst du wohl mal nach aac wandeln oder so.
ffmpeg -i test.mkv -vcodec copy -acodec libfaac -ac 6 -ar 48000 -ab 448k test.m4v
 
der beschwert sich wohl wegen dem ac3 audio.
musst du wohl mal nach aac wandeln oder so.
ffmpeg -i test.mkv -vcodec copy -acodec libfaac -ac 6 -ar 48000 -ab 448k test.m4v

AC3 sollte im Mp4 Container aber auch gehen. In der Handbremse wird das Durchschleifen ja auch angeboten. Und man kann dann z.B. in iTunes zwischen dem Stereo Ton bzw. der Spur (AAC) und AC3 hin und her schalten.
 
Wie wäre es mit Handbrake? http://handbrake.fr/ nutze es um Filme aufs iPhone zu bringen und es funktioniert genial.
 
das kodiert das video neu und das kann dauern...
 
das kodiert das video neu und das kann dauern...

Und geht zudem völlig unnötig auf Kosten der Qualität.

Mit MKVtoolnix (und evtl. den zugehörigen GUIs) ist das Umpacken von mp4 (m4v) nach MKV eine Sache von wenigen Sekunden.
Ein Tool für den umgekehrten Weg, das so unkompliziert wie MKVtoolnix funktioniert, ist mir nicht bekannt.

Am besten wäre es, wenn Apple (und auch andere Hersteller) neben MP4 auch MKV unterstützen würden.
 
Jetzt hat es geklappt. Neu codiert hat das Tool aber dennoch :-( Also kein Zeitvorteil (ich habe es allerdings nicht genau gemessen) gegenüber Handbrake.
 
Zurück
Oben Unten