[FFmpeg-user] Input from named pipes

Steve Turley sjturley at gmail.com
Thu Oct 6 17:02:48 CEST 2011


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

And the output:
[mpeg2video @ 0x207b9c0] ac-tex damaged at 1 5
[mpeg2video @ 0x207b9c0] slice mismatch
[mpeg2video @ 0x207b9c0] ac-tex damaged at 6 7
[mpeg2video @ 0x207b9c0] 00 motion_type at 3 8
[mpeg2video @ 0x207b9c0] ac-tex damaged at 5 9
[mpeg2video @ 0x207b9c0] slice mismatch
[mpeg2video @ 0x207b9c0] 00 motion_type at 31 11
[mpeg2video @ 0x207b9c0] 00 motion_type at 22 12
[mpeg2video @ 0x207b9c0] ac-tex damaged at 3 13
[mpeg2video @ 0x207b9c0] invalid cbp at 2 14
[mpeg2video @ 0x207b9c0] 00 motion_type at 7 15
[mpeg2video @ 0x207b9c0] slice mismatch
[mpeg2video @ 0x207b9c0] 00 motion_type at 43 17
[mpeg2video @ 0x207b9c0] invalid cbp at 17 18
[mpeg2video @ 0x207b9c0] slice mismatch
[mpeg2video @ 0x207b9c0] ac-tex damaged at 0 20
[mpeg2video @ 0x207b9c0] 00 motion_type at 14 21
[mpeg2video @ 0x207b9c0] ac-tex damaged at 17 22
[mpeg2video @ 0x207b9c0] invalid mb type in P Frame at 1 23
[mpeg2video @ 0x207b9c0] 00 motion_type at 1 24
[mpeg2video @ 0x207b9c0] slice mismatch
[mpeg2video @ 0x207b9c0] 00 motion_type at 15 26
[mpeg2video @ 0x207b9c0] ac-tex damaged at 6 27
[mpeg2video @ 0x207b9c0] invalid cbp at 4 28
[mpeg2video @ 0x207b9c0] 00 motion_type at 9 29
[mpeg2video @ 0x207b9c0] Warning MVs not available
[mpeg2video @ 0x207b9c0] concealing 1100 DC, 1100 AC, 1100 MV errors
[mpeg2video @ 0x207b9c0] ac-tex damaged at 32
12
]
[mpeg2video @ 0x207b9c0] Warning MVs not available
[mpeg2video @ 0x207b9c0] concealing 88 DC, 88 AC, 88 MV errors

Version Info:
ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct  6 2011 13:19:37 with gcc 4.4.3
  configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-postproc --enable-libfaac --enable-libx264 --enable-librtmp
--enable-libmp3lame

What is the best method of passing live video from another process into
FFmpeg?

Thanks,

Steve Turley


More information about the ffmpeg-user mailing list