[FFmpeg-user] Named Pipes

RLopez rlopez at netbox.com
Mon Feb 27 13:52:40 CET 2012


Hello,

I have been using a Windows binary version of ffmpeg for years(dated 7-7-2009) and recently upgraded to the latest Window build reference at ffmpeg.org.  The link to the version I upgraded to is http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-git-b6ff81d-win32-static.7z.  I am no longer able to use Named Pipes with the new version.  Did something change in the calling convention.  This is the command line I use:

ffmpeg -f rawvideo -pix_fmt yuv422p -r 29.97 -s 720x480 -i \\.\pipe\mypipe -vb 4000000 -y d:\m2vfiles\myvid.m2v

It works fine on the older ffmpeg but generates the errors below with the latest version.  Could it be that the newer ffmpeg is trying to seek or check the file size of a Named Pipe?  Is there a way to tell the newer ffmpeg to read the file as a stream without seeking?  Any help would be greatly appreciated.




C:\ffmpeg\bin>ffmpeg -f rawvideo -pix_fmt yuv422p -r 29.97 -s 720x480 -i \\.\pipe\mypipe -vb 4000000 -y d:\m2vfiles\myvid.m2v
ffmpeg version N-37915-g6cb2085 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb 15 2012 20:52:28 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --en
able-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 39.100 / 51. 39.100
  libavcodec     54.  3.100 / 54.  3.100
  libavformat    54.  1.100 / 54.  1.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 62.100 /  2. 62.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Truncating packet of size 691200 to 658433
[rawvideo @ 000000000201F7A0] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from '\\.\pipe\mypipe':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (Y42B / 0x42323459), yuv422p, 720x480, 29.97 tbr, 29.97 tbn, 29.97 tbc
 [buffer @ 000000000201F710] w:720 h:480 pixfmt:yuv422p tb:1/1000000 sar:0/1 sws_param:
Output #0, mpeg2video, to 'd:\m2vfiles\myvid.m2v':
  Metadata:
    encoder         : Lavf54.1.100
    Stream #0:0: Video: mpeg2video, yuv422p, 720x480, q=2-31, 20000 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mpeg2video)
Press [q] to stop, [?] for help
Error while decoding stream #0:0
Truncating packet of size 691200 to 1
Error while decoding stream #0:0
Truncating packet of size 691200 to 1
Error while decoding stream #0:0
Truncating packet of size 691200 to 1
Error while decoding stream #0:0
Truncating packet of size 691200 to 1
Error while decoding stream #0:0
Truncating packet of size 691200 to 1
Error while decoding stream #0:0
Truncating packet of size 691200 to 1
Error while decoding stream #0:0
Truncating packet of size 691200 to 1
Error while decoding stream #0:0
Truncating packet of size 691200 to 1
     .
     .
Repeat forever
     .
     .




More information about the ffmpeg-user mailing list