MediaSDK
MediaSDK copied to clipboard
Add pipe input support to sample_encode
Hi, its possible to add support to read yuv file from pipe to sample_encode?
ffmpeg -hide_banner -v error -i "C:\Users\thx4ever\Desktop\Encoding CFG.avs" -f rawvideo - | sample_encode h265 -p010 -i - -msb10 -ec::p010 -bref -idr_interval 24 -f 23.976 -u balanced -r 8 -g 240 -x 6 -p hevce_gacc -cqp -qpi 0 -qpp 0 -qpb 0 -gpb:off -TransformSkip:on -ppyr:on -AdaptiveI:on -AdaptiveB:on -amfs:on -WeightedPred:implicit -WeightedBiPred:implicit -extbrc:on -w 1920 -h 1080 -o teste.hevc
Currently dont have support for loading a yuv from pipe rawvideo from ffmpeg, i think this can be done because various another encoders have this.
Currently this error appear
plugin_loader.h :185 [INFO] Plugin was loaded from GUID: { 0xe5, 0x40, 0x0a, 0x06, 0xc7, 0x4d, 0x41, 0xf5, 0xb1, 0x2d, 0x43, 0x0b, 0xba, 0xa2, 0x3d, 0x0b } (Intel (R) Media SDK GPU-Accelerated plugin for HEVC ENCODE)
[ERROR], sts=MFX_ERR_NULL_PTR(-2), CSmplYUVReader::Init, f pointer is NULL at C:\Users\thx4ever\Downloads\MediaSDK-master\MediaSDK-master\samples\sample_common\src\sample_utils.cpp:150
[ERROR], sts=MFX_ERR_NULL_PTR(-2), CEncodingPipeline::Init, m_FileReader.Init failed at C:\Users\thx4ever\Downloads\MediaSDK-master\MediaSDK-master\samples\sample_encode\src\pipeline_encode.cpp:1796
[ERROR], sts=MFX_ERR_NULL_PTR(-2), wmain, pPipeline->Init failed at C:\Users\thx4ever\Downloads\MediaSDK-master\MediaSDK-master\samples\sample_encode\src\sample_encode.cpp:1710 plugin_loader.h :211 [INFO] MFXBaseUSER_UnLoad(session=0x000002A792DF6420), sts=0 av_interleaved_write_frame(): Broken pipe Error writing trailer of pipe:: Broken pipe
Hi @SofyaBalandina can you take a look?
Hi, @daleksan, yes. I will discuss this issue with the team first and write a conclusion
Hi @daleksan , it was decided to implement this feature in order of priority, ticket is created
Thanks a lot @SofyaBalandina , please share update once it will be implemented.
Any news about this?
Hi, this functionality is not implemented yet, we will deal with it as soon as we can
After one year, this feature are not implemented? Please review and implement this feature I'm still using sample_encode with Media Server studio plugins HEVC
Regards