[FFmpeg-trac] #6113(avformat:open): Seek to 0 jpeg image input file image causes eof of the input stream

FFmpeg trac at avcodec.org
Fri Oct 11 03:18:06 EEST 2024


#6113: Seek to 0 jpeg image input file image causes eof of the input stream
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:  (none)
  remigiusz.zukowski                 |
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  image2 seek  |               Blocked By:
  mjpeg regression                   |
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Martin Pecka):

 This has still been a problem nowadays. With ffmpeg 7.0.2, I still get
 empty output when seeking a JPG image to 0 (while I get 1 frame with no
 seek). FFMpeg reports a duration of 1/25 s and 1 frame, so I'd expect that
 seeking to 0 should work.


 {{{
 $ ffmpeg -ss 0 -i img.jpg img2.jpg
 ffmpeg version 7.0.2-static https://johnvansickle.com/ffmpeg/  Copyright
 (c) 2000-2024 the FFmpeg developers
   built with gcc 8 (Debian 8.3.0-6)
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
 --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp
 --enable-libgme --enable-gray --enable-libaom --enable-libfribidi
 --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt
 --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab
 --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid
 --enable-libzvbi --enable-libzimg
   libavutil      59.  8.100 / 59.  8.100
   libavcodec     61.  3.100 / 61.  3.100
   libavformat    61.  1.100 / 61.  1.100
   libavdevice    61.  1.100 / 61.  1.100
   libavfilter    10.  1.100 / 10.  1.100
   libswscale      8.  1.100 /  8.  1.100
   libswresample   5.  1.100 /  5.  1.100
   libpostproc    58.  1.100 / 58.  1.100
 Input #0, image2, from
 '/home/peci1/Stažené/tmp/pokor_petrin/20241005_163744_IMG_5015.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: 1059428 kb/s
   Stream #0:0: Video: mjpeg (Baseline), yuvj444p(pc,
 bt470bg/unknown/unknown), 3024x4032 [SAR 72:72 DAR 3:4], 25 fps, 25 tbr,
 25 tbn
 Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native))
 Press [q] to stop, [?] for help
 [vost#0:0/mjpeg @ 0x3785b740] No filtered frames for output stream, trying
 to initialize anyway.
 Output #0, image2, to '/tmp/a.jpg':
   Metadata:
     encoder         : Lavf61.1.100
   Stream #0:0: Video: mjpeg, yuvj444p(pc, progressive), 3024x4032 [SAR
 72:72 DAR 3:4], q=2-31, 200 kb/s, 25 fps, 25 tbn
       Metadata:
         encoder         : Lavc61.3.100 mjpeg
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
 [out#0/image2 @ 0x37857d00] video:0KiB audio:0KiB subtitle:0KiB other
 streams:0KiB global headers:0KiB muxing overhead: unknown
 [out#0/image2 @ 0x37857d00] Output file is empty, nothing was
 encoded(check -ss / -t / -frames parameters if used)
 frame=    0 fps=0.0 q=0.0 Lsize=N/A time=N/A bitrate=N/A speed=N/A

 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/6113#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list