Usually I deal with mkv files, which I understand are really "capsules" for other files inside them, like H264, AC3, DTS, subs, etc. Right?
This time I have a TS file that apparently contains a 1920 x 1080 video file and an AC3 file. How do I demux it?
DGIndex won't work and the other ways I tried, ProjectX and Xport, I don't know how to handle. Is there any other way to open these files?
+ Reply to Thread
Results 1 to 18 of 18
-
-
Originally Posted by poisondeathray
.
I even had that installed on my video programs directory, but I had forgotten about it.
Demuxing as we speak.
Great! -
An epilogue to this thread.
In spite of all the time I lost on this conversion, I couldn't use the files. There were lots of artifacts in the video when it was running. Apparently badly converted or compressed. It had happened when I played the original TS file, but I thought it was a player's problem. It was not.
It was useless to bring that problem here, as I don't think it could be solved. Perhaps I was wrong. -
Does the .ts file have corruption when you play it back in MPC?
Did you use DGAVCIndex? If so, there is a known issue with h.264 transport streams (I'm assuming it's h.264 and not MPEG2)and mbaff interlacing causing blocky corruption. (it's based on a very old libavcodec build)
The work around is DirectShowSource() or DSS2() + a recent ffdshow build , coreavc, or divx h.264 as the decoder. I think the new ffmpegsource2 (beta10) should work as well
Also it's very common for .ts to have corruption, drop outs etc.. during recording. If the original .ts has corruption (not through DGAVCindex) , You can try fixing with TS-Doctor
Why are you demuxing? Usually there is no need... -
Originally Posted by poisondeathray
Did you use DGAVCIndex? If so, there is a known issue with h.264 transport streams (I'm assuming it's h.264 and not MPEG2)and mbaff interlacing causing blocky corruption. (it's based on a very old libavcodec build)
The work around is DirectShowSource() or DSS2() + a recent ffdshow build , coreavc, or divx h.264 as the decoder. I think the new ffmpegsource2 (beta10) should work as well
In any case, that would be for the next time I have a similar problem.
Also it's very common for .ts to have corruption, drop outs etc.. during recording. If the original .ts has corruption (not through DGAVCindex) , You can try fixing with TS-Doctor
Why are you demuxing? Usually there is no need... -
I'm willing to bet it was the interlaced h.264/mbaff issue with DGAVCIndex. Just keep it in mind the next time with any interlaced h.264 content
DSS2() and FFMpegSource2() are other source filter alternatives to DSS. Both are frame accurate, so usually better choices than DSS(), which is not necessarily frame accurate (sometimes gives problems and sync issues). You can read the documentation and corresopnding thread on Doom9 if you want more info
Another alternative if you have a nvidia card is using DGNVTools ($15)
Cheers -
Originally Posted by poisondeathray
-
DGAVCIndex is great for all h.264 that is progressive. Very stable & predictable. It's just that it shouldn't be used for transport streams (due to the libav issue) which the majority are interlaced
DSS & DSS2 will be reliant on you system installed splitters & decoders which maybe why some people have issues
ffmpegsouce2 works independent of your system installed decoders and is probably more consistent
When possible, try not to demux, because the container can have timing information (e.g. transport streams, even mkv) that is lost when you demux. This is especially important for transport streams which frequently have drop outs and desynchronizations points which are "resynched" by information in the container
And yes, the choice of MPC vs. VLC is important. MPC (with internal filters & source filters disabled) is a good diagnostic utility, because it can help tell you if your directshow system is working. So if everything works fine in MPC, chances are DirectShowSource or DSS2 will work. VLC won't work for this test, because it relies on internal splitters/decoders. MPC is a directshow player, VLC is not -
Originally Posted by poisondeathray
DSS & DSS2 will be reliant on you system installed splitters & decoders which maybe why some people have issues
ffmpegsouce2 works independent of your system installed decoders and is probably more consistent
When possible, try not to demux, because the container can have timing information (e.g. transport streams, even mkv) that is lost when you demux. This is especially important for transport streams which frequently have drop outs and desynchronizations points which are "resynched" by information in the container
And yes, the choice of MPC vs. VLC is important. MPC (with internal filters & source filters disabled) is a good diagnostic utility, because it can help tell you if your directshow system is working. So if everything works fine in MPC, chances are DirectShowSource or DSS2 will work. VLC won't work for this test, because it relies on internal splitters/decoders. MPC is a directshow player, VLC is not -
Originally Posted by carlmart
Which script syntax should I use to load the file with ffmpegsouce2?
How can I convert if I do not demux?
-
Originally Posted by poisondeathray
I couldn't find out, looking at the documentation, if or how I can use FFMpegSource to load the mkv file.
I wrote it like this: FFMpegSource ("d:\file.mkv)". Nothing happens. Is something missing? -
Originally Posted by poisondeathray
-
Download ffms2 from here, check the thread for updates, there are frequent changes
http://ivtc.org/new/FFmpegSource-2.00b10.rar
http://forum.doom9.org/showthread.php?t=127037
Unzip the contents into the plugins folder, including the ffms2.avsi
You probably downloaded the wrong version, but EVERYTHING is included in the documentation. PLEASE read it.
The generic syntax is
FFMpegSource2("file.mkv")
If you want audio as well (this frameserves both audio & video)
FFMpegSource2("file.mkv", atrack=-1)
If your audio is already DVD compliant (e.g. AC3), then it would be better to demux it and use it as the original because no quality loss. If it something else e.g. AAC, and you are re-encoding it anyway, then use the "atrack=-1" or demux it then re-encode. But if you demux it, don't forget the delay
If you don't want subs burned in using DirectShowSource(), just repackage the mkv with mkvmerge beforehand, without the subs; or disable VSfilter or subs in ffdshow (whatever you are using)
Finally, if you're happy with DGAVCIndex, and your current method with progressive h.264 content, just stick with it. "Why fix it if it a'int broke" -
Originally Posted by poisondeathray
But if you demux it, don't forget the delay
Repackaging the mkv seems like a better soluion. But they do not show if I use DSS2 or FFMpegSource2.
Finally, if you're happy with DGAVCIndex, and your current method with progressive h.264 content, just stick with it. "Why fix it if it a'int broke" -
How long are you talking about?
It should take a short time the first time around , proportional to the length of your video, because it generates an index (much like DGAVCIndex or DGMPGIndex does) -
Originally Posted by poisondeathray
For now FFmpegSource2 seems to be slightly better than the "h264 + DGAVCindex" path I was taking.
I wrote the script with FFmpegSource2 and with AvsP splitted the video accurately in two. Now how can I split the audio?
What I used with DGA was this:
v=AVCSource("d:\file.dga")
a=NicAC3Source("d:\fileA.ac3")
audiodub(v,a)
trim(0, 116558)
soundout
Can I use the same script just replacing the video source?
Similar Threads
-
Need help demuxing a M4V file
By FulciLives in forum Video ConversionReplies: 1Last Post: 8th Aug 2011, 01:18 -
Tools for demuxing DVD Subtitle and adding Subtitle file to Blu-ray file.
By wisitch in forum SubtitleReplies: 3Last Post: 5th Jul 2011, 13:31 -
Problem with demuxing .ts file
By iXed in forum DVB / IPTVReplies: 5Last Post: 8th Aug 2010, 09:14 -
How to cut a TS file with Projectx without demuxing?
By Talayero in forum DVB / IPTVReplies: 2Last Post: 12th Apr 2009, 19:23 -
Demuxing mkv file for DVDlab
By harshest in forum Video ConversionReplies: 4Last Post: 22nd Mar 2008, 17:51