{"action":"opened","issue":{"url":"https://api.github.com/repos/alfredh/baresip/issues/85","labels_url":"https://api.github.com/repos/alfredh/baresip/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/alfredh/baresip/issues/85/comments","events_url":"https://api.github.com/repos/alfredh/baresip/issues/85/events","html_url":"https://github.com/alfredh/baresip/issues/85","id":114255820,"number":85,"title":"Possibility to directly pipe h264 encoded FFmpeg stream without further encoding from baresip","user":{"login":"xn2000","id":4941670,"avatar_url":"https://avatars.githubusercontent.com/u/4941670?v=3","gravatar_id":"","url":"https://api.github.com/users/xn2000","html_url":"https://github.com/xn2000","followers_url":"https://api.github.com/users/xn2000/followers","following_url":"https://api.github.com/users/xn2000/following{/other_user}","gists_url":"https://api.github.com/users/xn2000/gists{/gist_id}","starred_url":"https://api.github.com/users/xn2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xn2000/subscriptions","organizations_url":"https://api.github.com/users/xn2000/orgs","repos_url":"https://api.github.com/users/xn2000/repos","events_url":"https://api.github.com/users/xn2000/events{/privacy}","received_events_url":"https://api.github.com/users/xn2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-30T11:53:56Z","updated_at":"2015-10-30T11:53:56Z","closed_at":null,"body":"I am trying to use an Allwinner A20 Board with cedrus264 enabled FFmpeg hardware encoding with baresip.\r\nUnfortunately my attempts failed so far.\r\nI have tried to pipe FFmpeg output to a MKFIFO generated output file and use baresip with \"avformat\" input, which resulted in no video data.\r\nIt seemed as if baresip ignored all Parameters related to avformat.\r\nThe FFmpeg stream itself is fine. I tested it with gstreamer which accepts it without issues.\r\nIs it possible to have some sort of packaging only audio/video input without mkfifo and sorts or some way to integrate FFmpeg encoders?\r\n\r\nBest Regards,\r\n\r\nxn2000\r\n\r\n\r\nMy Config:\r\n\r\n#\r\n# baresip configuration\r\n#\r\n\r\n#------------------------------------------------------------------------------\r\n\r\n# Core\r\npoll_method\t\tepoll\t\t# poll, select, epoll ..\r\n\r\n# SIP\r\nsip_trans_bsize\t\t128\r\nsip_listen\t\t0.0.0.0:5060\r\n#sip_certificate\tcert.pem\r\n\r\n# Audio\r\naudio_player\t\talsa,default\r\naudio_source\t\talsa,default\r\naudio_alert\t\talsa,default\r\naudio_srate\t\t8000-48000\r\naudio_channels\t\t1-2\r\n#ausrc_srate\t\t48000\r\n#auplay_srate\t\t48000\r\n#ausrc_channels\t\t0\r\n#auplay_channels\t\t0\r\n\r\n# Video\r\nvideo_source            avformat,/root/out.mp4\r\n#video_source\t\tv4l2,/dev/video0\r\n#video_display\t\tx11,nil\r\n#video_size\t\t1280x720\r\n#video_bitrate\t\t300\r\n#video_fps\t\t15\r\n\r\n# AVT - Audio/Video Transport\r\nrtp_tos\t\t\t184\r\n#rtp_ports\t\t10000-20000\r\n#rtp_bandwidth\t\t512-1024 # [kbit/s]\r\nrtcp_enable\t\tyes\r\nrtcp_mux\t\tno\r\njitter_buffer_delay\t15-30\t\t# frames\r\nrtp_stats\t\tno\r\n\r\n# Network\r\n#dns_server\t\t10.0.0.1:53\r\n#net_interface\t\teth0\r\n\r\n# BFCP\r\n#bfcp_proto\t\tudp\r\n\r\n#------------------------------------------------------------------------------\r\n# Modules\r\n\r\nmodule_path\t\t/usr/local/lib/baresip/modules\r\n\r\n# UI Modules\r\nmodule\t\t\tstdio.so\r\nmodule\t\t\tcons.so\r\n#module\t\t\tevdev.so\r\nmodule\t\t\thttpd.so\r\n\r\n# Audio codec Modules (in order)\r\n#module\t\t\topus.so\r\n#module\t\t\tsilk.so\r\n#module\t\t\tamr.so\r\n#module\t\t\tg7221.so\r\n#module\t\t\tg722.so\r\n#module\t\t\tg726.so\r\nmodule\t\t\tg711.so\r\n#module\t\t\tgsm.so\r\n#module\t\t\tl16.so\r\n#module\t\t\tspeex.so\r\n#module\t\t\tbv32.so\r\n\r\n# Audio filter Modules (in encoding order)\r\nmodule\t\t\tvumeter.so\r\n#module\t\t\tsndfile.so\r\n#module\t\t\tspeex_aec.so\r\n#module\t\t\tspeex_pp.so\r\n#module\t\t\tplc.so\r\n\r\n# Audio driver Modules\r\nmodule\t\t\talsa.so\r\n#module\t\t\tportaudio.so\r\n\r\n# Video codec Modules (in order)\r\nmodule\t\t\tavcodec.so\r\nmodule\t\t\tvpx.so\r\n\r\n# Video filter Modules (in encoding order)\r\n#module\t\t\tselfview.so\r\n\r\n# Video source modules\r\n#module\t\t\tv4l.so\r\nmodule\t\t\tv4l2.so\r\n#module\t\t\tx11grab.so\r\n#module\t\t\tcairo.so\r\n\r\n# Video display modules\r\n#module\t\t\tx11.so\r\n#module\t\t\tsdl2.so\r\n\r\n# Audio/Video source modules\r\n#module\t\t\trst.so\r\n#module\t\t\tgst.so\r\n\r\n# Media NAT modules\r\nmodule\t\t\tstun.so\r\nmodule\t\t\tturn.so\r\nmodule\t\t\tice.so\r\n#module\t\t\tnatpmp.so\r\n\r\n# Media encryption modules\r\n#module\t\t\tsrtp.so\r\n#module\t\t\tdtls_srtp.so\r\n\r\n\r\n#------------------------------------------------------------------------------\r\n# Temporary Modules (loaded then unloaded)\r\n\r\nmodule_tmp\t\tuuid.so\r\nmodule_tmp\t\taccount.so\r\n\r\n\r\n#------------------------------------------------------------------------------\r\n# Application Modules\r\n\r\nmodule_app\t\tauloop.so\r\nmodule_app\t\tcontact.so\r\nmodule_app\t\tmenu.so\r\n#module_app\t\tmwi.so\r\n#module_app\t\tnatbd.so\r\n#module_app\t\tpresence.so\r\n#module_app\t\tsyslog.so\r\nmodule_app\t\tvidloop.so\r\n\r\n\r\n#------------------------------------------------------------------------------\r\n# Module parameters\r\n\r\n\r\ncons_listen\t\t0.0.0.0:5555\r\n\r\nhttp_listen\t\t0.0.0.0:8000\r\n\r\nevdev_device\t\t/dev/input/event0\r\n\r\n# Speex codec parameters\r\nspeex_quality\t\t7 # 0-10\r\nspeex_complexity\t7 # 0-10\r\nspeex_enhancement\t0 # 0-1\r\nspeex_mode_nb\t\t3 # 1-6\r\nspeex_mode_wb\t\t6 # 1-6\r\nspeex_vbr\t\t0 # Variable Bit Rate 0-1\r\nspeex_vad\t\t0 # Voice Activity Detection 0-1\r\nspeex_agc_level\t\t8000\r\n\r\n# Opus codec parameters\r\nopus_bitrate\t\t28000 # 6000-510000\r\n\r\n# NAT Behavior Discovery\r\nnatbd_server\t\tcreytiv.com\r\nnatbd_interval\t\t600\t\t# in seconds\r\n\r\n# Selfview\r\nvideo_selfview\t\twindow # {window,pip}\r\n#selfview_size\t\t64x64\r\n\r\n# ICE\r\nice_turn\t\tno\r\nice_debug\t\tno\r\nice_nomination\t\tregular\t# {regular,aggressive}\r\nice_mode\t\tfull\t# {full,lite}\r\n\r\n\r\n"}}