LIVE STREAMING OF VIDEO WITH AUDIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LIVE STREAMING OF VIDEO WITH AUDIO

1,258 Views
shanmugamsundar
Contributor IV

hi all,

     I am new to i.MX I am using i.MX535qsb board with an interface application of ov5640 cmos camera. In that i need to live stream and record the video with audio from board to the server PC.

Does anyone have any idea about this?

NOTE:

  •   I had Live streamed the video without audio on various resolution such as 720p and 480p
  • And i recorded the video with audio by storing it to the SD card in correct sync between the audio and video for that i am using the following command
  • When i use to record the video with audio through the LAN the sync between the both is missing

COMMAND FOR STORING THE VIDEO WITH AUDIO IN SD CARD:


gst-launch-0.10 mfw_v4lsrc capture-mode=4 capture-width=1280 capture-height=720 fps-n=30 num-buffers=400000 blocksize=115200 ! queue2 max-size-buffers=500000 max-size-bytes=0 max-size-time=0 ! ffmpegcolorspace ! mfw_vpuencoder codec-type=0 name=venc  alsasrc num-buffers=400000 ! audio/x-raw-int,rate=32000,channels=1,depth=16 !audioconvert ! queue2 max-size-buffers=500000 max-size-bytes=0 max-size-time=0 ! mfw_mp3encoder name=aenc matroskamux name=mux ! filesink location=all1_in_one.avi aenc. ! mux. venc. ! mux.

Thanks

shan

Labels (3)
0 Kudos
4 Replies

752 Views
LeonardoSandova
Specialist I

Hi Shanmugam,

I constructed some pipelines which does live streaming from/to iMX to/from PC

GStreamer Live Streaming

However, I work on a MX6Q board which is not your case so I am not sure how useful these pipelines can be in your case. Another problem I faced is that in case you want to do the streaming from your board to the PC, you need to install an audio ENCODER which has its corresponding (rtp-)pay-loader, which I only found the duple 'amrnbenc ! rtpamrpay'. In case you need to stream MP3 data, I did not find its pay-loader counterpart (you may need to ask this question to the GST community, which is pretty active). You can also find more info on gstrtpbin

Hope it helps.

752 Views
johnturnur
Contributor III

Hi,

Is it possible to do live streaming audio without GStreamer command?

0 Kudos

752 Views
LeonardoSandova
Specialist I

Any reason why you can not use GStreamer? I believe what you want is possible, check the ffmpeg project

0 Kudos

752 Views
shanmugamsundar
Contributor IV

hi leonardo,

  Thanks for your reply,

I ll let you in one or two days with a positive result

Thanks,

shan

0 Kudos