Opened 8 years ago
Closed 8 years ago
#5498 closed defect (fixed)
Pentax K-r MJPEG files - one second clicking
Reported by: | wanted | Owned by: | |
---|---|---|---|
Priority: | important | Component: | avformat |
Version: | git-master | Keywords: | avi regression |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
Summary of the bug:
Files produced by Pentax K-r camera are not fully supported by ffmpeg. There is an issue with audio, where one can hear a distinct click every second, both when using ffplay and in output files converted with ffmpeg. I read on some forum this might be related to the way audio from AVI files from this camera is interleaved with video, i.e. with 1 second period, which is unusual.
Many tools, like video converters, based on ffmpeg also exhibit this behavior. My workaround has always been to use avidemux, which works fine with those AVI files, but it would be nice to fix that also for ffmpeg.
How to reproduce:
% ffplay <file> ffmpeg version 2.8.6-1ubuntu2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.1 (Ubuntu 5.3.1-11ubuntu1) 20160311 configuration: --prefix=/usr --extra-version=1ubuntu2 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
Example file:
http://wanted.eu.org/pub/pentax_1sec_clicking.avi
mediainfo output on the example file, notice audio interleave of 1 second.
Format : AVI Format/Info : Audio Video Interleave File size : 24.3 MiB Duration : 8s 0ms Overall bit rate : 25.5 Mbps Mastered date : 2012/05/27 16:11:38 Writing application : PENTAX K-r Video ID : 0 Format : JPEG Codec ID : MJPG Duration : 8s 0ms Bit rate : 24.9 Mbps Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Compression mode : Lossy Bits/(Pixel*Frame) : 1.082 Stream size : 23.8 MiB (98%) Audio ID : 1 Format : PCM Format settings, Endianness : Little Format settings, Sign : Signed Codec ID : 1 Duration : 8s 0ms Bit rate mode : Constant Bit rate : 512 Kbps Channel(s) : 1 channel Sampling rate : 32.0 KHz Bit depth : 16 bits Stream size : 500 KiB (2%) Alignment : Aligned on interleaves Interleave, duration : 1000 ms (25.00 video frames) Interleave, preload duration : 1000 ms
Change History (2)
comment:1 by , 8 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | avi regression added; pentax k-r interleave audio clicking removed |
Priority: | normal → important |
Reproduced by developer: | set |
Status: | new → open |
Version: | unspecified → git-master |
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
For future tickets: Please understand that Mediainfo output is never required, FFmpeg command line and complete, uncut console output is always required for valid tickets.
Regression since ef8cc06d6e50d3da7b781e126a3bce7929b53a55
Originally fixed in 8df774be88c347c40f1b2411ed9e391dfec0ebb7