Advertisement
sonkai

Untitled

Feb 17th, 2013
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #================================================================================
  2. #
  3. # メイン
  4. #
  5. #================================================================================
  6.  
  7. #------------------------------------------------------------------------------------------------
  8. # インポート
  9. #------------------------------------------------------------------------------------------------
  10. PluginPath = "C:\Program Files (x86)\AviSynth 2.5\plugins\"
  11. Import(PluginPath + "txt60mc.avs")
  12.  
  13. #------------------------------------------------------------------------------------------------
  14. # TSソースの設定
  15. #------------------------------------------------------------------------------------------------
  16. TSFilePath="Y:\hoge\hogehoge.m2ts"
  17.  
  18. #------------------------------------------------------------------------------------------------
  19. # TSソース読み込み
  20. #------------------------------------------------------------------------------------------------
  21. LWLibavVideoSource(TSFilePath, cache=true, stream_index=-1, threads=0).AssumeFPS(30000,1001)
  22. AudioDub(last, LWLibavAudioSource(TSFilePath, stream_index=1, av_sync=true))
  23. #Histogram(mode="classic")
  24. AssumeTFF()
  25.  
  26. #------------------------------------------------------------------------------------------------
  27. # CMカット
  28. #------------------------------------------------------------------------------------------------
  29. Trim(2, 5784) ++ Trim(7584, 24455) ++ Trim(26255, 46004) ++ Trim(47804, 48551)
  30.  
  31. #------------------------------------------------------------------------------------------------
  32. # インタレ解除
  33. #------------------------------------------------------------------------------------------------
  34. Audio=KillVideo() # 音声取り出し
  35.  
  36. c001=Trim(00000,05799).Deint24()
  37. c002=Trim(05800,06689).txt60mcHybrid(4, txt_area=200, show=false, draft=false)
  38. c003=Trim(06690,43152).Deint24()
  39.  
  40. c001++c002++c003
  41.  
  42. AudioDub(last, Audio) # 音声再結合
  43.  
  44. return last
  45.  
  46. #================================================================================
  47. #
  48. # 関数定義
  49. #
  50. #================================================================================
  51.  
  52. #------------------------------------------------------------------------------------------------
  53. # Deint24
  54. # 24fps区間をTDeint.TDecimateを用いてインタレ解除する
  55. #------------------------------------------------------------------------------------------------
  56. Function Deint24(clip c)
  57. {
  58.     return c.TDeint(mode=0, order=1, type=3, tryweave=true).TDecimate(mode=1, hybrid=0)
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement