Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
23rd February 2011, 12:18 | #1 | Link |
noob
Join Date: Feb 2011
Posts: 15
|
AviSynth usage with Theora and Dirac
Hi,
I'm a completely noob in the video world, also I would like to apologize if I've posted this post in wrong section I'd love to make a codec comparison (uncompressed/high bitrate compressed files with various codecs). First I chose the 'MSU Video Quality Measurement Tool' (url), which is kinda popular over here at this forums. The problem I've discovered is that MSU tool works only with AviSynth (.avs AviSynth script files). As you may know you can load a wide range of video files with the AviSynth (from MPEG-2 to MPEG-4 AVC or VC-1). However I was not able to load videos processed with some more 'exotic' codecs - for instance Theora or Dirac. So I would like to ask if anybody knows an AviSynth plugin or some other way how could I load Theora or Dirac compressed files via the AviSynth. In the case it's really impossible at the moment I would also love to know if there are some other possibilities how to do this typical (metrics: PSNR, SSIM, etc.) video comparison without utilizating the 'MSU Video Quality Measurement Tool'. I would really appreciate any advice about a freeware/open source utility which I could use to compare the various video files with the typical metrics. Thank you in advance! Any help would be really appreciated, my friends! |
24th February 2011, 12:44 | #2 | Link |
Registered User
Join Date: May 2006
Posts: 957
|
ffmpegsource, it should be able to decode theora and dirac (this one might require one of the extra libs for ffmpeg).
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
24th February 2011, 13:00 | #3 | Link | |
noob
Join Date: Feb 2011
Posts: 15
|
Quote:
Would you mind to show how to load the Dirac - which lib and how to implement the lib to be compatible with ffmpeg? I guess it's some schrodinger.lib but don't know the details I've already successfully loaded a Theora video file in ogg container via: Code:
FFmpegSource2("path/file.ogv") |
|
24th February 2011, 17:46 | #4 | Link |
Registered User
Join Date: May 2006
Posts: 957
|
If your copy won't decode the dirac video then you would need to ask someone to compile the appropriate library, then ffmpeg with that library then ffms. Or just do that yourself.
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
24th February 2011, 23:35 | #13 | Link |
noob
Join Date: Feb 2011
Posts: 15
|
Just a short classic video file: http://www.mediafire.com/?ubhd9r0sv136c1g
Encoded by: ffmpeg-r26400-swscale-r32676-mingw32-static Code:
ffmpeg -t 30 -i foreman_cif.avi -acodec copy -vcodec libschroedinger -b 2000k out_dirac.mp4 |
15th November 2011, 07:26 | #15 | Link |
Registered User
Join Date: Feb 2009
Posts: 16
|
Theora SSIM-test with Avisynth
Would you mind if i ask my question here?
So, how could i compare with Avisynth's SSIM-plugin clip encoded with Theora and original clip, despite all Theora's dropped frames? Deails. I tried to encode with ffmpeg2theora my clip (progressive PAL, 15000 frames): Code:
$ wine avs2yuv ed-pal.avs - | \ ffmpeg2theora -o ed-pal_theo_b10.ogv \ -v 10 --optimize --speedlevel 0 \ --aspect 16:9 -F 25 -S 0 -K 1250 \ -f yuv4mpegpipe --inputfps 25 - Code:
original = AVISource("original.avi", audio=false, pixel_type="YV12", fourCC="FFVH") theo = FFVideoSource("ed-pal_theo_b10.ogv", track=1, cache=true, cachefile="ed-pal_theo_b10.ffindex", colorspace="YV12") return SSIM(original,\ theo,\ "ed-pal_theo_b10.csv",\ "ed-pal_theo_b10.ssim", lumimask=true) First thing i tried was to remux video in matroska (V_THEORA) and tried again: Code:
$ mkvmerge -o "ed-pal_theo_b10.mkv" --track-name 1:videostream --display-dimensions 1:1024x576 \ -d 1 -A -S -T --no-global-tags --no-chapters ed-pal_theo_b10.ogv --track-order 0:1 Code:
original = AVISource("original.avi", audio=false, pixel_type="YV12", fourCC="FFVH") theo = FFVideoSource("ed-pal_theo_b10.mkv", track=0, cache=true, cachefile="ed-pal_theo_b10.ffindex", colorspace="YV12") return SSIM(original,\ theo,\ "ed-pal_theo_b10.csv",\ "ed-pal_theo_b10.ssim", lumimask=true) Code:
Avisynth error: SSIM: These clips don't have same length Then i tried to encode with mencoder: Code:
$ mencoder -noskip -ovc lavc -lavcopts vcodec=ffvhuff:context=1 -o ed-pal_theo_b10.avi \ ed-pal_theo_b10.ogv Ok. Some frames lost. It's evident by playing ogv with mplayer. I've just solved the problem with ffmpeg: Code:
$ ffmpeg -i ed-pal_theo_b10.ogv -f rawvideo pipe:1 | \ mencoder -noskip -ovc lavc -lavcopts vcodec=ffvhuff:context=1 \ -demuxer rawvideo -rawvideo fps=25:pal:i420 \ -o ed-pal_theo_b10.avi - Also, this example works to: Code:
$ mkvmerge -o "ed-pal_theo_b10.mkv" --track-name 1:videostream --display-dimensions 1:1024x576 \ -d 1 -A -S -T --no-global-tags --no-chapters ed-pal_theo_b10.ogv --track-order 0:1 Code:
FFVideoSource("ed-pal_theo_b10.mkv", track=0, cache=true, cachefile="ed-pal_theo_b10.ffindex", colorspace="YV12") Code:
FFVideoSource("ed-pal_theo_b10.mkv", track=0, cache=true, cachefile="ed-pal_theo_b10.ffindex", colorspace="YV12").Trim(1, 15000) Code:
original = AVISource("original.avi", audio=false, pixel_type="YV12", fourCC="FFVH") theo = FFVideoSource("ed-pal_theo_b10.mkv", track=0, cache=true, cachefile="ed-pal_theo_b10.ffindex", colorspace="YV12") return SSIM(original.Trim(0,-1)++original,\ theo,\ "ed-pal_theo_b10.csv",\ "ed-pal_theo_b10.ssim", lumimask=1) Last edited by ar; 15th November 2011 at 20:22. Reason: problem solved |
Tags |
avisynth theora dirac cmp |
|
|