This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "ffmpeg-multicast-example" | |
version = "0.1.0" | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
ac-ffmpeg = "0.17.0" | |
socket2 = { version = "0.3.4", features = ["reuseport"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fs::File; | |
use ac_ffmpeg::codec::audio::resampler::AudioResamplerBuilder; | |
use ac_ffmpeg::codec::audio::{ | |
AudioDecoder, AudioEncoder, AudioResampler, ChannelLayout, SampleFormat, | |
}; | |
use ac_ffmpeg::codec::{CodecParameters, Encoder}; | |
use ac_ffmpeg::format::muxer::{Muxer, OutputFormat}; | |
use ac_ffmpeg::{ | |
codec::{video::VideoDecoder, Decoder}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fs::File; | |
use ac_ffmpeg::codec::audio::resampler::AudioResamplerBuilder; | |
use ac_ffmpeg::codec::audio::{ | |
AudioDecoder, AudioEncoder, AudioResampler, ChannelLayout, SampleFormat, | |
}; | |
use ac_ffmpeg::codec::{CodecParameters, Encoder}; | |
use ac_ffmpeg::format::muxer::{Muxer, OutputFormat}; | |
use ac_ffmpeg::{ | |
codec::{video::VideoDecoder, Decoder}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fs::File; | |
use ac_ffmpeg::codec::audio::resampler::AudioResamplerBuilder; | |
use ac_ffmpeg::codec::audio::{ | |
AudioDecoder, AudioEncoder, AudioResampler, ChannelLayout, SampleFormat, | |
}; | |
use ac_ffmpeg::codec::Encoder; | |
use ac_ffmpeg::{ | |
codec::{video::VideoDecoder, Decoder}, | |
format::{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fs::File; | |
use ac_ffmpeg::codec::audio::resampler::AudioResamplerBuilder; | |
use ac_ffmpeg::codec::audio::{ | |
AudioDecoder, AudioEncoder, AudioResampler, ChannelLayout, SampleFormat, | |
}; | |
use ac_ffmpeg::codec::Encoder; | |
use ac_ffmpeg::{ | |
codec::{video::VideoDecoder, Decoder}, | |
format::{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"time" | |
"github.com/pidato/audio/opus" | |
"github.com/pion/rtp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"os" | |
"time" | |
"github.com/pion/rtp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct SomeStruct { | |
num: i32, | |
} | |
fn return_some_struct() -> SomeStruct { | |
SomeStruct { num: 5 } | |
} | |
impl SomeStruct { | |
fn return_num(&self) -> &i32 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ERROR ra_lsp_server::main_loop] overly long loop turn: 101.880082ms | |
[ERROR ra_lsp_server::main_loop] overly long loop turn: 115.362841ms | |
[ERROR ra_lsp_server::main_loop] overly long loop turn: 1.568441665s | |
[ERROR ra_lsp_server::main_loop] overly long loop turn: 107.732939ms | |
[ERROR ra_lsp_server::main_loop] overly long loop turn: 341.034012ms | |
[ERROR ra_lsp_server::main_loop] overly long loop turn: 103.057297ms | |
thread '<unnamed>' panicked at 'Fail to convert given literal Literal { | |
text: "\'(i32);", | |
id: TokenId( | |
9, |