{"action":"created","issue":{"url":"https://api.github.com/repos/bytedeco/javacv/issues/1074","repository_url":"https://api.github.com/repos/bytedeco/javacv","labels_url":"https://api.github.com/repos/bytedeco/javacv/issues/1074/labels{/name}","comments_url":"https://api.github.com/repos/bytedeco/javacv/issues/1074/comments","events_url":"https://api.github.com/repos/bytedeco/javacv/issues/1074/events","html_url":"https://github.com/bytedeco/javacv/issues/1074","id":373376614,"node_id":"MDU6SXNzdWUzNzMzNzY2MTQ=","number":1074,"title":"How do I implement this command line in JAVACV?","user":{"login":"xiaozhubenben","id":12681822,"node_id":"MDQ6VXNlcjEyNjgxODIy","avatar_url":"https://avatars3.githubusercontent.com/u/12681822?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaozhubenben","html_url":"https://github.com/xiaozhubenben","followers_url":"https://api.github.com/users/xiaozhubenben/followers","following_url":"https://api.github.com/users/xiaozhubenben/following{/other_user}","gists_url":"https://api.github.com/users/xiaozhubenben/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaozhubenben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaozhubenben/subscriptions","organizations_url":"https://api.github.com/users/xiaozhubenben/orgs","repos_url":"https://api.github.com/users/xiaozhubenben/repos","events_url":"https://api.github.com/users/xiaozhubenben/events{/privacy}","received_events_url":"https://api.github.com/users/xiaozhubenben/received_events","type":"User","site_admin":false},"labels":[{"id":93998517,"node_id":"MDU6TGFiZWw5Mzk5ODUxNw==","url":"https://api.github.com/repos/bytedeco/javacv/labels/help%20wanted","name":"help wanted","color":"159818","default":true},{"id":93998519,"node_id":"MDU6TGFiZWw5Mzk5ODUxOQ==","url":"https://api.github.com/repos/bytedeco/javacv/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-24T09:00:14Z","updated_at":"2018-10-25T02:09:10Z","closed_at":null,"author_association":"NONE","body":"Hi, Ｉneed send a dtmf wav to  callee using rtp, the following command line do this well:\r\n`ffmpeg –re -i \"+wavFilePath+\" -vn -acodec pcm_alaw -ar 8000 -f rtp rtp://aServer:aPort`\r\nHow can I implement this command line with JAVACV? \r\nIs it the following code? Using the code, on the  callee side I can only  hear some  part of the WAV data content , feeling like  some  is missing.\r\n\r\n\r\n```\r\n\tFFmpegFrameGrabber grabber = new FFmpegFrameGrabber(wavFilePath);\r\n\t\tgrabber.setAudioCodec(avcodec.AV_CODEC_ID_PCM_U8); \r\n\t\tgrabber.start();\r\n\t\tString outputRtp = \"rtp://\" + c.getAddress() + \":\" + remoteAudioRtpPort;\r\n\t\tFFmpegFrameRecorder recorder = new FFmpegFrameRecorder(outputRtp, grabber.getAudioChannels());\r\n\t\trecorder.setAudioCodec(avcodec.AV_CODEC_ID_PCM_ALAW); \t\r\n\t\trecorder.setFormat(\"rtp\");\r\n        recorder.setAudioQuality(0); \t\t\r\n\t\trecorder.setSampleRate(8000);\r\n\t\trecorder.setFrameRate(grabber.getAudioFrameRate());\r\n\t\trecorder.setAudioBitrate(64000); \t \r\n                recorder.start();\r\n\t\tFrame frame = null;\t\t\r\n\t\twhile ((frame = grabber.grabFrame()) != null) {\r\n\t\t\trecorder.setTimestamp(grabber.getTimestamp());            \t\t\r\n\t\t\trecorder.record(frame);\r\n\t\t}\r\n\t\t\r\n\r\n\t\tgrabber.flush();\r\n\t\tgrabber.stop();\r\n\t\t\r\n\t\tgrabber.close();\r\n\t\t\r\n\t\trecorder.stop();\r\n\t\trecorder.close();\r\n\t\trecorder.release();\r\n```"},"comment":{"url":"https://api.github.com/repos/bytedeco/javacv/issues/comments/432888599","html_url":"https://github.com/bytedeco/javacv/issues/1074#issuecomment-432888599","issue_url":"https://api.github.com/repos/bytedeco/javacv/issues/1074","id":432888599,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjg4ODU5OQ==","user":{"login":"saudet","id":3328023,"node_id":"MDQ6VXNlcjMzMjgwMjM=","avatar_url":"https://avatars1.githubusercontent.com/u/3328023?v=4","gravatar_id":"","url":"https://api.github.com/users/saudet","html_url":"https://github.com/saudet","followers_url":"https://api.github.com/users/saudet/followers","following_url":"https://api.github.com/users/saudet/following{/other_user}","gists_url":"https://api.github.com/users/saudet/gists{/gist_id}","starred_url":"https://api.github.com/users/saudet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saudet/subscriptions","organizations_url":"https://api.github.com/users/saudet/orgs","repos_url":"https://api.github.com/users/saudet/repos","events_url":"https://api.github.com/users/saudet/events{/privacy}","received_events_url":"https://api.github.com/users/saudet/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T02:09:10Z","updated_at":"2018-10-25T02:09:10Z","author_association":"MEMBER","body":"It just sounds like you're losing packets on the network. RTP isn't a reliable protocol. Maybe try with HTTP instead."}}
{"actor":{"display_login":"saudet"}}