Hi, I want to use GStreamer from the command line to resize videos (potentially for MMS, but also mail). I'd like to get: 3GP container, H.263 video codec, AMR-NB audio.
I got this far: 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 ! videoscale ! "video/x-raw-yuv, width=(int)176,height=(int)144" ! \ videorate ! "video/x-raw-yuv, framerate=(fraction)15/1" ! dsph263enc ! muxer. Works. Now try to add the audio like: 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 ! videoscale ! "video/x-raw-yuv, width=(int)176,height=(int)144" ! \ videorate ! "video/x-raw-yuv, framerate=(fraction)15/1" ! dsph263enc ! muxer. \ all. ! queue2 ! audioconvert ! audioresample ! nokiaamrnbenc ! muxer. No audio in this file. I'm new to GStreamer in general, so I fooled around a bit. To my surprise, what I found was that this works beautifully: gst-launch audiotestsrc num-buffers=100 ! decodebin2 name=all \ all. ! audioconvert ! audioresample ! nokiaamrnbenc ! \ hantromp4mux filetype=1 name=muxer ! filesink location=outfile.3gp ...and this works, too: gst-launch filesrc location="/home/user/MyDocs/.videos/Nokia_N900.mp4" ! decodebin2 name=all \ all. ! audioconvert ! audioresample ! nokiaamrnbenc ! nokiaamrnbdec ! pulsesink ...while this does not: gst-launch filesrc location="/home/user/MyDocs/.videos/Nokia_N900.mp4" ! decodebin2 name=all \ all. ! audioconvert ! audioresample ! nokiaamrnbenc ! \ hantromp4mux filetype=1 name=muxer ! filesink location=outfile.3gp This last version with spits out a couple of "dsp_thread: failed waiting for events" messages for quite a while and then creates a container with an invalid audio stream. I might miss the obvious here - I only started to play with GStreamer about a week ago. Any help appreciated! Thx Oskar _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers