[FFmpeg-user] help with pipe command ffmpeg

William C Bonner wbonner at wimsworld.com
Tue Dec 14 05:59:00 EET 2021


On Wed, Dec 8, 2021 at 10:12 PM Adam Nielsen via ffmpeg-user <
ffmpeg-user at ffmpeg.org> wrote:

> > i want to know how to output to a windows named pipe and reference
> > that in c++ code as input ...
> >
> > kindly share some working command line examples of ffmpeg.exe
> >
> > googling is not much help full, tired of it...
>
> It seems that using named pipes is not very common.  If you still want
> to use them you will probably have to work it out for yourself,
> otherwise using a more common approach will give you more examples to
> look at.
>
> I would suggest using sockets instead as there is probably much more
> code for this, and you won't be limited to Windows as socket code will
> also work on non-Windows platforms.
>
> For example if you output to udp://127.0.0.1:5000 then the traffic
> still won't leave the machine (so same as using named sockets) but you
> can use standard UDP reception code to receive the data - there are
> plenty of examples for how to listen to UDP traffic in C++.  Also, you
> could move the transmission and reception programs to different
> machines one day if you choose to, which is much harder with named
> pipes.
>
> Cheers,
> Adam.
> _______________________________________________
> 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".
>

Here's an example of the command I issue in my code via creatprocess. (I
write it out to a log file so I can figure out what might have gone wrong)
Note the "-" as the last parameter that tells ffmpeg to output to stdout

C:\WINDOWS\ffmpeg.exe -hide_banner -i "t00.mkv" -map_metadata -1 -vcodec
copy -b:v 16384k -maxrate 30000k -bufsize 4096k -ab 448k -ar 48000 -acodec
copy -f vob -


More information about the ffmpeg-user mailing list