maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N800 mplayer digital camera AVIs fail (https://talk.maemo.org/showthread.php?t=4269)

csoldfield 2007-01-24 05:35

N800 mplayer digital camera AVIs fail
 
I was hoping I could take pics/video with my Canon S3 and Casio Z120, pop the SD in the N800 and review. Stills are fine, but I haven't been able to watch any AVIs successfully. Sound is there, but picture is a garbled still. Cameras create 640x480 30fps AVIs that play fine on a PC. Anyone care to suggest if this should work? I'm trying mplayer 1.0rc1-maemo.6 to no avail. Internal Media Player app fails with 'File format not supported'.
thanks, Clive

konttori 2007-01-24 11:29

Re: N800 mplayer digital camera AVIs fail
 
Good point about the camera videos. I assume they are in mjpeg format.

You should be able to convert them with media converter for offline viewing, but that's not very nice for on the road checking.

So, maybe mplayer could help even though it's not yet able to view them:

http://www.mplayerhq.hu/DOCS/codecs-status.html
Seems like FFMPEG would support it. I wonder how much work would it be to add that support to mplayer. Serge?

Serge 2007-01-24 11:35

Re: N800 mplayer digital camera AVIs fail
 
N800 garbled picture problem should be already fixed since version 1.0rc1-maemo.7
But according to reports from N800 owners, MPlayer performance is still far from optimal on N800 (video output driver issues). Anyway, you can give it a try.

aflegg 2007-01-24 11:43

Re: N800 mplayer digital camera AVIs fail
 
Quote:

Originally Posted by konttori (Post 31321)
Good point about the camera videos. I assume they are in mjpeg format.

You should be able to convert them with media converter for offline viewing, but that's not very nice for on the road checking.

VidConvert would help whilst on the move, of course.

csoldfield 2007-01-25 03:55

Re: N800 mplayer digital camera AVIs fail
 
I upgraded to mplayer 1.0rc1-maemo.8 but now have a correctly rendered single frame, no motion. AuDio is fine

MPlayer 1.0rc1-maemo.8 (C) 2000-2006 MPlayer Team
CPU: ARM
Menu inited: /etc/mplayer/menu.conf

Playing /media/mmc1/DCIM/MVI_3823.AVI.
AVI file format detected.
VIDEO: [MJPG] 640x480 24bpp 30.000 fps 14811.5 kbps (1808.0 kbyte/s)
Clip info:
Digitization Time: SAT JAN 13 19:05:42 2007

Software: CanonMVI03
[nokia770] Nokia 770 hardware was not detected
[VO_SDL] Using driver: x11.
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
================================================== ========================
================================================== ========================
Trying to force audio codec driver family dspmp3...
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
================================================== ========================
AO: [gst] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
VO: [sdl] 640x480 => 640x480 Planar YV12 [fs] [zoom]
[VO_SDL] Info - please use -vm or -zoom to switch to the best resolution.

Exiting... (Quit)

csoldfield 2007-01-25 03:58

Re: N800 mplayer digital camera AVIs fail
 
And the same stationary frame playing a Casio Z120 file:
MPlayer 1.0rc1-maemo.8 (C) 2000-2006 MPlayer Team
CPU: ARM
Menu inited: /etc/mplayer/menu.conf

Playing /media/mmc1/DCIM/100CASIO/CIMG2274.AVI.
AVI file format detected.
VIDEO: [MJPG] 640x480 24bpp 28.019 fps 9645.4 kbps (1177.4 kbyte/s)
Clip info:
Digitization Time: 2007/01/14/ 23:01
Software: CASIO EX-Z120
[nokia770] Nokia 770 hardware was not detected
[VO_SDL] Using driver: x11.
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
================================================== ========================
================================================== ========================
Trying to force audio codec driver family dspmp3...
Opening audio decoder: [imaadpcm] IMA ADPCM audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 177.1 kbit/25.10% (ratio: 22136->88200)
Selected audio codec: [imaadpcm] afm: imaadpcm (IMA ADPCM)
================================================== ========================
AO: [gst] 44100Hz 1ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
VO: [sdl] 640x480 => 640x480 Planar YV12 [fs] [zoom]
[VO_SDL] Info - please use -vm or -zoom to switch to the best resolution.

Exiting... (Quit)

sdrman 2007-01-25 06:19

Re: N800 mplayer digital camera AVIs fail
 
Try running mplayer with the -nosound option. Mplayer probably can't keep up the video playback demand of those videos so it drops frames to keep the audio playing. If you're using gmplauncher let a video play to the end so you get the benchmark results.

csoldfield 2007-01-25 17:42

Re: N800 mplayer digital camera AVIs fail
 
If I can figure out how to turn that option on, I will give it a go.
I'm not talking about dropped frames - if I saw even 5fps I would be happy. There is no motion throughout the entire clip. ie. 100% dropped frames.

sdrman 2007-01-25 23:13

Re: N800 mplayer digital camera AVIs fail
 
Yes, mplayer should be able to play the videos at at least 5 fps, but it can't. I believe it is a problem with the frame skipping code. Playing without the sound, mplayer managed about 10 fps on my test file. Frames were not skipped, so the playing was about 1/3 normal speed. The -nosound option is added to the command line when mplayer is started. If you don't have xterm, install it and run one of the following.


Code:

replace 93-01.avi with the name of your video

to test the decoding speed:
mplayer /media/mmc1/93-01.avi    -benchmark -nosound -endpos 10

to play the video only:
mplayer /media/mmc1/93-01.avi    -nosound


csoldfield 2007-01-26 02:57

Re: N800 mplayer digital camera AVIs fail
 
worked, but ran very, very slowly...

$ mplayer MVI_3823.AVI -nosound
MPlayer 1.0rc1-maemo.8 (C) 2000-2006 MPlayer Team
CPU: ARM
[MENU] Can't open menu config file: /home/user/.mplayer/menu.conf
Menu inited: /etc/mplayer/menu.conf
Playing MVI_3823.AVI.
Cache fill: 8.00% (24576 bytes)
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO: [MJPG] 640x480 24bpp 30.000 fps 14811.5 kbps (1808.0 kbyte/s)
Clip info:
Digitization Time: SAT JAN 13 19:05:42 2007

Software: CanonMVI03
[nokia770] Nokia 770 hardware was not detected
[VO_SDL] Using driver: x11.
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
================================================== ========================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 2 -> 2

SwScaler: FAST_BILINEAR scaler, from yuv422p to yuv420p using C
SwScaler: using FAST_BILINEAR C scaler for horizontal scaling
SwScaler: using 1-tap C "scaler" for vertical scaling (YV12 like)
SwScaler: 640x480 -> 640x480
VO: [sdl] 640x480 => 640x480 Planar YV12 [fs] [zoom]
[VO_SDL] Info - please use -vm or -zoom to switch to the best resolution.
V: 17.1 514/514 255% 399% 0.0% 0 0 0%

Exiting... (End of file)
/media/mmc1/DCIM $


All times are GMT. The time now is 09:29.

vBulletin® Version 3.8.8