[FFmpeg-user] help with pipe command ffmpeg

Vivek Soni vivek.soni at beesys.com
Wed Dec 8 07:12:51 EET 2021


what exactly did you write in command line for ffmpeg.exe, please share ...

________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of William C Bonner <wbonner at wimsworld.com>
Sent: Wednesday, December 8, 2021 3:11:41 AM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] help with pipe command ffmpeg

On Mon, Dec 6, 2021 at 9:50 PM Vivek Soni <vivek.soni at beesys.com> wrote:

> Hi,
>
>
> I am trying to run this command
>
>
> ffmpeg -y -i "C:\Users\vivek.soni\Videos\How to use FFMPEG.mp4"  -f
> mpegts  \\.\pipe\VideoPipeFromFFmpeg
>
>
> I am trying to write to a named windows pipe and I want to read it from my
> c++ code...
>
>
> However it is not sending all frames to pipe and I am unable to read it
> from pipe in my code...
>
>
> the error i am receiving is ...
>
>
> av_interleaved_write_frame(): Invalid argument=00:00:00.00 bitrate=N/A
> speed=   0x
> Error writing trailer of \\.\pipe\VideoPipeFromFFmpeg: Invalid argument
>
> how can i send directly to windows named pipe and read it form c++ code...
>
> kindly suggest the right command ...
> please help ...
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>

It might not be exactly what you want, but I utilize the command line
ffmpeg program in windows in my tivo server program.
https://github.com/wcbonner/WimTiVoServer/blob/master/WimTiVoServer.cpp
around line 1200. I pipe the output of STDOUT from the ffmpeg and read it's
contents in my C program, then proceed to loop reading the output and
writing it into an http chunked stream. The command I use to run FFMPEG has
it writing it's output to STDOUT and my C program takes care of redirecting
STDOUT before creating the FFMPEG chile process.

Wim.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list