Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (83)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (11490)

  • Revision 35436 : Petites pétouilles en passant par là (écriture aux dernières normes ...

    22 février 2010, par marcimat@… — Log

    Petites pétouilles en passant par là (écriture aux dernières normes ISO)…

  • Progress Bar findviewbyid returns null

    1er avril 2017, par ziad kiwan

    Help me please it’s getting frustrating !

    i’m doing a chat application where i’m adding views to a linear layout programmatically each time a user press the send button the code is below :

    public  void appendToMessageHistory(String id,String uname, String messa,String messageType, final String filepath, String DownloadStatus,boolean internet,int type) {


       //TextView tv=new TextView(Messaging.this);
       LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(Width, LinearLayout.LayoutParams.WRAP_CONTENT);
       lp.setMargins(0, 10, 0, 0);

       View v = getLayoutInflater().inflate(R.layout.message_entity, null);


       TextView mess;
       TextView time;
       final ImageView iv;
       final ProgressBar progressBar;
       ImageView statusiv;
       if (friend.userName.equals(uname)) {
           v = getLayoutInflater().inflate(R.layout.message_entity, null);
           v.setId(Integer.parseInt(id));
           mess = (TextView) v.findViewById(R.id.message_entity_message);
           time = (TextView) v.findViewById(R.id.message_entity_time);
           iv = (ImageView) v.findViewById(R.id.message_entity_imageview);
           statusiv = (ImageView) v.findViewById(R.id.imageView);
           progressBar = (ProgressBar) v.findViewById(R.id.message_entity_progressbar);
       } else {
           v = getLayoutInflater().inflate(R.layout.message_entity_right, null);
           lp.gravity = Gravity.RIGHT;
           v.setId(Integer.parseInt(id));
           mess = (TextView) v.findViewById(R.id.message_entity_right_message);
           time = (TextView) v.findViewById(R.id.message_entity_right_time);
           iv = (ImageView) v.findViewById(R.id.message_entity_right_imageview);
           statusiv = (ImageView)v.findViewById(R.id.imageViewleft);
           progressBar = (ProgressBar) v.findViewById(R.id.message_entity_Right_progressbar);
       }

       try {
           progressBar.setId(Integer.parseInt(id));

       } catch (Exception e) {
           e.printStackTrace();
       }

       if (messageType != null) {
           if (messageType.equals(MessageInfo.MESSAGE_TYPE_PIC)) {
               iv.setImageBitmap(ImageHandlet.GetBitmapFromPath(filepath));
               progressBar.setVisibility(View.GONE);
               iv.setOnClickListener(new OnClickListener() {
                   @Override
                   public void onClick(View v) {
                       Intent intent = new Intent();
                       intent.setAction(Intent.ACTION_VIEW);
                       intent.setDataAndType(Uri.parse("file://" + filepath), "image/png");
                       startActivity(intent);
                       Log.d("FIlePAth", filepath);
                   }
               });

           } else if (messageType.equals(MessageInfo.MESSAGE_TYPE_VIDEO)) {
               if (DownloadStatus.equals(LocalStorageHandler.DOWNLOADED)) {
                   if(!(friend.userName.equals(uname))) {
                       if (type != 3) {
                           Bitmap bitTh = ThumbnailUtils.createVideoThumbnail(filepath, MediaStore.Images.Thumbnails.MINI_KIND);
                           iv.setImageBitmap(bitTh);
                           progressBar.setVisibility(View.GONE);
                           iv.setOnClickListener(new OnClickListener() {
                               @Override
                               public void onClick(View v) {
                                   Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(filepath));
                                   intent.setDataAndType(Uri.parse(filepath), "video/mp4");
                                   startActivity(intent);

                               }
                           });
                       } else {
                           Log.w("Zipping","Progress Bar");
                           progressBar.setVisibility(View.VISIBLE);
                       }
                   } else {
                       Bitmap bitTh = ThumbnailUtils.createVideoThumbnail(filepath, MediaStore.Images.Thumbnails.MINI_KIND);
                       iv.setImageBitmap(bitTh);
                       progressBar.setVisibility(View.GONE);
                       iv.setOnClickListener(new OnClickListener() {
                           @Override
                           public void onClick(View v) {
                               Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(filepath));
                               intent.setDataAndType(Uri.parse(filepath), "video/mp4");
                               startActivity(intent);

                           }
                       });
                   }
               } else if (DownloadStatus.equals(LocalStorageHandler.NotDOWNLOADED)) {
                   iv.setTag(id);
                   iv.setImageResource(R.drawable.download);
                   iv.setOnClickListener(new OnClickListener() {
                       @Override
                       public void onClick(View v) {
                           progressBar.setVisibility(View.VISIBLE);
                           Cursor c = localstoragehandler.getIDnfo(iv.getTag().toString());
                           String filepath = "";
                           //Toast.makeText(getApplication(),iv.getTag().toString()+" iD " +iv.getId(),Toast.LENGTH_SHORT).show();

                           while (c.moveToNext()) {
                               String msg0 = c.getString(0);
                               String msg2 = c.getString(2);
                               String msg3 = c.getString(3);
                               String msg4 = c.getString(4);
                               String msg5 = c.getString(5);
                               String msg6 = c.getString(6);

                               filepath = msg5;

                               Log.d("-----------Vedio-----", "------------------");
                               Log.d("DATABASE---------", msg0);
                               Log.d("DATABASE-------", msg2);
                               Log.d("DATABASE---------", msg3);
                               Log.d("DATABASE-----", msg4 + "");
                               Log.d("DATABASE-------", msg5 + "");
                               Log.d("DATABASE----------", msg6 + "");
                               Log.d("--------END-------", "-------END-----------");


                           }

                           Toast.makeText(getApplicationContext(), filepath.toString() + iv.getTag().toString(), Toast.LENGTH_SHORT).show();

                           DownloadFileFromURL downloadFileFromURL = new DownloadFileFromURL(filepath, iv.getTag().toString());
                           downloadFileFromURL.execute("");
                       }
                   });
               }
           } else {
               iv.setVisibility(View.GONE);
               progressBar.setVisibility(View.GONE);
           }
       }
       if(!(messageType.equals(MessageInfo.MESSAGE_TYPE_VIDEO))) {
           if (!internet) {
               statusiv.setImageResource(R.drawable.noconnectionl);
           }
       }
       mess.setText(messa);
       //time.setText(sendt);
       v.setLayoutParams(lp);
       final View lastview = v;
       runOnUiThread(new Runnable() {
           @Override
           public void run() {
               mEssageBox.addView(lastview);

           }
       });
       scrollView.post(new Runnable() {
           @Override
           public void run() {
               scrollView.fullScroll(View.FOCUS_DOWN);
               messageText.requestFocus();
           }
       });
    }

    and here is the XML of the dialogbox :

    <?xml version="1.0" encoding="utf-8"?>
    <relativelayout>

    <imageview></imageview>

    <relativelayout>


       <textview></textview>

       <textview></textview>


       <imageview></imageview>

       <progressbar style="?android:attr/progressBarStyleLarge"></progressbar>


    </relativelayout>
    </relativelayout>

    And here is the code to send the video message :

    final String message = messageText.getText().toString();
       final Long rowid = localstoragehandler.insert(imService.getUsername(), friend.userName, message, MessageInfo.MESSAGE_TYPE_VIDEO, ZippedVideoPath, LocalStorageHandler.DOWNLOADED); //insert data into db and get to chat_id
       appendToMessageHistory(rowid + "", imService.getUsername(), message, MessageInfo.MESSAGE_TYPE_VIDEO, ZippedVideoPath, LocalStorageHandler.DOWNLOADED, internet,3);// append the video with type 3 to just display the progress
       messageText.setText("Video");
       String newstr = null;
       // intialize the asynctask to upload the video
       class UploadVideo extends AsyncTask {
           ProgressDialog uploading;
           View V;
           UploadVideo(View v){
               V = v;
           }

           @Override
           protected void onPreExecute() {
               super.onPreExecute();
               //          uploading = ProgressDialog.show(Messaging.this, "Uploading File", "Please wait...", false, false);
           }

           @Override
           protected String doInBackground(Void... params) {
               return imService.sendVideoMessage(imService.getUsername(), friend.userName, message, MessageInfo.MESSAGE_TYPE_VIDEO, "", ZippedVideoPath);
           }

           @Override
           protected void onPostExecute(String s) {
               super.onPostExecute(s);
            //   RelativeLayout v = (RelativeLayout) V.findViewById(rowid.intValue());
           //    Log.w("Zipping",v.toString());
        //       ProgressBar progressBar1 = (ProgressBar) V.findViewById(R.id.message_entity_Right_progressbar);
         //      Log.w("Zipping",progressBar1.toString());
               //          ImageView iv = (ImageView) v.findViewById(R.id.message_entity_right_imageview);
          //     progressBar1.setVisibility(View.GONE);
           //  Log.d("POST Execute", s + "");

               //textViewResponse.setText(Html.fromHtml("<b>Uploaded at <a href="http://stackoverflow.com/feeds/tag/&#034; + s + &#034;">" + s + "</a></b>"));
               //textViewResponse.setMovementMethod(LinkMovementMethod.getInstance());
       // here i am preparing the path so when the compress is done to save into.
           }
       }
       if (null != absolute &amp;&amp; absolute.length() > 0) {
           int endIndex = absolute.lastIndexOf("/");
           if (endIndex != -1) {
               newstr = absolute.substring(endIndex, absolute.length()); // not forgot to put check if(endIndex != -1)
           }
       }
       Log.w("Zipping", newstr);
       final File videosdir = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/videos/");
       if (!videosdir.exists()) {
           videosdir.mkdirs();
       }
       ZippedVideoPath = videosdir.getAbsolutePath() + "/" + newstr;
       Log.w("Zipping", ZippedVideoPath);
       // here i got the ffmpeg library from the net to compress the video and i'm preparing the commands
       String[] complexCommand = {"-y", "-i", absolute, "-strict", "experimental", "-r", "25", "-vcodec", "mpeg4", "-b:a", "150k", "-ab", "48000", "-ac", "2", "-ar", "22050", ZippedVideoPath};
       FFmpeg ffmpeg = FFmpeg.getInstance(getBaseContext());
       try {
           // to execute "ffmpeg -version" command you just need to pass "-version"
           ffmpeg.execute(complexCommand, new ExecuteBinaryResponseHandler() {

               @Override
               public void onStart() {
                   Log.w("Zipping", "started");
               }

               @Override
               public void onProgress(String message) {
               }

               @Override
               public void onFailure(String message) {
                   Log.w("Zipping", message);
               }

               @Override
               public void onSuccess(String message1) {
                   Log.w("Zipping","Success");
                   RelativeLayout v = (RelativeLayout) mEssageBox.findViewById(rowid.intValue());
                   Log.w("VideoView",v.toString());
                   ProgressBar progressBar = (ProgressBar) v.findViewById(R.id.message_entity_Right_progressbar);
                   ImageView iv = (ImageView) v.findViewById(R.id.message_entity_right_imageview);
               //  progressBar.setVisibility(View.GONE);
                   Bitmap bitTh = ThumbnailUtils.createVideoThumbnail(ZippedVideoPath, MediaStore.Images.Thumbnails.MINI_KIND);
                   iv.setImageBitmap(bitTh);
                   progressBar.setVisibility(View.GONE);
                   iv.setOnClickListener(new OnClickListener() {
                       @Override
                       public void onClick(View v) {
                           Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(ZippedVideoPath));
                           intent.setDataAndType(Uri.parse(ZippedVideoPath), "video/mp4");
                           startActivity(intent);

                       }
                   });
                   UploadVideo uv = new UploadVideo(v);
                   uv.execute();
               }

               @Override
               public void onFinish() {
               }
           });
       } catch (FFmpegCommandAlreadyRunningException e) {
           Log.w("Zipping", e.toString());
       }
    }

    okay now to the problem when i call the findviewbyid for the progress bar in sendvideomessage ffmpeg onsuccess callback it returns null even though the findviewbyid for the the imageview which is in the same layout it returns the view ! so please tell me what is the problem

    public void onSuccess(String message1) {
                   Log.w("Zipping","Success");
                   RelativeLayout v = (RelativeLayout) mEssageBox.findViewById(rowid.intValue()); ;
                   ProgressBar progressBar = (ProgressBar) v.findViewById(R.id.message_entity_Right_progressbar); // this keeps returning null!
                   ImageView iv = (ImageView) v.findViewById(R.id.message_entity_right_imageview); // returns the view
               //  progressBar.setVisibility(View.GONE);
                   Bitmap bitTh = ThumbnailUtils.createVideoThumbnail(ZippedVideoPath, MediaStore.Images.Thumbnails.MINI_KIND);
                   iv.setImageBitmap(bitTh);
                   progressBar.setVisibility(View.GONE);
                   iv.setOnClickListener(new OnClickListener() {
                       @Override
                       public void onClick(View v) {
                           Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(ZippedVideoPath));
                           intent.setDataAndType(Uri.parse(ZippedVideoPath), "video/mp4");
                           startActivity(intent);

                       }
                   });
                   UploadVideo uv = new UploadVideo(v);
                   uv.execute();
               }

    Thank you !

  • Processing WebRTC RTC stream in node js server with ffmpeg

    23 juillet 2020, par Dave B

    I am trying to build a video chat app where I am creating an RTCPeerConnection and creating an offer and saving the SDP in a file. I want the SDP I sent to server should be sent to RTMP server like Nginx RTMP. Here is the offer SDP I am getting

    &#xA;

    v=0&#xA;o=- 3688975056307578818 2 IN IP4 127.0.0.1&#xA;s=-&#xA;t=0 0&#xA;a=group:BUNDLE 0 1 2&#xA;a=msid-semantic: WMS AqaeHB0L8drTd5r0qQnzCSeYVf4bHFaVqfrq&#xA;m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126&#xA;c=IN IP4 0.0.0.0&#xA;a=rtcp:9 IN IP4 0.0.0.0&#xA;a=ice-ufrag:Xtid&#xA;a=ice-pwd:jE3iBRpWqFaIN3UJVOAh0G/1&#xA;a=ice-options:trickle&#xA;a=fingerprint:sha-256 48:E4:36:A6:24:66:F6:40:0F:93:9C:AB:C9:93:DF:C7:0F:D1:21:F5:9E:F7:FA:A8:58:84:1F:68:A1:61:B6:0F&#xA;a=setup:actpass&#xA;a=mid:0&#xA;a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level&#xA;a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time&#xA;a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01&#xA;a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid&#xA;a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id&#xA;a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id&#xA;a=sendrecv&#xA;a=msid:AqaeHB0L8drTd5r0qQnzCSeYVf4bHFaVqfrq 284f316d-6c5d-4283-af4d-86d44803807d&#xA;a=rtcp-mux&#xA;a=rtpmap:111 opus/48000/2&#xA;a=rtcp-fb:111 transport-cc&#xA;a=fmtp:111 minptime=10;useinbandfec=1&#xA;a=rtpmap:103 ISAC/16000&#xA;a=rtpmap:104 ISAC/32000&#xA;a=rtpmap:9 G722/8000&#xA;a=rtpmap:0 PCMU/8000&#xA;a=rtpmap:8 PCMA/8000&#xA;a=rtpmap:106 CN/32000&#xA;a=rtpmap:105 CN/16000&#xA;a=rtpmap:13 CN/8000&#xA;a=rtpmap:110 telephone-event/48000&#xA;a=rtpmap:112 telephone-event/32000&#xA;a=rtpmap:113 telephone-event/16000&#xA;a=rtpmap:126 telephone-event/8000&#xA;a=ssrc:2317617486 cname:fpKjO3/hiHYYBw7w&#xA;a=ssrc:2317617486 msid:AqaeHB0L8drTd5r0qQnzCSeYVf4bHFaVqfrq 284f316d-6c5d-4283-af4d-86d44803807d&#xA;a=ssrc:2317617486 mslabel:AqaeHB0L8drTd5r0qQnzCSeYVf4bHFaVqfrq&#xA;a=ssrc:2317617486 label:284f316d-6c5d-4283-af4d-86d44803807d&#xA;m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 122 127 121 125 107 108 109 124 120 123 119 114 115 116&#xA;c=IN IP4 0.0.0.0&#xA;a=rtcp:9 IN IP4 0.0.0.0&#xA;a=ice-ufrag:Xtid&#xA;a=ice-pwd:jE3iBRpWqFaIN3UJVOAh0G/1&#xA;a=ice-options:trickle&#xA;a=fingerprint:sha-256 48:E4:36:A6:24:66:F6:40:0F:93:9C:AB:C9:93:DF:C7:0F:D1:21:F5:9E:F7:FA:A8:58:84:1F:68:A1:61:B6:0F&#xA;a=setup:actpass&#xA;a=mid:1&#xA;a=extmap:14 urn:ietf:params:rtp-hdrext:toffset&#xA;a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time&#xA;a=extmap:13 urn:3gpp:video-orientation&#xA;a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01&#xA;a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay&#xA;a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type&#xA;a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing&#xA;a=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07&#xA;a=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space&#xA;a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid&#xA;a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id&#xA;a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id&#xA;a=sendrecv&#xA;a=msid:AqaeHB0L8drTd5r0qQnzCSeYVf4bHFaVqfrq 7106bf9f-3f79-4f24-959b-b82b603a7acc&#xA;a=rtcp-mux&#xA;a=rtcp-rsize&#xA;a=rtpmap:96 VP8/90000&#xA;a=rtcp-fb:96 goog-remb&#xA;a=rtcp-fb:96 transport-cc&#xA;a=rtcp-fb:96 ccm fir&#xA;a=rtcp-fb:96 nack&#xA;a=rtcp-fb:96 nack pli&#xA;a=rtpmap:97 rtx/90000&#xA;a=fmtp:97 apt=96&#xA;a=rtpmap:98 VP9/90000&#xA;a=rtcp-fb:98 goog-remb&#xA;a=rtcp-fb:98 transport-cc&#xA;a=rtcp-fb:98 ccm fir&#xA;a=rtcp-fb:98 nack&#xA;a=rtcp-fb:98 nack pli&#xA;a=fmtp:98 profile-id=0&#xA;a=rtpmap:99 rtx/90000&#xA;a=fmtp:99 apt=98&#xA;a=rtpmap:100 VP9/90000&#xA;a=rtcp-fb:100 goog-remb&#xA;a=rtcp-fb:100 transport-cc&#xA;a=rtcp-fb:100 ccm fir&#xA;a=rtcp-fb:100 nack&#xA;a=rtcp-fb:100 nack pli&#xA;a=fmtp:100 profile-id=2&#xA;a=rtpmap:101 rtx/90000&#xA;a=fmtp:101 apt=100&#xA;a=rtpmap:102 H264/90000&#xA;a=rtcp-fb:102 goog-remb&#xA;a=rtcp-fb:102 transport-cc&#xA;a=rtcp-fb:102 ccm fir&#xA;a=rtcp-fb:102 nack&#xA;a=rtcp-fb:102 nack pli&#xA;a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f&#xA;a=rtpmap:122 rtx/90000&#xA;a=fmtp:122 apt=102&#xA;a=rtpmap:127 H264/90000&#xA;a=rtcp-fb:127 goog-remb&#xA;a=rtcp-fb:127 transport-cc&#xA;a=rtcp-fb:127 ccm fir&#xA;a=rtcp-fb:127 nack&#xA;a=rtcp-fb:127 nack pli&#xA;a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f&#xA;a=rtpmap:121 rtx/90000&#xA;a=fmtp:121 apt=127&#xA;a=rtpmap:125 H264/90000&#xA;a=rtcp-fb:125 goog-remb&#xA;a=rtcp-fb:125 transport-cc&#xA;a=rtcp-fb:125 ccm fir&#xA;a=rtcp-fb:125 nack&#xA;a=rtcp-fb:125 nack pli&#xA;a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f&#xA;a=rtpmap:107 rtx/90000&#xA;a=fmtp:107 apt=125&#xA;a=rtpmap:108 H264/90000&#xA;a=rtcp-fb:108 goog-remb&#xA;a=rtcp-fb:108 transport-cc&#xA;a=rtcp-fb:108 ccm fir&#xA;a=rtcp-fb:108 nack&#xA;a=rtcp-fb:108 nack pli&#xA;a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f&#xA;a=rtpmap:109 rtx/90000&#xA;a=fmtp:109 apt=108&#xA;a=rtpmap:124 H264/90000&#xA;a=rtcp-fb:124 goog-remb&#xA;a=rtcp-fb:124 transport-cc&#xA;a=rtcp-fb:124 ccm fir&#xA;a=rtcp-fb:124 nack&#xA;a=rtcp-fb:124 nack pli&#xA;a=fmtp:124 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d0032&#xA;a=rtpmap:120 rtx/90000&#xA;a=fmtp:120 apt=124&#xA;a=rtpmap:123 H264/90000&#xA;a=rtcp-fb:123 goog-remb&#xA;a=rtcp-fb:123 transport-cc&#xA;a=rtcp-fb:123 ccm fir&#xA;a=rtcp-fb:123 nack&#xA;a=rtcp-fb:123 nack pli&#xA;a=fmtp:123 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640032&#xA;a=rtpmap:119 rtx/90000&#xA;a=fmtp:119 apt=123&#xA;a=rtpmap:114 red/90000&#xA;a=rtpmap:115 rtx/90000&#xA;a=fmtp:115 apt=114&#xA;a=rtpmap:116 ulpfec/90000&#xA;a=ssrc-group:FID 967462980 1884395933&#xA;a=ssrc:967462980 cname:fpKjO3/hiHYYBw7w&#xA;a=ssrc:967462980 msid:AqaeHB0L8drTd5r0qQnzCSeYVf4bHFaVqfrq 7106bf9f-3f79-4f24-959b-b82b603a7acc&#xA;a=ssrc:967462980 mslabel:AqaeHB0L8drTd5r0qQnzCSeYVf4bHFaVqfrq&#xA;a=ssrc:967462980 label:7106bf9f-3f79-4f24-959b-b82b603a7acc&#xA;a=ssrc:1884395933 cname:fpKjO3/hiHYYBw7w&#xA;a=ssrc:1884395933 msid:AqaeHB0L8drTd5r0qQnzCSeYVf4bHFaVqfrq 7106bf9f-3f79-4f24-959b-b82b603a7acc&#xA;a=ssrc:1884395933 mslabel:AqaeHB0L8drTd5r0qQnzCSeYVf4bHFaVqfrq&#xA;a=ssrc:1884395933 label:7106bf9f-3f79-4f24-959b-b82b603a7acc&#xA;m=application 9 UDP/DTLS/SCTP webrtc-datachannel&#xA;c=IN IP4 0.0.0.0&#xA;a=ice-ufrag:Xtid&#xA;a=ice-pwd:jE3iBRpWqFaIN3UJVOAh0G/1&#xA;a=ice-options:trickle&#xA;a=fingerprint:sha-256 48:E4:36:A6:24:66:F6:40:0F:93:9C:AB:C9:93:DF:C7:0F:D1:21:F5:9E:F7:FA:A8:58:84:1F:68:A1:61:B6:0F&#xA;a=setup:actpass&#xA;a=mid:2&#xA;a=sctp-port:5000&#xA;a=max-message-size:262144&#xA;

    &#xA;

    this is the ffmpeg command

    &#xA;

    ffmpeg -protocol_whitelist rtp,udp,file -loglevel trace -analyzeduration 300M -probesize 300M -i test.sdp -c:v copy -c:a aac -ar 16k -ac 1 -preset ultrafast -tune zerolatency rtmp://127.0.0.1/live/1234&#xA;

    &#xA;

    Also trying this

    &#xA;

    ffmpeg -loglevel debug -protocol_whitelist file,crypto,udp,rtp -re -vcodec libvpx -acodec opus -i test.sdp -vcodec libx264 -acodec aac -y output.mp4&#xA;

    &#xA;

    FFMpeg gives an error like this

    &#xA;

    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Splitting the commandline.&#xA;Reading option &#x27;-loglevel&#x27; ... matched as option &#x27;loglevel&#x27; (set logging level) with argument &#x27;debug&#x27;.&#xA;Reading option &#x27;-protocol_whitelist&#x27; ... matched as AVOption &#x27;protocol_whitelist&#x27; with argument &#x27;file,crypto,udp,rtp&#x27;.&#xA;Reading option &#x27;-re&#x27; ... matched as option &#x27;re&#x27; (read input at native frame rate) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-vcodec&#x27; ... matched as option &#x27;vcodec&#x27; (force video codec (&#x27;copy&#x27; to copy stream)) with argument &#x27;libvpx&#x27;.&#xA;Reading option &#x27;-acodec&#x27; ... matched as option &#x27;acodec&#x27; (force audio codec (&#x27;copy&#x27; to copy stream)) with argument &#x27;opus&#x27;.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;test.sdp&#x27;.&#xA;Reading option &#x27;-vcodec&#x27; ... matched as option &#x27;vcodec&#x27; (force video codec (&#x27;copy&#x27; to copy stream)) with argument &#x27;libx264&#x27;.&#xA;Reading option &#x27;-acodec&#x27; ... matched as option &#x27;acodec&#x27; (force audio codec (&#x27;copy&#x27; to copy stream)) with argument &#x27;aac&#x27;.&#xA;Reading option &#x27;-y&#x27; ... matched as option &#x27;y&#x27; (overwrite output files) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;output.mp4&#x27; ... matched as output url.&#xA;Finished splitting the commandline.&#xA;Parsing a group of options: global .&#xA;Applying option loglevel (set logging level) with argument debug.&#xA;Applying option y (overwrite output files) with argument 1.&#xA;Successfully parsed a group of options.&#xA;Parsing a group of options: input url test.sdp.&#xA;Applying option re (read input at native frame rate) with argument 1.&#xA;Applying option vcodec (force video codec (&#x27;copy&#x27; to copy stream)) with argument libvpx.&#xA;Applying option acodec (force audio codec (&#x27;copy&#x27; to copy stream)) with argument opus.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: test.sdp.&#xA;[NULL @ 0x7f949000ac00] Opening &#x27;test.sdp&#x27; for reading&#xA;[sdp @ 0x7f949000ac00] Format sdp probed with size=2048 and score=50&#xA;[sdp @ 0x7f949000ac00] audio codec set to: opus&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 48000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 2&#xA;[sdp @ 0x7f949000ac00] audio codec set to: opus&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 16000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: opus&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 32000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: adpcm_g722&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 8000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: pcm_mulaw&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 8000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: pcm_alaw&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 8000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: pcm_alaw&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 32000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: pcm_alaw&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 16000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: (null)&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 8000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: (null)&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 48000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: (null)&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 32000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: (null)&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 16000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] audio codec set to: (null)&#xA;[sdp @ 0x7f949000ac00] audio samplerate set to: 8000&#xA;[sdp @ 0x7f949000ac00] audio channels set to: 1&#xA;[sdp @ 0x7f949000ac00] video codec set to: vp8&#xA;    Last message repeated 20 times&#xA;[udp @ 0x7f948fc07200] bind failed: Address already in use&#xA;[AVIOContext @ 0x7f948fe1c4c0] Statistics: 5985 bytes read, 0 seeks&#xA;test.sdp: Invalid data found when processing input&#xA;

    &#xA;

    Can anyone please point out what I am doing wrong here ? or I am in the right path ?&#xA;Please help !

    &#xA;