File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,9 @@ void OutputStreamVideo::setProfile( const std::string& profile )
182
182
183
183
m_videoDesc.setVideoCodec ( prof[" codec" ] );
184
184
m_videoDesc.setTimeBase ( 1 , 25 ); // 25 fps
185
- // m_videoDesc.set( "pix_fmt", prof["pix_fmt"] );
185
+ m_videoDesc.setImageParameters ( 1920 , 1080 , av_get_pix_fmt ( prof[" pix_fmt" ].c_str () ) );
186
+
187
+ m_videoDesc.set ( " b" , prof[" b" ] );
186
188
187
189
setup ();
188
190
@@ -194,8 +196,12 @@ void OutputStreamVideo::setProfile( const std::string& profile )
194
196
continue ;
195
197
if ( (*it).first == " codec" )
196
198
continue ;
197
- // if( (*it).first == "pix_fmt" )
198
- // continue;
199
+ if ( (*it).first == " pix_fmt" )
200
+ continue ;
201
+ if ( (*it).first == " width" )
202
+ continue ;
203
+ if ( (*it).first == " height" )
204
+ continue ;
199
205
200
206
m_videoDesc.set ( (*it).first , (*it).second );
201
207
}
You can’t perform that action at this time.
0 commit comments