Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month

GeoMap

Comparison of VP8 and H.264 baseline

View previous topic View next topic Go down

Comparison of VP8 and H.264 baseline

Post  halala on Mon Dec 30, 2013 12:59 pm

There is an urgly debate on the mandatory video codec of WebRTC recently. Many posts on the web is biased towards H.264. However, base on our test, the VP8 realtime mode is slightly better in visual quality, while twice as faster than H.264 baseline mode with a constant bitrate (100kb/s, CIF, ). For a video phone application, VP8 this is good enough.


The comparison bash code for PSNR test  is as follows:



Code:

for i in ./database/*.y4m
   do      
   export filename=`basename  $i  .y4m`
    echo $filename
    
        cp -f $i orig.y4m
    ./ffmpeg.exe  -y  -f yuv4mpegpipe  -i orig.y4m -c:v h264  -profile baseline -b:v 100k  -quality realtime out.mp4
        ./ffmpeg.exe -y  -f yuv4mpegpipe  -i orig.y4m  -c:v libvpx -b:v 100k  -quality realtime out.webm
        ./ffmpeg.exe -y -f yuv4mpegpipe -i orig.y4m  -f rawvideo -vcodec rawvideo  orig.yuv
    ./ffmpeg.exe -y -i out.mp4 -f rawvideo -vcodec rawvideo h264.yuv
    ./ffmpeg.exe -y -i out.webm -f rawvideo -vcodec rawvideo vp8.yuv
    ./yuvdiff -scif orig.yuv vp8.yuv -r"$filename"_vp8.txt
    ./yuvdiff -scif orig.yuv h264.yuv -r"$filename"_264.txt
    done

The comparison bash code for time test is as follows:
Code:
       for i in ./database/*.y4m
   do      
   export filename=`basename  $i  .y4m`
    echo $filename
    
        cp -f $i orig.y4m
    ./ffmpeg.exe  -y  -f yuv4mpegpipe  -i orig.y4m -c:v h264  -profile baseline -b:v 100k  -quality realtime out.mp4 -benchmark
       ./ffmpeg.exe -y  -f yuv4mpegpipe  -i orig.y4m  -c:v libvpx -b:v 100k  -quality realtime out.webm -benchmark
    done
avatar
halala

帖子数 : 99
金币(Coin) : 2218
注册日期 : 2012-08-17

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum