Skip to content
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

Merged
merged 2 commits into from Oct 31, 2018
Merged

Conversation

tianjunwork
Copy link
Contributor

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

@tianjunwork tianjunwork added the enhancement New feature or request label Oct 19, 2018
@tianjunwork tianjunwork self-assigned this Oct 19, 2018
@tianjunwork
Copy link
Contributor Author

#9

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>
Copy link
Contributor

@hassount hassount left a 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].
Copy link
Contributor

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].
Copy link
Contributor

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>
@hassount
Copy link
Contributor

I am ok with this being merged, @lijing0010 ?

@lijing0010
Copy link
Contributor

Looks good to me

I am ok with this being merged, @lijing0010 ?
Looks good to me

@hassount hassount merged commit f8b6a8c into OpenVisualCloud:master Oct 31, 2018
@tianjunwork
Copy link
Contributor Author

@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".

@hassount
Copy link
Contributor

whoops, should I revert then squash and merge ?

@tianjunwork
Copy link
Contributor Author

I think it's ok for this one. Your call:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants