Log in

View Full Version : Encode .wtv with MeGui?


Amateur
4th August 2013, 16:10
I've been out of practice for quite a while and want to get back into the game a little bit. I just got an HDHomerun Prime and signed up for a promo for cable television. I want to record shows and encode them to save space. They are recorded in .wtv format but I'm not sure how to encode those using MeGui. I've only converted DVD rips to mp4 using MeGUI in the past.

I am pretty sure I have to right click the file select "convert to dvr-ms" but after that I'm not sure. Hopefully I can get some help to get me started.

Thanks.

edit: second question - Can you put multiple trim commands into the script? I know for audio you can add cuts but I don't see that in the video section. I want to cut out the commercials but don't want to have to encode all of the sections then join them when finished if I can encode it all at once

Amateur
12th August 2013, 20:30
No one can help me with this?

hello_hello
12th August 2013, 22:23
I know nothing about the .wtv format so I can't really help there.
Once you get to the stage where MeGUI can, or has, opened the video and saved the script, you can open the script with the AVS Cutter under the Tools menu to add edits to it with a preview. You can specify multiple frame ranges (the parts you want to encode).
The AVS Cutter can also save a "cuts file" which can be loaded into the audio section in order to re-encode it the same way. Or there's an Audio Cutter under the Tools menu which uses the same cuts file to edit/split the original audio and then combine the remainder without re-encoding. I've not used it much myself but it works with the most common types of audio.

LoRd_MuldeR
12th August 2013, 23:35
I think FFmpeg can convert WTV or DVR-MS to some more useful format...
http://ffmpeg.zeranoe.com/builds/

ffmpeg.exe -i C:\Temp\Some.wtv -c:a copy -c:v copy -f dvd C:\Temp\Some.mpg


FWIW, there also is a built-in tool WTV or DVR-MS conversions:
C:\Windows\ehome\WTVConverter.exe

Amateur
14th August 2013, 03:31
I do know of the Windows 7 has a built in conversion wtv > dvr-ms when you right click on a wtv file. What I need to do from there is tricking me up though. I can get the video to load like normal and encode it but I can't figure out how to get the audio and encode it.

Thanks for the cuts suggestion. That is what I was looking for. I knew how to do that with audio by making a cuts file. I just didn't know it could be added directly to a script. I only knew of the trim function for that

turbojet
16th August 2013, 00:35
A few more options:

VideoRedo 4 (http://www.videoredo.com/en/index.htm) it's not free, but can input wtv, easily cut a/v and output to a more compatible container. Easiest, fastest way I've found.
RemuxTool (http://experts.windows.com/frms/windows_entertainment_and_connected_home/f/49/t/95712.aspx) java gui muxes wtv to mpg with great resiliency, it has worked when videoredo, mencoder and ffmpeg failed.

Unfortunately wtv isn't very well supported for such a popular container. dvr-ms isn't either.

Amateur
16th August 2013, 00:49
So there is no simple way to get an audio clip from either format without one of these other programs?

Does RemuxTool do a lossless conversion or will it hurt the quality at all?

Are these the popular options that people use to encode HD TV recordings?

turbojet
16th August 2013, 01:31
RemuxTool is lossless.

ffmpeg is the only way I know to demux audio from wtv.

lansing
16th August 2013, 06:30
what's the codec used inside the wtv file? If it's mpeg2, then this one should work:
http://forum.videohelp.com/threads/325139-WTV-remux-to-MPG


It uses graphedit/GraphStudio/GraphStudioNext to dump the content into a mpg, after that you can load it into dgindex and do the regular avisynth routine.

Amateur
17th August 2013, 20:43
I'm not sure what codec is inside of the wtv. Is there a standard that is used?

RemuxTool seems to have worked although the script runs super slow. My script is

LoadPlugin("G:\MeGui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("K:\Phineas\Phineas and Ferb_DISNHD_2013_08_04_05_29_00.d2v", cpu=4, info=3)
LoadPlugin("G:\MeGui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, threads=0)
removegrain(mode=1)

dfttest(sigma=0.25)

ediaa()

__film = last
__t0 = __film.trim(8685, 43141)
__t1 = __film.trim(54539, 95842)
__t2 = __film.trim(109038, 110896)
__t0 ++ __t1 ++ __t2

and it is currently running at 0.70 fps with a Phenom II 965 processor. That seems unusually slow but then again I don't have much experience encoding anything above 480p. Maybe 720 makes it go that much slower.

I used to know a script that would check for repeating frames and remove them but I can't think of what that is again. Maybe I can cut my time down significantly by doing this.