I have MKVs created with MKVTOOLS GUI and 2.98 (plus some 2.97) mkvmerge tools.
Typically, the include;
H.264 Video in Track 1
AAC/LC in Track 2
UTF-8 subtitle in Track 3
UTF-8 subtitle in Track 4
some with, some without chapter files.
It is very annoying as applying replay gain to the MKV works on some, but not others.
I get the following error
"Could not update tags (Unsupported format or corrupted file)"
Sometimes a complete extract and remux from raw files works, mostly not.
I can't pick any pattern to the ones that work and the ones that don't.
I am not sure if this is an issue with the mkv component of foobar2000 or a change from the mkvmerge.
But i can say, apply the gain with files created from 2.98 works for some and not others. So something else must be causing it.
most grateful for any help
there is definately something strange with fb2k 9.6.9
I find that right mouse clicking on the mkv and opening it in fb2k has a more reliable chance of of being able to add the replay gain.
For a file that already has the gain added. i have noticed that opening with this method producing intermittently different results. i.e. sometimes the gain settings appear in fb2k and sometimes not.
if they not appear and you perform a scan, you get the above error when trying to save.
if they do appear, you can remove and rescan and successfully save the settings
this is soooo bloody annoying.....every time i open the same mkv file, i get a different result .i.e.
- sometimes no replay info
- sometimes track replay info
- sometimes track-album replay info
I am talking about opening the very same file, but this equally applies to all my files......
FYI, i am using fb2k 9.6.9 on Win7 RC
I am not sure if this is an issue with the mkv component of foobar2000 or a change from the mkvmerge.
Are you using additional component for handling matroska?
As of 0.9.6. the component isn't needed, and what's more it isn't recommended
i am using the inbuilt mkv support and i have managed to pinpoint the precise cause of the problem, but am not sure if it is fb2k's reading of mkv files or mkvmerge GUI's problem.
to replicate the problem; -
Working Method: -
- extract DVD chapter in OGG txt format
- mkvmerge gui add the chap.txt in the global options page
- load the mkv in fb2k
- notice, there are no Track numbers, only chapter titles
- now apply replay gain
- success
Failing Method: -
- extract DVD chapter in XML format or create chapters in mkvmerge GUI chapter creator
- add the chap.xml in the global options page
- load the mkv in fb2k
- notice, there are now track numbers and chapter titles
- now apply replay gain
- fails with the above error
Remuxing an MKV causes the previous "no track" version to have track numbers in the new output, and thus still fails.
only muxing with .txt version creates a format acceptable to f2bk
I couldn't figure out how to modify the XML file to ensure no "track number" was assigned.
I don't see any error trying your second method: I added XML chapters to MKV file with h.264 video and AAC audio and muxed it:
General
Format : Matroska
File size : 4.06 GiB
Duration : 1h 44mn
Overall bit rate : 5 569 Kbps
Encoded date : UTC 2009-10-27 21:10:46
Writing application : mkvmerge v2.9.7 ('Tenderness') built on Jul 1 2009 18:43:35
Writing library : libebml v0.7.7 + libmatroska v0.8.1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings, CABAC : Yes
Format settings, ReFrames : 10 frames
Muxing mode : Container profile=Unknown@5.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 44mn
Nominal bit rate : 5 340 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.242
Writing library : x264 core 58 svn-736M
Encoding settings : cabac=1 / ref=10 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=7 / me-prepass=0 / brdo=1 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=2 / deadzone=15,10 / chroma_qp_offset=0 / threads=6 / nr=0 / decimate=0 / mbaff=0 / bframes=4 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=5340 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=1.00 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:0.6:15.0
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : Main
Codec ID : A_AAC
Duration : 1h 44mn
Channel(s) : 6 channels
Channel positions : Front: L C R, Rear: L R, LFE
Sampling rate : 48.0 KHz
Resolution : 16 bits
Title : Main Track AAC @ 5.1
Language : English
Menu
00:00:00.000 : :ES.W.A.T. Deployment
00:04:55.000 : :Church Conflagration
00:09:14.000 : :Kill Switch
00:12:24.000 : :New Partner
00:16:14.000 : :No Matter What Happens
00:21:37.000 : :Poseidon Connections
00:24:47.000 : :Stick With Me
00:30:09.000 : :More of a Machine
00:31:55.000 : :Conference Chaos
00:37:10.000 : :Humans Gone Haywire
00:42:40.000 : :Sacrifice and Love
00:46:54.000 : :Cyborg Ban
00:51:06.000 : :Out of Control
00:55:12.000 : :Something Much Bigger
01:01:08.000 : :Feeding Off Briareos
01:05:06.000 : :I Owe You One
01:09:02.000 : :Get Out of My Head
01:11:59.000 : :Mob Mentality
01:15:37.000 : :The Way to Halcon
01:19:26.000 : :Drone Attacks
01:24:00.000 : :Cutting Sentinels Down to Size
01:26:50.000 : :Gate Crashers
01:29:23.000 : :Kill Me While You Can
01:35:14.000 : :Irreplaceable
01:38:10.000 : :Back From the Brink
01:40:06.000 : :End Credits
After that I successfully added ReplayGain info to AAC tracks (applying RG wasn't an option). Perhaps the problem is in the format of your audio file.
And the only problem for me and foobar MKV support is that it doesn't read dual audio streams - it reads only the first audio stream.
i am not clear if you are saying you;
- added the RG to the aac before muxing or after.
To be clear;
- one needs to mux AVC+AAC+SUBS+XML to MKV
- open MKV in fb2k
- RG Album
- Apply and the error "Could not update tags (Unsupported format or corrupted file)" is displayed
way to solve it is;
mkvextract chapters -s >chap.txt
remux with .txt file
it now works.
importantly, opening the MKV in fb2k produces two different results depending whether chapter source was .txt or .xml.
if .txt - there are no track number associations with the chapters
if .xml - there are now track numbers associated to the chapters
it's seems the issue is related to f2bk's interpretation of the file
although I did noticed now little glitch: I added MKV file with XML chapters and added comment (or any tag) to some track(s), then titles from all other tracks vanished
^[edit] of course I scanned after I muxed. And I don't have context menu option for "Apply RG" only "Scan RG" is available
although I did noticed now little glitch: I added MKV file with XML chapters and added comment (or any tag) to some track(s), then titles from all other tracks vanished
^[edit] of course I scanned after I muxed. And I don't have context menu option for "Apply RG" only "Scan RG" is available
RG - "Scan Selection as a Single Album", after the scan you select "apply" on the dialog.
You cant see RG with MediaInfo, you can only see it in fb2k but Media Player Classic recognises it
one more point to note; which further indicates fb2k.
(i use nero aac encoded 5-1 audio ABR 256K)
- when you use the method i state above (.txt) to add the chapters the status bar shows the kbps rate when the files plays in fb2k
- when you add the chapter info (.xml) way, the status bar shows ? kbps and can not determine the bit rate
(http://img260.imageshack.us/img260/3209/sshot2x.th.png) (http://img260.imageshack.us/img260/3209/sshot2x.png)
(http://img260.imageshack.us/img260/3209/sshot2x.th.png) (http://img260.imageshack.us/img260/3209/sshot2x.png)
so, i believe it is working for you. but it is not working for me on two separate computers and they both perform exactly as i have described above.
Could not update tags (Unsupported format or corrupted file) on:
"D:\Movies\A Few Good Men\1080p_A Few Good Men_1992_x264-dxva_aac-lc_en-cz.mkv" / index: 7
Could not update tags (Unsupported format or corrupted file) on:
"D:\Movies\A Few Good Men\1080p_A Few Good Men_1992_x264-dxva_aac-lc_en-cz.mkv" / index: 15
Could not update tags (Unsupported format or corrupted file) on:
"D:\Movies\A Few Good Men\1080p_A Few Good Men_1992_x264-dxva_aac-lc_en-cz.mkv" / index: 11
Could not update tags (Unsupported format or corrupted file) on:
"D:\Movies\A Few Good Men\1080p_A Few Good Men_1992_x264-dxva_aac-lc_en-cz.mkv" / index: 25
so where to go from here
I guess using txt instead XML
The problem in post #8 I guess is that if you change some tag with foobar, it writes it to "Global tags" in MKV and then it doesn't read XML chapter file, but switches to this Global tags entry, so any info from chapters isn't read but it exists still in MKV (it isn't deleted or anything)
I guess using txt instead XML
The problem in post #8 I guess is that if you change some tag with foobar, it writes it to "Global tags" in MKV and then it doesn't read XML chapter file, but switches to this Global tags entry, so any info from chapters isn't read but it exists still in MKV (it isn't deleted or anything)
i don't change/add any tag info. doing so, causes the RG to be lost. In summary, using the method that works, if i make any changes to the MKV, i have to go through the whole process of extracting the chapter as a .txt and then remuxing the whole thing again so i can re-add the RG.
my fb2k components are;
Core (2009-08-22 11:25:22)
foobar2000 core 0.9.6.9
foo_ac3.dll (2009-05-09 16:27:36)
AC3 decoder 0.9.3
foo_albumlist.dll (2009-08-22 11:23:44)
Album List 4.3.1
foo_burninate.dll (2009-06-24 19:14:28)
Audio CD Writer 3.0.1
foo_cdda.dll (2009-08-22 11:23:34)
CD Audio Decoder 2.1.4
foo_channel_mixer.dll (2008-03-12 10:37:47)
Channel Mixer 0.9.6.5
foo_converter.dll (2009-08-22 11:23:26)
Converter 1.2.1
foo_dsp_std.dll (2009-08-22 11:23:48)
Standard DSP Array 1.0
foo_facets.dll (2009-04-04 21:02:56)
Facets 2008-02-25
foo_freedb2.dll (2009-08-22 11:22:52)
freedb Tagger 0.6.1
foo_input_alac.dll (2009-03-22 14:15:46)
ALAC Decoder 1.0.3
foo_input_ds.dll (2009-02-06 22:39:41)
DirectShow input 0.1
foo_input_dts.dll (2009-05-02 12:58:30)
DTS decoder 0.2.4
foo_input_monkey.dll (2009-05-01 13:40:52)
Monkey's Audio Decoder 2.1.4
foo_input_std.dll (2009-08-22 11:23:28)
Standard Input Array 1.0
foo_rgscan.dll (2009-08-22 11:23:20)
ReplayGain Scanner 2.0.9
foo_sendtodevice.dll (2007-11-28 09:13:46)
Send to Device 1.1.2 [Nov 28 2007 - 10:13:31]
foo_ui_std.dll (2009-08-22 11:23:54)
Default User Interface 0.9.5
foo_unpack.dll (2009-08-22 11:22:20)
RAR reader 1.2
ZIP/GZIP reader 1.0
i don't change/add any tag info. doing so, causes the RG to be lost.
Where is your RG info written in MKV file?
foobar writes RG info to "Global tags" entry
Adding/changing tags doesn't remove RG info and they are all written to "Global tags" entry
I can't imagine why you have this problems
Let me know if you would like to see the full info but
The version that does NOT work (created from XML)
(MKVInfo) |+ Chapters at 5713
(MKVInfo) | + EditionEntry at 5719
(MKVInfo) | + EditionFlagHidden: 0 at 5723
(MKVInfo) | + EditionFlagDefault: 0 at 5727
(MKVInfo) | + EditionUID: 1385419710 at 5731
(MKVInfo) | + ChapterAtom at 5738
(MKVInfo) | + ChapterUID: 2915105201 at 5740
(MKVInfo) | + ChapterTimeStart: 00:00:00.000000000 at 5747
(MKVInfo) | + ChapterFlagHidden: 0 at 5750
(MKVInfo) | + ChapterFlagEnabled: 1 at 5753
(MKVInfo) | + ChapterDisplay at 5757
(MKVInfo) | + ChapterString: 00:00:00.000 at 5759
(MKVInfo) | + ChapterLanguage: eng at 5773
Opening the MKV in mkvmergeGUI i see Chapters (20); Global Tags (62)
Opening the MKV in fb2k "Track Title" = chapter name; "Track No" goes from 1 - 20
The version that works (created from TXT)
(MKVInfo) |+ Chapters at 136
(MKVInfo) | + EditionEntry at 143
(MKVInfo) | + EditionUID: 2642453163 at 147
(MKVInfo) | + ChapterAtom at 154
(MKVInfo) | + ChapterUID: 1575719814 at 156
(MKVInfo) | + ChapterDisplay at 163
(MKVInfo) | + ChapterString: Chapter 1 at 165
(MKVInfo) | + ChapterTimeStart: 00:00:00.000000000 at 176
Opening the MKV in mkvmergeGUI i see Chapters (18); Global Tags (62)
Opening the MKV in fb2k "Track Title| = chapter name; "Track No" is not set
The only other thing i notice in the info file;
txt - chapters are the first thing after the header
.xml - chapters are after all the tracks
The rest seems to look the same, but i can post the full files if necessary.
I'm not a developer for foobar matroska handling, so I can't help you except that I can try the same steps as yours and tell if the problem you have is reproducible.
Having 20 items in the chapter and 62 items in Global tags says that you have tagged every item from MKV file in foobar with 3 tags (3 x 20 + 2). That can be TITLE, RGTG and RGTP. Changing/adding tags doesn't remove RG values which are stored in Global tags as said couple of times.
And hey, try removing subtitles or any other attachments and see if it changes anything
not sure if i said this already, but;
- if you take a working mkv without chapters + RG
- use mkvmergeGUI to load and save chapters to the mkv file
- you can not longer see the RG in fb2k + the chapters have "track no" when read by fb2k