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 <[email protected]> wrote:  
 
  
That is exactly what I meant. Thank you!
Hillel    On Wednesday, March 23, 2022, 05:32:18 PM GMT+2, Richard Hussong 
<[email protected]> wrote:  
 
 

On Wed, Mar 23, 2022 at 2:53 AM Hillel Rosensweig via Libav-user 
<[email protected]> 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
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
  _______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
  
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to