MantheLok
9th September 2007, 22:21
Hi all,
I'm new to this forum - I have read a lot of useful and informative threads, so hopefully someone can point me in the right direction :) I have done a search, but could not find anything to help further.
I am a multimedia student, who will be working with video in the upcoming trimesters, so I thought I'd try to get ahead of the game in terms of compression. I am doing some practice encoding with WME, just for a feel of options etc., using a 47 second video sequence - 720x576 DV in an .avi.
Initially I was encoding using profiles and predefined sessions in the GUI, usually at mid bit rates (>600K). I eventually started using the command line, so I would have control over the encoding sessions. However, at a low bit rate encode (200K video + 96K audio) I noticed I was getting dropped frames in video.
I am encoding use 1-pass CBR. Here is the log:
cscript.exe wmcmd.vbs -input c:\vids\orig.avi -output c:\vids\converted\cliptest6.wmv -config constants.weu
constants.weu = -pixelformat YV12 -v_clip 24 48 24 48 -v_width 640 -v_height 480 -v_mode 0 -a_mode 0 -v_bitrate 200000 -a_setting 96_44_2
-----------------------------------------------------------------------------------------------------------
Microsoft (R) Windows Media Encoder Command Line Script Utility
Copyright (C) Microsoft Corporation. All rights reserved.
Encoded: 47.4s (99.4%) Elapsed: 00:05:16 Left: 00:00:02 [0.15x]
======== Encoding Completed ========
Audio :
Codec: Windows Media Audio 9.2
Expected bit rate: 96040 bps
Average bit rate: 96040 bps
Expected sample rate: 5383
Average sample rate: 5383
Dropped byte count: 0 bytes
Dropped sample rate: 0
Total bytes: 575340 bytes
Video :
Codec: Windows Media Video 9
Expected bit rate: 200000 bps
Average bit rate: 177396 bps
Expected fps: 25
Dropped frame count: 407
Total coded frames: 786
Average sample rate: 16.273
Dropped bytes: 0 bytes
Total bytes: 1058793 bytes
Overall:
Encoding time: 318 seconds
Average bit rate: 273436 bps
File size: 1683343 bytes
File duration: 47.878 seconds
I came across the -v_quality option, which to my understanding (and is documented as such) the shift between video smoothness (0 being smoothest) and image quality (100 being best quality). So I decided to test both these settings to see if it would affect the dropped frames (ignore the paths and filenames, bad organisation, but the same source was used):
-v_quality 0:
cscript.exe wmcmd.vbs -input c:\testvids\chrisd.avi -output c:\testvids\converted\cliptest4.wmv -config constants2.weu
constants2.weu = -pixelformat YV12 -v_clip 24 48 24 48 -v_width 640 -v_height 480 -v_mode 0 -a_mode 0 -v_bitrate 200000 -v_quality 0 -a_setting 96_44_2
-------------------------------------------------------------
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Microsoft (R) Windows Media Encoder Command Line Script Utility
Copyright (C) Microsoft Corporation. All rights reserved.
Encoded: 47.3s (99.1%) Elapsed: 00:04:53 Left: 00:00:03 [0.16x]
======== Encoding Completed ========
Audio :
Codec: Windows Media Audio 9.2
Expected bit rate: 96040 bps
Average bit rate: 96040 bps
Expected sample rate: 5383
Average sample rate: 5383
Dropped byte count: 0 bytes
Dropped sample rate: 0
Total bytes: 575340 bytes
Video :
Codec: Windows Media Video 9
Expected bit rate: 200000 bps
Average bit rate: 176387 bps
Expected fps: 25
Dropped frame count: 239
Total coded frames: 954
Average sample rate: 19.875
Dropped bytes: 0 bytes
Total bytes: 1052774 bytes
Overall:
Encoding time: 295 seconds
Average bit rate: 272427 bps
File size: 1678821 bytes
File duration: 47.878 seconds
The dropped frames figure was reduced with -v_quality 0, but even still, frames were being dropped?
When using -v_quality 100, the dropped frames number increased:
cscript.exe wmcmd.vbs -input c:\testvids\chrisd.avi -output c:\testvids\converted\cliptest5.wmv -config constants3.weu
constants3.weu = -pixelformat YV12 -v_clip 24 48 24 48 -v_width 640 -v_height 480 -v_mode 0 -a_mode 0 -v_bitrate 200000 -v_quality 100 -a_setting 96_44_2
--------------------------------------------------------------
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Microsoft (R) Windows Media Encoder Command Line Script Utility
Copyright (C) Microsoft Corporation. All rights reserved.
Encoded: 47.6s (99.8%) Elapsed: 00:04:48 Left: 00:00:00 [0.17x
======== Encoding Completed ========
Audio :
Codec: Windows Media Audio 9.2
Expected bit rate: 96040 bps
Average bit rate: 96040 bps
Expected sample rate: 5383
Average sample rate: 5383
Dropped byte count: 0 bytes
Dropped sample rate: 0
Total bytes: 575340 bytes
Video :
Codec: Windows Media Video 9
Expected bit rate: 200000 bps
Average bit rate: 184114 bps
Expected fps: 25
Dropped frame count: 561
Total coded frames: 632
Average sample rate: 12.971
Dropped bytes: 0 bytes
Total bytes: 1098831 bytes
Overall:
Encoding time: 289 seconds
Average bit rate: 280154 bps
File size: 1719519 bytes
File duration: 47.878 seconds
However, I have read the WMCmd.vbs Thread (http://forum.doom9.org/showthread.php?t=123812&highlight=dropped+frames) and -v_quality did not seem to have any effect on dropped frames on other posters encoding logs.
Sorry if this is a rookie error, but I am a bit confused at why the frames have been dropped especially when it is not a live encoding session? I would have thought offline encoding would not drop frames? Or does WMV9/VC-1 deliberately drop frames as part of the encoding algorithm?
Have I missed out any information? I am using an Athlon XP 2400+/1GB RAM with Windows SP2.
Any help much appreciated :)
I'm new to this forum - I have read a lot of useful and informative threads, so hopefully someone can point me in the right direction :) I have done a search, but could not find anything to help further.
I am a multimedia student, who will be working with video in the upcoming trimesters, so I thought I'd try to get ahead of the game in terms of compression. I am doing some practice encoding with WME, just for a feel of options etc., using a 47 second video sequence - 720x576 DV in an .avi.
Initially I was encoding using profiles and predefined sessions in the GUI, usually at mid bit rates (>600K). I eventually started using the command line, so I would have control over the encoding sessions. However, at a low bit rate encode (200K video + 96K audio) I noticed I was getting dropped frames in video.
I am encoding use 1-pass CBR. Here is the log:
cscript.exe wmcmd.vbs -input c:\vids\orig.avi -output c:\vids\converted\cliptest6.wmv -config constants.weu
constants.weu = -pixelformat YV12 -v_clip 24 48 24 48 -v_width 640 -v_height 480 -v_mode 0 -a_mode 0 -v_bitrate 200000 -a_setting 96_44_2
-----------------------------------------------------------------------------------------------------------
Microsoft (R) Windows Media Encoder Command Line Script Utility
Copyright (C) Microsoft Corporation. All rights reserved.
Encoded: 47.4s (99.4%) Elapsed: 00:05:16 Left: 00:00:02 [0.15x]
======== Encoding Completed ========
Audio :
Codec: Windows Media Audio 9.2
Expected bit rate: 96040 bps
Average bit rate: 96040 bps
Expected sample rate: 5383
Average sample rate: 5383
Dropped byte count: 0 bytes
Dropped sample rate: 0
Total bytes: 575340 bytes
Video :
Codec: Windows Media Video 9
Expected bit rate: 200000 bps
Average bit rate: 177396 bps
Expected fps: 25
Dropped frame count: 407
Total coded frames: 786
Average sample rate: 16.273
Dropped bytes: 0 bytes
Total bytes: 1058793 bytes
Overall:
Encoding time: 318 seconds
Average bit rate: 273436 bps
File size: 1683343 bytes
File duration: 47.878 seconds
I came across the -v_quality option, which to my understanding (and is documented as such) the shift between video smoothness (0 being smoothest) and image quality (100 being best quality). So I decided to test both these settings to see if it would affect the dropped frames (ignore the paths and filenames, bad organisation, but the same source was used):
-v_quality 0:
cscript.exe wmcmd.vbs -input c:\testvids\chrisd.avi -output c:\testvids\converted\cliptest4.wmv -config constants2.weu
constants2.weu = -pixelformat YV12 -v_clip 24 48 24 48 -v_width 640 -v_height 480 -v_mode 0 -a_mode 0 -v_bitrate 200000 -v_quality 0 -a_setting 96_44_2
-------------------------------------------------------------
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Microsoft (R) Windows Media Encoder Command Line Script Utility
Copyright (C) Microsoft Corporation. All rights reserved.
Encoded: 47.3s (99.1%) Elapsed: 00:04:53 Left: 00:00:03 [0.16x]
======== Encoding Completed ========
Audio :
Codec: Windows Media Audio 9.2
Expected bit rate: 96040 bps
Average bit rate: 96040 bps
Expected sample rate: 5383
Average sample rate: 5383
Dropped byte count: 0 bytes
Dropped sample rate: 0
Total bytes: 575340 bytes
Video :
Codec: Windows Media Video 9
Expected bit rate: 200000 bps
Average bit rate: 176387 bps
Expected fps: 25
Dropped frame count: 239
Total coded frames: 954
Average sample rate: 19.875
Dropped bytes: 0 bytes
Total bytes: 1052774 bytes
Overall:
Encoding time: 295 seconds
Average bit rate: 272427 bps
File size: 1678821 bytes
File duration: 47.878 seconds
The dropped frames figure was reduced with -v_quality 0, but even still, frames were being dropped?
When using -v_quality 100, the dropped frames number increased:
cscript.exe wmcmd.vbs -input c:\testvids\chrisd.avi -output c:\testvids\converted\cliptest5.wmv -config constants3.weu
constants3.weu = -pixelformat YV12 -v_clip 24 48 24 48 -v_width 640 -v_height 480 -v_mode 0 -a_mode 0 -v_bitrate 200000 -v_quality 100 -a_setting 96_44_2
--------------------------------------------------------------
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Microsoft (R) Windows Media Encoder Command Line Script Utility
Copyright (C) Microsoft Corporation. All rights reserved.
Encoded: 47.6s (99.8%) Elapsed: 00:04:48 Left: 00:00:00 [0.17x
======== Encoding Completed ========
Audio :
Codec: Windows Media Audio 9.2
Expected bit rate: 96040 bps
Average bit rate: 96040 bps
Expected sample rate: 5383
Average sample rate: 5383
Dropped byte count: 0 bytes
Dropped sample rate: 0
Total bytes: 575340 bytes
Video :
Codec: Windows Media Video 9
Expected bit rate: 200000 bps
Average bit rate: 184114 bps
Expected fps: 25
Dropped frame count: 561
Total coded frames: 632
Average sample rate: 12.971
Dropped bytes: 0 bytes
Total bytes: 1098831 bytes
Overall:
Encoding time: 289 seconds
Average bit rate: 280154 bps
File size: 1719519 bytes
File duration: 47.878 seconds
However, I have read the WMCmd.vbs Thread (http://forum.doom9.org/showthread.php?t=123812&highlight=dropped+frames) and -v_quality did not seem to have any effect on dropped frames on other posters encoding logs.
Sorry if this is a rookie error, but I am a bit confused at why the frames have been dropped especially when it is not a live encoding session? I would have thought offline encoding would not drop frames? Or does WMV9/VC-1 deliberately drop frames as part of the encoding algorithm?
Have I missed out any information? I am using an Athlon XP 2400+/1GB RAM with Windows SP2.
Any help much appreciated :)