|
SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Transcoding Confusion
Hi,
Does Sage offer any way to tune/alter the transcoding system? I've tried converting a few videos from MPEG-2 into AVI High Quality. It works, but the "high quality" part of the experience seems to be missing compared to (for example) the digital downloads that are...around. In those videos, a 400mb file is one hour of high definition video with crystal clear video and audio. With my transcoded shows, made from my recordings, I get less than stellar results. In particular, in high motion scenes I notice blocky-ness and tearing. I don't expect miracles (since I'm not using a high definition source) but I -would- like to see the quality be at least equal to the source material. Any thoughts? Ideally, what I'd like to do is transcode my shows that my fiance records but seems to never watch into something smaller and yet retain the same image quality. In MPEG-2, a low bit-rate is usually the cause of blocky-ness. In AVI, I have no idea. |
#2
|
||||
|
||||
Quote:
The options used for encoding are specified in the properties file (server I believe). I think you should be able to specify any ffmpeg options in there to tweak it. Quote:
Second, these are often/usually from pristine sources, and quite often run through avisynth scripts to get the best possible results. Quote:
Quote:
|
#3
|
||||
|
||||
Does the Sage transcoder do any resizing? The less pixels an encoded file has, the less artifacting/blocking (assuming the same compression setting/bitrate).
I resize HD files down to 1024x576 (actualy I might try 960x540), and encode to 2.5mbps divx. No its not hi-def, but still significantly better than standard def. Those files are around 800 MB's for a 42 minute show, AC3 sound. Theres no way your going to get a really great pic quality at 400MB/hour, not even with MP4/AVC. Last edited by lobosrul; 10-25-2006 at 03:36 PM. |
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
Quote:
Quote:
Quote:
|
#6
|
||||
|
||||
As far as standard def sources go, I use 1.5mpbs, no resizing (unless its letterboxed). At the distance I view my TV from, I cant even tell a difference from the source and encoded file.
But thats still a digital source, I do almost nothing in the way of analog. |
#7
|
|||
|
|||
Quote:
Quote:
Source station receives origin signal - likely compressed using mpeg2 high bit rate Your tuner card then takes the analog copy of the source signal and then re-encodes it at a lower bit rate Then you are taking a lower bit rate mpeg2 source and converting it again. The XVID 450mb files based off of HD are sourced at 1080i or 720p then downconverted to 480p or less. Since the origin is a high bit rate mpeg2 file the impact of re-encoding to a lower resolution is much less noticable. If you want/need higher quality encodes you will either need to adjust the encoding settings to a higher bit rate (compromising file size) or switch out from Sage altogether and utilize a higher quality encoder that supports multipass encoding. Another option (for video break up during high motion scenes) is to increase the motion sensitivity (this too will increase file size)./ Quote:
|
#8
|
||||
|
||||
BTW, 2-pass encoding is in the next build
__________________
Jeffrey Kardatzke Founder of SageTV |
#9
|
|||
|
|||
Excellent to hear! I have a feeling that using that, and/or increasing the bitrate will solve my quality issues.
|
#10
|
|||
|
|||
SWEEEET!!!!!
__________________
Hdr-2250 and PVR-1600| AMD QuadCore | 4GB | 2 terrabytes | MediaMVP | Nvidia 8800 | SageTV service | Plex Server (PlexPass, Windows) | Plex Clients (Roku 2XS, IOS, Windows Home Theater |
#11
|
||||
|
||||
Quote:
Will there be more encoding options included by default as well?
__________________
-Eric Client: STX-HD100 Extender, Connected to 47" Visio 1080p LCD via HDMI, Running SageMC Client: Media MVP Running SageMC Server: Antec SLK3800B, AMD Athlon 64 X2 4200+, Biostar TForce 550, GeForce 7300LE, 1GB DDR2 800, 2 x HVR-1600, PVR-150MCE, 1.4TB HD Space, XP Pro, Java6, Latest SageTV Version |
#12
|
|||
|
|||
Just an experience I recently had...
When I first went to V6 I couldn't transcode any HD material to MPEG-4. I tried it a couple of days ago and it worked(finished) except when I played the file back the audio was playing fine, but the video was playing in FF mode, finishing in just a couple of minutes. The audio was still in the first few minutes. When I tapped rewind the video would play normally for a few seconds then resume to the FF mode. The audio never was in sync. I will try it several more times to see if I can reproduce it. |
#13
|
|||
|
|||
Quote:
|
#14
|
|||
|
|||
Quote:
The reason why I say this is that 95% of what Sage records for me is material that had been originally shot in 24 fps progressive, and then later has been hard-telecined to 30 fps interlaced for television. This includes all the movies, and all kinds of shows like The Simpsons, Futurama, South Park, you name it. The transcoding kills the interlacing, and this makes any telecined material look bad, no matter if we deinterlace while transcoding or not: If we do any kind of transcoding without an inverse-telecine filter, we end up with stuttering videos which have dropped/duplicate frames. And that's annoying to watch, no matter how high bitrate you chose for the transcoding. I see 2 ways of fixing this problem: 1. Integrate Mencoder in Sage for the transcodings instead of ffmpeg. (or along with ffmpeg if you want). Mencoder is more versatile than ffmpeg, has a variety of good filters, and it is part of the Mplayer package which Sage is already using anyway (SageTVPlayer.exe=Mplayer=www.mplayerhq.hu). So go for the real thing! OR (/and) 2. Give us an option to enter our own command line for the transcoding. (In this case Sage should only append the file name of the selected file to our command line) This will give us a way to use any encoder of our choice, and it will streamline things a little bit for those of us who are now going through the trouble of writing scripts, changing time stamps, and all kinds of unnatural tricks. And also, it will be nice if the transcoded shows are marked with some icon in the lists, so we can more easily see what's already been transcoded and what's not. Thanks! -=patilan=- Last edited by Patilan; 10-27-2006 at 11:44 PM. |
#15
|
|||
|
|||
Quote:
Quote:
-=patilan=- Last edited by Patilan; 10-27-2006 at 11:27 PM. |
#16
|
|||
|
|||
Hey, thats some nifty stuff you know. Can you point me to sites that explain the specifics of video? I've always been mystified by inverse telecine and other similair terms. I see all kinds of things in video that bug the crap out of me and can't determine what is causing them. The every 5th frame thing you descirbe is one on them. I've identifiend tearing and feathering but that is just about as advanced as most sites get. I've been trying to track down info like that on video and how different video cards with purevideo and Avivo handle the video streams and I can't find any info on it that really explains it well.
thx. |
#17
|
||||
|
||||
Quote:
Could you provide us with a sample command you would use to encode a show (and also a short explanation of what the parameters you're using are)? Thanks.
__________________
-Eric Client: STX-HD100 Extender, Connected to 47" Visio 1080p LCD via HDMI, Running SageMC Client: Media MVP Running SageMC Server: Antec SLK3800B, AMD Athlon 64 X2 4200+, Biostar TForce 550, GeForce 7300LE, 1GB DDR2 800, 2 x HVR-1600, PVR-150MCE, 1.4TB HD Space, XP Pro, Java6, Latest SageTV Version |
#18
|
|||
|
|||
Quote:
Quote:
At first I was very excited with the new mpeg4 transcoding in SageTV beta. I spent endless hours tweaking the ffmpeg options in the Sage.properties file. Frustrated by the results, I decided to track down the the source of ffmpeg (AKA SageTVTranscoder.exe) and Mplayer (AKA SageTVPlayer.exe) so I can learn about the options. I found: www.mplayerhq.hu There I found some must-read documentation that opened my eyes about many things: http://www.mplayerhq.hu/design7/info.html#docs Me being new at video encoding and stuff, I decided to look for some GUI frontends to get me started: http://www.mplayerhq.hu/design7/projects.html I played with quite a few of them, but most were either too buggy or too limiting for my taste. The one I ended up using was: http://mulder.dummwiedeutsch.de/home...ml#mencoder264 That's still not the greatest software I've ever seen, but it was very useful to tweak a few options, start encoding, and watch the log window to see what the Command line looked like. Very educational! Once I got some idea about the command line options, I trashed that GUI, and started writing my own scripts. The two documents I used the most are: http://www.mplayerhq.hu/DOCS/HTML/en...ing-guide.html http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html I tried to write a .bat file that passes command line to mencoder.exe (the one I got from the mencoder264 package), but that gets you too much white hairs, and I don't recommend it even to my enemies. Then it dawned on me that Windoze has vbscript built-in! Just save the text of a script to a file with name ending on ".vbs" and Windows will execute it when you double-click on it, or when you drop files on top of it, just like a ".bat" file. I even downloaded a nice little shareware vbscript editor: http://www.vbsedit.com but you don't really need that. Below is a simplified version of the script I am currently using. Just copy/paste it in a text file, and save it as ".vbs" file in the same directory where you have the mencoder.exe. Then you drag an alias of this .vbs file to your desktop, and you can drag-drop SageTV recordings on top of the alias. The resulting output will be in "x:\Transcoded\", where X will be the same drive letter as the original: This way later, after fixing the time stamp, we'll just move the new file to the SageTV recordings directory instead of copying it. Code:
'############################################################################################### 'Limited-purpose version, still in development. Use at your own risk. 'You can get the latest Windows build of MEncoder from: http://ffdshow.faireal.net/mirror/mplayer/ 'Remember to save this ".vbs" script in the same directory where you have MEncoder.exe Option Explicit Dim progPath, outPath, InFile, OutFile, LogFile, strEncoder, strDuration, strFilter, strOptions, strCmd1, strCmd2, cmd, n Const BitRate = 800 ' <-- You can play with this. Const fTelecined = " -vf crop=704:464:8:8,pullup,softskip,hqdn3d " Const fProgressive = " -vf hqdn3d=2:1:2 " 'strDuration = " -frames 120 " progPath = Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName)) set cmd = WScript.CreateObject("WScript.Shell") For Each InFile In Wscript.Arguments Select Case Lcase(Right(InFile, 4)) Case ".vob" strFilter = fProgressive : Transcode '<-- For progressive dvd movies Case ".mpg" strFilter = fTelecined : Transcode '<-- For hard-telecined SageTV recordings Case Else MsgBox "Ignoring file: " & vbCr & InFile End Select Next Sub Transcode ' InFile outPath = Left(InFile,2) & "\Transcoded\" n = InstrRev(InFile, "\") OutFile = outPath & Mid(InFile, n+1, Len(InFile)-n-4) & ".avi" LogFile = OutFile & ".stats" InFile = Chr(34) & InFile & Chr(34) : OutFile = Chr(34) & OutFile & Chr(34) : LogFile = Chr(34) & LogFile & Chr(34) : strEncoder = Chr(34) & progPath & "MEncoder.exe" & Chr(34) strOptions = " -passlogfile " & LogFile & " " & strDuration & " " & strFilter & " -ofps 24000/1001 -ovc x264 " _ & " -x264encopts frameref=4:bframes=2:trellis=1:subq=6:8x8dct:keyint=120:weight_b:b_adapt:bime:brdo:nodct_decimate:nofast_pskip:bitrate=" & BitRate cmd.Run "CMD /c MD " & outPath,0,True strCmd1 = strEncoder & strOptions & ":pass=1:turbo=1 -o NUL -nosound " & " " & InFile strCmd2 = strEncoder & " -forceidx " & strOptions & ":pass=2 -o " & OutFile & " -oac copy " & " " & InFile cmd.Run "cmd /c " & Chr(34) & strCmd1 & " && " & strCmd2 & " && DEL " & LogFile & Chr(34),,True 'MsgBox "The transcoded video was saved as:" & vbCr & OutFile End Sub '############################################################################################### Now that we have the transcoded file, all we have to do is fix the time stamp, and switch it with the original in the SageTV recordings directory. I'll add a few lines to the above script to do that. In the mean time, follow this guide by nielm: http://forums.sagetv.com/forums/showthread.php?t=10646 That's all I've got so far. I hope this helps to get you started. Now I only pray that someone from Sage will notice my earlier post, and either integrate mencoder in Sage instead of [or along with] ffmpeg. Or at least give us a command line option in the Sage.properties file. Yours, -=patilan=- P.S. Note that I live in the USA, and the video problems that I am talking about may not apply to people in other countries. I don't know. Last edited by Patilan; 10-30-2006 at 03:23 PM. |
#19
|
||||
|
||||
Patilan, thank you very much for your reply!
__________________
-Eric Client: STX-HD100 Extender, Connected to 47" Visio 1080p LCD via HDMI, Running SageMC Client: Media MVP Running SageMC Server: Antec SLK3800B, AMD Athlon 64 X2 4200+, Biostar TForce 550, GeForce 7300LE, 1GB DDR2 800, 2 x HVR-1600, PVR-150MCE, 1.4TB HD Space, XP Pro, Java6, Latest SageTV Version |
#20
|
|||
|
|||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|