[FFmpeg-user] Input from named pipes

Roger Pack rogerdpack2 at gmail.com
Mon Oct 10 18:10:31 CEST 2011


On Thu, Oct 6, 2011 at 9:02 AM, Steve Turley <sjturley at gmail.com> wrote:
> I am reading a live/real-time MPEG-2 transport stream from a named pipe into
> FFmpeg.  The incoming stream is MPEG-2 video and AC-3 audio.  I need to
> transcode to H.264 and MP3.  I can cat the named pipe to a file and play
> back the MPEG-2 video without issue in VLC or TS Reader.  Does anyone have
> tips on how to use named pipes as input to FFmpeg?
>
> Here are some commands I've tried:
> ffmpeg -i ~/stream_pipe -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -vcodec
> libx264 -vpre lossless_ultrafast -b 1000k -s 640x480 -r 29.97 -strict
> experimental -deinterlace -f mpegts -y udp://192.168.1.1:10000
> ffmpeg -f mpegts -re -i ~/stream_pipe -acodec libmp3lame -ab 128k -ar 44100
> -ac 2 -vcodec libx264 -vpre lossless_ultrafast -b 1000k -s 640x480 -r 29.97
> -strict experimental -deinterlace -f mpegts -y udp://192.168.1.1:10000

Does it just die immediately then?


More information about the ffmpeg-user mailing list