[FFmpeg-user] Read mp4 video from pipe

Cley Faye cleyfaye at gmail.com
Fri Jun 17 20:10:40 CEST 2016


2016-06-17 12:21 GMT+02:00 kolychev <kolychev at speechpro.com>:

> $ cat video.mp4 | ffmpeg -pix_fmt yuv420p -i pipe: -r 25 -f image2pipe
> -vcodec mjpeg -q:v 1 pipe: > result
>
> ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
>   built with gcc 5.3.0 (GCC)
>   configuration: --prefix=/usr --disable-debug --disable-static
> --disable-stripping --enable-avisynth --enable-avresample
> --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa
> --enable-libass --enable-libbluray --enable-libdcadec --enable-libfreetype
> --enable-libfribidi --enable-libgsm --enable-libiec61883
> --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
> --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus
> --enable-libpulse --enable-libschroedinger --enable-libsoxr
> --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2
> --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp
> --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf
> --enable-shared --enable-version3 --enable-x11grab
>   libavutil      55. 17.103 / 55. 17.103
>   libavcodec     57. 24.102 / 57. 24.102
>   libavformat    57. 25.100 / 57. 25.100
>   libavdevice    57.  0.101 / 57.  0.101
>   libavfilter     6. 31.100 /  6. 31.100
>   libavresample   3.  0.  0 /  3.  0.  0
>   libswscale      4.  0.100 /  4.  0.100
>   libswresample   2.  0.101 /  2.  0.101
>   libpostproc    54.  0.100 / 54.  0.100
> Option pixel_format not found.
>

​I think the error message is explicit enough here. You're trying to apply
the option pix_fmt to an input file. Simply remove it (or move it after
your inputs and before your output if required) and it should work (at
least here it does).


More information about the ffmpeg-user mailing list