View Full Version : reading h264 ts in avs
adrianmak
21st May 2008, 11:16
To rencode a h264 ts video to a xvid avi which following two methods is better to read frome avisynth
1.
Directshowsource("video.ts")
2.
use DGAVCDEC to generate a .dga file
and in avs
loadplugin("C:\programs\dgavcdec100a23\DGAVCDecode.dll")
AVCSource("video.dga")
stax76
21st May 2008, 12:58
Both will fail on some sources so you have to test which works best for your sources.
bob0r
21st May 2008, 13:00
dgavcdec is prefered
thymej
22nd May 2008, 02:53
I use "DGMPGDec 1.5.0 release candidate 5" for my TS files that are OTA HD MPEG2 files.
Edit:
Sorry just noticed you said h264 ts files.
Inventive Software
22nd May 2008, 06:06
DGAVCDec uses libavcodec, which may fail on sources with interlacing, as such it's hit and miss. DGAVCDec is in the early stages though, so there's hope in the future for full support, like MPEG-2 has a la DGMPGDec.
DGAVCDec uses libavcodec, which may fail on sources with interlacing, as such it's hit and miss. DGAVCDec is in the early stages though, so there's hope in the future for full support, like MPEG-2 has a la DGMPGDec.
problem for me though is libavcodec is slow. When I use coreavc with DSS I get about 90 FPS decode speed when I use libavcodec via DGAVCDec I get about 25 FPS which keeps my quad at around 40% CPU since frames are not fed fast enough to x.264 encoder. if I run my avs in 2 copies of x.264 same time I get about 50 fps and that is how I do it now then I merge the pass 1 stats files and do pass 2 with just 1 copy of x.264 since my max settings only get around 25 fps at full load anyway so slower FPS is fine then.
note if I was going to xvid then it would be really bad since both passes would need multiple instances. Too bad libavcodec is not a multi threaded decoder for h.264. (if it is then it is even slower than I thought lol)
Inventive Software
24th May 2008, 04:19
libavcodec's H.264 I believe has sliced threading, and CABAC, but that's it. Full multi-threading will come, just give it time. ;)
DGAVCDec is developed open-source, thus libavcodec. If there's a free SDK to allow CoreAVC to index, then I'm sure Donald would consider it, but CoreAVC is currently commercial.
neuron2
24th May 2008, 14:55
DGAVCDec is developed open-source, thus libavcodec. If there's a free SDK to allow CoreAVC to index, then I'm sure Donald would consider it, but CoreAVC is currently commercial. I approached Core about this and while BetaBoy thought it was an interesting idea and referred me to the technical guys, there has been no further communication from them. So I assume the idea is dead, or very low priority for them.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.