From wangchungtnight at aol.com Sat Nov 4 01:59:01 2006 From: wangchungtnight at aol.com (wangchungtnight at aol.com) Date: Fri, 03 Nov 2006 19:59:01 -0500 Subject: [Matroska-devel] question about the Matroska program Message-ID: <8C8CDC38D0CA764-B8-6B1@webmail-db10.sysops.aol.com> To: Chris, or whoever gets this e-mail; I have downloaded a file that is a Matroska file (MKV, MKA) and i don't know which program to download from your website to watch it. I have tried a few, but none of them seem to work for one reason or another. I'll list all the specs on the file that i've got and i'd appraite a respone on which program would be the best for me. Format: Matroska files (MKV, MKA) Filesize: 1270231 KB Video: AVC aka H.264 Video Size: 704 x 480 Frame Rate: 23.976 Language: und Audio: AC-3 Format: 48000 Hz 6 Ch then a bounch of title and language stuff that prolly isn't important. please let me no what i need to work this file -dave miller ps this e-mail does not mean that i want to be put on any mailing list. thanks ________________________________________________________________________ Check out the new AOL. Most comprehensive set of free safety and security tools, free access to millions of high-quality videos from across the web, free AOL Mail and more. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kakaduh at gmx.de Sat Nov 4 10:10:07 2006 From: kakaduh at gmx.de (Hagen Wierstorf) Date: Sat, 04 Nov 2006 10:10:07 +0100 Subject: [Matroska-devel] question about the Matroska program In-Reply-To: <8C8CDC38D0CA764-B8-6B1@webmail-db10.sysops.aol.com> References: <8C8CDC38D0CA764-B8-6B1@webmail-db10.sysops.aol.com> Message-ID: <1162631407.10920.9.camel@localhost.localdomain> Hallo! VLC-Player works for me for similarly files. http://www.videolan.org/vlc/ Hagen Am Freitag, den 03.11.2006, 19:59 -0500 schrieb wangchungtnight at aol.com: > To: Chris, or whoever gets this e-mail; > > I have downloaded a file that is a Matroska file (MKV, MKA) and i > don't know which program to download from your website to watch it. I > have tried a few, but none of them seem to work for one reason or > another. I'll list all the specs on the file that i've got and i'd > appraite a respone on which program would be the best for me. > > Format: Matroska files (MKV, MKA) > Filesize: 1270231 KB > Video: AVC aka H.264 > Video Size: 704 x 480 > Frame Rate: 23.976 > Language: und > Audio: AC-3 > Format: 48000 Hz 6 Ch > > then a bounch of title and language stuff that prolly isn't important. > please let me no what i need to work this file > > -dave miller > > ps this e-mail does not mean that i want to be put on any mailing > list. thanks > > ______________________________________________________________________ > Check out the new AOL. Most comprehensive set of free safety and > security tools, free access to millions of high-quality videos from > across the web, free AOL Mail and more. > > _______________________________________________ > Matroska-devel mailing list > Matroska-devel at lists.matroska.org > http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel > Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel From chris at matroska.org Sat Nov 4 11:42:36 2006 From: chris at matroska.org (Christian HJ Wiesner) Date: Sat, 04 Nov 2006 11:42:36 +0100 Subject: [Matroska-devel] question about the Matroska program In-Reply-To: <8C8CDC38D0CA764-B8-6B1@webmail-db10.sysops.aol.com> References: <8C8CDC38D0CA764-B8-6B1@webmail-db10.sysops.aol.com> Message-ID: <454C6E9C.4030305@matroska.org> Its impolite to spam 3 mailing lists, just because you are having a problem watching a standard MKV file. matroska-users is clearly where this email belongs, matroska-devel is for developer communication only, matroska-general is about general questions on the matroska project. Also, you cant expect people to copy your email adress when replying, if you turn to a mailing list for help, you have to subscribe first (and may unsubscribe if your problems are solved). Also, how should we feel inclined to help you with YOUR problem if you are not even taking the time to tell us what programs you have installed already, and what exactly the error messages are when playing the file with them ? Christian matroska project admin wangchungtnight at aol.com schrieb: > To: Chris, or whoever gets this e-mail; > > I have downloaded a file that is a Matroska file (MKV, MKA) and i > don't know which program to download from your website to watch it. I > have tried a few, but none of them seem to work for one reason or > another. I'll list all the specs o n the file that i've got and i'd > appraite a respone on which program would be the best for me. > > Format: Matroska files (MKV, MKA) > Filesize: 1270231 KB > Video: AVC aka H.264 > Video Size: 704 x 480 > Frame Rate: 23.976 > Language: und > Audio: AC-3 > Format: 48000 Hz 6 Ch > > then a bounch of title and language stuff that prolly isn't important. > please let me no what i need to work this file > > -dave miller > > ps this e-mail does not mean that i want to be put on any mailing > list. thanks From davidnduffy at yahoo.co.uk Mon Nov 6 17:42:26 2006 From: davidnduffy at yahoo.co.uk (David Duffy) Date: Mon, 6 Nov 2006 16:42:26 +0000 (GMT) Subject: [Matroska-devel] Stereoscopic playback In-Reply-To: <98513bea0610251705r4f12e497q1c4254381bfe1600@mail.gmail.com> Message-ID: <20061106164226.71763.qmail@web27202.mail.ukl.yahoo.com> Okay, I've got it working with side by side combined frames (I haven't tested seperate srteams yet) and it is working nicely on the 3D hardware. Now, to be a total newb, I need to ask for help rewinding. ;) Mike can you please give me the idiot's guide version of how to use your library correctly to rewind? Thank-you very much. :) Send instant messages to your online friends http://uk.messenger.yahoo.com From davidnduffy at yahoo.co.uk Mon Nov 6 22:07:38 2006 From: davidnduffy at yahoo.co.uk (David Duffy) Date: Mon, 6 Nov 2006 21:07:38 +0000 (GMT) Subject: [Matroska-devel] Stereoscopic playback Message-ID: <20061106210738.72272.qmail@web27213.mail.ukl.yahoo.com> I haven't found tool support for the 3D StereoMode flag (maybe I looked in the wrong places?). However, I was able to create a dual video stream stereoscopic test file by using mkvmerge to mux the left and right eye video streams into one file and then manually changing the PixelCropBottom field to be StereoMode instead with a hex editor. Now obviously this isn't a feasible solution for mass producing 3D content so... is there support for it already that I didn't see or are any of the tool developers planning to add support for this in the immediate future? If not, would a patch be accepted if I can figure out how to modify mkvmerge? Any help would be appreciated. Thank-you. ----- Original Message ---- From: David Duffy To: Discussion about the current and future development of Matroska Sent: Monday, 6 November, 2006 9:42:26 AM Subject: [Matroska-devel] Stereoscopic playback Okay, I've got it working with side by side combined frames (I haven't tested seperate srteams yet) and it is working nicely on the 3D hardware. Now, to be a total newb, I need to ask for help rewinding. ;) Mike can you please give me the idiot's guide version of how to use your library correctly to rewind? Thank-you very much. :) Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Matroska-devel mailing list Matroska-devel at lists.matroska.org http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel Send instant messages to your online friends http://uk.messenger.yahoo.com From mike at po.cs.msu.su Tue Nov 7 09:12:30 2006 From: mike at po.cs.msu.su (Mike Matsnev) Date: Tue, 7 Nov 2006 11:12:30 +0300 Subject: [Matroska-devel] Stereoscopic playback In-Reply-To: <20061106164226.71763.qmail@web27202.mail.ukl.yahoo.com> References: <98513bea0610251705r4f12e497q1c4254381bfe1600@mail.gmail.com> <20061106164226.71763.qmail@web27202.mail.ukl.yahoo.com> Message-ID: <20061107081230.GA60660@azog.po.cs.msu.su> On Mon, Nov 06, 2006 at 04:42:26PM +0000, David Duffy wrote: > Now, to be a total newb, I need to ask for help rewinding. ;) > Mike can you please give me the idiot's guide version of how to use > your library correctly to rewind? If you mean playing backwards, then it's not supported by the library, Matroska isn't really designed for that. This might be implemented, but it will be rather ineffective. From moritz at bunkus.org Tue Nov 7 19:05:27 2006 From: moritz at bunkus.org (Moritz Bunkus) Date: Tue, 7 Nov 2006 19:05:27 +0100 Subject: [Matroska-devel] Stereoscopic playback In-Reply-To: <20061106210738.72272.qmail@web27213.mail.ukl.yahoo.com> References: <20061106210738.72272.qmail@web27213.mail.ukl.yahoo.com> Message-ID: <200611071905.36199.moritz@bunkus.org> Hey, On Monday 06 November 2006 22:07, David Duffy wrote: > Now obviously this isn't a feasible solution for mass producing 3D > content so... is there support for it already that I didn't see or are > any of the tool developers planning to add support for this in the > immediate future? If not, would a patch be accepted if I can figure > out how to modify mkvmerge? Any help would be appreciated. I've implemented support for the stereo mode field yesterday. mmg is still missing, mostly because it's already pretty crowded, and I need to rearrange a couple of controls which takes time. If you want a Windows build of mkvmerge then just shout. Regards, Mosu -- If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution. - Linus Torvalds -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From davidnduffy at yahoo.co.uk Tue Nov 7 19:13:48 2006 From: davidnduffy at yahoo.co.uk (David Duffy) Date: Tue, 7 Nov 2006 18:13:48 +0000 (GMT) Subject: [Matroska-devel] Stereoscopic playback Message-ID: <20061107181348.78756.qmail@web27205.mail.ukl.yahoo.com> Yes please, a Windows build would be wonderful! :) Thank-you very much. :) ----- Original Message ---- From: Moritz Bunkus To: matroska-devel at lists.matroska.org Sent: Tuesday, 7 November, 2006 11:05:27 AM Subject: Re: [Matroska-devel] Stereoscopic playback Hey, On Monday 06 November 2006 22:07, David Duffy wrote: > Now obviously this isn't a feasible solution for mass producing 3D > content so... is there support for it already that I didn't see or are > any of the tool developers planning to add support for this in the > immediate future? If not, would a patch be accepted if I can figure > out how to modify mkvmerge? Any help would be appreciated. I've implemented support for the stereo mode field yesterday. mmg is still missing, mostly because it's already pretty crowded, and I need to rearrange a couple of controls which takes time. If you want a Windows build of mkvmerge then just shout. Regards, Mosu -- If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution. - Linus Torvalds _______________________________________________ Matroska-devel mailing list Matroska-devel at lists.matroska.org http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel Send instant messages to your online friends http://uk.messenger.yahoo.com From davidnduffy at yahoo.co.uk Tue Nov 7 19:26:57 2006 From: davidnduffy at yahoo.co.uk (David Duffy) Date: Tue, 7 Nov 2006 18:26:57 +0000 (GMT) Subject: [Matroska-devel] Stereoscopic playback Message-ID: <20061107182657.89988.qmail@web27215.mail.ukl.yahoo.com> I don't need to play backwards as such (at least not every frame), I just need the best/most efficient way to scan for keyframes in reverse order to provide a "fast rewind" to go along with fast forward. I'm just trying to do fast forward and rewind like on a DVD player or VCR. Fast forward works okay by just ignoring frames that are not key frames. If it isn't doable then I'll have to figure something else out I guess. Thank-you. :) P.S. I'm not overly worried about being efficient in this scenario. ----- Original Message ---- From: Mike Matsnev To: Discussion about the current and future development of Matroska Sent: Tuesday, 7 November, 2006 1:12:30 AM Subject: Re: [Matroska-devel] Stereoscopic playback On Mon, Nov 06, 2006 at 04:42:26PM +0000, David Duffy wrote: > Now, to be a total newb, I need to ask for help rewinding. ;) > Mike can you please give me the idiot's guide version of how to use > your library correctly to rewind? If you mean playing backwards, then it's not supported by the library, Matroska isn't really designed for that. This might be implemented, but it will be rather ineffective. _______________________________________________ Matroska-devel mailing list Matroska-devel at lists.matroska.org http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel Send instant messages to your online friends http://uk.messenger.yahoo.com From moritz at bunkus.org Tue Nov 7 19:50:51 2006 From: moritz at bunkus.org (Moritz Bunkus) Date: Tue, 7 Nov 2006 19:50:51 +0100 Subject: [Matroska-devel] Stereoscopic playback In-Reply-To: <20061107181348.78756.qmail@web27205.mail.ukl.yahoo.com> References: <20061107181348.78756.qmail@web27205.mail.ukl.yahoo.com> Message-ID: <200611071950.51663.moritz@bunkus.org> Hey, On Tuesday 07 November 2006 19:13, David Duffy wrote: > Yes please, a Windows build would be wonderful! :) Extract http://www.bunkus.org/videotools/mkvtoolnix/win32/pre/mkvtoolnix-unicode-1.7.0-build20061107-1.rar into your mkvtoolnix installation directory. The new command line option is "--stereo-mode trackid:number", e.g. "--stereo-mode 0:3 video.avi" or something like that. Read doc/mkvmerge.html for a bit more info. Mosu -- If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution. - Linus Torvalds -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From kurtnoise at free.fr Thu Nov 9 11:17:23 2006 From: kurtnoise at free.fr (Kurtnoise) Date: Thu, 09 Nov 2006 11:17:23 +0100 Subject: [Matroska-devel] mkvtoolnix doesn't support FLAC 1.1.3 ? Message-ID: Hi, I'm trying to compile the last svn mkvtoolnix entry but it seems that's failed due to some changes in the FLAC 1.1.3 (not released yet but I use the last beta)... src/input/flac_common.cpp: In function `int flac_decode_headers(unsigned char*, int, int, ...)': src/input/flac_common.cpp:223: error: `FLAC__stream_decoder_set_client_data' undeclared (first use this function) src/input/flac_common.cpp:223: error: (Each undeclared identifier is reported only once for each function it appears in.) src/input/flac_common.cpp:224: error: `FLAC__stream_decoder_set_read_callback' undeclared (first use this function) src/input/flac_common.cpp:226: error: `FLAC__stream_decoder_set_write_callback' undeclared (first use this function) src/input/flac_common.cpp:228: error: `FLAC__stream_decoder_set_metadata_callback' undeclared (first use this function) src/input/flac_common.cpp:230: error: `FLAC__stream_decoder_set_error_callback' undeclared (first use this function) src/input/flac_common.cpp:236: error: `FLAC__stream_decoder_init' undeclared (first use this function) make: *** [src/input/flac_common.o] Error 1 Did I miss something or mkvtoolnix doesn't support these changes yet ? Although all works fine with FLAC 1.1.2 but you know...;-) ++ Kurtnoise From moritz at bunkus.org Thu Nov 9 20:15:32 2006 From: moritz at bunkus.org (Moritz Bunkus) Date: Thu, 9 Nov 2006 20:15:32 +0100 Subject: [Matroska-devel] mkvtoolnix doesn't support FLAC 1.1.3 ? In-Reply-To: References: Message-ID: <200611092015.34930.moritz@bunkus.org> Hey, this has already been fixed in SVN, and the release is only a couple of days away. Anyway, I love it when libs change their API fundamentally... Mosu -- If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution. - Linus Torvalds -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From steve.lhomme at free.fr Sun Nov 12 17:40:33 2006 From: steve.lhomme at free.fr (Steve Lhomme) Date: Sun, 12 Nov 2006 17:40:33 +0100 Subject: [Matroska-devel] Stereoscopic playback In-Reply-To: <20061107182657.89988.qmail@web27215.mail.ukl.yahoo.com> References: <20061107182657.89988.qmail@web27215.mail.ukl.yahoo.com> Message-ID: <45574E81.7010705@free.fr> Hi, David Duffy wrote: > I don't need to play backwards as such (at least not every frame), I just need the best/most efficient way to scan for keyframes in reverse order to provide a "fast rewind" to go along with fast forward. I'm just trying to do fast forward and rewind like on a DVD player or VCR. Fast forward works okay by just ignoring frames that are not key frames. > If it isn't doable then I'll have to figure something else out I guess. > Thank-you. :) > P.S. I'm not overly worried about being efficient in this scenario. Unfortunately the issue here is not only in matroska. If you seek backward the previous frame you're looking for might be a B frame that needs 2 P frames to be decoded, themselves needing other frames to be decoded. So basically you'd need to go to the previous keyframe and cache all the frames in between. That's a lot of data ! So if you want to avoid such tricky situations, use only keyframes or very little P frames (1 or 2 between keyframes). Then the normal matroska seeking will do just fine. Steve > ----- Original Message ---- > From: Mike Matsnev > To: Discussion about the current and future development of Matroska > Sent: Tuesday, 7 November, 2006 1:12:30 AM > Subject: Re: [Matroska-devel] Stereoscopic playback > > On Mon, Nov 06, 2006 at 04:42:26PM +0000, David Duffy wrote: >> Now, to be a total newb, I need to ask for help rewinding. ;) >> Mike can you please give me the idiot's guide version of how to use >> your library correctly to rewind? > If you mean playing backwards, then it's not supported by the library, > Matroska isn't really designed for that. This might be implemented, but > it will be rather ineffective. > _______________________________________________ > Matroska-devel mailing list > Matroska-devel at lists.matroska.org > http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel > Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel > > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > _______________________________________________ > Matroska-devel mailing list > Matroska-devel at lists.matroska.org > http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel > Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel -- robUx4 on blog From davidnduffy at yahoo.co.uk Mon Nov 13 18:12:36 2006 From: davidnduffy at yahoo.co.uk (David Duffy) Date: Mon, 13 Nov 2006 17:12:36 +0000 (GMT) Subject: [Matroska-devel] Stereoscopic playback In-Reply-To: <45574E81.7010705@free.fr> Message-ID: <20061113171236.41737.qmail@web27208.mail.ukl.yahoo.com> --- Steve Lhomme wrote: > Unfortunately the issue here is not only in matroska. If you seek > backward the previous frame you're looking for might be a B frame > that needs 2 P frames to be decoded, themselves needing other frames > to be decoded. So basically you'd need to go to the previous keyframe > and cache all the frames in between. That's a lot of data ! So if you > want to avoid such tricky situations, use only keyframes or very > little P frames (1 or 2 between keyframes). Then the normal matroska > seeking will do just fine. Yes of course, my plan was to just take keyframes, my problem is I don't understand how to search for them correctly using Mike's library. My attempts to use the mkv_Seek method haven't been successful and I was under the impression from what he said previously that this wasn't the correct approach anyway since it queues up forward frames which would constantly be thrown away with each call. I'm guessing now that maybe I should write some logic to go through the Cues myself one at a time in reverse from my current timestamp, and seek and read those block headers, is that correct? However, what could/should be done if there are no Cues in the file? Thank-you :) Send instant messages to your online friends http://uk.messenger.yahoo.com From steve.lhomme at free.fr Wed Nov 22 10:54:00 2006 From: steve.lhomme at free.fr (Steve Lhomme) Date: Wed, 22 Nov 2006 10:54:00 +0100 Subject: [Matroska-devel] Re: r7150 - trunk/libavformat/matroska.c In-Reply-To: <20061122103844.966a6fe6.aurel@gnuage.org> References: <20061121234721.DEF9E3B567@natsuki.mplayerhq.hu> <20061122001926.GB10897@MichaelsNB> <20061122103844.966a6fe6.aurel@gnuage.org> Message-ID: <45641E38.1060300@free.fr> Aurelien Jacobs wrote: > On Wed, 22 Nov 2006 01:19:26 +0100 > Michael Niedermayer wrote: > >> Hi >> >> On Wed, Nov 22, 2006 at 12:47:21AM +0100, aurel wrote: >>> Author: aurel >>> Date: Wed Nov 22 00:47:21 2006 >>> New Revision: 7150 >>> >>> Modified: >>> trunk/libavformat/matroska.c >>> >>> Log: >>> add support for FLAC in matroska >>> >>> Modified: trunk/libavformat/matroska.c >>> ============================================================================== >>> --- trunk/libavformat/matroska.c (original) >>> +++ trunk/libavformat/matroska.c Wed Nov 22 00:47:21 2006 >>> @@ -224,6 +224,7 @@ >>> {"A_DTS" , CODEC_ID_DTS}, >>> {"A_VORBIS" , CODEC_ID_VORBIS}, >>> {"A_AAC" , CODEC_ID_AAC}, >>> + {"A_FLAC" , CODEC_ID_FLAC}, >>> {"A_WAVPACK4" , CODEC_ID_WAVPACK}, >>> {"A_TTA1" , CODEC_ID_TTA}, >>> {NULL , CODEC_ID_NONE} >>> @@ -2265,6 +2266,14 @@ >>> } >>> } >>> >>> + else if (codec_id == CODEC_ID_FLAC) { >>> + AVPacket *pkt = av_mallocz(sizeof(AVPacket)); >>> + av_new_packet(pkt, track->codec_priv_size); >>> + memcpy(pkt->data, track->codec_priv, track->codec_priv_size); >>> + matroska_queue_packet(matroska, pkt); >>> + track->codec_priv_size = 0; >>> + } >> hmm, are you injecting a global header as first packet into the stream? > > Indeed I am. Well not exactly in fact... > FLAC uses a 34 bytes extradata struct. The flac decoder accept either: > - 34 bytes in the extradata then normal data in normal packets > (with a 0xFFF8 marker prepended to the first data packet). > - 34 bytes prepended to the first normal data packet then normal > data packets. > Ok, so now as you know that matroska is quite braindead, you don't even > expect it to contain a proper 34 bytes extradata and normal data packets. > You may at least expect that they stored the extradata prepended to > the first data packet ? > They managed to do even worse ! They indeed pack the extradata with the > first data packet, but they store it in the extradata block ! If that's the case it's ugly. Although it may be due to libflac at that time that needed the extradata+1 frame to work correctly (keep in mind this stuff is old). But that's just a supposition. Hopefully Mosu or Haali know more about that. > So we endup with the extradata containing a real, normal data packet with > a 34 bytes header. > So what I did is really the simplest way to handle this. > Another solution would be to keep only the 34 first bytes in the extradata, > and put the remaining of the extradata block in an AVPacket. This would > IMO not be cleaner, and it would be more complicated. It's much easier, you just set track->codec_priv_size to 34. Steve From steve.lhomme at free.fr Wed Nov 22 10:56:52 2006 From: steve.lhomme at free.fr (Steve Lhomme) Date: Wed, 22 Nov 2006 10:56:52 +0100 Subject: [Matroska-devel] Re: r7150 - trunk/libavformat/matroska.c In-Reply-To: <45641E38.1060300@free.fr> References: <20061121234721.DEF9E3B567@natsuki.mplayerhq.hu> <20061122001926.GB10897@MichaelsNB> <20061122103844.966a6fe6.aurel@gnuage.org> <45641E38.1060300@free.fr> Message-ID: <45641EE4.3000104@free.fr> Steve Lhomme wrote: > Aurelien Jacobs wrote: >> On Wed, 22 Nov 2006 01:19:26 +0100 >> Michael Niedermayer wrote: >> >>> Hi >>> >>> On Wed, Nov 22, 2006 at 12:47:21AM +0100, aurel wrote: >>>> Author: aurel >>>> Date: Wed Nov 22 00:47:21 2006 >>>> New Revision: 7150 >>>> >>>> Modified: >>>> trunk/libavformat/matroska.c >>>> >>>> Log: >>>> add support for FLAC in matroska >>>> >>>> Modified: trunk/libavformat/matroska.c >>>> ============================================================================== >>>> >>>> --- trunk/libavformat/matroska.c (original) >>>> +++ trunk/libavformat/matroska.c Wed Nov 22 00:47:21 2006 >>>> @@ -224,6 +224,7 @@ >>>> {"A_DTS" , CODEC_ID_DTS}, >>>> {"A_VORBIS" , CODEC_ID_VORBIS}, >>>> {"A_AAC" , CODEC_ID_AAC}, >>>> + {"A_FLAC" , CODEC_ID_FLAC}, >>>> {"A_WAVPACK4" , CODEC_ID_WAVPACK}, >>>> {"A_TTA1" , CODEC_ID_TTA}, >>>> {NULL , CODEC_ID_NONE} >>>> @@ -2265,6 +2266,14 @@ >>>> } >>>> } >>>> >>>> + else if (codec_id == CODEC_ID_FLAC) { >>>> + AVPacket *pkt = av_mallocz(sizeof(AVPacket)); >>>> + av_new_packet(pkt, track->codec_priv_size); >>>> + memcpy(pkt->data, track->codec_priv, >>>> track->codec_priv_size); >>>> + matroska_queue_packet(matroska, pkt); >>>> + track->codec_priv_size = 0; >>>> + } >>> hmm, are you injecting a global header as first packet into the stream? >> >> Indeed I am. Well not exactly in fact... >> FLAC uses a 34 bytes extradata struct. The flac decoder accept either: >> - 34 bytes in the extradata then normal data in normal packets >> (with a 0xFFF8 marker prepended to the first data packet). >> - 34 bytes prepended to the first normal data packet then normal >> data packets. >> Ok, so now as you know that matroska is quite braindead, you don't even >> expect it to contain a proper 34 bytes extradata and normal data packets. >> You may at least expect that they stored the extradata prepended to >> the first data packet ? >> They managed to do even worse ! They indeed pack the extradata with the >> first data packet, but they store it in the extradata block ! > > If that's the case it's ugly. Although it may be due to libflac at that > time that needed the extradata+1 frame to work correctly (keep in mind > this stuff is old). But that's just a supposition. > > Hopefully Mosu or Haali know more about that. Just been reading that page: http://www.matroska.org/technical/specs/codecid/ "A_FLAC FLAC (Free Lossless Audio Codec) The private data contains all the header/metadata packets before the first data packet. These include the first header packet containing only the word fLaC as well as all metadata packets." It doesn't say that it contains data packet. It actually says it doesn't. If it does in your file, your file is incorrect. (could be a bug in mkmverge). Steve From moritz at bunkus.org Wed Nov 22 19:23:34 2006 From: moritz at bunkus.org (Moritz Bunkus) Date: Wed, 22 Nov 2006 19:23:34 +0100 Subject: [Matroska-devel] Re: r7150 - trunk/libavformat/matroska.c In-Reply-To: <45641EE4.3000104@free.fr> References: <20061121234721.DEF9E3B567@natsuki.mplayerhq.hu> <45641E38.1060300@free.fr> <45641EE4.3000104@free.fr> Message-ID: <200611221923.45582.moritz@bunkus.org> Hey, On Wednesday 22 November 2006 10:56, Steve Lhomme wrote: > >> Ok, so now as you know that matroska is quite braindead, you don't even > >> expect it to contain a proper 34 bytes extradata and normal data packets. > >> You may at least expect that they stored the extradata prepended to > >> the first data packet ? > >> They managed to do even worse ! They indeed pack the extradata with the > >> first data packet, but they store it in the extradata block ! Hmmm not really. The FLAC specs say that a STREAM consists of METADATA_BLOCK METADATA_BLOCK* FRAME+ mkvmerge reads as many blocks from a FLAC file until libFLAC's FLAC__seekable_stream_decoder_process_until_end_of_metadata returns. All data up to that point is stored in the Matroska file's CodecPrivate ( = extradata). Meaning: mkvmerge should only store all metadata blocks in CodecPrivate. If there's a real frame stored in CodecPrivate as well then that is a bug. Mosu -- If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution. - Linus Torvalds -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From steve.lhomme at free.fr Wed Nov 22 20:19:17 2006 From: steve.lhomme at free.fr (Steve Lhomme) Date: Wed, 22 Nov 2006 20:19:17 +0100 Subject: [Matroska-devel] Re: r7150 - trunk/libavformat/matroska.c In-Reply-To: <200611221923.45582.moritz@bunkus.org> References: <20061121234721.DEF9E3B567@natsuki.mplayerhq.hu> <45641E38.1060300@free.fr> <45641EE4.3000104@free.fr> <200611221923.45582.moritz@bunkus.org> Message-ID: <4564A2B5.6030705@free.fr> Moritz Bunkus wrote: > Hey, > > On Wednesday 22 November 2006 10:56, Steve Lhomme wrote: > >>>> Ok, so now as you know that matroska is quite braindead, you don't even >>>> expect it to contain a proper 34 bytes extradata and normal data packets. >>>> You may at least expect that they stored the extradata prepended to >>>> the first data packet ? >>>> They managed to do even worse ! They indeed pack the extradata with the >>>> first data packet, but they store it in the extradata block ! > > Hmmm not really. The FLAC specs say that a STREAM consists of > METADATA_BLOCK > METADATA_BLOCK* > FRAME+ > > mkvmerge reads as many blocks from a FLAC file until libFLAC's > FLAC__seekable_stream_decoder_process_until_end_of_metadata returns. All > data up to that point is stored in the Matroska file's CodecPrivate ( = > extradata). > > Meaning: mkvmerge should only store all metadata blocks in > CodecPrivate. If there's a real frame stored in CodecPrivate as well > then that is a bug. Don't worry. It was a false assumption. The file is fine and contains no data in the extradata. Steve From andrey_nikiforov at yahoo.com Thu Nov 23 19:57:46 2006 From: andrey_nikiforov at yahoo.com (Andrey) Date: Thu, 23 Nov 2006 10:57:46 -0800 Subject: [Matroska-devel] AVCHD (.m2ts) support Message-ID: <012701c70f31$4460d7c0$6901a8c0@unknown> Dear Dev Team, Are there any plans to support AVCHD (.m2ts) files in Haali Media Splitter? Those files are produced by Sony HDR-SR1 camcorder. Thanks Andrey -------------- next part -------------- An HTML attachment was scrubbed... URL: