[FFmpeg-trac] #5498(undetermined:new): Pentax K-r MJPEG files - one second clicking
FFmpeg
trac at avcodec.org
Sun May 1 23:14:29 CEST 2016
#5498: Pentax K-r MJPEG files - one second clicking
-------------------------------------+-------------------------------------
Reporter: wanted | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: pentax k-r | Blocked By:
interleave audio clicking | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
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
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5498>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list