MEncoder Muxing Problems

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

Post Reply
User avatar
MuLTiTaSK
Amateur
Amateur
Posts: 26
Joined: Tue Jun 19, 2007 8:25 am

MEncoder Muxing Problems

Post by MuLTiTaSK » Sat Jun 23, 2007 9:20 am

whenever i enable the muxer to use mencoder to mux the encoded avi file the output doesnt come out as a OpenDML avi even though i have Do not write OpenDML index for avi files set to false

plus the muxed file has 4 consecutive B-VOPs but i set the max to 2 in the xvid options

if i disable the muxer the encoded files come out the way i want is there a reason for this?


here are the command line options used with muxer enabled

Code: Select all

".\codecs\mencoder.exe" -quiet -of rawvideo -ovc raw -rawvidopts pipe=6 -o NUL -ofps 30000/1001 -sws 9 -vf crop=690:426:12:0,yadif=0,scale=512:384:0:0,harddup,format=i420 -nosound "REMOVED"

".\codecs\mencoder.exe" -ofps 30000/1001 -demuxer rawvideo -rawvideo fps=29.970030:w=512:h=384:i420 - -passlogfile "REMOVED" -ovc xvid -xvidencopts threads=2:par=vga11:trellis:chroma_me:chroma_opt:hq_ac:quant_type=h263:bitrate=1655:turbo=0:pass=1 -nosound -o NUL

".\codecs\mencoder.exe" -quiet -oac pcm -pcmopts pipe=6:pipeonly -ovc frameno -of rawvideo -o NUL -af channels=2 "REMOVED"

".\codecs\mencoder.exe" -quiet -of rawvideo -ovc raw -rawvidopts pipe=7 -o NUL -ofps 30000/1001 -sws 9 -vf crop=690:426:12:0,yadif=0,scale=512:384:0:0,harddup,format=i420 -nosound "REMOVED"

".\codecs\mencoder.exe" -ofps 30000/1001 -demuxer rawvideo -rawvideo fps=29.970030:w=512:h=384:i420 - -passlogfile "REMOVED" -ovc xvid -xvidencopts threads=2:par=vga11:trellis:chroma_me:chroma_opt:hq_ac:quant_type=h263:max_bframes=2:bquant_ratio=150:bquant_offset=100:bvhq=1:me_quality=6:vhq=4:pass=2:bitrate=1655 -nosound -o "REMOVED"

".\codecs\lame.exe" - "REMOVED" -r -x -s 48000 --vbr-new -V 6 -q 2 -k --replaygain-fast --quiet
info of the encoded file with muxer enabled

Code: Select all

Name: muxer.avi
Date: 22/06/2007 18:41:26
Size: 358,980,482 bytes (342.35 MB)

[ Generic info ]

Play duration: 00:27:24 (1644.309333 s)
Container type: AVI
Number of streams: 2
Type of stream nr. 0: video
Type of stream nr. 1: audio
Audio streams: 1
ISFT: MEncoder dev-SVN-rUNKNOWN-4.1.2
JUNK: [= MPlayer junk data! =]

[ About quality ]

Resolution: MEDIUM (512 x 384)
Width: multiple of 16 (GOOD)
Height: multiple of 16 (GOOD)
Average DRF quality: LOW (6.109316)
Standard deviation quality: MEDIUM (1.382449)
Std. dev. weighted mean: HIGH (0.679276)

[ Video track ]

FourCC: XVID/XVID
Resolution: 512 x 384
Frame aspect ratio: 4:3 = 1.333333
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 4:3 = 1.333333
Framerate: 29.970029 fps
Number of frames: 49280
Stream size: 338,030,268 bytes
Bitrate: 1644.606698 kbps
Qf: 0.279108
Key frames: 210 (0; 299; 598; 897; 1196; ... 49070)
Null frames: 10 (13968; 15772; 17626; 19402; 21173...)
Min key int: 1
Max key int: 300
Avg key int: 234.666666
Delay: 0 ms

[ Audio track ]

