Reply
Thread Tools
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#1
Andrew,

These are my results using current svn version of tablet-encode as compared to 'straight' mencoder. I may well not have used tablet-encode to it's best advantage.

Code:
filesize:70833360 
the_counter_clock_incident.tb.avi
Produced with tablet-encode -o --preset=best 

Video and audio rapidly lose sync. Video appears jerky.
Only playable with mplayer.

AVI file format detected.
VIDEO:  [DIVX]  320x240  24bpp  23.976 fps  273.4 kbps (33.4 kbyte/s)
Clip info:
 Software: MEncoder 2:1.0~rc2-0ubuntu1~gutsy1
[nokia770] Nokia N800 hardware detected
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Trying to force audio codec driver family dspmp3...
Opening audio decoder: [dspmp3] MP3 audio pass-through for Nokia 770/N800
(fake decoder)
ADecoder preinit failed :(
ADecoder init failed :(
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
AO: [sdl] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [nokia770] 320x240 => 320x240 Planar YV12  [fs] [zoom]
[nokia770] Using ARM JIT YUV420 scaler (quality=2) to scale 320x240 =>
320x240


============================

filesize:134529848
 the_counter_clock_incident.nk.avi
produced by: 
mencoder -vf scale=320:240 -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4 $1 -o $2.avi

Audio and video remain in sync. Video is smooth. 
Playable with both mplayer and Nokia media player.


Cache fill:  0.00% (0 bytes)
AVI file format detected.
VIDEO:  [FMP4]  320x240  24bpp  23.976 fps  571.8 kbps (69.8 kbyte/s)
Clip info:
 Software: MEncoder 2:1.0~rc2-0ubuntu1~gutsy1
[nokia770] Nokia N800 hardware detected
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Trying to force audio codec driver family dspmp3...
Opening audio decoder: [dspmp3] MP3 audio pass-through for Nokia 770/N800
(fake decoder)
ADecoder preinit failed :(
ADecoder init failed :(
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 32.0 kbit/2.27% (ratio: 4000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
AO: [sdl] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [nokia770] 320x240 => 320x240 Planar YV12  [fs] [zoom]
[nokia770] Using ARM JIT YUV420 scaler (quality=2) to scale 320x240 => 320x240
__________________
My Mac Mini runs Kubuntu
 

The Following User Says Thank You to JeffElkins For This Useful Post:
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#2
Thanks very much for this.

Is this being played back on an N800? Using OS2007 or OS2008?

When you say "only playable with mplayer", do you mean it plays back well with mplayer or that it suffers from the problems you describe and Media Player won't touch it at all? If the latter, does it give an error message?
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#3
I'm using OS2008 on an N800.

The file won't play at all with the Nokia media player, but oddly enough no error message. Media player goes into zoom mode, but the video never starts.


Playback with mplayer gives alightly jerky video and the sound is badly out of sync with the video.
__________________
My Mac Mini runs Kubuntu
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#4
I remember having problems with '-noidx' option in some older version of 770-encode.pl script. After removing this option, everything got much better. Is it really needed?
 
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#5
Originally Posted by Serge View Post
I remember having problems with '-noidx' option in some older version of 770-encode.pl script. After removing this option, everything got much better. Is it really needed?
Good call.

Code:
#  push @params, ($options{"index"} ? '-forceidx' : '-noidx');
After commenting out the line above, audio/video are back in sync.
__________________
My Mac Mini runs Kubuntu
 
Posts: 87 | Thanked: 33 times | Joined on Aug 2007
#6
Yeah, I removed the '-noidx' option too, because else I couldn't skip in the videos.
 
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#7
One other change...

I changed:

Code:
 push @params, '-ffourcc', 'DIVX';
To:
Code:
 push @params, '-ffourcc', 'FMP4';
and the output file plays in both mplayer and Nokia media player.
__________________
My Mac Mini runs Kubuntu
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#8
Interesting. Thanks for all the comments, I'll integrate these changes in the next version. I can't remember why -noidx was in there. It won't be any longer :-)

Jeff, did you see a difference in playback performance between the two FOURCCs?
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#9
Jeff,

Could you do me a favour, and also `dd if=the_counter_clock_incident.tb.avi of=fragment.avi bs=1M count=20' and send me the result?

If you need somewhere to FTP it, let me know.

Many thanks in advance,

Andrew
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#10
Originally Posted by aflegg View Post
Jeff, did you see a difference in playback performance between the two FOURCCs?
Performance seems about the same. The only difference is that FMP4 works with both players: Nokia's and mplayer.

BTW, tablet-encode just did an excellent job on ST2:Wrath of Khan. 400Mb and the aspect ratio/playback is perfect.
__________________
My Mac Mini runs Kubuntu
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:54.