[Libav-user] Output rawvideo to stdin
Hillel Rosensweig
hillelro at yahoo.com
Sun Mar 27 11:52:29 EEST 2022
I tried using "pipe:" as filename:
avformat_alloc_output_context2(&ofmt_ctx_pipe, NULL, NULL, "pipe:");
if (!ofmt_ctx_pipe) { av_log(NULL, AV_LOG_ERROR, "Could not create output context\n"); return AVERROR_UNKNOWN; }
But it does not seem to work. I get the following error -
Unable to find a suitable output format for 'pipe:'
Could not create output context
Is there some other function I should be using instead of 'avformat_alloc_output_context2'? Or some additional definition I need to use?
Thanks again,
Hillel On Wednesday, March 23, 2022, 05:35:17 PM GMT+2, Hillel Rosensweig via Libav-user <libav-user at ffmpeg.org> wrote:
That is exactly what I meant. Thank you!
Hillel On Wednesday, March 23, 2022, 05:32:18 PM GMT+2, Richard Hussong <rhussong at westpond.com> wrote:
On Wed, Mar 23, 2022 at 2:53 AM Hillel Rosensweig via Libav-user <libav-user at ffmpeg.org> wrote:
Hello all,
I am trying to output raw video (from file or device) packets to stdin so that they can be picked up by another program running on my system.
Any suggestions on how to do this?For example, can I relate to stdin like a filename and just use avformat_alloc_output_context2 and avio_openlike I would when recording to a file?
Do you mean you want to write output to stdout so it can be piped to another program's stdin? In ffmpeg, they do this by passing the filename "pipe:" to avformat_alloc_output_context2().
If that is not what you meant, you'll need to clarify your question.
I there some code reference which deals with this scenario?Thanks!
Hillel_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/libav-user
To unsubscribe, visit link above, or email
libav-user-request at ffmpeg.org with subject "unsubscribe".
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/libav-user
To unsubscribe, visit link above, or email
libav-user-request at ffmpeg.org with subject "unsubscribe".
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/libav-user
To unsubscribe, visit link above, or email
libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220327/b91f5b2c/attachment.htm>
More information about the Libav-user
mailing list