View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
CruNcher
25th April 2011, 21:01
Hehe funny so this is now .m2ts with latm instead of .ts, didn't knew that latm is supported for Blu-Ray officialy but if Panasonic does it it seems so, or their Hardware/Software just understands it for interoperability reasons :D
pankov
25th April 2011, 21:03
Its not that easy, sadly. I'll have to look up how to spawn a properties page without an actual player that usually does that job. I'll get to it eventually..
:thanks:
No hurry
btw
if it can help the ffdshow guys have exposed some functions like "configure"/"configureAudio"/"configureRaw"/....
and use them for the shortcuts:
rundll32.exe ".....\ffdshow.ax",configureAudio
totya
25th April 2011, 21:09
...Maybe it helps you, check the link to the new version at the bottom of this post.
I fixed playback of that file. Its still a broken non-spec-compliant file, but at least it'll play again. Didn't test sync, as i prefer listening to my music. :p
Just throw this on top of 0.24; http://files.1f0.de/lavf/LAVSplitter-0.24-2-gcb45165.zip
Hi, thx, this version works correctly again, picture is good (not ugly sharp). Very thanks.
non-spec-compliant file
I think this is "compliant" file, see x264 vfw settings: http://img62.imageshack.us/i/x264codecsettings.png/
nevcairiel
25th April 2011, 21:10
H264 in AVI is never compliant with anything :D
But as long as it works for you..
CruNcher
25th April 2011, 21:17
I fixed playback of that file. Its still a broken non-spec-compliant file, but at least it'll play again. Didn't test sync, as i prefer listening to my music. :p
Just throw this on top of 0.24; http://files.1f0.de/lavf/LAVSplitter-0.24-2-gcb45165.zip
Yes perfect NEV it works without Video Stream parsing now that fixes the HDPVR sync issue now automatically after disabling it, still testing if it broke something else (disabling Video Parsing for *.ts) but it looks good so far perfect :)
Nope none of the test samples broke 100% Hit rate :) yes, now MPC-HC *.ts Splitter only has it's half DVB layer support that put's it in front else file compatibility wise it's losing currently vs Lav Splitter (broken,strange muxed,crazy files).
so now it looks like this
MPC-HC TS Splitter
---------------------
+ Program Stream switching (DVB) works (Video only) (depending on Decoder instant (Fast Stream switch) switching possible (Cyberlink Mpeg-2), most Decoder on next Keyframe switching)
+ No sync issues with some ADTS muxed streams (Hauppauge HDPVR)
- Latm fails (gets detected as Mpeg-1 Audio)
- some VC-1 TS fail (Video gets detected as Audio Stream)
Lav TS Splitter
-----------------
- No Program Stream switching (DVB)
+ No sync issues with some ADTS muxed streams (Hauppauge HDPVR)
+ Latm works
+ More VC-1 TS work (doesn't get detected as Audio Stream)
totya
25th April 2011, 21:28
H264 in AVI is never compliant with anything...
... but all players play fine, only except if x264 encoder settings is lossless. But perfect quality capture need lossless mode. The final format (after edit and convert) is mkv, this is "compliant".
Thanks again for ur job.
Midzuki
25th April 2011, 21:42
H264 in AVI is never compliant with anything :D
But as long as it works for you..
I'd rather see H264 in .AVI than hear Vorbis in .MP4. :p
jmone
25th April 2011, 23:25
nevcairiel - J.River are making advancements in their support for your Blu-ray (using LAVSplitter) for MediaCenter. I renamed the thread and posted some thoughts on what features should be added and would appreciate your comments on these at http://yabb.jriver.com/interact/index.php?topic=62259.msg426074#msg426074
BatKnight
26th April 2011, 15:26
Nev, I've got this Bluray that doesn't load the Portuguese AC3 track, but it loads the DTS one. The AC3 doesn't show up at all in the track list.
Tried with the MPC-HC internal TS and it loads it.
If you need a sample, how can I make one?
General
ID : 1
Complete name : G:\BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 7.92 GiB
Duration : 1h 21mn
Overall bit rate : 14.0 Mbps
Maximum Overall bit rate : 35.5 Mbps
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : 27
Duration : 1h 21mn
Bit rate mode : Variable
Bit rate : 11.3 Mbps
Maximum bit rate : 18.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.227
Stream size : 6.52 GiB (82%)
Writing library : x264 core 104 r1683 62997d6
Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.25 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2
/ 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=6 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3
/ b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=2 / weightp=0 / keyint=24 / keyint_min=2 / scenecut=40 / intra_refresh=0 / rc_lookahead=24 / rc=2pass / mbtree=1
/ bitrate=11270 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=18000 / vbv_bufsize=18000 / ip_ratio=1.40 / aq=1:1.00 / nal_hrd=vbr
Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : 129
Duration : 1h 21mn
Bit rate : 384 Kbps
Channel(s) : 5 channels
Sampling rate : 48.0 KHz
Stream size : 223 MiB (3%)
Language : Portuguese
Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : DTS
Format/Info : Digital Theater Systems
Format profile : ES
Codec ID : 130
Duration : 1h 21mn
Bit rate mode : Constant
Bit rate : 1 510 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Video delay : 11ms
Stream size : 875 MiB (11%)
Language : English
Text
ID : 4608 (0x1200)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Language : Portuguese
Thanks
Bat
nevcairiel
26th April 2011, 15:32
Download http://research.m1stereo.tv/ffmpeg/snapshots/ffmpeg-20110426-1da254b.zip
in the bin directory, there is ffprobe, run that on the file, and see if it detects the stream.
tschi
26th April 2011, 16:40
Thanks for the new version. :)
I have a issue when I switch the audio track using shortcut key. Mpchc (snv3052) crash with the message "Unspecified error" ("erreur non spécifiée" in french). It works using a mouse and the menu or key + internal splitter. It works for the subtitles.
It would be great if Lavfsplitter supports internal mpchc shortcut key or includes his own shorcut key (eg: to be use with potplayer :rolleyes:) to switch stream. I use a remote on my htpc and send shortcut in order to control player (I guess I am not the only one ?)
Thank you
jj666
26th April 2011, 16:55
Nev, I've got this Bluray
Certainly isn't the original disk, re-encoded and with lossy audio. How did you mux the file?
I've not experienced any audio stream detecting issues here with the newer version.
Cheers,
-jj-
nevcairiel
26th April 2011, 16:56
I have a issue when I switch the audio track using shortcut key. Mpchc (snv3052) crash with the message "Unspecified error
The only time i've seen that error was with AC3Filter, get rid of that and it should work.
tschi
26th April 2011, 17:34
The only time i've seen that error was with AC3Filter, get rid of that and it should work.
You are right, the audio is postprocessed with AC3Filter and decoded by Lavf audio, thank you.
Is it a mpchc issue ? I guess I could do the same processing with ffdshow audio :(
However, a shortcut key would be pleasant for using lavfsplitter and potplayer :rolleyes:
nevcairiel
26th April 2011, 17:36
However, a shortcut key would be pleasant for using lavfsplitter and potplayer :rolleyes:
I have no plans to do this. Its the players responsibility to offer this, you can request it from them. :)
tschi
26th April 2011, 17:53
Ok, I can try to ask them..
But I tried several to subscribe to their korean forum with any sucess :mad:
What should I ask ? :o
Be able to trasmit audio change (and subtitle) commands to an external splitter using a shortcut ?
hoborg
26th April 2011, 19:14
Thanks for .24!
I found that LAVS splitter cannot detect VP7 video streams. Here is the sample (https://rapidshare.com/files/459318654/vp7_sample.zip).
nevcairiel
26th April 2011, 19:23
VP7 is not supported, and unless ffmpeg some day supports it, it won't be.
hoborg
26th April 2011, 19:25
VP7 is not supported, and unless ffmpeg some day supports it, it won't be.
So it is not subtype issue?
even old default OS avi splitter support VP7 in AVI.
nevcairiel
26th April 2011, 19:36
even old default OS avi splitter support VP7 in AVI.
But this is a MKV. :)
What decoder can actually decode them? There isn't much fun in trying without one.
clsid
26th April 2011, 19:44
There is just one afaik. The official On2 VP7 decoder.
hoborg
26th April 2011, 19:48
But this is a MKV. :)
What decoder can actually decode them? There isn't much fun in trying without one.
Yes, MKV created from original AVI in MKV merge - becouse of simple split.
VP7 can be downlad here (http://www.free-codecs.com/download/VP7.htm).
nevcairiel
26th April 2011, 19:49
Yes, MKV created from original AVI in MKV merge - becouse of simple split.
VP7 can be downlad here (http://www.free-codecs.com/download/VP7.htm).
Hey, simpsons. :)
PS:
I case it wasn't obvious, that means i fixed it. It'll now even try to demux unknown tracks, as long as a FourCC is specified in the container.
BatKnight
26th April 2011, 20:27
Download http://research.m1stereo.tv/ffmpeg/snapshots/ffmpeg-20110426-1da254b.zip
in the bin directory, there is ffprobe, run that on the file, and see if it detects the stream.
It does, but with 0 channels, strange...
Does this mean that it's a ffmpeg bug? Does MPC-HC internal TS use ffmpeg?
Input #0, mpegts, from 'z:\bdmv\stream\00000.m2ts':
Duration: 01:21:03.44, start: 599.958311, bitrate: 13992 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98
tbr, 90k tbn, 47.95 tbc
Stream #0.1[0x1100](por): Audio: ac3, 0 channels, s16
Stream #0.2[0x1101](eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s
Stream #0.3[0x1200](por): Subtitle: pgssub
Bat
nevcairiel
26th April 2011, 20:53
It does, but with 0 channels, strange...
Does this mean that it's a ffmpeg bug? Does MPC-HC internal TS use ffmpeg?
Stream #0.1[0x1100](por): Audio: ac3, 0 channels, s16
I actually have some code that filters out broken streams that get reported with 0 channels, that'll probably have hit this one as well.
I can try to tune the code to try to catch really broken streams .. or just show them and let the users figure out that they don't work. ;)
nevcairiel
26th April 2011, 21:50
http://files.1f0.de/lavf/LAVFilters-0.24-4-gfc2264b.zip
@BatKnight
Try this build. I'm not sure how well decoding will work, the file must be broken somehow or channel detection wouldn't fail.
@hoborg:
This should also work with your vp7 file.
Andy o
27th April 2011, 07:01
Hi nev, I'm trying out your new splitter, but I've run into a weird issue. It could be the splitter or the way the mkv is muxed. Maybe madVR (.58), but it doesn't happen with the Haali or MPC-HC splitters. I'm getting like 4 dropped frames per second.
The problem is that it happens only with some mkvs (so far some anime muxed from blu-ray) AND the combination of LAVF Splitter (.24) and madVR. If I switch to another video renderer (tried EVR-CP or Sync) then it doesn't happen. Ditto if I switch to another splitter like I said above.
To add to my confusion, I made those mkvs with Makemkv 1.6.7. I remuxed one of them with MKVMerge and the issues were gone.
If it helps I ran the mkvinfo on them. If you have any ideas how to troubleshoot this, I'd be grateful.
Here are the txt files.
File name: mkvinfo.zip File size: 4.18 KB (http://www.fileserve.com/file/BCnyNCm)
There's 3 files. makemkv-bad is the one that shows the dropped frames. remux-mkvmerge-good is the same file, remuxed by mkvmerge that plays fine. For comparison I included another one, makemkv-good, also muxed by makemkv 1.6.7, but also runs smoothly. They're all AVC format, 24p.
nevcairiel
27th April 2011, 07:13
Can you check if maybe all broken files have TrueHD audio? Thats the only obvious difference in those two, mkvmerge writes different headers for TrueHD then MakeMKV does, and your makemkv-good has DTS audio.
Also, which audio decoder are you using? Can you try again with my LAV Audio Decoder?
Another thing, when using EVR-CP, please make sure that "Frame Time Correction" is OFF (press C), and see if it then drops frames as well - or if i was off all the time.
Andy o
27th April 2011, 07:16
dang, I was sure they were the same formats gotta double check everything. sorry bout that. Be right back.
nevcairiel
27th April 2011, 07:24
Another thing you can try is flipping the "Disable Audio Stream Parsing" option in the LAV Splitter Properties (Video won't have any effect, AVC1 in MKV does not get parsed)
I can probably try to rip a Blu-ray with TrueHD audio later with MakeMKV, and see if something funny happens.
I don't think its related to the video stream, because like i mentioned, AVC1 in MKV will just be output as is, it does not usually get touched at all.. unless, its one of those funny files that does not have B-Frames, then it might actually break .. but i have never seen one of those on a Blu-ray.
Can you download http://research.m1stereo.tv/ffmpeg/snapshots/ffmpeg-20110426-1da254b.zip, in the "bin" folder is ffprobe, and run this command:
ffprobe -loglevel debug PATH://to/file
And post the full output?
Andy o
27th April 2011, 08:18
Yeah, you're right, it was TrueHD titles. Disabling audio stream parsing doesn't fix it. I'll run ffprobe and let you know more.
nevcairiel
27th April 2011, 08:21
Thats at least something, going to look for a AVC1/TrueHD disc later and run MakeMKV over it.
Andy o
27th April 2011, 08:37
OK, this is the bad file:
ffprobe version git-N-29373-g1da254b, Copyright (c) 2007-2011 the FFmpeg develop
ers
built on Apr 26 2011 02:28:38 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
libavutil 51. 0. 0 / 51. 0. 0
libavcodec 53. 1. 0 / 53. 1. 0
libavformat 53. 0. 3 / 53. 0. 3
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 0. 0 / 2. 0. 0
libswscale 0. 13. 0 / 0. 13. 0
[NULL @ 0x1562c70] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
st:2 removing common factor 1000000 from timebase
st:3 removing common factor 1000000 from timebase
st:4 removing common factor 1000000 from timebase
st:5 removing common factor 1000000 from timebase
[h264 @ 0x2f17000] Unsupported bit depth: 0
[h264 @ 0x2f17000] no picture
[h264 @ 0x2f17000] no picture
[h264 @ 0x2f17000] no picture
[h264 @ 0x2f17000] no picture
[matroska,webm @ 0x1562c70] Probe buffer size limit 5000000 reached
[matroska,webm @ 0x1562c70] Estimating duration from bitrate, this may be inaccu
rate
Input #0, matroska,webm, from 'title00.mkv':
Duration: 00:25:09.00, start: 0.000000, bitrate: N/A
Chapter #0.0: start 0.000000, end 60.560489
Metadata:
title : Chapter 00
Chapter #0.1: start 60.560489, end 150.650489
Metadata:
title : Chapter 01
Chapter #0.2: start 150.650489, end 553.553000
Metadata:
title : Chapter 02
Chapter #0.3: start 553.553000, end 1411.910489
Metadata:
title : Chapter 03
Chapter #0.4: start 1411.910489, end 1411.910489
Metadata:
title : Chapter 04
Stream #0.0(eng), 45, 1/1000: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:
1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0.1(jpn), 2304, 1/1000: Audio: truehd, 48000 Hz, 5.1, s32 (default)
Metadata:
title : 5.1
Stream #0.2(eng), 0, 1/1000: Subtitle: pgssub (default)
Stream #0.3(fra), 0, 1/1000: Subtitle: pgssub
Stream #0.4(eng), 2, 1/1000: Subtitle: pgssub
Stream #0.5(fra), 2, 1/1000: Subtitle: pgssub
This is the good remuxed file:
ffprobe version git-N-29373-g1da254b, Copyright (c) 2007-2011 the FFmpeg developers
built on Apr 26 2011 02:28:38 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc14)
configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=x86 --target-os=ming
w32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-mingw32-gcc' --enable-w32threads --enable-m
emalign-hack --enable-runtime-cpudetect --enable-cross-compile --enable-static --disable-shared --ex
tra-libs='-lws2_32 -lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/build/lib' --enable-b
zlib --enable-zlib --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libspee
x --enable-libtheora --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
libavutil 51. 0. 0 / 51. 0. 0
libavcodec 53. 1. 0 / 53. 1. 0
libavformat 53. 0. 3 / 53. 0. 3
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 0. 0 / 2. 0. 0
libswscale 0. 13. 0 / 0. 13. 0
[NULL @ 0x32c70] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
st:2 removing common factor 1000000 from timebase
st:3 removing common factor 1000000 from timebase
st:4 removing common factor 1000000 from timebase
st:5 removing common factor 1000000 from timebase
[h264 @ 0x3e00050] Unsupported bit depth: 0
[h264 @ 0x3e00050] no picture
[h264 @ 0x3e00050] no picture
[h264 @ 0x3e00050] no picture
[h264 @ 0x3e00050] no picture
[matroska,webm @ 0x32c70] Probe buffer size limit 5000000 reached
[matroska,webm @ 0x32c70] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from 'title00.mkv':
Duration: 00:25:09.00, start: 0.000000, bitrate: N/A
Chapter #0.0: start 0.000000, end 60.560489
Metadata:
title : Chapter 00
Chapter #0.1: start 60.560489, end 150.650489
Metadata:
title : Chapter 01
Chapter #0.2: start 150.650489, end 553.553000
Metadata:
title : Chapter 02
Chapter #0.3: start 553.553000, end 1411.910489
Metadata:
title : Chapter 03
Chapter #0.4: start 1411.910489, end 1411.910489
Metadata:
title : Chapter 04
Stream #0.0(eng), 46, 1/1000: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 1001/48
000, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0.1(jpn), 2252, 1/1000: Audio: truehd, 48000 Hz, 5.1, s32 (default)
Metadata:
title : 5.1
Stream #0.2(eng), 0, 1/1000: Subtitle: pgssub (default)
Stream #0.3(fre), 0, 1/1000: Subtitle: pgssub
Stream #0.4(eng), 0, 1/1000: Subtitle: pgssub
Stream #0.5(fre), 0, 1/1000: Subtitle: pgssub
nevcairiel
27th April 2011, 08:44
Too bad, no obvious things stick out. Guess i'll have to rip a disc and see if i can reproduce the problem.
Which decoders are you using?
Andy o
27th April 2011, 08:56
I'm using ffdshow, forgot to mention, for bitstreaming audio and the multithreaded one for H.264. Thanks for the help.
nevcairiel
27th April 2011, 09:01
One last test: Can you turn bitstreaming for TrueHD off, and see if it still happens?
Just trying to figure out how to reliably reproduce it.
Andy o
27th April 2011, 09:18
Yes, when turning off bitstreaming and decoding the TrueHD audio, it doesn't happen and all is smooth. I'm using an ATI 5770 w/11.4 preview drivers, and the Realtek 2.55 HDMI driver.
nevcairiel
27th April 2011, 09:20
Thanks, i'll have a look later when i have access to my BDs, then.
I think i might have an idea, though. Some idiot request over on the MakeMKV forums that you can keep the TrueHD/AC3 interleaving when muxing it into MKV. This is a *terrible* idea. They are separate streams, and should be separated in the MKV. Its a bad design in mpeg-ts to begin with!
If this "feature" actually made its way into MakeMKV, i don't know. But i think it would neatly explain the problem if it did.
One last thing you could do is run MediaInfo on that file (in text mode), and post the "bad" and remuxed "good" one, which would confirm or deny this theory.
Andy o
27th April 2011, 10:15
I don't think it does as of now, but at the end Mike did say he was gonna implement it. MediaInfo tells me my TrueHD mkvs only have the TrueHD audio. With the TrueHD m2ts it says TrueHD/Core.
Also, I was under the impression that mkvmerge could do it (IIRC eac3to can get the interleaved track)
hoborg
27th April 2011, 11:12
http://files.1f0.de/lavf/LAVFilters-0.24-4-gfc2264b.zip
@hoborg:
This should also work with your vp7 file.
Of course it is working, as always :)
:thanks:
jj666
27th April 2011, 11:24
I don't think it does as of now, but at the end Mike did say he was gonna implement it. MediaInfo tells me my TrueHD mkvs only have the TrueHD audio. With the TrueHD m2ts it says TrueHD/Core.
Also, I was under the impression that mkvmerge could do it (IIRC eac3to can get the interleaved track)
MKVMERGE will not mux TrueHD/Core, it just keeps the HD audio stream. Latest MAKEMKV will mux two streams, one HD audio and one AC3 core. I noticed this yesterday when doing some beta testing for my media player.
For me, if I was using MKV (which I'm not :-)), a FLAC solution for the audio (via EAC3TO) would make more sense, at the same time as making the audio, at least you know the video streams etc are ok via EAC3TO.
Cheers,
-jj-
Andy o
27th April 2011, 11:28
Makemkv will mux it in separate tracks, that's what you mean, right? I don't think it's just the latest though, it's been doing it for a while IIRC. BTW, 1.6.8 has just been released in the past couple of days, did you mean that one, or 1.6.7?
jj666
27th April 2011, 11:37
Yah, 1.6.8 - it creates two separate tracks which would be the correct (although not to Blu-ray specification) way, like Nev mentioned. Like you said, I think it always does this if you selected "both" tracks.
Cheers,
-jj-
nevcairiel
27th April 2011, 12:22
I will test with 1.6.7, as that seems to also be what you used to convert your discs. If i can reproduce the problem, i can probably fix it too. I have a feeling that it could also be something in ffdshow, but i'll run all tests later.
SamuriHL
27th April 2011, 13:29
MakeMKV does NOT combine the TrueHD/ac3 tracks. It was requested (with a valid reason more or less) as an option but to date hasn't been implemented. Personally I just rip them as separate tracks as they should be. Nonetheless, they are interleaved on BD's which is what people were asking for. I haven't had any problems with TrueHD in MKV's made with MakeMKV on either of my machines, however. I'm not at home today else I'd post info on some of the ones I've made that work fine. I also use ffdshow for bitstreaming and madVR for rendering. So, if this was a generic issue one would think I'd have run into it by now, as well.
BatKnight
27th April 2011, 13:57
http://files.1f0.de/lavf/LAVFilters-0.24-4-gfc2264b.zip
@BatKnight
Try this build. I'm not sure how well decoding will work, the file must be broken somehow or channel detection wouldn't fail.
It didn't work. Still doesn't detect the AC3 track.
I could cut a piece of the the M2TS file and upload it for you to test it, if you tell me how can I cut a smaller part of it, or what software should I use to do it.
How is your splitter different from MPC-HC's internal TS? Because with it, it detects this AC3 track and plays nice.
Here's the ffprobe, with loglevel debug
ffprobe version git-N-29373-g1da254b, Copyright (c) 2007-2011 the FFmpeg developers
built on Apr 26 2011 02:28:38 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc14)
configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=x86 --target-os=mingw32
--cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-mingw32-gcc' --enable-w32threads --enable-memalign-hack
--enable-runtime-cpudetect --enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -lwinmm'
--extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/build/include'
--extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/build/lib' --enable-bzlib
--enable-zlib --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
libavutil 51. 0. 0 / 51. 0. 0
libavcodec 53. 1. 0 / 53. 1. 0
libavformat 53. 0. 3 / 53. 0. 3
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 0. 0 / 2. 0. 0
libswscale 0. 13. 0 / 0. 13. 0
[NULL @ 0x1532ce0] Format mpegts probed with size=2048 and score=100
[mpegts @ 0x1532ce0] stream=0 stream_type=1b pid=1011 prog_reg_desc=HDMV
[mpegts @ 0x1532ce0] stream=1 stream_type=81 pid=1100 prog_reg_desc=HDMV
[mpegts @ 0x1532ce0] stream=2 stream_type=82 pid=1101 prog_reg_desc=HDMV
[mpegts @ 0x1532ce0] stream=3 stream_type=90 pid=1200 prog_reg_desc=HDMV
[h264 @ 0x153b470] Unsupported bit depth: 0
[h264 @ 0x153b470] no picture
[dca @ 0x2dd2a10] Stream with high frequencies VQ coding
[h264 @ 0x153b470] no picture
[mpegts @ 0x1532ce0] Probe buffer size limit 5000000 reached
[NULL @ 0x2dd22c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1539f80] start time is not set in av_estimate_timings_from_pts
Input #0, mpegts, from 'g:\BDMV\STREAM\00000.m2ts':
Duration: 01:32:25.42, start: 599.958311, bitrate: 12276 kb/s
Program 1
Stream #0.0[0x1011], 95, 1/90000: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0.1[0x1100](por), 0, 1/90000: Audio: ac3, 0 channels, s16
Stream #0.2[0x1101](eng), 366, 1/90000: Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s
Stream #0.3[0x1200](por), 0, 1/90000: Subtitle: pgssub
Thanks for all your time invested in this.
Bat
nevcairiel
27th April 2011, 14:35
There is no reason the above build should not detect the stream. Before there was a check to filter out streams with 0 channels, but i removed that. I figure it might not decode, because decoders dont like the notion of 0 channels - but huh.
I suppose tsMuxer can split files, i hope it doesn't fix it along the way. :p
If you have access to mingw32 or cygwin, or any real linux system, they typically include the "split" command which is just a dumb file splitter, which should do the job too.
Also, LAV Splitter has nothing in common with the MPC-HC splitter.
Midzuki
27th April 2011, 15:49
<Semi-OT>
I don't think its related to the video stream, because like i mentioned, AVC1 in MKV will just be output as is, it does not usually get touched at all.. unless, its one of those funny files that does not have B-Frames, then it might actually break ..
...
Reminds me of the MPEG-2 decoders in (a very-old revision of) ffdshow that didn't like MPEG-2 video with zer0 B-frames — this made the b0rked decoders lose synch with the audio stream :—/
</Semi-OT>
BatKnight
27th April 2011, 15:51
There is no reason the above build should not detect the stream. Before there was a check to filter out streams with 0 channels, but i removed that. I figure it might not decode, because decoders dont like the notion of 0 channels - but huh.
I suppose tsMuxer can split files, i hope it doesn't fix it along the way. :p
If you have access to mingw32 or cygwin, or any real linux system, they typically include the "split" command which is just a dumb file splitter, which should do the job too.
Also, LAV Splitter has nothing in common with the MPC-HC splitter.
tsMuxer wouldn't work because it states that it has an invalid track and ignores the AC3 track.
I used the split command to split the M2TS to smaller chunks of 15MB and tried to play one of them (not the first chunk), and the AC3 track works and ffprobe recognizes it as having 5.1 channels.
But then I played the first splitted chunk, and no AC3 track. Only the following chunks play with the AC3 on it.
I uploaded the first chunk: http://www.megaupload.com/?d=W0F0RK94
Thanks,
Bat
PS: I don't expect you to be able to fix every broken track. This is a custom made Bluray, not a commercial one. FYI, this is a Bluray of Toy Story with the English DTS track and the Portuguese AC3 tracked ripped from the DVD, that was then muxed to a Bluray compliant format, fitted on a DVD9 size. It just makes it easier for the kid to watch in HD and with Portuguese (our main language) audio.
CruNcher
27th April 2011, 16:03
Nev i don't get *.mov to be parsed via File Source Async (Lav Splitter) it always fallsback to the MPC Mp4 Splitter (low merrit) *.mp4 *.ts *.m2ts *.avi *.mkv works (tested so far)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.