[FFmpeg-user] How to specify duration for an input with pipe protocol
Taner Sener
tanersener at gmail.com
Thu Feb 7 18:11:26 EET 2019
On Thu, 7 Feb 2019 at 15:18, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> (Complete, uncut console output missing.)
Below you can see console output. I replaced "loop 1" with "-t 3" since I
expect "-t 3" to work.
cat input.jpg | ffmpeg -t 3 -i pipe:0 -c:v mpeg4 -t 3 video.mp4
ffmpeg version N-93087-g2b8458fcc5 Copyright (c) 2000-2019 the FFmpeg
developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --enable-gpl --enable-libx264 --enable-libfreetype
--enable-fontconfig --enable-gnutls
libavutil 56. 26.100 / 56. 26.100
libavcodec 58. 46.100 / 58. 46.100
libavformat 58. 26.100 / 58. 26.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 48.100 / 7. 48.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, jpeg_pipe, from 'pipe:0':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg (Progressive), yuvj444p(pc,
bt470bg/unknown/unknown), 992x660 [SAR 72:72 DAR 248:165], 25 tbr, 25 tbn,
25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
[swscaler @ 0x7f90ca800600] deprecated pixel format used, make sure you did
set range correctly
Output #0, mp4, to 'video.mp4':
Metadata:
encoder : Lavf58.26.100
Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 992x660 [SAR
1:1 DAR 248:165], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc58.46.100 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 1 fps=0.0 q=4.6 Lsize= 24kB time=00:00:00.00
bitrate=2526461.5kbits/s speed=0.00336x
video:23kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 3.604475%
More information about the ffmpeg-user
mailing list