I got a file (see attachment), which is mkv(RealVideo 4) and my goal is to filter the file with Avisynth, decode the Avisynth script with mencoder and reencode it using x264.
The Avisynth script is use is:
Preview works fine with mplayer and VirtualDub.Code:SetMemoryMax(768) SetMTMode(3,0) # change MT mode LoadCPlugin("G:\Hybrid\avisynthPlugins\ffms2.dll") # loading source FFVideoSource("C:\Users\Selur\Desktop\REALVI~1.MKV",cachefile="H:\Output\RealVideoTest.ffindex",fpsnum=30000,fpsden=1001) # infos #Subtitle("Input resolution:"+String(Width)+"x"+String(Height)+"\nPixel type:"+String(PixelType),align=9,lsp=0) return last
Reencoding with VirtualDub or directly with mencoder works fine too.
So far so good now comes the strange part I don't understand.
When using:
the .264 output is broken (seems like some color space or decoding problem; see attached broken.7z)Code:mencoder -really-quiet -of rawvideo -o - -ovc raw -vf scale,format=i420 -forcedsubsonly -nosub -nosound -mc 0 "H:\Output\RealVideoTest.avs" | x264 --preset ultrafast --tune fastdecode --crf 18 --non-deterministic --fps 30000/1001 --input-res 720x540 --output "H:\Output\RealVideo 4 sample.264" -
The strange thing is, that using files which does not contain RealVideo4 the output is fine.
Can someone explain what is going wrong? Did I make a (stupid) mistake? Is something broken? If it's a software bug which software is the problem?
I already tested switching mencoder, x264,FFVideoSource, but nothing did help.
Same problem occurs when I use avs2yuv instead of mencoder:
Cu SelurCode:avs2yuv.exe -raw h:\Output\RealVideoTest.avs -o - | x264 --preset ultrafast --tune fastdecode --crf 18 --non-deterministic --fps 30000/1001 --input-res 720x540 --output "H:\Output\RealVideo 4 sample.264" -
+ Reply to Thread
Results 1 to 13 of 13
-
Last edited by Selur; 18th Feb 2014 at 04:50.
-
Okay, adding "BicubicResize(720,540)" directly after the input source seems to fix the problem
-
Did I make a (stupid) mistake?
Did you dare compare original source rmvb and h264 encode? -
Dependency on bil-av also reflects all the bugs of bil-av too!, And these small small bugs becomes amplified-monsters when carry forwarded.
It was a last Christmas, when I visited one of my buddy's place and he asked me to fix player playing some videos up-side down, I simply replied that he needed a carpenter who can mount his chair up-side down from the ceiling to watch properly.
Even if you l@@k closely to my above suggested solution, it is buggy too bcoz I forget seat-belt, and sponge cushioned floor. Since last half-hour I am trying to cut an apple, just figured out that I am using the wrong side of knife. Can not expect much when likings become standards.
As the matter is so deep, you need some fresh air... some fresh start...
Did you jog (run behind) today? I am going with my sweet-n-sour. Join me.
Last edited by enim; 18th Feb 2014 at 06:21.
-
Read Important info needed to fix&reproduce bugs and provide some infos which might allow to reproduce the problem. (Can't fix stuff I can't reproduce.
)
also best post in the Hybrid support thread
-> https://forum.videohelp.com/threads/345169-Hybrid(Windows-Linux-Mac)-Input-x264-x265-Xvid-VP8-VP9
or, since you already registered, in the official Hybrid forum
(that way I get an email notification)
---
btw. fixed the RealVideo resize stuff by making sure the content if resized to the resolution indicated by MediaInfo.
Problem in general is, that it looks like the RealVideo stream were not flagged properly.Last edited by Selur; 18th Feb 2014 at 23:31.
-
I think,therefore i am a hamster.
-
@kuppo-plutes: it is rude to spam other peoples threads with to the thread unrelated stuff.
-
@kuppo-plutes
Selamat,
Silakan anda dengan pertanyaan di masalah adalah hibrida
https://forum.videohelp.com/threads/345169-Hybrid(Windows-Linux-Mac)-Input-x264-x265-Xvid-VP8-VP9
-OR-
http://forum.selur.de/
Selur penulis yang pasti akan mengambil peduli. -
@johns0
Would have been easier just to turn the player upside down.
Similar Threads
-
mencoder + avisynth + AviSource
By Selur in forum Newbie / General discussionsReplies: 0Last Post: 13th Oct 2012, 14:58 -
mencoder x264 vs libavcodec for h.264 encoding
By chconnor in forum Video ConversionReplies: 0Last Post: 2nd Mar 2011, 15:31 -
mencoder x264 issues
By tommiy in forum Video ConversionReplies: 3Last Post: 19th Sep 2010, 02:14 -
X264.exe and AviSynth?
By Eva-Unit01 in forum Video ConversionReplies: 5Last Post: 29th Jan 2010, 09:17 -
failed dvd deinterlacing with mencoder x264 encoding. help
By link626 in forum DVD RippingReplies: 9Last Post: 3rd Jan 2010, 14:59