Audio tag: 0x55 (MP3)
Bitrate: 88.008 kbps VBR
Channels: 2
Sample rate: 48000 Hz
Chunks: 68534
Stream size: 18,093,960 bytes
Delay: 0 ms

[ About MPEG4 encoding ]

User data: XviD0047
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263
Number of frames: 49280
Drop/delay frames: 10
Corrupted frames: 0

I-VOPs:   210 (  0.426 %)                          
P-VOPs: 18143 ( 36.816 %) #########                
B-VOPs: 30917 ( 62.737 %) ################         
S-VOPs:     0 (  0.000 %)                          
N-VOPs:     0 (  0.000 %)                          

Max consecutive B-VOPs: 4 (*)
    1 consec:  4708 ( 26.446 %) #######                  
    2 consec: 13083 ( 73.492 %) ##################       
    3 consec:     1 (  0.006 %)                          
    4 consec:    10 (  0.056 %)                          

[ DRF analysis ]

Average DRF: 6.109316
Standard deviation: 1.382449
Max DRF: 8

DRF<2:     0 (  0.000 %)                          
DRF=2:     6 (  0.012 %)                          
DRF=3:   261 (  0.530 %)                          
DRF=4:  8064 ( 16.367 %) ####                     
DRF=5: 11936 ( 24.226 %) ######                   
DRF=6:  1675 (  3.400 %) #                        
DRF=7: 20399 ( 41.402 %) ##########               
DRF=8:  6929 ( 14.063 %) ####                     
DRF>8:     0 (  0.000 %)                          

I-VOPs average DRF: 4.514285
I-VOPs std. deviation: 0.545357
I-VOPs max DRF: 5

P-VOPs average DRF: 4.554483
P-VOPs std. deviation: 0.526532
P-VOPs max DRF: 5

B-VOPs average DRF: 7.032571
B-VOPs std. deviation: 0.769821
B-VOPs max DRF: 8
here are the command line options used with muxer disabled

Code: Select all

".\codecs\mencoder.exe" -quiet -of rawvideo -ovc raw -rawvidopts pipe=6 -o NUL -ofps 30000/1001 -sws 9 -vf crop=690:426:12:0,yadif=0,scale=512:384:0:0,harddup,format=i420 -nosound "REMOVED"

".\codecs\mencoder.exe" -ofps 30000/1001 -demuxer rawvideo -rawvideo fps=29.970030:w=512:h=384:i420 - -passlogfile "REMOVED" -ovc xvid -xvidencopts threads=2:par=vga11:trellis:chroma_me:chroma_opt:hq_ac:quant_type=h263:bitrate=1655:turbo=0:pass=1 -nosound -o NUL

".\codecs\mencoder.exe" -quiet -oac pcm -pcmopts pipe=6:pipeonly -ovc frameno -of rawvideo -o NUL -af channels=2 "REMOVED"

".\codecs\mencoder.exe" -quiet -of rawvideo -ovc raw -rawvidopts pipe=7 -o NUL -ofps 30000/1001 -sws 9 -vf crop=690:426:12:0,yadif=0,scale=512:384:0:0,harddup,format=i420 -nosound "REMOVED"

".\codecs\mencoder.exe" -ofps 30000/1001 -demuxer rawvideo -rawvideo fps=29.970030:w=512:h=384:i420 - -passlogfile "REMOVED" -ovc xvid -xvidencopts threads=2:par=vga11:trellis:chroma_me:chroma_opt:hq_ac:quant_type=h263:max_bframes=2:bquant_ratio=150:bquant_offset=100:bvhq=1:me_quality=6:vhq=4:pass=2:bitrate=1655 -audio-preload 0 -audio-demuxer rawaudio -rawaudio channels=2:rate=48000:samplesize=2 -audiofile fd=8 -af channels=2 -oac mp3lame -lameopts vbr=2:q=6:aq=2:highpassfreq=-1:lowpassfreq=-1 -o "REMOVED"
info of the encoded file with muxer disabled

Code: Select all

