[FFmpeg-user] Can ffpmeg output to stdout?

Mike Brown brown at mrvideo.vidiot.com
Sun Sep 3 18:16:41 EEST 2017


On Sun, Sep 03, 2017 at 04:13:49PM +0530, Gyan wrote:
> On Sun, Sep 3, 2017 at 4:08 PM, Mike Brown <brown at mrvideo.vidiot.com> wrote:
> 
> >
> > Doesn't exist under Win XP.  I'm running a cygwin terminal, using the
> > Z-shell.
> > Sorry for not listing my environment in the first post.
> >
> What's your full command and its console output?

BRN <97> ffmpeg -i ABC-HD-DD51-AudioTest.ts -map 0:1 -acodec pcm_s16le -f wav - | ffdcaenc_213-20141209 -l -i - -o ABC-HD-DD51-AudioTest.dts -b 1509.75           
ffmpeg version N-52837-g399f6ef Copyright (c) 2000-2013 the FFmpeg developers
  built on May  7 2013 01:09:00 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 29.100 / 52. 29.100
  libavcodec     55.  7.100 / 55.  7.100
  libavformat    55.  4.101 / 55.  4.101
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 63.101 /  3. 63.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from 'ABC-HD-DD51-AudioTest.ts':
  Duration: 00:07:12.51, start: 0.166611, bitrate: 40248 kb/s
  Program 1 
    Stream #0:0[0x1000]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x1001]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 640 kb/s
Output #0, wav, to 'pipe:':
  Metadata:
    ISFT            : Lavf55.4.101
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 5.1(side), s16, 4608 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (ac3 -> pcm_s16le)
Press [q] to stop, [?] for help
size=  243306kB time=00:07:12.54 bitrate=4608.0kbits/s    
video:0kB audio:243306kB subtitle:0 global headers:0kB muxing overhead 0.000041%
 
FFDCAENC --- experimental 'Coherent Acoustics' compressor.

Input:   -
Output:  ABC-HD-DD51-AudioTest.dts
Bitrate: 1509 kbps

Could not open or parse "-".
Error: Data chunk not found!



I did some more looking and found the -f option.  The "-" seems to have
allowed ffmpeg to work, but as can be seen, ffdcaenc complained that
it didn't get any data.  But, with a pipe, both programs should have been
running at the same time.  As ffmpeg is pumping out data, ffdcaenc should
be getting those bytes of data.  The ffdcaenc program didn't start until
ffmpeg finished.

Shouldn't piping from ffmpeg work?  It might be an issue with cygwin.

MB
-- 
e-mail: vidiot at vidiot.com | vidiot at vidiot.net            /~\ The ASCII
        6082066843 at email.uscc.net (140 char limit)       \ / Ribbon Campaign
Visit - URL: http://vidiot.com/                           X  Against
             http://vidiot.net/                          / \ HTML Email
"You're Sherlock Holmes, wear the damn hat!" - Watson to Sherlock
Sherlock - The Abominable Bride - 1/01/16


More information about the ffmpeg-user mailing list