[FFmpeg-user] help with pipe command ffmpeg
Vivek Soni
vivek.soni at beesys.com
Thu Dec 9 07:28:11 EET 2021
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...
D:\SDK's\ffmpeg-4.4-full_build-shared\bin>ffmpeg -i "C:\Users\vivek.soni\Videos\How to use FFMPEG.mp4" -an -f mpegts -y \\.\pipe\VideoPipeFromFFmpeg
ffmpeg version 4.4-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-shared --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\vivek.soni\Videos\How to use FFMPEG.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
encoder : Google
Duration: 00:12:48.07, start: 0.000000, bitrate: 1014 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 883 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
Output #0, mpegts, to '\\.\pipe\VideoPipeFromFFmpeg':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
encoder : Lavf58.76.100
Stream #0:0(und): Video: mpeg2video (Main), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 90k tbn (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
encoder : Lavc58.134.100 mpeg2video
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
av_interleaved_write_frame(): Invalid argument=00:00:00.00 bitrate=N/A speed= 0x
Error writing trailer of \\.\pipe\VideoPipeFromFFmpeg: Invalid argument
frame= 2 fps=0.0 q=1.8 Lsize= 15kB time=-00:00:00.03 bitrate=N/A speed=N/A
video:14kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 7.397498%
Conversion failed!
________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Carl Zwanzig <cpz at tuunq.com>
Sent: Wednesday, December 8, 2021 10:44 PM
To: ffmpeg-user at ffmpeg.org
Subject: Re: [FFmpeg-user] help with pipe command ffmpeg
On 12/7/2021 9:12 PM, Vivek Soni wrote:
> what exactly did you write in command line for ffmpeg.exe, please share ...
A couple of things-
Please read the list FAQ (https://ffmpeg.org/mailing-list-faq.html).
This tells us not to "top-post" and also to include the complete output of
the command you're using.
Also, if you look at the code William posted, you'll probably find what you
ask for or at least a starting point (search "ffmpeg" and see what matches).
Later,
z!
_______________________________________________
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