[gst-devel] Gstreamer transcoding Flash FLV in 0.10

Matthias Bläsing matthias.blaesing at rwth-aachen.de
Thu Dec 20 23:25:32 CET 2007


Hey,

I have a script, that should do what you want - It's pretty rougth, but
could be improved:

http://www.doppel-helix.eu/any_to_flv

This is python utilizing the gstreamer bindings and uses yamdi to insert
metadata. This can be trivially changed to flvtool2.

HTH

Matthias

Am Donnerstag, den 20.12.2007, 15:11 -0500 schrieb Coffman, Steven:
> Hi,
> I'm trying to convert a script that uses ffmpeg to one using Gstreamer
> for transcoding to Flash (VP6 codec FLV format) from pretty much any
> source format.
> 
> Currently I do this:
>  1. ffmpeg -i movie.[avi] -s 320x240 -ar 44100 -r 12 movie.flv
>  2. cat movie.flv | flvtool2 -U stdin movie.flv 
> 
> (s = size, ar= sample rate, r=frame rate, and flvtool2 = adds the video
> duration into the FLV's metadata)
> 
> ffenc_flv doesn't seem to offer arguments that are direct equivalents of
> size, sample rate, and frame rate, and I can't find the arguments list
> for ffmux_flv. 
> 
> I don't know if it's helpful, but I do have a Gstreamer pipeline that
> transcodes to OGG without specifying the resulting size:
> 
> gst-launch-0.10  oggmux name="mux" ! filesink location="output.ogg"  \
>        filesrc location="input.ext" ! decodebin name="d" \
>            { d. ! queue ! ffmpegcolorspace ! theoraenc ! queue ! mux. }
> \
>            { d. ! queue ! audioconvert ! audioresample ! vorbisenc !
> queue ! mux. }
> 
> 
> 
> However, this doesn't seem to translate directly for some reason:
> 
> gst-launch-0.10 ffmux_flv name ="mux" ! filesink location="output.flv" \
> filesrc location="input.ext" ! decodebin name="d" \
>            { d. ! queue ! ffmpegcolorspace ! ffenc_flv ! queue ! mux. }
> \
>            { d. ! queue ! audioconvert ! audioresample ! ffenc_flv !
> queue ! mux. }
> 
> 
> Has anyone done something similar in the past?
> -Steve
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-- 
So long and thanks for all the fish!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20071220/8a549425/attachment.pgp>


More information about the gstreamer-devel mailing list