stax76
4th March 2015, 20:27
Can someone explain why the error happens, the source is Y4M.
ConvertToYV12: invalid "matrix" parameter (RGB data only)
(D:\Video\Lossless-Uncompressed streams-sources\1080p\crowd_run_1080p50_Source.avs, line 4)
FFVideoSource("%source_file%", cachefile = "%working_dir%%source_name%.ffindex")
AssumeFPS(%original_framerate%)
ConvertToYV12(matrix="Rec709")
This is my logic to for adding ConvertToYV12.
If Not sourceFilter.Script.Contains("ConvertToYV12") Then
Dim sourceColor = MediaInfo.GetVideo(originalSourcePath, "ChromaSubsampling")
If sourceColor <> "4:2:0" Then
Dim sourceHeight = MediaInfo.GetVideo(originalSourcePath, "Height").ToInt
If sourceHeight > 576 Then
p.AvsDoc.GetFilter("Source").Script += CrLf + "ConvertToYV12(matrix=""Rec709"")"
Else
p.AvsDoc.GetFilter("Source").Script += CrLf + "ConvertToYV12(matrix=""Rec601"")"
End If
End If
End If
ConvertToYV12: invalid "matrix" parameter (RGB data only)
(D:\Video\Lossless-Uncompressed streams-sources\1080p\crowd_run_1080p50_Source.avs, line 4)
FFVideoSource("%source_file%", cachefile = "%working_dir%%source_name%.ffindex")
AssumeFPS(%original_framerate%)
ConvertToYV12(matrix="Rec709")
This is my logic to for adding ConvertToYV12.
If Not sourceFilter.Script.Contains("ConvertToYV12") Then
Dim sourceColor = MediaInfo.GetVideo(originalSourcePath, "ChromaSubsampling")
If sourceColor <> "4:2:0" Then
Dim sourceHeight = MediaInfo.GetVideo(originalSourcePath, "Height").ToInt
If sourceHeight > 576 Then
p.AvsDoc.GetFilter("Source").Script += CrLf + "ConvertToYV12(matrix=""Rec709"")"
Else
p.AvsDoc.GetFilter("Source").Script += CrLf + "ConvertToYV12(matrix=""Rec601"")"
End If
End If
End If