Skip to content

Commit

Permalink
Merge pull request avTranscoder#148 from cchampet/ressource_addPreset…
Browse files Browse the repository at this point in the history
…sh264

Add presets h264 low quality/high quality
  • Loading branch information
valnoel committed Apr 9, 2015
2 parents 152dd48 + 77d8f64 commit 5633b19
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
5 changes: 0 additions & 5 deletions ressource/v_h264.prf

This file was deleted.

9 changes: 9 additions & 0 deletions ressource/v_h264_hq.prf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
avProfileName=h264-hq
avProfileLongName=H.264 High Quality
avProfileType=avProfileTypeVideo
codec=h264
pix_fmt=yuv422p
profile=high422
preset=slow
tune=fastdecode,zerolatency
level=5
9 changes: 9 additions & 0 deletions ressource/v_h264_lq.prf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
avProfileName=h264-lq
avProfileLongName=H.264 Low Quality
avProfileType=avProfileTypeVideo
codec=h264
pix_fmt=yuv420p
profile=baseline
preset=ultrafast
tune=fastdecode,zerolatency
level=3
5 changes: 3 additions & 2 deletions src/AvTranscoder/profile/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int getFilesInDir( const std::string& dir, std::vector< std::string >& files )
{
const std::string filename( findData.cFileName );
bool isdir = ( findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) != 0;
if( ! isdir )
if( ! isdir && filename.find(".prf") != std::string::npos )
files.push_back( filename );

int rval = FindNextFile( findHandle, &findData );
Expand All @@ -81,7 +81,8 @@ int getFilesInDir( const std::string& dir, std::vector< std::string >& files )
const std::string filename( dirp->d_name );
if( filename == "." || filename == ".." )
continue;
files.push_back( filename );
if( filename.find(".prf") != std::string::npos )
files.push_back( filename );
}
closedir( dp );
#endif
Expand Down

0 comments on commit 5633b19

Please sign in to comment.