Gstreamer transcoding Flash FLV in 0.10

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer transcoding Flash FLV in 0.10

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer transcoding Flash FLV in 0.10

Matthias Bläsing-2
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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
--
So long and thanks for all the fish!

-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer transcoding Flash FLV in 0.10

Florent THIERY-2
In reply to this post by Coffman, Steven
Hello,

> 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.
> Has anyone done something similar in the past?

I'm working on this very subject for a while, and:
* ffmpeg's FLV encoder uses Sorenson's H.263 codec (Flash 6) and not VP6
* the only way, as far as i know, to encode in VP6 under linux is either:
  ** using On2's Flix engine for Linux
  ** or using mencoder together with vp6vfw.dll, see
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-video-for-windows.html

To encode a GStreamer-originating media to VP6 i am experimenting with
tcpclientsink -> netcat | mencoder, but this is far from being stable
(pretty bad actually). Also, i suggest using debian-multimedia.org's
mencoder release, which fixes Ubuntu's mencoder release bad FLV muxing
behaviour.

I'd be glad to know if any options are left for VP6 encoding on Linux !

Cheers. I hope this helps a bit.

Florent

-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel