Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5418 closed defect (worksforme)

lagarith decoding, missing frames

Reported by: Selur Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: lagarith
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
ffmpeg drops frames instead of 2334 frames the output only contains, 2296 frames when decoding (one second missing)

How to reproduce:

% ffmpeg -y -threads 8 -i "ng2.avi" -map 0:0 -an -sn -vsync 0 -r 6010000/100000  -pix_fmt yuv420p  -strict -2 -f yuv4mpegpipe "ng2.y4m"

source: http://www.embedupload.com/?d=5WBPUXJXBF
ffmpeg version used:

ffmpeg version N-79276-g679ae5b-gb0c026a+1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (Rev5, Built by MSYS2 project)
  configuration:  --disable-w32threads --enable-fontconfig --enable-gcrypt --enable-libass --enable-libbluray --enable-libbs2b --enable-libfreetype --enable-libfribidi --enable-libkvazaar --enable-libmp3lame --enable-libopus --enable-libsoxr --enable-libspeex --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libxvid --enable-libzimg --enable-libzvbi --enable-avisynth --enable-gpl --disable-debug
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 34.100 / 57. 34.100
  libavformat    57. 32.100 / 57. 32.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 41.100 /  6. 41.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100

Checked the original frame count using the vfw decoder on Windows.

Change History (8)

comment:1 by Elon Musk, 8 years ago

You are using filter.

comment:2 by Selur, 8 years ago

Not sure what you want to tell me with 'You are using filter.',...
I use the command line posted above. No additional filtering through '-vf' or 'filter_complex'.

Last edited 8 years ago by Selur (previous) (diff)

comment:3 by Cigaes, 8 years ago

You need to post the full console output of your transcoding. And if the input sample were necessary, please use a decent site.

comment:4 by Selur, 8 years ago

You need to post the full console output of your transcoding.

here you go:

ffmpeg -y -threads 8 -i "ng2.avi" -map 0:0 -an -sn -vsync 0 -r 6010000/100000  -pix_fmt yuv420p  -strict -2 -f yuv4mpegpipe "ng2.y4m"
ffmpeg version N-79276-g679ae5b-gb0c026a+1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (Rev5, Built by MSYS2 project)
  configuration:  --disable-w32threads --enable-fontconfig --enable-gcrypt --enable-libass --enable-libbluray --enable-libbs2b --enable-libfreetype --enable-libfribidi --enable-libkvazaar --enable-libmp3lame --enable-libopus --enable-libsoxr --enable-libspeex --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libxvid --enable-libzimg --enable-libzvbi --enable-avisynth --enable-gpl --disable-debug
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 34.100 / 57. 34.100
  libavformat    57. 32.100 / 57. 32.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 41.100 /  6. 41.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, avi, from 'ng2.avi':
  Duration: 00:00:38.84, start: 0.000000, bitrate: 21582 kb/s
    Stream #0:0: Video: lagarith (LAGS / 0x5347414C), rgb24, 256x232, 21213 kb/s, 60.10 fps, 60.10 tbr, 60.10 tbn, 60.10 tbc
    Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 44100 Hz, 1 channels, u8, 352 kb/s
Using -vsync 0 and -r can produce invalid output files
Output #0, yuv4mpegpipe, to 'ng2.y4m':
  Metadata:
    encoder         : Lavf57.32.100
    Stream #0:0: Video: wrapped_avframe, yuv420p, 256x232, q=2-31, 200 kb/s, 60.10 fps, 60.10 tbn, 60.10 tbc
    Metadata:
      encoder         : Lavc57.34.100 wrapped_avframe
Stream mapping:
  Stream #0:0 -> #0:0 (lagarith (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
frame= 2295 fps=1978 q=-0.0 Lsize=  199679kB time=00:00:38.83 bitrate=42120.6kbits/s speed=33.5x
video:861kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 23101.568359%

please use a decent site.

For example ?

in reply to:  4 comment:5 by Carl Eugen Hoyos, 8 years ago

Replying to Selur:

Using -vsync 0 and -r can produce invalid output files

This means that your command line is invalid and you cannot use it to report an issue.

For future tickets: Please do not use such an upload site again, this is absolutely inacceptable.

comment:6 by Selur, 8 years ago

Using -vsync 0 and -r can produce invalid output files

okay, then it would be a good idea to make ffmpeg abort and not just post a warning,...

comment:7 by Carl Eugen Hoyos, 8 years ago

Resolution: worksforme
Status: newclosed

I don't think the input file allows to reproduce an issue that can be fixed, feel free to reopen if you can provide a valid failing command line.

in reply to:  6 comment:8 by Cigaes, 8 years ago

Replying to Selur:

okay, then it would be a good idea to make ffmpeg abort and not just post a warning,...


No, it would not, “can” is not a certainty.

Note: See TracTickets for help on using tickets.