[MEncoder-users] mencoder skips every 10 frames with "floating point exception"
Alper KANAT
tunix at raptiye.org
Tue Jun 26 11:09:56 CEST 2007
The script is running these (this is the output of set -x):
[12:07] (tunix at penguix Desktop)$ ./ipodenc.sh -a "Lost" -n "Sezon 3
Bolum 13" -s lost13.srt lost13.avi
+ FORMAT=mp4
+ VIDEO_CODEC=mpeg4
+ VIDEO_BITRATE=2500
+ SIZE=320:240
+ ASPECT_RATIO=4/3
+ SUB_CP=iso8859-9
+ SUB_SIZE=4
+ AUDIO_CODEC=aac
+ AUDIO_BITRATE=192
+ INPUT_FILENAME=0
+ ARTIST=0
+ NAME=0
+ SUB=0
+ '[' 7 -eq 0 ']'
+ '[' 7 -gt 0 ']'
+ case "$1" in
+ ARTIST=Lost
+ shift
+ shift
+ '[' 5 -gt 0 ']'
+ case "$1" in
+ NAME='Sezon 3 Bolum 13'
+ shift
+ shift
+ '[' 3 -gt 0 ']'
+ case "$1" in
+ SUB=lost13.srt
+ shift
+ shift
+ '[' 1 -gt 0 ']'
+ case "$1" in
+ '[' -f lost13.avi ']'
+ INPUT_FILENAME=lost13.avi
+ shift
+ shift
+ '[' 0 -gt 0 ']'
+ OUTPUT_FILENAME=lost13.mp4
+ '[' -z 'Sezon 3 Bolum 13' ']'
+ '[' -n lost13.srt ']'
+ mencoder -sub lost13.srt -subcp iso8859-9 -subfont-encoding unicode
-subfont-text-scale 4 -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=2500:vqmin=2:vqmax=10:acodec=aac:vglobal=1:aglobal=1:abitrate=192:aspect=4/3
-oac lavc -lavfopts
format=mp4:i_certify_that_my_video_stream_does_not_use_b_frames -vf
scale=320:240,harddup -of lavf -o lost13.mp4 lost13.avi
MEncoder 1.0rc1-4.2.0 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP Processor 3000+ (Family: 15, Model: 4, Stepping: 8)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
98 audio & 216 video codecs
success: format: 0 data: 0x0 - 0x15ea3800
AVI file format detected.
VIDEO: [XVID] 624x352 12bpp 23.976 fps 1015.8 kbps (124.0 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:624x352 fps:23.98 ftime:=0.0417
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
SUB: Detected subtitle file format: subviewer
SUB: Read 553 subtitles.
SUB: Adjusted 36 subtitle(s).
** MUXER_LAVF
*****************************************************************
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will
generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=320 h=240]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
VDec: vo config request - 624 x 352 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
SwScaler: using 8-tap MMX scaler for horizontal luminance scaling
SwScaler: using 8-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 624x352 -> 320x240
videocodec: libavcodec (320x240 fourcc=34504d46 [FMP4])
Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
VIDEO CODEC ID: 13f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.021 [0:0]
AUDIO CODEC ID: 15002, TAG: 0
Writing header...
Pos: 0.9s 21f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.083 [0:191]
Skipping frame!
Pos: 1.6s 41f ( 0%) 0.00fps Trem: 9min 222mb A-V:0.083 [1150:192]
Skipping frame!
Pos: 2.0s 51f ( 0%) 0.00fps Trem: 10min 251mb A-V:0.083 [1197:192]
Skipping frame!
Pos: 2.4s 61f ( 0%) 0.00fps Trem: 11min 270mb A-V:0.083 [1140:192]
Skipping frame!
Pos: 3.1s 81f ( 0%) 67.78fps Trem: 12min 276mb A-V:0.083 [973:192]]
Skipping frame!
Pos: 3.5s 91f ( 0%) 68.68fps Trem: 12min 259mb A-V:0.083 [899:192]
Skipping frame!
Pos: 3.5s 94f ( 0%) 68.97fps Trem: 12min 255mb A-V:0.013 [894:192]
Flushing video frames
Writing index...
SEEK 28
SEEK 492720
SEEK 492976
SEEK 493021
SEEK 493049
SEEK 493085
SEEK 493195
SEEK 493277
SEEK 493109
SEEK 493277
SEEK 493093
SEEK 493277
SEEK 493313
SEEK 493325
SEEK 493301
SEEK 493325
SEEK 493337
SEEK 493353
SEEK 493325
SEEK 493353
SEEK 493353
SEEK 493713
SEEK 493713
SEEK 494069
SEEK 493085
SEEK 494069
SEEK 493021
SEEK 494069
SEEK 492936
SEEK 494069
SEEK 492836
SEEK 494069
SEEK 494209
SEEK 494254
SEEK 494278
SEEK 494314
SEEK 494374
SEEK 494413
SEEK 494338
SEEK 494413
SEEK 494322
SEEK 494413
SEEK 494449
SEEK 494465
SEEK 494437
SEEK 494465
SEEK 494465
SEEK 495233
SEEK 495233
SEEK 495997
SEEK 494314
SEEK 495997
SEEK 494254
SEEK 495997
SEEK 494169
SEEK 495997
SEEK 494069
SEEK 495997
SEEK 495997
SEEK 496005
SEEK 492720
SEEK 496005
Video stream: 894.567 kbit/s (111820 B/s) size: 396428 bytes 3.545
secs 94 frames
Audio stream: 192.000 kbit/s (24000 B/s) size: 96256 bytes 4.011 secs
At first, it seems to encode without every 10 frames but at the end it
says the "floating point exception" error.. I really hope that we could
find a solution here..
Alper KANAT (tunix at raptiye.org)
http://raptiye.org
Corey Hickey yazmış:
> Alper KANAT wrote:
>> Hey There,
>>
>> I have created a script that converts a video to make it suitable for
>> iPod Video. The amazing thing is that the commented line:
>>
>> mencoder -sub lost13.srt -subcp iso8859-9 -subfont-encoding unicode
>> -subfont-text-scale 4 -ovc lavc -lavcopts
>> vcodec=mpeg4:vbitrate=2500:vqmin=2:vqmax=10:acodec=aac:vglobal=1:aglobal=1:abitrate=128:aspect=4/3
>> -oac lavc -lavfopts
>> format=mp4:i_certify_that_my_video_stream_does_not_use_b_frames -vf
>> scale=320:240,harddup -of lavf -info artist="Lost":name="Sezon 3 Bolum
>> 13" -o lost13.mp4 lost13.avi
>>
>> works fine, but the line 1 line below doesn't work while it's the same
>> line with just a few variables:
>>
>> mencoder -sub "$SUB" -subcp "$SUB_CP" -subfont-encoding unicode
>> -subfont-text-scale "$SUB_SIZE" -ovc lavc -lavcopts
>> vcodec="$VIDEO_CODEC":vbitrate="$VIDEO_BITRATE":vqmin=2:vqmax=10:acodec="$AUDIO_CODEC":vglobal=1:aglobal=1:abitrate="$AUDIO_BITRATE":aspect="$ASPECT_RATIO"
>> -oac lavc -lavfopts
>> format="$FORMAT":i_certify_that_my_video_stream_does_not_use_b_frames
>> -vf scale="$SIZE",harddup -of lavf -o "$OUTPUT_FILENAME" "$INPUT_FILENAME"
>>
>> So, if I type the whole command by my self in the command line, it
>> converts any video without any problems. But if I use this script, it
>> skips every 10 frame during the conversion and when the conversion ends,
>> it says "floating point exception.." No matter what I did (such as
>> -noskip) it didn't work..
>>
>> I'm playing with the commands and the script for almost 4 days now.. I
>> really appreciate any help..
>
> Try adding 'set -x' to the top of your script. Run it to see what
> command the script is actually using.
>
> -Corey
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
More information about the MEncoder-users
mailing list