[gst-devel] ffmpeg flv mux issue

Kumar kumarkm at tataelxsi.co.in
Fri Dec 5 15:55:14 CET 2008


Hi Christian,

I tried FLV muxer from gst-plugins-bad. Its generating a very small output
file file and exiting. ( around 1kb).

The pipeline that I have used is as follows:

gst-launch-0.10 filesrc location=/home/flv_test/Test.264 ! h264parse !
flvmux ! filesink location=/home/flv_test/Test.264.flv

What would be the problem... Is there any changes required in the
pipeline...?

Thanks & Regards,
Kumar KM


-----Original Message-----
From: Christian Schaller [mailto:christian.schaller at gmail.com]On Behalf
Of Christian Schaller
Sent: Thursday, December 04, 2008 7:56 PM
To: kumarkm at tataelxsi.co.in; Discussion of the development of GStreamer
Subject: Re: [gst-devel] ffmpeg flv mux issue


Hi Kumar,
Using ffmpeg muxer (and demuxers) in GStreamer is a bit of a hit and
miss. Have you tried using the native FLV muxer from gst-plugins-bad?

Christian

On Thu, 2008-12-04 at 18:36 +0530, Kumar wrote:
> Hi all,
>
> I am facing some issues while muxing H264 stream into FLV format using
> ffmux_flv element . The muxing thro videotestsrc generates the proper FLV
> file.
> But when tried muxing the H264 file using filesrc, its not generating
proper
> output. I have described it in the following steps:
>
>
> STEP-1: Mux H264 stream into FLV using 'videoteststream' , Play back is
> proper in Flash Player:
>
> gst-launch-0.10 -vvv videotestsrc num-buffers=100 ! x264enc ! ffmux_flv !
> filesink location=/home/vsrc.flv
>
>
> MESSAGE:
> /GstPipeline:pipeline0/ffmux_flv:ffmux_flv0.GstPad:video_0: caps =
> video/x-h264, format=(fourcc)I420, width=(int)320, height=(int)240,


> framerate=(fraction)30/1,
>
codec_data=(buffer)014d4033ffe10017674d403392540a0fd80880000003008000001e478
> c195001000468ee3c80
>
>
>
> STEP-2: Dump H264 Stream:
> gst-launch-0.10 -vvv videotestsrc num-buffers=100 !  x264enc ! filesink
> location=/home/vsrc.264
>
> MESSAGE:
> /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps =
> video/x-h264, format=(fourcc)I420, width=(int)320, height=(int)240,
> framerate=(fraction)30/1,
>
codec_data=(buffer)014d4033ffe10017674d403392540a0fd80880000003008000001e478
> c195001000468ee3c80
>
>
> STEP-3: Now try to mux the dumped H264 using filesrc: (No proper playback)
>
> gst-launch-0.10 -vvv filesrc location=/home/vsrc.264 !  h264parse !
> capsfilter "caps=video/x-h264, format=(fourcc)I420, width=(int)320,
> height=(int)240, framerate=(fraction)30/1"  ! ffmux_flv ! filesink
> location=/home/vsrc_test_1.flv
>
> Able to mux, but cannot play back on Flash player.
>
>
> STEP-4: mux with codec-data in caps filter( from STEP-1): (For proper
> playback)
>
> gst-launch-0.10 -vvv filesrc location=/home/vsrc.264 !  h264parse !
> capsfilter "caps=video/x-h264, format=(fourcc)I420, width=(int)320,
> height=(int)240, framerate=(fraction)30/1,
>
codec_data=(buffer)014d4033ffe10017674d403392540a0fd80880000003008000001e478
> c195001000468ee3c80"  ! ffmux_flv ! filesink
location=/home/vsrc_test_2.flv
>
>
> If I use the same codec_data for the other 320x240 test streams through
> filesrc , I am not able to get the proper output.
>
> Whats this codec_data cap? Is it necessary to use capsfilter with
codec_data
> to get proper data output?
>
> Is there any code change required in gst plug-in ?
>
>
> Thanks & Regards,
> Kumar KM
>
>
> The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments contained in it.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
> Build the coolest Linux based applications with Moblin SDK & win great
prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.




More information about the gstreamer-devel mailing list