Portál AbcLinuxu, 8. května 2025 20:37
Zkusil jsem video soubory vytvořené mým "proslaveným (zde) programem VIDEO > MPEG-4. Dopadlo to neslavně. Že jsou mp4 z Mencoderu nekorektní jsem tušil. Ale problém je i s videokodekem H264 a zvukem AAC vytvořeným Mencoderem. Vlastně jediným korektním souborem je AVI/XVID/MP3 (viz výpisy).
mircy@linux:~/Documents> mkvmerge mp4-x* -o o.mkv mkvmerge v1.6.5 ('Watcher Of The Skies') built on May 3 2006 02:21:36 'mp4-xvid-mp3.mp4': Using the Quicktime/MP4 demultiplexer. Warning: Quicktime/MP4 reader: MPEG4 track 1 is missing the esds atom/the decoder config. Skipping this track. Warning: Quicktime/MP4 reader: Unknown/unsupported FourCC '.mp3' for track 2. Warning: 'mp4-xvid-mp3.mp4': No tracks will be copied from this file. This usually indicates a mistake in the command line. Error: No streams to output were found. Aborting. mircy@linux:~/Documents
mircy@linux:~/Documents> mkvmerge mp4-h* -o o.mkv mkvmerge v1.6.5 ('Watcher Of The Skies') built on May 3 2006 02:21:36 'mp4-h264-aac.mp4': Using the Quicktime/MP4 demultiplexer. Warning: Quicktime/MP4 reader: MPEG4 part 10/AVC track 1 is missing its decoder config. Skipping this track. Warning: Quicktime/MP4 reader: The AAC track 2 is missing the esds atom/the decoder config. Skipping this track. Warning: 'mp4-h264-aac.mp4': No tracks will be copied from this file. This usually indicates a mistake in the command line. Error: No streams to output were found. Aborting. mircy@linux:~/Documents
mircy@linux:~/Documents> mkvmerge avi-h* -o o.mkv mkvmerge v1.6.5 ('Watcher Of The Skies') built on May 3 2006 02:21:36 'avi-h264-aac.avi': Using the AVI demultiplexer. Opening file. This may take some time depending on the file's size. Error: 'avi-h264-aac.avi' track 0: You are trying to put AVC/h.264 video from an AVI or a similar VfW (Video for Windows) compatible source into a Matroska file in the so-called 'VfW compatibility mode'. Please note that this is not the official way to store AVC/h.264 video in Matroska. Therefore proper playback of such files cannot be guaranteed, and we strongly urge you to use the native Matroska-mode. At the moment mkvmerge does not support converting from VfW-mode AVC/h.264 tracks to native Matroska-mode AVC/h.264 tracks. You can, however, first import the video track into a MP4 file with e.g. 'MP4Box' (use Google). Then you can use mkvmerge and put the video into a Matroska file. If you're trying to get AVC/h.264 from an AVI into Matroska then the commands you need to use are: avi2raw avc.avi raw.264 mp4box -fps 23.976 -add raw.264 avc.mp4 If you really know what you are doing then you can force mkvmerge to put this AVC/h.264 track into a Matroska file even in VfW mode if you add '--engage allow_avc_in_vfw_mode' to the command line. You can do that in mmg with the 'Add command line options' menu entry in the 'Muxing' menu. mircy@linux:~/Documents
mircy@linux:~/Documents> mkvmerge avi-x*aac* -o o.mkv mkvmerge v1.6.5 ('Watcher Of The Skies') built on May 3 2006 02:21:36 'avi-xvid-aac.avi': Using the AVI demultiplexer. Opening file. This may take some time depending on the file's size. 'avi-xvid-aac.avi' track 0: Using the MPEG-4 part 2 video output module. Error: 'avi-xvid-aac.avi' track 1: Unknown/unsupported audio format 0x706d for this audio track. mircy@linux:~/Documents
mircy@linux:~/Documents> mkvmerge avi-x*mp3* -o o.mkv mkvmerge v1.6.5 ('Watcher Of The Skies') built on May 3 2006 02:21:36 'avi-xvid-mp3.avi': Using the AVI demultiplexer. Opening file. This may take some time depending on the file's size. 'avi-xvid-mp3.avi' track 0: Using the MPEG-4 part 2 video output module. 'avi-xvid-mp3.avi' track 1: Using the MPEG audio output module. The file 'o.mkv' has been opened for writing. progress: 100% The cue entries (the index) are being written... Muxing took 1 second. mircy@linux:~/Documents
Otázka 1. Je možno vytvořit AVI s H264 a ACC zvukem, a ten pak přemuxovat do MKV?
Otázka 2. Zvuk vytvořený Mencoderem pomocí Faac je co? Podle Mkvmerge je to Unknown.
Otázka 3. Jak vyrobit korektní MKV s H264/AAC v Linuxu - jde to - jak to děláte - Váš příkaz. Mp4 vytvořené Windows programy se v Mkvmerge převádí korektně.
Otázka 4. Děláte MPEG-4 s H264 - zkušenosti, postup.
Nevím, zda jsou ty problémy ve mně, nebo v Mencoderu. Nechtěl by mi někdo pomoci jako spoluautor?
Rozdíl mezi MP4 a MPEG-4 fakt vím... Je mi jedno, jestli MP4 či MKV, potřebuji kontejner co zvládne video vytvořené H264.
mkvmerge v1.6.5 ('Watcher Of The Skies') built on May 3 2006 02:21:36 'avi-h264-mp3.avi': Using the AVI demultiplexer. Opening file. This may take some time depending on the file's size. Error: 'avi-h264-mp3.avi' track 0: You are trying to put AVC/h.264 video from an AVI or a similar VfW (Video for Windows) compatible source into a Matroska file in the so-called 'VfW compatibility mode'. Please note that this is not the official way to store AVC/h.264 video in Matroska. Therefore proper playback of such files cannot be guaranteed, and we strongly urge you to use the native Matroska-mode. At the moment mkvmerge does not support converting from VfW-mode AVC/h.264 tracks to native Matroska-mode AVC/h.264 tracks. You can, however, first import the video track into a MP4 file with e.g. 'MP4Box' (use Google). Then you can use mkvmerge and put the video into a Matroska file. If you're trying to get AVC/h.264 from an AVI into Matroska then the commands you need to use are: avi2raw avc.avi raw.264 mp4box -fps 23.976 -add raw.264 avc.mp4 If you really know what you are doing then you can force mkvmerge to put this AVC/h.264 track into a Matroska file even in VfW mode if you add '--engage allow_avc_in_vfw_mode' to the command line. You can do that in mmg with the 'Add command line options' menu entry in the 'Muxing' menu. mircy@linux:~/DocumentsH286 (mencoder -oac x264) to taky nebere. OGG už vyměnit s původním zvukem umím, teď ještě ten video kodek h264.
Matrosku to dělat bude, ale s osvědčeným XVID a OGG zvukem, Děkuji za pozornost.
mencoder vstup -ovc x264 -of rawvideo -o vystup.264
+ dalsi parametrymplayer -vo null -ao pcm:file=vystup.wav vstup
faac vystup.wav -o vystup.aac
+ dalsi parametrymp4creator -create=vystup.264 vystup.mp4
mp4creator -interleave -create=vystup.aac vystup.mp4
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.