Notices


Reply
Thread Tools
Posts: 9 | Thanked: 0 times | Joined on Aug 2006
#111
Well,...the player loaded and...nothing happened. No error messsage. It just didn't work. I wonder why?!
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#112
Originally Posted by aflegg
I've uploaded a new version of my command line encoder which supports an "mplayer" prefix for 400x240 video.
Just tested this encoder, it works fine for 16:9 widescreen movies and produces video with very good quality. But when I tried to convert 640x480 video, it got cropped too much to fit 400x240. Also when I tried adding '-o' option, it was converted to 400x304 which is not very good for mplayer. So the only thing I'm still missing is proper conversion for 4:3 movies. Anyway, good work, it's a very useful tool =b

It plays back much better than the "best" preset for the built-in video player with no noticeable tearing, even at 25fps.

Tested using the command:
Code:
mplayer -fs -vo x11 -ao gst -ac dspmp3
No frame drops with this preset :-)
To be honest, actually I noticed some framedrops on complicated panning scenes with this preset, but it still looks quite acceptable or even good. And we still have potential for quite a noticeable performance improvement by using YUV colorspace directly. Also video decoder from ffmpeg library that is used in mplayer can be probably better optimized for arm
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#113
Originally Posted by Serge
Just tested this encoder, it works fine for 16:9 widescreen movies and produces video with very good quality. But when I tried to convert 640x480 video, it got cropped too much to fit 400x240. Also when I tried adding '-o' option, it was converted to 400x304 which is not very good for mplayer. So the only thing I'm still missing is proper conversion for 4:3 movies. Anyway, good work, it's a very useful tool =b
What's the best 4:3 ratio for mplayer? Presumably you'd want the height to be maximum, and the width to be minimum. However, the amount of cropping can be reduced (it's the @cropLimit definition at the start of the code). Does mplayer need the multiple-of-16 size that the built-in video player does?

Would it be better in general if the width declared in the preset was ignored for 4:3 stuff (i.e where it's taller than wider) in the original aspect?

To be honest, actually I noticed some framedrops on complicated panning scenes with this preset, but it still looks quite acceptable or even good. And we still have potential for quite a noticeable performance improvement by using YUV colorspace directly. Also video decoder from ffmpeg library that is used in mplayer can be probably better optimized for arm
Cool, I'll leave its bitrates as-is for the moment, but they can be tweaked when new versions come out.

Cheers,

Andrew
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#114
Originally Posted by aflegg
What's the best 4:3 ratio for mplayer? Presumably you'd want the height to be maximum, and the width to be minimum. However, the amount of cropping can be reduced (it's the @cropLimit definition at the start of the code).
Probably crop limit should be set so that it is just enough to convert from 16:9 to 15:9 (from wide screen resolution to Nokia 770 fullscreen). Also maybe just changing aspect ratio a bit can be unnoticeable and it is ok to just scale 16:9 movies to 400x240 even without cropping. For 4:3 it is better to scale to 320x240 in mplayer. To sum up, any video converted for mplayer should have either width equal to 400 or height equal to 240 or both

Does mplayer need the multiple-of-16 size that the built-in video player does?
MPEG4 is internally using blocks for video compression, so probably using non multiple-of-16 size may result special processing and be inefficient. But I did not look into video decoding logic yet, so don't know for sure. I'm just going to look into mpeg4 (and probably also h264) decoding optimizations.

Would it be better in general if the width declared in the preset was ignored for 4:3 stuff (i.e where it's taller than wider) in the original aspect?
Any solution is ok if it helps to produce files with height not exceeding 240
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#115
OK, what I'll try and do for the next release is make it so that a preset can specify a height, rather than a width. Or something like that...

Anyway, I'll make sure the mplayer preset generates 240-high output :-)
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Posts: 449 | Thanked: 29 times | Joined on Jun 2006
#116
LOL, ok I know I'm asking more out of something still in the works, but has anyone had any luck using mplayer to view streaming media?
 
Posts: 264 | Thanked: 28 times | Joined on May 2006
#117
I can stream a windows media audio stream of WEEI (Boston sports talk radio) using:

mplayer -fs -vo x11 -ao gst -cache 200 http://wmc2.liquidcompass.cc/WEEI?MSWMExt=.asf
 
Posts: 449 | Thanked: 29 times | Joined on Jun 2006
#118
Originally Posted by BanditRider
I can stream a windows media audio stream of WEEI (Boston sports talk radio) using:

mplayer -fs -vo x11 -ao gst -cache 200 http://wmc2.liquidcompass.cc/WEEI?MSWMExt=.asf
Haven't tried just audio. I have a linux server at home with a tv capture card in it and I use command line VLC to stream video. Works great with my laptop and pocketpc, but the 770 doesn't doesn't like it.
 
Posts: 220 | Thanked: 19 times | Joined on Jun 2006
#119
2serge. Im just curious. Will you be using the gstreamer framebuffer sink (dspfbsink)
for video output in any future releases.
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#120
2smackpotato: I'm still struggling to get dspmp3sink working properly (video/audio sync is still sometimes wrong) As for gstreamer framebuffer sink, it is unlikely that I will even try it (though it seems to have YUV support in its caps). Normal framebuffer seems to be a more reliable option to get YUV support, though it will require mplayer to be run as root to use it. Anyway, I still have some other things in my todo list and don't have any plans to try either of these options in the near future. If you feel like trying gstreamer framebuffer sink, you can do some hacking yourself, any useful patches will be welcome
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:02.