View Single Post
benny1967's Avatar
Posts: 3,790 | Thanked: 5,718 times | Joined on Mar 2006 @ Vienna, Austria
#598
Say... a few months ago there was a question about supporting videos in fMMS. The answer then was:

Originally Posted by frals View Post
Yes, there is a chance but someone needs to port a video encoder so the video can be recoded to fit in a <300k MMS
actually, the encoder is build into Maemo. Try on the command line:

$ gst-launch-0.10 filesrc location="/home/user/MyDocs/.videos/Nokia_N900.mp4" ! decodebin2 name=all \
hantromp4mux filetype=1 name=muxer ! filesink location="/home/user/MyDocs/.videos/outfile.3gp" \
all. ! queue2 use-buffering=TRUE ! videoscale ! "video/x-raw-yuv, width=(int)176,height=(int)144" ! videorate ! "video/x-raw-yuv, framerate=(fraction)15/1" ! dsph263enc ! muxer.
This is only as far as I got while experimenting for another reason, but it takes only 33 seconds on my N900 to reduce the 1min14sec promo-video from 33,4 MB to 763,8 KB. Given that things you want to send as MMS may be shorter and may be recorded in low resolution to start with this Gstreamer-thingie may be an option.

Problems: I couldn't get sound to work at all. In theory, the pipe should look like this to have both video and sound:

gst-launch-0.10 filesrc location="/home/user/MyDocs/.videos/Nokia_N900.mp4" ! decodebin2 name=all \
hantromp4mux filetype=1 name=muxer ! filesink location="/home/user/MyDocs/.videos/outfile.3gp" \
all. ! queue2 use-buffering=TRUE ! audioconvert ! audioresample ! nokiaamrnbenc ! muxer. \
all. ! queue2 use-buffering=TRUE ! videoscale ! "video/x-raw-yuv, width=(int)176,height=(int)144" ! videorate ! "video/x-raw-yuv, framerate=(fraction)15/1" ! dsph263enc ! muxer.
Never works. Probably something with buffering and whatnot - a Maemo/GStreamer expert would have to look at it. (Maybe it's easier to set up fom within an application when you can listen to and react to Gstreamer messages).

Also, I didn't get one effects working that would make 16:9-videos appear letterboxed in a 4:3 frame (which is not what I'd want, but probably people would expect this). More experimenting needed - it does work on the desktop with different encoders.

Maybe one could further optimize the quality/size by setting parameters... I did not looked into this at all.
 

The Following 3 Users Say Thank You to benny1967 For This Useful Post: