SuperCuber
SuperCuber
Seems the issue was with some other piece of code - the ffmpeg command itself was failing. This seems to work! Thanks for the help :D Could this be perhaps...
Turns out I didn't have the `opus` package installed on my runtime stage (as opposed to the building stage), because `ldd /my/binary` outputted a couple errors about `libopus` not found....
strace shows ``` discord_1 | futex(0x7f113047d0a0, FUTEX_WAIT_PRIVATE, 1, NULL) = 0 discord_1 | futex(0x7f113047d0a0, FUTEX_WAIT_PRIVATE, 1, NULLBot is connected. discord_1 | ) = ? discord_1 | +++ killed by SIGSEGV...
`bt` after the crash gives: ``` (gdb) bt #0 0x0000000000000000 in ?? () #1 0x00007ff2b34d08c8 in audiopus::coder::encoder::Encoder::new (sample_rate=audiopus::SampleRate::Hz48000, channels=audiopus::Channels::Stereo, mode=audiopus::Application::Audio) at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/audiopus-0.2.0/src/coder/encoder.rs:87 #2 0x00007ff2b33ec70f in songbird::driver::tasks::mixer::new_encoder (bitrate=...) at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/songbird-0.2.2/src/driver/tasks/mixer.rs:51 #3...
I encountered this today and would love to see this implemented, and I support re-scoping the PR to serializing only (and return an error on the non-header deserialize example)
When I think about, I'm not quite sure why tokenize and identify are different steps - don't you know the type of the token while you produce it? Seems strange...
> We can include multiple parsing models and let the end developer choose one which fits the performance and capability requirements of their project. I think this is the way...
> Did you try the workaround using CSS sibling selectors? It's going to be a bit fiddly. For example, if I wanted to color only the text inside the brackets...
> Let me do some deeper thinking on this So did you come up with some ideas? I'm interested in this feature.
> preceding and following tokens I assume that at least the following tokens are not `.identify`ed yet, so if you wanted to do that you'd need to re-implement identifying those...