MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ExecuteFfmpeg

Function ExecuteFfmpeg

tensorflow/contrib/ffmpeg/default/ffmpeg_lib.cc:123–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123[[noreturn]] int ExecuteFfmpeg(const std::vector<string>& args) {
124 std::vector<char*> args_chars;
125 std::transform(args.begin(), args.end(), std::back_inserter(args_chars),
126 [](const string& s) { return const_cast<char*>(s.c_str()); });
127 args_chars.push_back(nullptr);
128 ::execvp(kFfmpegExecutable, args_chars.data());
129 // exec only returns on error.
130 const int error = errno;
131 LOG(ERROR) << "FFmpeg could not be executed: " << strerror(error);
132 ::_exit(error);
133}
134
135// Reads a PCM file using signed little endian 16-bit encoding (s16le).
136std::vector<float> ReadPcmFile(const string& filename) {

Callers 2

ReadAudioFileFunction · 0.85
ReadVideoFileFunction · 0.85

Calls 6

c_strMethod · 0.80
transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected