Log in

View Full Version : How can we encode an m2ts file without using directshow?


Arshad07
19th May 2009, 10:39
How can we encode an m2ts file without using directshow?

The reason is that, MT and SetMode doesnt support directshow input. It crashes Megui.

For example, if i demux the m2ts, i'll get a VC-1 file. How can i encode this VC-1 file via Avisynth?

:thanks:

Kurtnoise
19th May 2009, 11:02
Try this:
# plugin from http://forum.doom9.org/showthread.php?t=127037
# all files must be copied to your avisynth plugins folder or use LoadPlugin instead
FFmpegSource2("x\input.vc1", seekmode=-1)
where x is your entire path...

there is also another solution w/ DGVC1Decode library from here (http://neuron2.net/dgvc1decnv/dgvc1decnv.html) but it requires a compatible NV card...

Arshad07
19th May 2009, 11:11
Try this:
# plugin from http://forum.doom9.org/showthread.php?t=127037
# all files must be copied to your avisynth plugins folder or use LoadPlugin instead
FFmpegSource2("x\input.vc1", seekmode=-1)
where x is your entire path...

there is also another solution w/ DGVC1Decode library from here (http://neuron2.net/dgvc1decnv/dgvc1decnv.html) but it requires a compatible NV card...

Merci ;) Je vais l'essayer maintenant.

onesloth
19th May 2009, 11:43
The reason is that, MT + SetMode doesnt support directshow input. It crashes Megui.:

Why would you use MT() *and* SetMTMode?

Arshad07
19th May 2009, 11:50
Why would you use MT() *and* SetMTMode?

my mistake, sorry. It actually crashes when i use SetMode

Arshad07
19th May 2009, 11:57
Try this:
# plugin from http://forum.doom9.org/showthread.php?t=127037
# all files must be copied to your avisynth plugins folder or use LoadPlugin instead
FFmpegSource2("x\input.vc1", seekmode=-1)
where x is your entire path...

there is also another solution w/ DGVC1Decode library from here (http://neuron2.net/dgvc1decnv/dgvc1decnv.html) but it requires a compatible NV card...

Ok, i tried it. Both not working. Using DGVC1DECODE says '' missing license file ''. With FFmpeg, it doesnt open at all

:(

Kurtnoise
19th May 2009, 12:21
yes, DGVC1decodeNV lib requires a license...ping Neuron2 for it.

About FFS2, what kind of error do you have with it ?

Arshad07
19th May 2009, 12:37
yes, DGVC1decodeNV lib requires a license...ping Neuron2 for it.

About FFS2, what kind of error do you have with it ?

No error at all. Its just keep loading and never loads the video

Blue_MiSfit
19th May 2009, 19:34
Try indexing the file with the provided indexing program.

The indexing process takes a long time, and will hang avsp / x264 or whatever you preview the script with.

If you do the indexing ahead of time, you will get a progress number :)

~MiSfit

Arshad07
19th May 2009, 20:03
Try indexing the file with the provided indexing program.

The indexing process takes a long time, and will hang avsp / x264 or whatever you preview the script with.

If you do the indexing ahead of time, you will get a progress number :)

~MiSfit

I dont understand, can u make it simpler please :stupid:

Chiba
19th May 2009, 23:11
Just download DGIndex and use something like :


MPEG2Source("d2v_path.d2v",cpu=0,idct=4,info=3)
#your decimate and all


Lots of people use it with TS, m2TS and DVD (vob..)

Blue_MiSfit
19th May 2009, 23:24
@ Chiba
Well, that only works if the TS contains MPEG-2 video.

@Arshad07
There's a program included with ffmpegsource2 called ffms2index.exe. Drop your source file on this program, and wait for the indexing to complete. Then, load the source with FFVideoSource(...) and it will use the index file generated by ffms2index

~MiSfit

Arshad07
19th May 2009, 23:37
@Arshad07
There's a program included with ffmpegsource2 called ffms2index.exe. Drop your source file on this program, and wait for the indexing to complete. Then, load the source with FFVideoSource(...) and it will use the index file generated by ffms2index

~MiSfit

Tried it, taking ages man, its still stuck on 0%

Blue_MiSfit
20th May 2009, 18:40
Strange... an M2TS containing VC-1 should work fine... Not sure about a VC1 elementary stream.

Hmm - try remuxing the M2TS's video stream to an MKV using eac3to. Then index that with ffms2index.

~MiSfit

TheFluff
20th May 2009, 23:30
Tried it, taking ages man, its still stuck on 0%

FFMS2 (and hence ffmsindex) unfortunately has no progress reporting for transport streams (or ogm's). This is because opening of those files is done with Haali's directshow splitter and not with libavformat or Haali's low-level matroska parsing library, and progress reporting for the dshow part isn't implemented yet (it's probably possible, but I don't know how to do it; Myrsloik is investigating it, I believe).

That said there does seem to be some kind of hanging issue with big transport streams (that nobody has managed to reproduce reliably under controlled conditions, at least not yet), so yeah, remux to mkv and it'll probably work better. FFMS2's support for TS is still experimental, anyway.

Arshad07
21st May 2009, 00:18
^ thanks for the suggestion......

....but i cant encode mkv. Everytime i do so, my megui just crashes :(

Blue_MiSfit
21st May 2009, 00:54
MeGUI will not know you're using an MKV as a source. AviSynth returns uncompressed video :)

~MiSfit