[FFmpeg-user] ffmpeg -f concat from standard input instead of a file

Nicolas George george at nsup.org
Sun Jul 1 20:46:38 EEST 2018


Cecil Westerhof (2018-07-01):
>     [concat @ 0x556c69d90e40] Impossible to open 'educational.mov'

> Why is this? Can it be circumvented?

When ffmpeg sees the "-" filename, it translates it to "pipe:"; you
could use "pipe:" directly to read from stdin.

Also, paths in concat scripts are relative, so that when you write
/full/path/to/educational.txt, it knows to find educational01.mov in
/full/path/to/. And you could even write
http://example.com/path/to/educational.txt and have it find
http://example.com/path/to/educational01.mov as expected.

Combine these two informations, and you deduce that ffmpeg is looking
for pipe:educational01.mov, which does not exist, and in fact does not
even make sense.

You can solve the problem by prefixing all file names by $PWD in the
script.

Another option would be to add an option to the concat demuxer, "-base
." to override the base directory deduced from the path to the script.
It would be rather easy to implement.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20180701/f71ed31d/attachment.sig>


More information about the ffmpeg-user mailing list