Skip to content

Commit 1b43d8a

Browse files
author
Clement Champetier
committed
avprocessor: by default generate silence if generator
Use 'generate-black' to generate black images.
1 parent d369434 commit 1b43d8a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

app/avProcessor/avProcessor.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ static const std::string dummySampleFormat = "s16";
1919
static const std::string dummyAudioCodec = "pcm_s16le";
2020

2121
static bool useVideoGenerator = false;
22-
static bool useAudioGenerator = false;
2322

2423
bool verbose = false;
2524

@@ -97,7 +96,7 @@ int main( int argc, char** argv )
9796
{
9897
std::string help;
9998
help += "Usage\n";
100-
help += "\tavprocessor CONFIG.TXT OUTPUT_FILE_NAME [--generate-black] [--generate-silence] [--help]\n";
99+
help += "\tavprocessor CONFIG.TXT OUTPUT_FILE_NAME [--generate-black] [--help]\n";
101100
help += "CONFIG.TXT\n";
102101
help += "\tEach line will be one stream in the output.\n";
103102
help += "\tPattern of each line is:\n";
@@ -106,8 +105,7 @@ int main( int argc, char** argv )
106105
help += "\tNo subStreamId: will process of channels of the stream\n";
107106
help += "\tNo profileName: will rewrap the stream\n";
108107
help += "Command line options\n";
109-
help += "\t--generate-black: stream which not referred to an input, will generate an output video stream with black images\n";
110-
help += "\t--generate-silent: stream which not referred to an input, will generate an output audio stream with silence\n";
108+
help += "\t--generate-black: stream which not referred to an input, will generate an output video stream with black images (by default generate audio stream with silence)\n";
111109
help += "\t--help: display this help\n";
112110

113111
// List command line arguments
@@ -122,10 +120,6 @@ int main( int argc, char** argv )
122120
{
123121
useVideoGenerator = true;
124122
}
125-
else if( arguments.at( argument ) == "--generate-silence" )
126-
{
127-
useAudioGenerator = true;
128-
}
129123
else if( arguments.at( argument ) == "--help" )
130124
{
131125
std::cout << help << std::endl;

0 commit comments

Comments
 (0)