New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reading from pipe #10
Conversation
Add support of reading from pipe. Sample app expects -i stdin and -n [FrameToBeEncoded] to be set. Signed-off-by: Jun Tian <jun.tian@intel.com>
2375012
to
aa51e71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just adding the width and height to sample command line otherwise, the functionality has been validated
README.md
Outdated
@@ -105,6 +105,7 @@ In order to run the highest resolution supported by the encoder, at least 64GB o | |||
- On any of the Windows* Operating Systems listed in the OS requirements section, install Visual Studio 2017 | |||
- Once the installation is complete, copy the binaries to a location making sure that both the sample application “ebHevcEncApp.exe” and library “ebHevcEncLib.dll” are in the same folder. | |||
- Open the command prompt window at the chosen location and run the sample application to encode. | |||
- Sample application supports reading from pipe. E.g. ffmpeg -i [input.mp4] -nostdin -f rawvideo -pix_fmt yuv420p - | ebHevcEncApp.exe -i stdin -n [number_of_frames_to_encode]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The width and height should still be specified in the SVT command line
README.md
Outdated
@@ -127,6 +128,7 @@ For the binaries to operate properly on your system, the following conditions ha | |||
- Change the permissions on the sample application “HevcEncoderApp” executable by running the command: chmod +x HevcEncoderApp | |||
- cd into your chosen location | |||
- Run the sample application to encode. | |||
- Sample application supports reading from pipe. E.g. ffmpeg -i [input.mp4] -nostdin -f rawvideo -pix_fmt yuv420p - | ./HevcEncoderApp -i stdin -n [number_of_frames_to_encode]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The width and height should still be specified in the SVT command line
Signed-off-by: Jun Tian <jun.tian@intel.com>
I am ok with this being merged, @lijing0010 ? |
Looks good to me
|
@hassount Thx for merging the change. All related commits on a pull request can be squashed as one commit when merged into mainline. Just choose "Squash Merge". |
whoops, should I revert then squash and merge ? |
I think it's ok for this one. Your call:) |
For linux OS, add support to read from pipe.
Sample app expects FrameToBeEncoded(-n) to be set.
Signed-off-by: Jun Tian jun.tian@intel.com