Can ffpmeg output to stdout?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Can ffpmeg output to stdout?

Mike Brown
I've tried using - for the output as well as nothing.  I set the audio codec
with -acodec, so that the correct codec will be used, but nada.

I'd like to be able to pipe the output into another program that I'll be using
to create a DTS file.

I'm beginning to think that it can't be done.

MB
--
e-mail: [hidden email] | [hidden email]            /~\ The ASCII
        [hidden email] (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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can ffpmeg output to stdout?

DopeLabs
any specific reason your not using ffmpeg to output a dts file?

and have you tried outputting to /dev/stdout?


> On Sep 2, 2017, at 11:58 41PM, Mike Brown <[hidden email]> wrote:
>
> I've tried using - for the output as well as nothing.  I set the audio codec
> with -acodec, so that the correct codec will be used, but nada.
>
> I'd like to be able to pipe the output into another program that I'll be using
> to create a DTS file.
>
> I'm beginning to think that it can't be done.
>
> MB
> --
> e-mail: [hidden email] | [hidden email]            /~\ The ASCII
>        [hidden email] (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
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can ffpmeg output to stdout?

Mike Brown
On Sun, Sep 03, 2017 at 12:22:36AM -0700, DopeLabs wrote:
> any specific reason your not using ffmpeg to output a dts file?

According to users on Doom9, ffdcaenc is a better DTS encoder.

> and have you tried outputting to /dev/stdout?

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.

MB

> > On Sep 2, 2017, at 11:58 41PM, Mike Brown <[hidden email]> wrote:
> >
> > I've tried using - for the output as well as nothing.  I set the audio codec
> > with -acodec, so that the correct codec will be used, but nada.
> >
> > I'd like to be able to pipe the output into another program that I'll be using
> > to create a DTS file.
> >
> > I'm beginning to think that it can't be done.
> >
> > MB
> > --
> > e-mail: [hidden email] | [hidden email]            /~\ The ASCII
> >        [hidden email] (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
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
--
e-mail: [hidden email] | [hidden email]            /~\ The ASCII
        [hidden email] (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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can ffpmeg output to stdout?

DopeLabs
ok.. you also my want to reply with the full command output that you are trying in the email  for whoever can help you next =]

cheers


> On Sep 3, 2017, at 3:38 49AM, Mike Brown <[hidden email]> wrote:
>
> On Sun, Sep 03, 2017 at 12:22:36AM -0700, DopeLabs wrote:
>> any specific reason your not using ffmpeg to output a dts file?
>
> According to users on Doom9, ffdcaenc is a better DTS encoder.
>
>> and have you tried outputting to /dev/stdout?
>
> 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.
>
> MB
>
>>> On Sep 2, 2017, at 11:58 41PM, Mike Brown <[hidden email]> wrote:
>>>
>>> I've tried using - for the output as well as nothing.  I set the audio codec
>>> with -acodec, so that the correct codec will be used, but nada.
>>>
>>> I'd like to be able to pipe the output into another program that I'll be using
>>> to create a DTS file.
>>>
>>> I'm beginning to think that it can't be done.
>>>
>>> MB
>>> --
>>> e-mail: [hidden email] | [hidden email]            /~\ The ASCII
>>>       [hidden email] (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
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> [hidden email]
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> [hidden email] with subject "unsubscribe".
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
> --
> e-mail: [hidden email] | [hidden email]            /~\ The ASCII
>        [hidden email] (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
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can ffpmeg output to stdout?

Gyan
In reply to this post by Mike Brown
On Sun, Sep 3, 2017 at 4:08 PM, Mike Brown <[hidden email]> 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.
>
> MB
>

What's your full command and its console output?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can ffpmeg output to stdout?

Mike Brown
On Sun, Sep 03, 2017 at 04:13:49PM +0530, Gyan wrote:
> On Sun, Sep 3, 2017 at 4:08 PM, Mike Brown <[hidden email]> 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: [hidden email] | [hidden email]            /~\ The ASCII
        [hidden email] (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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can ffpmeg output to stdout?

Cley Faye
2017-09-03 17:16 GMT+02:00 Mike Brown <[hidden email]>:

> 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)
>

​That's very, very old. But probably irrelevant to the problem at hand.​



> 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%
>
>
​ffmpeg IS outputting to stdout as far as I can tell.​



> 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 believe your issue does not lay in ffmpeg but in ffdcaenc that can not
open stdin, as it plainly say he can't parse "-". To check this, you could
test by running the ffmpeg command by itself (which should just fill your
terminal with clutter and beeps). You can also try piping from a file to
ffdcaenc to make sure it work.

But as far as ffmpeg is concerned, it is outputting to stdout from that log.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can ffpmeg output to stdout?

Gyan
On Sun, Sep 3, 2017 at 9:15 PM, Cley Faye <[hidden email]> wrote:


> To check this, you could
> test by running the ffmpeg command by itself (which should just fill your
> terminal with clutter and beeps).
>

If you try this, add -t 0.1 to the command. Console can get unresponsive,
and you seem to have a large file.

Which version of ffdcaenc?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can ffpmeg output to stdout?

Mike Brown
In reply to this post by Cley Faye
On Sun, Sep 03, 2017 at 05:45:24PM +0200, Cley Faye wrote:
> 2017-09-03 17:16 GMT+02:00 Mike Brown <[hidden email]>:
>
> > 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)
> >
>
> ???That's very, very old. But probably irrelevant to the problem at hand.???

Yes it is, but is the newest version that will run under XP 32bit.

> > 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%
> >
> >
> ???ffmpeg IS outputting to stdout as far as I can tell.???

Ya, that is what it looks like to me as well.  Thanks for confirming.

> > 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 believe your issue does not lay in ffmpeg but in ffdcaenc that can not
> open stdin, as it plainly say he can't parse "-". To check this, you could
> test by running the ffmpeg command by itself (which should just fill your
> terminal with clutter and beeps). You can also try piping from a file to
> ffdcaenc to make sure it work.
>
> But as far as ffmpeg is concerned, it is outputting to stdout from that log.

Looks like I'll just write the script to have ffmpeg output to a file and
then have ffdcaenc read in that file.  I'll just delete the temp wave file.
That I know works.

Thanks for the confirmation.

MB
--
e-mail: [hidden email] | [hidden email]            /~\ The ASCII
        [hidden email] (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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can ffpmeg output to stdout?

Mike Brown
In reply to this post by Gyan
On Sun, Sep 03, 2017 at 09:27:24PM +0530, Gyan wrote:
> On Sun, Sep 3, 2017 at 9:15 PM, Cley Faye <[hidden email]> wrote:
>
> > To check this, you could
> > test by running the ffmpeg command by itself (which should just fill your
> > terminal with clutter and beeps).

The console did indeed fill up with the expected clutter.

> If you try this, add -t 0.1 to the command. Console can get unresponsive,
> and you seem to have a large file.

Didn't make a difference.

> Which version of ffdcaenc?

Interesting that the help for the program doesn't list a version option,
but I tried -v anyway and it worked:

        2.1.3  compiled 7/27/14

MB
--
e-mail: [hidden email] | [hidden email]            /~\ The ASCII
        [hidden email] (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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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