[FFmpeg-user] Error when reading file as stream

adam smith adamsmith79 at icloud.com
Mon May 4 12:38:52 EEST 2020


Hi you lovely people,

I have another question that I cannot find a resolution for, so I am hoping somebody can shed a little light on the subject.
When passing the source as a file into ffmpeg from regular storage, my ffmpeg commands are working correctly and I am happy with the output.
When passing the same source to ffmpeg as a stream, through pipe; I am getting errors. This is not for all files, eg mxf files containing DV50, XDCAMHD422 etc have not shown any issue, neither do many mp4 files.
All files are probed before the transcode and all come back as probe score 100.

The error I get complains about…
pipe:: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF

This is the whole command and output…

/usr/src/app # aws s3 cp s3://blah-blah-blah/source/14249/20200504/abc-6a-test_mov_34_1588580170874.mov - --quiet | ffmpeg -y -i -  -filter_complex "[0:0]fifo[vout];[0:1]afifo[01_afifo]" -map "[vout]" -map "[01_afifo]" -pix_fmt yuv420p -c:v libx264 -s 1280x720 -profile:v 
main -level:v 3.1  -refs:v 3 -keyint_min 50 -b:v 6436k -r 25 -ac 2 -bsf:a aac_adtstoasc -c:a libfdk_aac -ar 44100 -b:a 192k -flags +global_header -movflags +faststart -f tee "[f=mp4:use_fifo=1]/data/temporary/transcode_20200504-26984-c69lmq/mov_source_1725.mp4"
ffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 6.4.0 (Alpine 6.4.0)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-postproc --enable-small --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x556d07ec4000] stream 1, offset 0x30: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x556d07ec4000] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(bt709), 1024x576, 6241 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2010-11-17T13:05:57.000000Z
  Duration: 00:00:30.00, start: 0.000000, bitrate: N/A
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), none(bt709), 1024x576, 6241 kb/s, 25 fps, 25 tbr, 2500 tbn, 5k tbc (default)
    Metadata:
      creation_time   : 2010-11-17T13:05:57.000000Z
      handler_name    : Apple Video Media Handler
      encoder         : H.264
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 250 kb/s (default)
    Metadata:
      creation_time   : 2010-11-17T13:05:57.000000Z
      handler_name    : Apple Sound Media Handler
Stream mapping:
  Stream #0:0 (h264) -> fifo
  Stream #0:1 (aac) -> afifo
  fifo -> Stream #0:0 (libx264)
  afifo -> Stream #0:1 (libfdk_aac)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x556d07ec4000] stream 1, offset 0x30: partial file
pipe:: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!

I did try adding  ffmpeg -y -analyzeduration 100 -probesize 10000000 -i -  -filter_complex
But the same error occurred.

This is probably something to do with the fact that I am streaming the input, but I am not sure how to resolve it.
Any ideas will be warmly received

Thanks in advance
Adam


More information about the ffmpeg-user mailing list