[gst-devel] ffmpeg flv mux issue

Kumar kumarkm at tataelxsi.co.in
Thu Dec 4 14:06:19 CET 2008


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.




More information about the gstreamer-devel mailing list