Name: nomuxer.avi
Date: 22/06/2007 18:03:51
Size: 360,195,396 bytes (343.509 MB)

[ Generic info ]

Play duration: 00:27:25 (1645.110133 s)
Container type: AVI OpenDML
Number of streams: 2
Type of stream nr. 0: video
Type of stream nr. 1: audio
Audio streams: 1
ISFT: MEncoder dev-SVN-rUNKNOWN-4.1.2
JUNK: [= MPlayer junk data! =]

[ About quality ]

Resolution: MEDIUM (512 x 384)
Width: multiple of 16 (GOOD)
Height: multiple of 16 (GOOD)
Average DRF quality: LOW (6.114818)
Standard deviation quality: MEDIUM (1.382118)
Std. dev. weighted mean: HIGH (0.677634)

[ Video track ]

FourCC: XVID/XVID
Resolution: 512 x 384
Frame aspect ratio: 4:3 = 1.333333
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 4:3 = 1.333333
Vprp aspect ratio: 4:3 = 1.333333
Framerate: 29.970029 fps
Number of frames: 49304
Stream size: 338,271,201 bytes
Bitrate: 1644.977775 kbps
Qf: 0.279171
Key frames: 210 (0; 299; 598; 897; 1196; ... 49094)
Null frames: 0
Min key int: 1
Max key int: 299
Avg key int: 234.780952
Delay: 0 ms

[ Audio track ]

Audio tag: 0x55 (MP3)
Bitrate: 92.728 kbps VBR
Channels: 2
Sample rate: 48000 Hz
Chunks: 68544
Stream size: 19,067,208 bytes
Delay: 24 ms

[ About MPEG4 encoding ]

User data: XviD0047
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263
Number of frames: 49304
Drop/delay frames: 0
Corrupted frames: 0

I-VOPs:   210 (  0.426 %)                          
P-VOPs: 18156 ( 36.825 %) #########                
B-VOPs: 30938 ( 62.749 %) ################         
S-VOPs:     0 (  0.000 %)                          
N-VOPs:     0 (  0.000 %)                          

Max consecutive B-VOPs: 2
    1 consec:  4696 ( 26.357 %) #######                  
    2 consec: 13121 ( 73.643 %) ##################       

[ DRF analysis ]

Average DRF: 6.114818
Standard deviation: 1.382118
Max DRF: 8

DRF<2:     0 (  0.000 %)                          
DRF=2:     6 (  0.012 %)                          
DRF=3:   259 (  0.525 %)                          
DRF=4:  7992 ( 16.210 %) ####                     
DRF=5: 11957 ( 24.252 %) ######                   
DRF=6:  1726 (  3.501 %) #                        
DRF=7: 20325 ( 41.224 %) ##########               
DRF=8:  7039 ( 14.277 %) ####                     
DRF>8:     0 (  0.000 %)                          

I-VOPs average DRF: 4.519047
I-VOPs std. deviation: 0.545212
I-VOPs max DRF: 5

P-VOPs average DRF: 4.559209
P-VOPs std. deviation: 0.525791
P-VOPs max DRF: 5

B-VOPs average DRF: 7.038560
B-VOPs std. deviation: 0.767642
B-VOPs max DRF: 8

User avatar
MuLTiTaSK
Amateur
Amateur
Posts: 26
Joined: Tue Jun 19, 2007 8:25 am

Post by MuLTiTaSK » Tue Jun 26, 2007 6:58 am

can anybody confirm if there having the same problem as me please?

B!ink
Expert
Expert
Posts: 1275
Joined: Sun Nov 26, 2006 9:08 am

Post by B!ink » Tue Jun 26, 2007 8:26 am

I have no explanation for that. I always set the muxer to disable.

User avatar
MuLTiTaSK
Amateur
Amateur
Posts: 26
Joined: Tue Jun 19, 2007 8:25 am

Post by MuLTiTaSK » Tue Jun 26, 2007 8:36 am

that makes two of us :? i have the muxer set to disable aswell the encodes come out fine without it hopefully stan da man can explain why this happens

Post Reply