<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2723.2500" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>Hello
all,</FONT></SPAN></DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>I'm using Juri's
script 0.0.6a to play various video formats on my DVBc.</FONT></SPAN></DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>It works nice,
except that, for some divX videos, the "mplayer -identify" returns some strange
values. I am not saying they are wrong, as it might very well be that the videos
themself are strange. Here is what I get:</FONT></SPAN></DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2><SPAN
class=055462722-16022003><FONT face=Arial
size=2>----------------------------</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>[root@vdr scripts]#
mplayer -identify /video/divx/Friends803.AVI<BR></FONT></SPAN><SPAN
class=055462722-16022003><FONT face=Arial size=2>Playing
/video/divx/Friends803.AVI<BR>AVI file format detected.<BR>VIDEO:
[DIV3] 352x240 24bpp 30.03 fps 510.1 kbps (62.3
kbyte/s)<BR>==========================================================================<BR>Opening
audio decoder: [mp3lib] MPEG layer-2, layer-3<BR>MP3lib: init layer2&3
finished, tables done<BR>AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio:
16000->176400 (128.0 kbit)<BR>Selected audio codec: [mp3] afm:mp3lib (mp3lib
MPEG layer-2,
layer-3)<BR>==========================================================================<BR>ID_FILENAME=/video/divx/Friends803.AVI<BR>ID_VIDEO_FORMAT=DIV3<BR>ID_VIDEO_BITRATE=510120<BR>ID_VIDEO_WIDTH=352<BR>ID_VIDEO_HEIGHT=240<BR>ID_VIDEO_FPS=30.029
<======
!<BR>ID_VIDEO_ASPECT=0.00<BR>ID_AUDIO_CODEC=mp3<BR>ID_AUDIO_FORMAT=85<BR>ID_AUDIO_BITRATE=128000<BR>ID_AUDIO_RATE=44100<BR>ID_AUDIO_NCH=2<BR>ID_LENGTH=1302</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR><SPAN
class=055462722-16022003><FONT face=Arial size=2>And another
one:</FONT></SPAN></DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial
size=2>----------------------------</FONT></SPAN></DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>AVI file format
detected.<BR>VIDEO: [DIVX] 560x288 24bpp 31.25 fps
1030.1 kbps (125.7
kbyte/s)<BR>==========================================================================<BR>Opening
audio decoder: [mp3lib] MPEG layer-2, layer-3<BR>MP3lib: init layer2&3
finished, tables done<BR>AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio:
14000->176400 (112.0 kbit)<BR>Selected audio codec: [mp3] afm:mp3lib (mp3lib
MPEG layer-2,
layer-3)<BR>==========================================================================<BR>ID_FILENAME=/mnt/cdrom/Walt
Disney - Le roi
lion.avi<BR>ID_VIDEO_FORMAT=DIVX<BR>ID_VIDEO_BITRATE=1030080<BR>ID_VIDEO_WIDTH=560<BR>ID_VIDEO_HEIGHT=288<BR>ID_VIDEO_FPS=31.249
<======
!<BR>ID_VIDEO_ASPECT=0.00<BR>ID_AUDIO_CODEC=mp3<BR>ID_AUDIO_FORMAT=85<BR>ID_AUDIO_BITRATE=112000<BR>ID_AUDIO_RATE=44100<BR>ID_AUDIO_NCH=2<BR>ID_LENGTH=5030</FONT></SPAN></DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>how is the FPS
detected? Is there a possibility that they are improperly detected by
mplayer?</FONT></SPAN></DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>In the meantime, to
work-around the problem, I added a tolerance in FPS detection for Juri's script.
Here is the diff if anyone wants to use it too. Juri? :)</FONT></SPAN></DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>[root@vdr scripts]#
diff -u mplayer.sh.juri mplayer.sh.olivier<BR>---
mplayer.sh.juri Fri Jan 24 00:59:46 2003<BR>+++
mplayer.sh.olivier Sun Feb 16 23:22:43 2003<BR>@@ -142,10 +142,18
@@</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>
ORIG_FPS=`echo "$TEMP1"|grep ID_VIDEO_FPS|cut -d"=" -f2`<BR>
debugmsg "parsed output for ORIG_FPS:" $ORIG_FPS<BR>- test $ORIG_FPS ==
"14.985" && ORIG_FPS=29.970 && debugmsg "set ORIG_FPS to:"
$ORIG_FPS<BR>- test $ORIG_FPS == "15.000" && ORIG_FPS=29.970
&& debugmsg "set ORIG_FPS to:" $ORIG_FPS<BR>- test $ORIG_FPS ==
"30.000" && ORIG_FPS=29.970 && debugmsg "set ORIG_FPS to:"
$ORIG_FPS</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=055462722-16022003><FONT face=Arial size=2>+
TMP_FPS=$(echo "$ORIG_FPS*100" | bc -l)<BR>+ TMP_FPS=`echo $TMP_FPS | cut
-f1 -d.`<BR>+ if test $TMP_FPS -gt 2900 -a $TMP_FPS -lt 3200;
then<BR>+ ORIG_FPS=29.970<BR>+ fi<BR>+ if test
$TMP_FPS -gt 1400 -a $TMP_FPS -lt 1600; then<BR>+
ORIG_FPS=29.970<BR>+ fi<BR>+ debugmsg "set ORIG_FPS to:"
$ORIG_FPS<BR>+<BR>+<BR> ORIG_ASPECT=`echo "$TEMP1"|grep
ID_VIDEO_ASPECT|cut -d"=" -f2`<BR> debugmsg "parsed output for
ORIG_ASPECT:" $ORIG_ASPECT</FONT></SPAN></SPAN></DIV></BODY></HTML>