{5} Open Tickets by Owner (Full Description) (518 matches)

List open tickets, group by ticket owner. This report demonstrates the use of full-row display.

Results (1 - 100 of 518)

1 2 3 4 5 6
Ticket Summary Component Milestone Type Created
Description
#2400 A/V desync for separate video and aac in mp4 input files undetermined defect Mar 25, 2013

executing following command with the two videos I attached.

ffmpeg -i aaa.mp4 -i bbb.mp4 test.mp4

C:\Conversion>ffmpeg -i aaa.mp4 -i bbb.mp4 test.mp4 ffmpeg version N-51211-ge0e8c20 Copyright (c) 2000-2013 the FFmpeg developers

built on Mar 22 2013 08:56:38 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av

isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libo pencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-lib twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enabl e-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

libavutil 52. 22.101 / 52. 22.101 libavcodec 55. 1.100 / 55. 1.100 libavformat 55. 0.100 / 55. 0.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 48.100 / 3. 48.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aaa.mp4':

Metadata:

major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.59.102

Duration: 00:00:08.71, start: 0.000000, bitrate: 245 kb/s

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1366x768,

241 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc

Metadata:

handler_name : VideoHandler?

Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'bbb.mp4':

Metadata:

major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf54.59.102

Duration: 00:00:00.13, start: 0.023220, bitrate: 9029 kb/s

Stream #1:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 89

40 kb/s

Metadata:

handler_name : SoundHandler?

File 'test.mp4' already exists. Overwrite ? [y/N] y using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 024adac0] profile High, level 3.2 [libx264 @ 024adac0] 264 - core 130 r2274 c832fe9 - H.264/MPEG-4 AVC codec - Cop yleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro ma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 i nterlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenec ut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin= 0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'test.mp4':

Metadata:

major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.0.100 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1366x768, q

=-1--1, 30k tbn, 29.97 tbc

Metadata:

handler_name : VideoHandler?

Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16

, 128 kb/s

Metadata:

handler_name : SoundHandler?

Stream mapping:

Stream #0:0 -> #0:0 (h264 -> libx264) Stream #1:0 -> #0:1 (aac -> libvo_aacenc)

Press [q] to stop, ? for help frame= 54 fps=0.0 q=29.0 size= 0kB time=00:00:00.06 bitrate= 5.8kbits/ frame= 80 fps= 76 q=29.0 size= 219kB time=00:00:00.93 bitrate=1917.7kbits/ frame= 114 fps= 72 q=29.0 size= 219kB time=00:00:02.06 bitrate= 866.1kbits/ frame= 148 fps= 71 q=29.0 size= 219kB time=00:00:03.20 bitrate= 559.3kbits/ frame= 187 fps= 72 q=29.0 size= 219kB time=00:00:04.50 bitrate= 397.7kbits/ frame= 226 fps= 72 q=29.0 size= 219kB time=00:00:05.80 bitrate= 308.6kbits/ frame= 261 fps= 63 q=2686559.0 Lsize= 390kB time=00:00:08.64 bitrate= 369.9 kbits/s video:251kB audio:133kB subtitle:0 global headers:0kB muxing overhead 1.517758% [libx264 @ 024adac0] frame I:2 Avg QP:20.77 size: 84310 [libx264 @ 024adac0] frame P:68 Avg QP:24.08 size: 1098 [libx264 @ 024adac0] frame B:191 Avg QP:33.16 size: 70 [libx264 @ 024adac0] consecutive B-frames: 1.9% 1.5% 0.0% 96.6% [libx264 @ 024adac0] mb I I16..4: 65.2% 4.7% 30.2% [libx264 @ 024adac0] mb P I16..4: 0.8% 0.0% 0.3% P16..4: 0.6% 0.1% 0.0%

0.0% 0.0% skip:98.1%

[libx264 @ 024adac0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.7% 0.0% 0.0%

direct: 0.0% skip:99.2% L0:48.3% L1:51.6% BI: 0.1%

[libx264 @ 024adac0] 8x8 transform intra:3.7% inter:46.9% [libx264 @ 024adac0] coded y,uvDC,uvAC intra: 20.3% 19.0% 16.6% inter: 0.1% 0.1%

0.0%

[libx264 @ 024adac0] i16 v,h,dc,p: 62% 37% 0% 0% [libx264 @ 024adac0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 74% 12% 12% 0% 0% 0% 0%

0% 1%

[libx264 @ 024adac0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 39% 12% 2% 2% 2% 3%

2% 3%

[libx264 @ 024adac0] i8c dc,h,v,p: 67% 23% 9% 0% [libx264 @ 024adac0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 024adac0] ref P L0: 79.1% 12.4% 6.1% 2.4% [libx264 @ 024adac0] ref B L0: 60.7% 38.5% 0.8% [libx264 @ 024adac0] ref B L1: 95.4% 4.6% [libx264 @ 024adac0] kb/s:235.67

then executing ffplay test.mp4 to view the result mp4, you will notice that audio not syndicate with video from the pronunciation of "ffffff" and input "fffffff" via keyboard .

But if we merge the audio and video to a avi file , the audio/video syndicated correctly.

ffmpeg -i aaa.mp4 -i bbb.mp4 test.avi.

I tested with old release and found that http://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-git-e01f478-win32-dev.7z built on 2012/03/20 is still ok. From http://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-git-4082198-win32-dev.7z built on 2012/03/25 the problem was introduced.

I compared the source code between 03/20 and 03/25 and suspect the audio encode api in codec switch from encode to encode2 interface caused the problem.


#2776 MXF DV from AAF (Avid) not demuxable avformat defect Jul 11, 2013

I am uploading the file MXF_DVCAM_not_demuxable.mxf to the FTP which causes the problem.

To reproduce the problem just type:

ffplay -v 9 -loglevel 99 -i Olimpic_Games.mxf

ffplay version 1.2 Copyright (c) 2003-2013 the FFmpeg developers
  built on Mar 28 2013 00:31:28 with gcc 4.8.0 (GCC)

This file starts playing (with ffplay) fine, but after 5 or 6 seconds the following error message shows up:

[mxf @ 01a07a00] KLV for edit unit 123 extends into next edit unit - OPAtom misinterpreted as OP1a?
[mxf @ 01a07a00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.

VLC can decode the file as well as other profesisonal video editors (Edius, other).

The exact same issue happens when using the ffmpeg API directly, or the ffmpeg.exe tool. Actually, the file was generated from and Avid AAF by means of a MXF Mainconcept multiplexer (SDK version 9.5). I believe the file is fine as it is playable with vlc, editable with Edius and other profesisonal video editors. Mainconcept's MXF Demuxer also can read the file fine.

Ignasi


#3621 "pts < dts" causing remuxing failure for h264 from mkv to mkv avformat defect May 7, 2014

I have some h264/mkv files that ffmpeg blows up on while remuxing, due to non-monotonic pts timestamps.

$ ffmpeg -nostats -i test.mkv -c:v copy -c:a copy out.mkv
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on May  7 2014 00:59:53 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.0
    creation_time   : 2014-05-06 09:28:53
  Duration: 00:44:21.01, start: 0.000000, bitrate: 0 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 2k tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Stream #0:2(eng): Subtitle: subrip (default)
Output #0, matroska, to 'out.mkv':
  Metadata:
    encoder         : Lavf55.33.100
    Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 1k tbc (default)
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 384 kb/s (default)
    Stream #0:2(eng): Subtitle: ssa (default)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (subrip -> ssa)
Press [q] to stop, [?] for help
[matroska @ 0x7f9c6283de00] pts (375) < dts (418) in stream 0
av_interleaved_write_frame(): Invalid argument
frame=   11 fps=0.0 q=-1.0 Lsize=     217kB time=00:00:00.59 bitrate=2983.2kbits/s
video:189kB audio:27kB subtitle:0 data:0 global headers:0kB muxing overhead 0.492406%

Here are the video packets from -debug_ts on one of the files:

muxer <- type:video pkt_pts:0 pkt_pts_time:0 pkt_dts:0 pkt_dts_time:0 size:32998
muxer <- type:video pkt_pts:42 pkt_pts_time:0.042 pkt_dts:42 pkt_dts_time:0.042 size:31878
muxer <- type:video pkt_pts:83 pkt_pts_time:0.083 pkt_dts:83 pkt_dts_time:0.083 size:34437
muxer <- type:video pkt_pts:125 pkt_pts_time:0.125 pkt_dts:125 pkt_dts_time:0.125 size:26936
muxer <- type:video pkt_pts:167 pkt_pts_time:0.167 pkt_dts:167 pkt_dts_time:0.167 size:22856
muxer <- type:video pkt_pts:209 pkt_pts_time:0.209 pkt_dts:209 pkt_dts_time:0.209 size:22355
muxer <- type:video pkt_pts:250 pkt_pts_time:0.25 pkt_dts:250 pkt_dts_time:0.25 size:14882
muxer <- type:video pkt_pts:292 pkt_pts_time:0.292 pkt_dts:292 pkt_dts_time:0.292 size:3548
muxer <- type:video pkt_pts:334 pkt_pts_time:0.334 pkt_dts:334 pkt_dts_time:0.334 size:2954
muxer <- type:video pkt_pts:417 pkt_pts_time:0.417 pkt_dts:417 pkt_dts_time:0.417 size:138
muxer <- type:video pkt_pts:375 pkt_pts_time:0.375 pkt_dts:418 pkt_dts_time:0.418 size:140
[matroska @ 0x7fb88c0eaa00] pts (375) < dts (418) in stream 0
av_interleaved_write_frame(): Invalid argument

I believe the error can be ignored, as ffmpeg will attempt to fix timestamps in the output file.

--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -486,7 +486,6 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
     if (pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts < pkt->dts) {
         av_log(s, AV_LOG_ERROR, "pts (%s) < dts (%s) in stream %d\n",
                av_ts2str(pkt->pts), av_ts2str(pkt->dts), st->index);
-        return AVERROR(EINVAL);
     }

     av_dlog(s, "av_write_frame: pts2:%s dts2:%s\n",

With the change above, ffmpeg on master warns me but is able to process my entire input file without crashing:

[matroska @ 0x7fabdc034600] pts (375) < dts (418) in stream 0
[matroska @ 0x7fabdc034600] Non-monotonous DTS in output stream 0:0; previous: 418, current: 375; changing to 418. This may result in incorrect timestamps in the output file.
frame=  152 fps=0.0 q=-1.0 Lsize=    4475kB time=00:00:06.48 bitrate=5654.2kbits/s
video:4168kB audio:303kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.089263%

#3664 ffprobe can't read packet DTS/PTS (regression since removal of dts_sync_point code) undetermined defect May 23, 2014

ffprobe built from latest git head can't read out all DTS/PTS. attached txt are output by calling ffprobe -show_packets -select_streams v INPUT

hxuanyu@ubuntu:~/Downloads/ffmpeg$ ./ffprobe -show_packets -select_streams v v_h264_30_yuv420p_dar30x17_0.mpeg >latest.txt
ffprobe version N-63381-g64bf845 Copyright (c) 2007-2014 the FFmpeg developers
  built on May 23 2014 16:39:38 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --enable-static --disable-shared --enable-small
  libavutil      52. 86.100 / 52. 86.100
  libavcodec     55. 63.100 / 55. 63.100
  libavformat    55. 40.100 / 55. 40.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  5.100 /  4.  5.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
Input #0, mpeg, from 'v_h264_30_yuv420p_dar30x17_0.mpeg':
  Duration: 00:00:06.01, start: 1.000000, bitrate: 703 kb/s
    Stream #0:0[0x1e0]: Video: h264, yuv420p, 480x272 [SAR 1:1 DAR 30:17], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc

but ffprobe built from ffmpeg 2.0.1 could read out all DTS/PTS


#3674 WMP does not accept sample aspect ratio close to 1 but != 1 in mov avcodec defect May 26, 2014

Summary of the bug: I have a screen recorded video with frame rate 15, video codec H.264 (MP4) and AAC as audio. The target via FFmpeg should contain frame rate 25, height of 720 pixel and the codecs without change.

After encoding, the file is playable in VLC player, Chrome browser (HTML5 video tag) and Firefox. In Windows Media player I just get the audio played (no video to see) and in Internet Explorer 11, I get an error ("Unknown source.")

How to reproduce:

% ffmpeg -i input_file.mp4 -vf "scale='(trunc((out_h*a)/2)*2):(min(720, in_h))'" output_file.mp4
VERSION: N-63439-g96470ca
N-63439-g96470ca

Strange is: If I encode the video with a height of 718 or 722 (or any other height I tried), the video is playable anywhere - without problems.

Test video file for input (short, length of 1 second): http://www.datafilehost.com/d/1ca920ac


#3731 ffserver daemon mode ffserver defect Jun 20, 2014

ffserver much older versions, at 0.5 times, would fork to background as a daemon, as every "server" program does.

Current behaviour of ffserver, at 2.2.1 level (but change was fairly recent), one can only background it via the "&" shell operator.

I have to say that this makes ffserver look like a toy server. It has logging capability to a file, but it lacks forking to background upon starting like any *NIX daemon and lacks a debug mode command line switch that prevents it from forking, forcing foreground mode and logging to console instead.

These functionalities existed in ffserver older versions, but seem to have been removed intentionally.

I submit this bug as a request to restore these functionalities in ffserver and thus returning it's status as a serious media streaming application.

Thank you.


#3815 libcdio only works with -ss 00 avdevice defect Jul 30, 2014

Summary of the bug: The (undocumented) libcdio device does not work directly. How to reproduce:

ffmpeg -f libcdio -i /dev/sr0 test.wav 

always end instantly and did not produce any valid file.

A possible workaround is:

ffmpeg -ss 00 -f libcdio -i /dev/sr0 test.wav 

I use git version.

(I tried on another computer with ffmpeg stable release and it didn't work, too.)

Here is the output: $ ffmpeg -f libcdio -i /dev/sr0 test.wav ffmpeg version N-65021-gc2ef844 Copyright (c) 2000-2014 the FFmpeg developers

built on Jul 27 2014 14:04:31 with gcc 4.8.2 (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra-cflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra-cxxflags='-O2 -pipe -march=native -fomit-frame-pointer' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-nonfree --enable-version3 --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --enable-gnutls --enable-hardcoded-tables --enable-iconv --enable-network --enable-openssl --disable-libsmbclient --enable-ffplay --enable-vaapi --enable-vdpau --enable-xlib --enable-zlib --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --enable-libaacplus --disable-libfaac --enable-libtheora --disable-libtwolame --enable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --enable-x11grab --disable-libbs2b --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --enable-ladspa --disable-libass --enable-libfreetype --disable-libsoxr --enable-pthreads --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --enable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --enable-libopus --enable-libquvi --disable-librtmp --disable-libssh --disable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-sse3 --disable-sse4 --disable-sse42 --disable-xop --cpu=host libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 49.100 / 55. 49.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libavresample 1. 3. 0 / 1. 3. 0 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100

Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, libcdio, from '/dev/sr0':

Duration: 00:39:21.61, bitrate: N/A

Chapter #0.0: start 0.000000, end 89.360000 Metadata:

title : track 01

Chapter #0.1: start 89.360000, end 100.453333 Metadata:

title : track 02

Chapter #0.2: start 100.453333, end 346.680000 Metadata:

title : track 03

Chapter #0.3: start 346.680000, end 414.746667 Metadata:

title : track 04

Chapter #0.4: start 414.746667, end 576.333333 Metadata:

title : track 05

Chapter #0.5: start 576.333333, end 631.093333 Metadata:

title : track 06

Chapter #0.6: start 631.093333, end 723.906667 Metadata:

title : track 07

Chapter #0.7: start 723.906667, end 771.813333 Metadata:

title : track 08

Chapter #0.8: start 771.813333, end 862.746667 Metadata:

title : track 09

Chapter #0.9: start 862.746667, end 940.346667 Metadata:

title : track 10

Chapter #0.10: start 940.346667, end 1079.186667 Metadata:

title : track 11

Chapter #0.11: start 1079.186667, end 1190.653333 Metadata:

title : track 12

Chapter #0.12: start 1190.653333, end 1238.746667 Metadata:

title : track 13

Chapter #0.13: start 1238.746667, end 1393.866667 Metadata:

title : track 14

Chapter #0.14: start 1393.866667, end 1467.586667 Metadata:

title : track 15

Chapter #0.15: start 1467.586667, end 1548.733333 Metadata:

title : track 16

Chapter #0.16: start 1548.733333, end 1595.493333 Metadata:

title : track 17

Chapter #0.17: start 1595.493333, end 1720.413333 Metadata:

title : track 18

Chapter #0.18: start 1720.413333, end 1801.480000 Metadata:

title : track 19

Chapter #0.19: start 1801.480000, end 1932.146667 Metadata:

title : track 20

Chapter #0.20: start 1932.146667, end 1969.053333 Metadata:

title : track 21

Chapter #0.21: start 1969.053333, end 2135.746667 Metadata:

title : track 22

Chapter #0.22: start 2135.746667, end 2176.933333 Metadata:

title : track 23

Chapter #0.23: start 2176.933333, end 2361.613333 Metadata:

title : track 24

Stream #0:0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s

Output #0, wav, to 'test.wav':

Metadata:

ISFT : Lavf55.49.100 Chapter #0.0: start 0.000000, end 89.360000 Metadata:

title : track 01

Chapter #0.1: start 89.360000, end 100.453333 Metadata:

title : track 02

Chapter #0.2: start 100.453333, end 346.680000 Metadata:

title : track 03

Chapter #0.3: start 346.680000, end 414.746667 Metadata:

title : track 04

Chapter #0.4: start 414.746667, end 576.333333 Metadata:

title : track 05

Chapter #0.5: start 576.333333, end 631.093333 Metadata:

title : track 06

Chapter #0.6: start 631.093333, end 723.906667 Metadata:

title : track 07

Chapter #0.7: start 723.906667, end 771.813333 Metadata:

title : track 08

Chapter #0.8: start 771.813333, end 862.746667 Metadata:

title : track 09

Chapter #0.9: start 862.746667, end 940.346667 Metadata:

title : track 10

Chapter #0.10: start 940.346667, end 1079.186667 Metadata:

title : track 11

Chapter #0.11: start 1079.186667, end 1190.653333 Metadata:

title : track 12

Chapter #0.12: start 1190.653333, end 1238.746667 Metadata:

title : track 13

Chapter #0.13: start 1238.746667, end 1393.866667 Metadata:

title : track 14

Chapter #0.14: start 1393.866667, end 1467.586667 Metadata:

title : track 15

Chapter #0.15: start 1467.586667, end 1548.733333 Metadata:

title : track 16

Chapter #0.16: start 1548.733333, end 1595.493333 Metadata:

title : track 17

Chapter #0.17: start 1595.493333, end 1720.413333 Metadata:

title : track 18

Chapter #0.18: start 1720.413333, end 1801.480000 Metadata:

title : track 19

Chapter #0.19: start 1801.480000, end 1932.146667 Metadata:

title : track 20

Chapter #0.20: start 1932.146667, end 1969.053333 Metadata:

title : track 21

Chapter #0.21: start 1969.053333, end 2135.746667 Metadata:

title : track 22

Chapter #0.22: start 2135.746667, end 2176.933333 Metadata:

title : track 23

Chapter #0.23: start 2176.933333, end 2361.613333 Metadata:

title : track 24

Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s Metadata:

encoder : Lavc55.69.100 pcm_s16le

Stream mapping:

Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))

Press [q] to stop, ? for help size= 0kB time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)


#4736 h264_qsv and hevc_qsv crashes on windows 8.1 (q=-0.0) undetermined defect Jul 25, 2015

ffmpeg -report -i pills.mp4 -c:v h264_qsv -q 20 pills2.mp4 ffmpeg version N-73959-g52c75d4 Copyright (c) 2000-2015 the FFmpeg developers

built with gcc 4.9.2 (GCC) configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/mint/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --en libavutil 54. 28.100 / 54. 28.100 libavcodec 56. 52.100 / 56. 52.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 27.100 / 5. 27.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100

Splitting the commandline. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Reading option '-i' ... matched as input file with argument 'pills.mp4'. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'h264_qsv'. Reading option '-q' ... matched as option 'q' (use fixed quality scale (VBR)) with argument '20'. Reading option 'pills2.mp4' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file pills.mp4. Successfully parsed a group of options. Opening an input file: pills.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] ISO: File Type Major Brand: mp42 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] Before avformat_find_stream_info() pos: 84216 bytes read:98304 seeks:0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] After avformat_find_stream_info() pos: 186111 bytes read:196608 seeks:0 frames:14 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pills.mp4':

Metadata:

major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2014-06-22 20:34:13

Duration: 00:04:33.02, start: 0.000000, bitrate: 1316 kb/s

Stream #0:0(und), 13, 1/24: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1122 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default) Metadata:

handler_name : VideoHandler?

Stream #0:1(und), 1, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default) Metadata:

creation_time : 2014-06-22 20:34:15 handler_name : IsoMedia? File Produced by Google, 5-11-2011

Successfully opened the file. Parsing a group of options: output file pills2.mp4. Applying option c:v (codec name) with argument h264_qsv. Applying option q (use fixed quality scale (VBR)) with argument 20. Successfully parsed a group of options. Opening an output file: pills2.mp4. Successfully opened the file. detected 8 logical cores [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'video_size' to value '1280x720' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'time_base' to value '1/24' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'pixel_aspect' to value '1/1' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'frame_rate' to value '24/1' [graph 0 input from stream 0:0 @ 00000000055ad3c0] w:1280 h:720 pixfmt:yuv420p tb:1/24 fr:24/1 sar:1/1 sws_param:flags=2 [format @ 000000000587c7c0] compat: called with args=[nv12|qsv] [format @ 000000000587c7c0] Setting 'pix_fmts' to value 'nv12|qsv' [auto-inserted scaler 0 @ 000000000587c880] Setting 'flags' to value '0x4' [auto-inserted scaler 0 @ 000000000587c880] w:iw h:ih flags:'0x4' interl:0 [format @ 000000000587c7c0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 0000000005a552e0] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 000000000587c880] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:1280 h:720 fmt:nv12 sar:1/1 flags:0x4 [graph 1 input from stream 0:1 @ 0000000005a66f40] Setting 'time_base' to value '1/44100' [graph 1 input from stream 0:1 @ 0000000005a66f40] Setting 'sample_rate' to value '44100' [graph 1 input from stream 0:1 @ 0000000005a66f40] Setting 'sample_fmt' to value 'fltp' [graph 1 input from stream 0:1 @ 0000000005a66f40] Setting 'channel_layout' to value '0x3' [graph 1 input from stream 0:1 @ 0000000005a66f40] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3 [audio format for output stream 0:1 @ 0000000005a66880] Setting 'sample_fmts' to value 's16' [audio format for output stream 0:1 @ 0000000005a66880] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000' [audio format for output stream 0:1 @ 0000000005a66880] Setting 'channel_layouts' to value '0x4|0x3|0x7|0x107|0x37|0x3f|0xff|0x63f' [audio format for output stream 0:1 @ 0000000005a66880] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1' [AVFilterGraph @ 0000000005a551a0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed [auto-inserted resampler 0 @ 0000000005a67240] [SWR @ 0000000000c28e20] Using fltp internally between filters [auto-inserted resampler 0 @ 0000000005a67240] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz [h264_qsv @ 00000000057000a0] Initialized an internal MFX session using hardware accelerated implementation [h264_qsv @ 00000000057000a0] Using the constant quantization parameter (CQP) ratecontrol method [libfdk_aac @ 0000000000c4fba0] VBR quality 2360 out of range, should be 1-5 [libfdk_aac @ 0000000000c4fba0] Note, the VBR setting is unsupported and only works with some parameter combinations Output #0, mp4, to 'pills2.mp4':

Metadata:

major_brand : mp42 minor_version : 0 compatible_brands: isommp42 encoder : Lavf56.40.101 Stream #0:0(und), 0, 1/12288: Video: h264 (h264_qsv) ([33][0][0][0] / 0x0021), nv12, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 24 fps, 12288 tbn, 24 tbc (default) Metadata:

handler_name : VideoHandler? encoder : Lavc56.52.100 h264_qsv

Stream #0:1(und), 0, 1/44100: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16 (default) Metadata:

creation_time : 2014-06-22 20:34:15 handler_name : IsoMedia? File Produced by Google, 5-11-2011 encoder : Lavc56.52.100 libfdk_aac

Stream mapping:

Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv)) Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))

Press [q] to stop, ? for help Cliping frame in rate conversion by 0.000008 frame= 193 fps=0.0 q=-0.0 size= 983kB time=00:00:07.77 bitrate=1035.1kbits/s frame= 403 fps=397 q=-0.0 size= 2327kB time=00:00:16.88 bitrate=1129.4kbits/s frame= 614 fps=405 q=-0.0 size= 3205kB time=00:00:25.68 bitrate=1022.3kbits/s frame= 825 fps=406 q=-0.0 size= 8096kB time=00:00:34.13 bitrate=1943.1kbits/s frame= 1034 fps=408 q=-0.0 size= 9395kB time=00:00:42.88 bitrate=1794.5kbits/s frame= 1246 fps=409 q=-0.0 size= 11149kB time=00:00:51.71 bitrate=1766.2kbits/s frame= 1466 fps=413 q=-0.0 size= 12587kB time=00:01:00.92 bitrate=1692.3kbits/s

Received windows signal 0


#4820 Converting a H264 MXF to a H264 MOV with "-vcodec copy" results in mov unreadable by QuickTime avformat defect Sep 1, 2015

Summary of the bug:

Using ffmpeg 2.5 (but doesn't work either with 2.6, 2.7 nor master)

How to reproduce:

%./ffmpeg -i h264_vid.mxf -vcodec copy  test.mov

Video is readable by most players (totem, VLC) but not Quicktime, which reports the following errors: "chroma_format_idc too large for high profile" and "invalid H264 profile 122 and/or level 4.1"

Not using "-vcodec copy" results in a video readable by Quicktime, but with very poor quality.

The problem seems to be that in avformat_open_input / mxf_read_header / mxf_parse_structural_metadata, we call "ff_generate_avci_extradata" if codec is H264, which uses a default set of extradata that Quicktime doesn't support AFAICT.

In avformat_find_stream_info, we actually find some (correct) extradata, but we don't set them because st->codec->extradata isn't NULL (already set in avformat_open_input), here:

if (st->parser && st->parser->parser->split && !st->codec->extradata)

As a workaround, when using ffmpeg's lib, removing the extra data between avformat_open_input call and avformat_find_stream_info fixes the issue.

I don't have a workaround when using command line.


#4888 62bd8deef causes a regression in HEVC decoding / hevc needs support to skip initial corrupt frames avcodec defect Sep 28, 2015

Summary of the bug: I'm trying to extract a thumb from the middle of a live TS, containing one HEVC-stream. Before this patch I would always get a good looking thumb, but with this patch I would for the most part get a mostly gray frame.

If I generates a few more thumbnails i see that it eventually spits out the same frame that ffmpeg before this patch produced as the first thumb, and it looks OK.

However it is much more blocky than what the previous ffmpeg produced.

How to reproduce (b7baebb75 is the commit just before the patch):

% ./ffmpeg.b7baebb75 -an -i hevc_fail.ts -vframes 1 before_patch%d.jpg
ffmpeg version N-74781-gb7baebb Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (Debian 4.7.2-5)
  configuration: 
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
Input #0, mpegts, from 'hevc_fail.ts':
  Duration: 00:00:02.50, start: 2237.360033, bitrate: 7740 kb/s
    Stream #0:0[0x1e1]: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
[swscaler @ 0x1f9a140] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'before_patch%d.jpg':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc
    Metadata:
      encoder         : Lavc56.60.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x2052600] PPS id out of range: 0
[hevc @ 0x2052600] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x20609a0] PPS id out of range: 0
[hevc @ 0x20609a0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x2072400] PPS id out of range: 0
[hevc @ 0x2072400] Error parsing NAL unit #2.
[hevc @ 0x2083e60] PPS id out of range: 0
[hevc @ 0x2083e60] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x20958c0] PPS id out of range: 0
[hevc @ 0x20958c0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x20a7320] PPS id out of range: 0
[hevc @ 0x20a7320] Error parsing NAL unit #2.
[hevc @ 0x20b8d80] PPS id out of range: 0
[hevc @ 0x20b8d80] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x20ca7e0] PPS id out of range: 0
[hevc @ 0x20ca7e0] Error parsing NAL unit #2.
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20dc240] PPS id out of range: 0
[hevc @ 0x20dc240] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x2052600] PPS id out of range: 0
[hevc @ 0x2052600] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20609a0] PPS id out of range: 0
[hevc @ 0x20609a0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x2072400] PPS id out of range: 0
[hevc @ 0x2072400] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x2083e60] PPS id out of range: 0
[hevc @ 0x2083e60] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20958c0] PPS id out of range: 0
[hevc @ 0x20958c0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20a7320] PPS id out of range: 0
[hevc @ 0x20a7320] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20b8d80] PPS id out of range: 0
[hevc @ 0x20b8d80] Error parsing NAL unit #2.
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 7 times
frame=    1 fps=0.0 q=7.5 Lsize=N/A time=00:00:00.75 bitrate=N/A    
video:108kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

This gives me one image, before_patch1.jpg that looks completly fine. http://kolbu.ws/~chiller/ffmpeg_bug/before_patch1.jpg

Now I do the same with the patch:

ffmpeg version N-74782-g62bd8de Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (Debian 4.7.2-5)
  configuration: 
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
[NULL @ 0x1dc2780] PPS id out of range: 0
[hevc @ 0x1dc2780] PPS id out of range: 0
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
Input #0, mpegts, from 'hevc_fail.ts':
  Duration: 00:00:02.50, start: 2237.360033, bitrate: 7740 kb/s
    Stream #0:0[0x1e1]: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
[swscaler @ 0x1dec4e0] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'with_patch%d.jpg':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc
    Metadata:
      encoder         : Lavc56.60.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[hevc @ 0x1ea0760] Could not find ref with POC 12
[hevc @ 0x1ea0760] Could not find ref with POC 15
frame=    1 fps=0.0 q=5.0 Lsize=N/A time=00:00:00.04 bitrate=N/A    
video:69kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

This gives me one file with_patch1.jpg that looks garbaged. http://kolbu.ws/~chiller/ffmpeg_bug/with_patch1.jpg

If I re-run the last command with -vframes 100 it generates 60 images, where image 18 is almost identical to the before_patch1.jpg, except a bit more blocky.

http://kolbu.ws/~chiller/ffmpeg_bug/with_patch18.jpg

Here is the link to the .ts-file: http://kolbu.ws/~chiller/ffmpeg_bug/hevc_fail.ts

and all files involved can be viewed here: http://kolbu.ws/~chiller/ffmpeg_bug/ (The most important ones are attached)


#5067 crash on Mapping Multicast TV Stream to HLS with "Exactly one WebVTT stream is needed" as message avformat defect Dec 5, 2015

Summary of the bug: i want to map a multicast TV Stream as is to HLS. Till ffmpeg 2.7.2 there was no Problem with the command line. With ffmpeg 2.8.0 till now with ffmpeg 2.8.3 ffmpeg says now "Exactly one WebVTT stream is needed" and crashes. The debug Output comes from ffmpeg 2.8.2, but with ffmpeg 2.8.3 it's the same Problem.

As should be: The command line should run without Problems, even without WebVTT streams, and should map all subtitles as is.

How to reproduce:

root@ffmpegserver:~/ffmpeg-2.8.2-64bit-static# ./ffmpeg -i udp://@239.100.1.1:1234 -map 0 -probesize 100 -analyzeduration 100 -c copy -copy_unknown -f hls -hls_time 10 -hls_wrap 10 -hls_list_size 10 /var/www/test1_.m3u8 -loglevel debug
ffmpeg version 2.8.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
 built with gcc 5.2.1 (Debian 5.2.1-23) 20151028
 configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --cc=gcc
 libavutil 54. 31.100 / 54. 31.100
 libavcodec 56. 60.100 / 56. 60.100
 libavformat 56. 40.101 / 56. 40.101
 libavdevice 56. 4.100 / 56. 4.100
 libavfilter 5. 40.101 / 5. 40.101
 libswscale 3. 1.101 / 3. 1.101
 libswresample 1. 2.101 / 1. 2.101
 libpostproc 53. 3.100 / 53. 3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'udp://@239.100.1.1:1234'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
Reading option '-probesize' ... matched as AVOption 'probesize' with argument '100'.
Reading option '-analyzeduration' ... matched as AVOption 'analyzeduration' with argument '100'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-copy_unknown' ... matched as option 'copy_unknown' (Copy unknown stream types) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'hls'.
Reading option '-hls_time' ... matched as AVOption 'hls_time' with argument '10'.
Reading option '-hls_wrap' ... matched as AVOption 'hls_wrap' with argument '10'.
Reading option '-hls_list_size' ... matched as AVOption 'hls_list_size' with argument '10'.
Reading option '/var/www/test1_.m3u8' ... matched as output file.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option copy_unknown (Copy unknown stream types) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file udp://@239.100.1.1:1234.
Successfully parsed a group of options.
Opening an input file: udp://@239.100.1.1:1234.
[udp @ 0x3c048c0] end receive buffer size reported is 131072
[mpegts @ 0x3c04080] Format mpegts probed with size=2048 and score=100
[mpegts @ 0x3c04080] stream=0 stream_type=3 pid=90 prog_reg_desc=
[mpegts @ 0x3c04080] stream=1 stream_type=6 pid=92 prog_reg_desc=
[mpegts @ 0x3c04080] stream=2 stream_type=2 pid=a8 prog_reg_desc=
[mpegts @ 0x3c04080] stream=3 stream_type=5 pid=585 prog_reg_desc=
[mpegts @ 0x3c04080] Before avformat_find_stream_info() pos: 0 bytes read:215824 seeks:0
[mpegts @ 0x3c04080] parser not found for codec dvb_teletext, packets or times may be invalid.
[mpegts @ 0x3c04080] parser not found for codec none, packets or times may be invalid.
[mpegts @ 0x3c04080] parser not found for codec dvb_teletext, packets or times may be invalid.
[mpeg2video @ 0x3c2a080] Invalid frame dimensions 0x0.
 Last message repeated 4 times
[mpegts @ 0x3c04080] max_analyze_duration 5000000 reached at 5000000 microseconds st:2
[mpegts @ 0x3c04080] Could not find codec parameters for stream 3 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x3c04080] After avformat_find_stream_info() pos: 2948780 bytes read:2949156 seeks:0 frames:469
Input #0, mpegts, from 'udp://@239.100.1.1:1234':
 Duration: N/A, start: 85846.772444, bitrate: N/A
 Program 3394
 Metadata:
 service_name : QVC PLUS
 service_provider: SES ASTRA
 Stream #0:0[0x90](ger), 208, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
 Stream #0:1[0x92](ger), 131, 1/90000: Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
 Stream #0:2[0xa8], 130, 1/90000: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, left), 720x576 [SAR 64:45 DAR 16:9], 1/50, max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
 Stream #0:3[0x585], 0, 1/90000: Unknown: none ([5][0][0][0] / 0x0005)
Successfully opened the file.
Parsing a group of options: output file /var/www/test1_.m3u8.
Applying option map (set input stream mapping) with argument 0.
Applying option c (codec name) with argument copy.
Applying option f (force format) with argument hls.
Successfully parsed a group of options.
Opening an output file: /var/www/test1_.m3u8.
Successfully opened the file.
[webvtt @ 0x3fb80c0] Exactly one WebVTT stream is needed.
[mpegts @ 0x3fb7ae0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Segmentation fault (core dumped)
root@ffmpegserver:~/ffmpeg-2.8.2-64bit-static#

#5090 fragmented mp4 have bad dts on video track avformat defect Dec 16, 2015

ffmpeg version 2.8.3-39.1

As you can see from the attached log file, any fragments of video track begin with a dts that is not the continuation of the previous fragment, while in the audio track, dts grows properly, but both audio and video have tfdt box with the correct timing. Indeed ffplay it does not play the video, but audio only. However this has started to happen only recently, because before everything was ok.


#5272 videotoolbox fails to initialize for mpeg2, mpeg4 codec avcodec defect Feb 25, 2016

Summary of the bug: ffmpeg 2.8 branch can decode mpeg2video, mpeg4 and h264, but 3.0 and master can only decode h264. videotoolbox_default_init returns AVERROR_UNKNOWN for mpeg2video and mpeg4. How to reproduce:

% ffmpeg version N-76033-g1a29804 Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --extra-version=QtAV --disable-doc --disable-debug --disable-shared --enable-pic --enable-runtime-cpudetect --enable-hwaccels --enable-avresample --disable-postproc --enable-videotoolbox --cc=clang --extra-cflags='-mmacosx-version-min=10.8' --extra-ldflags='-mmacosx-version-min=10.8'
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 25.101 / 57. 25.101
  libavformat    57. 26.100 / 57. 26.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 36.100 /  6. 36.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
Input #0, mpeg, from '/Volumes/Share/samples/big_buck_bunny_480p_MPEG2_MP2_25fps_1800K.MPG':
  Duration: 00:01:14.68, start: 0.240000, bitrate: 2123 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 854x480 [SAR 1:1 DAR 427:240], max. 2496 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16p, 160 kb/s
File '/tmp/t.ts' already exists. Overwrite ? [y/N] Output #0, mpegts, to '/tmp/t.ts':
  Metadata:
    encoder         : Lavf57.26.100
    Stream #0:0: Video: mpeg2video (Main), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 200 kb/s, 25 fps, 90k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.25.101 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 384 kb/s
    Metadata:
      encoder         : Lavc57.25.101 mp2
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (mp2 (native) -> mp2 (native))
Press [q] to stop, [?] for help
Error creating Videotoolbox decoder.
videotoolbox hwaccel requested for input stream #0:0, but cannot be initialized.
[mpeg2video @ 0x7fa632804000] decoding to AV_PIX_FMT_NONE is not supported.
[mpeg2video @ 0x7fa632804000] mpeg_decode_postinit() failure
Error while decoding stream #0:0: Operation not permitted
Error creating Videotoolbox decoder.
videotoolbox hwaccel requested for input stream #0:0, but cannot be initialized.
[mpeg2video @ 0x7fa632804000] decoding to AV_PIX_FMT_NONE is not supported.
[mpeg2video @ 0x7fa632804000] mpeg_decode_postinit() failure
Error while decoding stream #0:0: Operation not permitted
Error creating Videotoolbox decoder.

#5281 FFmpeg doesn't care about existing output file ffmpeg defect Mar 2, 2016

Executing this command

ffmpeg.exe -i "H:\Musiques\Musique Papa\BACH JS\BACH JS - Intégrale Brilliiant - Volume IV - Cantates II\BACH JS - Cantantes II - 1 - 110 198\02 Piste 2.wma" -vn -acodec vorbis -strict -2 -ac 2 "H:\Musiques\Musique Papa\BACH JS\BACH JS - Intégrale Brilliiant - Volume IV - Cantates II\BACH JS - Cantantes II - 1 - 110 198\02 Piste 2.ogg"

With ffmpeg "N-77870-gb58cfa6" or "N-50911-g9efcfbe" (seriously?!) and while both files exist should output for an overwrite confirmation. It actually doesn't: FFmpeg overrides the output without a warning nor a confirm.

Hence, having the "-n" option doens't work either: FFMpeg overwrites the output file.


#5291 Wrong parsing when start time > end time in subtitles (.ass) undetermined defect Mar 6, 2016

Summary of the bug: .ass subtitles parsed wrong when dialog start time is larger than dialog end time.

How to reproduce:

Test file (test.ass):

[Script Info]
Title: Default Aegisub file
ScriptType: v4.00+
PlayResX: 1280
PlayResY: 720
PlayDepth: 16
Timer: 100,0000
WrapStyle: 1
YCbCr Matrix: TV.709

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,45,&H00FFFFFF,&H00005BFF,&H00010101,&HBE1F0C05,-1,0,0,0,90,100,0,0,1,2,0,2,10,10,15,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 1,0:02:11.52,0:02:11.49,Default,,0,0,0,fx,test

And then:

ffmpeg -i test.ass -f webvtt -nostats -loglevel 0 -
WEBVTT

02:11.520 --> 1193:04:58.786
<b>test</b>

As you see dialog with duration 0 ms converts to dialog with duration 1193 hours.

With loglevel 999 (but I think it's useless):

ffmpeg -i test.ass -f webvtt -loglevel 999 -
ffmpeg version N-76944-g15206ff Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
  libavutil      55.  9.100 / 55.  9.100
  libavcodec     57. 16.101 / 57. 16.101
  libavformat    57. 19.100 / 57. 19.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 17.100 /  6. 17.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'test.ass'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'webvtt'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '999'.
Reading option '-' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument 999.
Successfully parsed a group of options.
Parsing a group of options: input file test.ass.
Successfully parsed a group of options.
Opening an input file: test.ass.
Probing ass score:100 size:660
Probing lrc score:5 size:660
[ass @ 0x2ee93c0] Format ass probed with size=2048 and score=100
[ass @ 0x2ee93c0] Before avformat_find_stream_info() pos: 660 bytes read:660 seeks:0
[ass @ 0x2ee93c0] All info found
[ass @ 0x2ee93c0] 0: start_time: -9223372036854.775 duration: -9223372036854.775
[ass @ 0x2ee93c0] stream: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=0 kb/s
[ass @ 0x2ee93c0] After avformat_find_stream_info() pos: 660 bytes read:660 seeks:0 frames:0
Input #0, ass, from 'test.ass':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 0, 1/100: Subtitle: ass
Successfully opened the file.
Parsing a group of options: output file -.
Applying option f (force format) with argument webvtt.
Successfully parsed a group of options.
Opening an output file: -.
Successfully opened the file.
WEBVTT
Output #0, webvtt, to 'pipe:':
  Metadata:
    encoder         : Lavf57.19.100
    Stream #0:0, 0, 1/1000: Subtitle: webvtt
    Metadata:
      encoder         : Lavc57.16.101 webvtt
Stream mapping:
  Stream #0:0 -> #0:0 (ass (native) -> webvtt (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)

02:11.520 --> 1193:04:58.786
<b>test</b>
No more output streams to write to, finishing.
size=       0kB time=00:02:11.52 bitrate=   0.0kbits/s
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 345.454559%
Input file #0 (test.ass):
  Input stream #0:0 (subtitle): 1 packets read (26 bytes); 1 frames decoded;
  Total: 1 packets (26 bytes) demuxed
Output file #0 (pipe:):
  Output stream #0:0 (subtitle): 1 frames encoded; 1 packets muxed (11 bytes);
  Total: 1 packets (11 bytes) muxed
1 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x2eead20] Statistics: 0 seeks, 2 writeouts
[AVIOContext @ 0x2ef1f40] Statistics: 660 bytes read, 0 seeks

#5493 framerate filter output appears to be affected by request_frame() calls avfilter defect Apr 29, 2016

Summary of the bug: Depending on (weird) input frame rates and chosen framerate filter frame rate and other circumstances, the framerate filter results in an incomplete MB tree 1st pass stats file.

How to reproduce:

$ ffprobe -select_streams v -show_entries stream=r_frame_rate,avg_frame_rate oldphone.mp4
ffprobe version N-79691-g66dd21d Copyright (c) 2007-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --enable-gpl --enable-nonfree --disable-ffserver --enable-shared --enable-openssl --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      55. 23.100 / 55. 23.100
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'oldphone.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-04-24 09:48:33
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    com.android.version: 6.0.1
  Duration: 00:00:52.12, start: 0.000000, bitrate: 15880 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 15715 kb/s, SAR 1:1 DAR 16:9, 25.48 fps, 90k tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 196 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
[STREAM]
r_frame_rate=180000/2
avg_frame_rate=14906250/584969
[/STREAM]
$ ffmpeg -i oldphone.mp4 -filter:v framerate=30,scale=640:360 -b:v 500k -pass 1 -y
test.mp4
ffmpeg version N-79691-g66dd21d Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --enable-gpl --enable-nonfree --disable-ffserver --enable-shared --enable-openssl --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      55. 23.100 / 55. 23.100
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'oldphone.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-04-24 09:48:33
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    com.android.version: 6.0.1
  Duration: 00:00:52.12, start: 0.000000, bitrate: 15880 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 15715 kb/s, SAR 1:1 DAR 16:9, 25.48 fps, 90k tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 196 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
[Parsed_framerate_0 @ 0x7fccb2700000] time base:1/90000 -> 1/90000 exact:1
[Parsed_framerate_0 @ 0x7fccb2700000] fps -> fps:30/1 scene score:7.000000 interpolate start:15 end:240
[libx264 @ 0x7fccb2812e00] using SAR=1/1
[libx264 @ 0x7fccb2812e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7fccb2812e00] profile Main, level 3.0
[libx264 @ 0x7fccb2812e00] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=11 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x7fccb2811c00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, mp4, to 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    com.android.version: 6.0.1
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    encoder         : Lavf57.34.103
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 500 kb/s, 30 fps, 15360 tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
      encoder         : Lavc57.38.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/500000 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
      encoder         : Lavc57.38.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame= 1559 fps=137 q=-1.0 Lsize=    3989kB time=00:00:52.12 bitrate= 627.0kbits/s speed=4.58x
video:3119kB audio:813kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.448805%
[libx264 @ 0x7fccb2812e00] frame I:12    Avg QP:24.46  size:  8829
[libx264 @ 0x7fccb2812e00] frame P:419   Avg QP:26.64  size:  4157
[libx264 @ 0x7fccb2812e00] frame B:1128  Avg QP:29.56  size:  1193
[libx264 @ 0x7fccb2812e00] consecutive B-frames:  1.9%  3.0%  6.2% 89.0%
[libx264 @ 0x7fccb2812e00] mb I  I16..4: 49.9%  0.0% 50.1%
[libx264 @ 0x7fccb2812e00] mb P  I16..4: 23.3%  0.0%  0.0%  P16..4: 49.3%  0.0%  0.0%  0.0%  0.0%    skip:27.3%
[libx264 @ 0x7fccb2812e00] mb B  I16..4:  3.4%  0.0%  0.0%  B16..8: 19.2%  0.0%  0.0%  direct: 7.1%  skip:70.3%  L0:35.8% L1:43.1% BI:21.2%
[libx264 @ 0x7fccb2812e00] final ratefactor: 23.53
[libx264 @ 0x7fccb2812e00] coded y,uvDC,uvAC intra: 45.2% 40.8% 10.6% inter: 9.6% 8.2% 0.3%
[libx264 @ 0x7fccb2812e00] i16 v,h,dc,p: 74% 13%  7%  6%
[libx264 @ 0x7fccb2812e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 43% 27% 10%  3%  3%  4%  3%  3%  5%
[libx264 @ 0x7fccb2812e00] i8c dc,h,v,p: 48% 16% 31%  6%
[libx264 @ 0x7fccb2812e00] Weighted P-Frames: Y:14.6% UV:3.6%
[libx264 @ 0x7fccb2812e00] kb/s:491.59
[aac @ 0x7fccb2814600] Qavg: 1142.250
$ ffmpeg -i oldphone.mp4 -filter:v framerate=30,scale=640:360 -b:v 500k -pass 2 -y
test.mp4
ffmpeg version N-79691-g66dd21d Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --enable-gpl --enable-nonfree --disable-ffserver --enable-shared --enable-openssl --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      55. 23.100 / 55. 23.100
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'oldphone.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-04-24 09:48:33
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    com.android.version: 6.0.1
  Duration: 00:00:52.12, start: 0.000000, bitrate: 15880 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 15715 kb/s, SAR 1:1 DAR 16:9, 25.48 fps, 90k tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 196 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
[Parsed_framerate_0 @ 0x7fd880600000] time base:1/90000 -> 1/90000 exact:1
[Parsed_framerate_0 @ 0x7fd880600000] fps -> fps:30/1 scene score:7.000000 interpolate start:15 end:240
[libx264 @ 0x7fd88082c000] using SAR=1/1
[libx264 @ 0x7fd88082c000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7fd88082c000] profile High, level 3.0
[libx264 @ 0x7fd88082c000] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=11 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=2pass mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x7fd880828c00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, mp4, to 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    com.android.version: 6.0.1
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    encoder         : Lavf57.34.103
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 500 kb/s, 30 fps, 15360 tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
      encoder         : Lavc57.38.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/500000 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
      encoder         : Lavc57.38.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x7fd88082c000] Incomplete MB-tree stats file.08 bitrate= 615.3kbits/s speed=3.84x
Video encoding failed
[libx264 @ 0x7fd88082c000] frame I:12    Avg QP:24.36  size:  8693
[libx264 @ 0x7fd88082c000] frame P:416   Avg QP:26.93  size:  3900
[libx264 @ 0x7fd88082c000] frame B:1117  Avg QP:29.65  size:  1323
[libx264 @ 0x7fd88082c000] consecutive B-frames:  1.9%  3.0%  6.2% 88.9%
[libx264 @ 0x7fd88082c000] mb I  I16..4: 18.8% 66.8% 14.3%
[libx264 @ 0x7fd88082c000] mb P  I16..4:  4.2%  7.9%  2.1%  P16..4: 43.2% 10.2%  4.5%  0.0%  0.0%    skip:27.8%
[libx264 @ 0x7fd88082c000] mb B  I16..4:  0.5%  0.7%  0.2%  B16..8: 39.0%  3.8%  0.9%  direct: 2.3%  skip:52.7%  L0:44.3% L1:49.4% BI: 6.4%
[libx264 @ 0x7fd88082c000] 8x8 transform intra:56.1% inter:83.0%
[libx264 @ 0x7fd88082c000] coded y,uvDC,uvAC intra: 57.8% 60.2% 23.1% inter: 12.4% 11.7% 0.4%
[libx264 @ 0x7fd88082c000] i16 v,h,dc,p: 83%  6%  1% 10%
[libx264 @ 0x7fd88082c000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 53% 13%  9%  2%  3%  5%  4%  5%  6%
[libx264 @ 0x7fd88082c000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 14%  7%  4%  6%  9%  6%  6%  5%
[libx264 @ 0x7fd88082c000] i8c dc,h,v,p: 48% 17% 27%  8%
[libx264 @ 0x7fd88082c000] Weighted P-Frames: Y:14.2% UV:3.1%
[libx264 @ 0x7fd88082c000] ref P L0: 50.1% 18.3% 20.3% 10.1%  1.1%
[libx264 @ 0x7fd88082c000] ref B L0: 85.2% 11.0%  3.8%
[libx264 @ 0x7fd88082c000] ref B L1: 94.9%  5.1%
[libx264 @ 0x7fd88082c000] kb/s:497.76
[aac @ 0x7fd88082d800] Qavg: 1142.847
[aac @ 0x7fd88082d800] 2 frames left in the queue on closing
Conversion failed!

This does not happen e.g. with libvpx; I presume because it collects less data in its first pass stats.


#5671 FFmpeg unable to decode PCM in MXF avformat defect Jun 27, 2016

Summary of the bug: FFmpeg is unable to decode PCM which is wrapped in an MXF file. The MXF file is Avid compatible, but was apparently not created with Avid. Sample can be found here: http://dl.flavoursys.com/samples/ffmpeg/TVOKids_6.mxf

How to reproduce:

% $ ffmpeg -i TVOKids_6.mxf -loglevel debug -y out.wav                                                                                                                                                                                                 [17:02:14]
ffmpeg version N-80780-gd693392 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2.1) 20160413
  configuration: --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-version3 --enable-libfdk-aac --enable-libx264 --enable-libfreetype
  libavutil      55. 27.100 / 55. 27.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 40.101 / 57. 40.101
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 46.102 /  6. 46.102
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'TVOKids_6.mxf'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'out.wav' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file TVOKids_6.mxf.
Successfully parsed a group of options.
Opening an input file: TVOKids_6.mxf.
[file @ 0x362acc0] Setting default whitelist 'file,crypto'
[mxf @ 0x362a380] Format mxf probed with size=2048 and score=100
[mxf @ 0x362a380] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.23.00
[mxf @ 0x362a380] Dark key 06.0e.2b.34.01.01.01.02.03.01.02.10.01.00.00.00
    Last message repeated 2 times
[mxf @ 0x362a380] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.11.01.00
[mxf @ 0x362a380] none: Universal Label: 00000000.0000.0000.00000000.00000000
[mxf @ 0x362a380] Before avformat_find_stream_info() pos: 32744 bytes read:66172 seeks:5 nb_streams:1
[mxf @ 0x362a380] IndexSID 1 segment at 0 missing EditUnitByteCount and IndexEntryArray
[mxf @ 0x362a380] After avformat_find_stream_info() pos: 32744 bytes read:66172 seeks:5 frames:0
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, mxf, from 'TVOKids_6.mxf':
  Metadata:
    uid             : 27023931-e9a3-4549-946d-a5aea01cec3e
    generation_uid  : bd18e86b-ee7a-4f8f-8ceb-7ab5ac3f175f
    company_name    : Matrox Electronic
    product_name    : DSX
    product_version : 4.0
    product_uid     : 060e2b34-0401-0109-0e0e-010101000001
    modification_date: 2016-05-31 17:30:17
    material_package_umid: 0x060A2B340101010501010D20130000004F5296D2A16741ED9D11A972EA7C9C30
    material_package_name: 0004PE
    timecode        : 11:22:33;00
  Duration: 00:00:18.95, start: 0.000000, bitrate: 1166 kb/s
    Stream #0:0, 0, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D20130000000B45AF7186674D708C09A0FCF3D5B364
Successfully opened the file.
Parsing a group of options: output file out.wav.
Successfully parsed a group of options.
Opening an output file: out.wav.
[file @ 0x3631540] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 16 logical cores
[graph 0 input from stream 0:0 @ 0x3643980] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0x3643980] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0x3643980] Setting 'sample_fmt' to value 's32'
[graph 0 input from stream 0:0 @ 0x3643980] Setting 'channel_layout' to value '0x4'
[graph 0 input from stream 0:0 @ 0x3643980] tb:1/48000 samplefmt:s32 samplerate:48000 chlayout:0x4
[audio format for output stream 0:0 @ 0x3644560] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0x3644560] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0x3631b80] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x3645d40] [SWR @ 0x3646120] Using fltp internally between filters
[auto-inserted resampler 0 @ 0x3645d40] ch:1 chl:mono fmt:s32 r:48000Hz -> ch:1 chl:mono fmt:s16 r:48000Hz
[wav @ 0x362fa00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, wav, to 'out.wav':
  Metadata:
    uid             : 27023931-e9a3-4549-946d-a5aea01cec3e
    generation_uid  : bd18e86b-ee7a-4f8f-8ceb-7ab5ac3f175f
    company_name    : Matrox Electronic
    product_name    : DSX
    product_version : 4.0
    product_uid     : 060e2b34-0401-0109-0e0e-010101000001
    modification_date: 2016-05-31 17:30:17
    material_package_umid: 0x060A2B340101010501010D20130000004F5296D2A16741ED9D11A972EA7C9C30
    material_package_name: 0004PE
    ISMP            : 11:22:33;00
    ISFT            : Lavf57.40.101
    Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16 (24 bit), 768 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D20130000000B45AF7186674D708C09A0FCF3D5B364
      encoder         : Lavc57.48.101 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s24le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[mxf @ 0x362a380] IndexSID 1 segment at 0 missing EditUnitByteCount and IndexEntryArray
TVOKids_6.mxf: Invalid data found when processing input
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[output stream 0:0 @ 0x36444c0] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (TVOKids_6.mxf):
  Input stream #0:0 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples); 
  Total: 0 packets (0 bytes) demuxed
Output file #0 (out.wav):
  Output stream #0:0 (audio): 0 frames encoded (0 samples); 0 packets muxed (0 bytes); 
  Total: 0 packets (0 bytes) muxed
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3631640] Statistics: 4 seeks, 3 writeouts
[AVIOContext @ 0x3633020] Statistics: 66172 bytes read, 5 seeks

#5718 ffmpeg not remapping channels for libopus automatically avcodec defect Jul 15, 2016
[libopus @ 00000000026ad020] Invalid channel layout 5.1(side) for specified mapping family -1.

Summary of the bug: Encode a 5.1 audio file with 5.1(side) channel map How to reproduce:

% ffmpeg -i movie-with-51side.mkv -c:a libopus -b:a 256k output.mkv
ffmpeg version N-81025-g25ca74d
built on July 15 2016

ffmpeg version N-80101-gd970f7b automatically remapped these to the rear channels since libopus doesn't seem to allow side channels. I now have to explicitly add:

-af "channelmap=channel_layout=5.1"

Not sure if this is expected behavior or not. Without this channelmap, it aborts. Command-line opusenc automatically remaps as well.


#5741 Wrong probing of an mp3 file avformat defect Jul 27, 2016

Summary of the bug:

Probing a specific mp3 file gives strange and totally unacurrate results, while mediainfo or exiftool give the right result

How to reproduce:

% ffprobe defect_mp3.mp3
ffprobe started on 2016-07-27 at 20:06:17
Report written to "ffprobe-20160727-200617.log"
Command line:
ffprobe -report "01 - Mein Herz.mp3"
ffprobe version 3.1.1 Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 6.1.1 (GCC) 20160707
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[file @ 0x55f43fce2400] Setting default whitelist 'file,crypto'
[mpeg @ 0x55f43fce1ca0] Format mpeg probed with size=131072 and score=52
[mpeg @ 0x55f43fce1ca0] id3v2 ver:3 flags:00 len:104415
[mpeg @ 0x55f43fce1ca0] demuxer does not support additional id3 data, skipping
[mpeg @ 0x55f43fce1ca0] Before avformat_find_stream_info() pos: 104425 bytes read:131072 seeks:0 nb_streams:0
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2500
[mpeg @ 0x55f43fce1ca0] Probe with size=677, packets=1 detected mp3 with score=1
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2499
[mpeg @ 0x55f43fce1ca0] Probe with size=1354, packets=2 detected mp3 with score=1
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2498
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2497
[mpeg @ 0x55f43fce1ca0] Probe with size=2708, packets=4 detected mp3 with score=1
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2496
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2495
[mpeg @ 0x55f43fce1ca0] pes_ext C6 is invalid
[mpeg @ 0x55f43fce1ca0] pes_ext C8 is invalid
[mpeg @ 0x55f43fce1ca0] probing stream 6 pp:2500
[mpeg @ 0x55f43fce1ca0] Probe with size=22613, packets=1 detected mp3 with score=25
[mpeg @ 0x55f43fce1ca0] probed stream 6
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2494
[mpeg @ 0x55f43fce1ca0] Probe with size=4062, packets=2500 detected mp3 with score=1
[mpeg @ 0x55f43fce1ca0] probed stream 0
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce7ae0] Header missing
[mp3 @ 0x55f43fce8860] Header missing
[mp3 @ 0x55f43fce95e0] Header missing
[mp3 @ 0x55f43fd09700] Header missing
[mp3 @ 0x55f43fd0fc20] Header missing
[mp3 @ 0x55f43fd1e320] Header missing
[mp3 @ 0x55f43fd1e320] Header missing
[mp3 @ 0x55f43fd24b60] Header missing
[mp3 @ 0x55f43fd25b20] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mpeg @ 0x55f43fce1ca0] decoding for stream 0 failed
[mpeg @ 0x55f43fce1ca0] start time for stream 0 is not set in estimate_timings_from_pts
[mpeg @ 0x55f43fce1ca0] start time for stream 1 is not set in estimate_timings_from_pts
[mpeg @ 0x55f43fce1ca0] start time for stream 3 is not set in estimate_timings_from_pts
[mpeg @ 0x55f43fce1ca0] start time for stream 7 is not set in estimate_timings_from_pts
[mpeg @ 0x55f43fce1ca0] stream 0 : no TS found at start of file, duration not set
[mpeg @ 0x55f43fce1ca0] stream 1 : no TS found at start of file, duration not set
[mpeg @ 0x55f43fce1ca0] stream 2 : no PTS found at end of file, duration not set
[mpeg @ 0x55f43fce1ca0] stream 3 : no TS found at start of file, duration not set
[mpeg @ 0x55f43fce1ca0] stream 7 : no TS found at start of file, duration not set
[mpeg @ 0x55f43fce1ca0] Could not find codec parameters for stream 0 (Audio: mp3, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpeg @ 0x55f43fce1ca0] After avformat_find_stream_info() pos: 104425 bytes read:25264605 seeks:8 frames:262
Input #0, mpeg, from '01 - Mein Herz.mp3':
  Metadata:
    title           : Mein Herz
    artist          : Oomph!
    track           : 1/15
    album           : OOMPH!
    disc            : 1/1
    genre           : Industrial Metal
    TBPM            : 0
    compilation     : 0
    lyrics-         : 
    TMED            : CD
    TORY            : 1992
    album_artist    : Oomph!
    publisher       : Mayan Records
    ALBUMARTISTSORT : Oomph!
    ASIN            : B0001KA9ZU
    Album Artist Credit: Oomph!
    Artist Credit   : Oomph!
    CATALOGNUMBER   : MYNCD019
    MusicBrainz Album Artist Id: d82ba5f4-da09-479a-ab18-4b1a122c4345
    MusicBrainz Album Id: 1a4910a4-0f2b-4cce-96c9-dec8ca1a05ff
    MusicBrainz Album Release Country: DE
    MusicBrainz Album Status: Official
    MusicBrainz Album Type: album
    MusicBrainz Artist Id: d82ba5f4-da09-479a-ab18-4b1a122c4345
    MusicBrainz Release Group Id: eda49ce7-3f60-3bdb-86fe-d263f1ed8537
    REPLAYGAIN_ALBUM_GAIN: -7.68 dB
    REPLAYGAIN_ALBUM_PEAK: 1.000000
    REPLAYGAIN_TRACK_GAIN: -7.92 dB
    REPLAYGAIN_TRACK_PEAK: 1.000000
    Script          : Latn
    date            : 2004-04-05
  Duration: 23:46:45.20, start: 30374.001044, bitrate: 0 kb/s
    Stream #0:0[0x1e0], 7, 1/90000: Audio: mp3, 0 channels, s16p
    Stream #0:1[0x1d5], 50, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:2[0x1c3], 22, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:3[0x1d0], 17, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:4[0x1c7], 23, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:5[0x1d7], 53, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:6[0x1ee], 22, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:7[0x1ca], 32, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:8[0x1dc], 36, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
[AVIOContext @ 0x55f43fcea760] Statistics: 25264605 bytes read, 8 seeks

I uploaded the problematic file to https://polochon.lelele.io/defect_mp3.mp3 . Let me know if you want it uploaded directly on the ffmpeg ftp !


#5771 avi with defect header won't work avformat defect Aug 10, 2016

Summary of the bug: I can't ffmpeg get to cooperate with any videos created with the catcam http://www.mr-lee-catcam.de/ Videos work in vlc, windows media player, mplayer and mencoder can convert them. But ffmpeg won't do anything.

How to reproduce:

$ ffmpeg -c:v avrn -loglevel trace -an -r:v 30 -i PICT0001.AVI -vf scale=640:480 -an katze.mpg ffmpeg version 3.1.1 Copyright (c) 2000-2016 the FFmpeg developers

built with gcc 6.1.1 (GCC) 20160707 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100

Splitting the commandline. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'avrn'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'. Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'. Reading option '-r:v' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '30'. Reading option '-i' ... matched as input file with argument 'PICT0001.AVI'. Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=640:480'. Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'. Reading option 'katze.mpg' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument trace. Successfully parsed a group of options. Parsing a group of options: input file PICT0001.AVI. Applying option c:v (codec name) with argument avrn. Applying option an (disable audio) with argument 1. Applying option r:v (set frame rate (Hz value, fraction or abbreviation)) with argument 30. Successfully parsed a group of options. Opening an input file: PICT0001.AVI. [file @ 0x55e8ab72c060] Setting default whitelist 'file,crypto' Probing avi score:100 size:2048 [avi @ 0x55e8ab72b820] Format avi probed with size=2048 and score=100 [avi @ 0x55e8ab72bf80] use odml:1 pos:14 tag: tag=LIST size=0x154 pos:18 list: tag=hdrl size=0x0 pos:20 tag: tag=avih size=0x38 pos:60 tag: tag=LIST size=0xa4 pos:64 list: tag=strl size=0x0 pos:6C tag: tag=strh size=0x38 pos:74 strh: tag=vids size=0xffffffff [avi @ 0x55e8ab72b820] 1000000 33333 0 pos:AC tag: tag=strf size=0x28 pos:D4 video: tag=MJPG size=0x0 pos:DC tag: tag=strd size=0x28 pos:10C tag: tag=LIST size=0x5c pos:110 list: tag=strl size=0x0 pos:118 tag: tag=strh size=0x38 pos:120 strh: tag=auds size=0xffffffff [avi @ 0x55e8ab72b820] scale/rate is 1/0 which is invalid. (This file has been generated by broken software.) [avi @ 0x55e8ab72b820] 1000000 33333 1 pos:158 tag: tag=strf size=0x10 [avi @ 0x55e8ab72b820] Invalid sample rate: 0 [AVIOContext @ 0x55e8ab7343a0] Statistics: 32768 bytes read, 0 seeks PICT0001.AVI: Invalid data found when processing input


#5860 "PES packet size mismatch", "Could not find codec parameters for stream 0" for TS stream that mplayer can play avformat defect Sep 23, 2016

I am trying to convert a ts stream produced by my TV tuner into an MP4 file:

ffmpeg -i sample-video.ts sample-video.mp4

It is reporting "PES packet size mismatch" and "Could not find codec parameters for stream 0 (Unknown: none): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options".

The video plays fine with mplayer and encodes fine with mencoder.

Other videos recorded from the tuner do not have this problem.

This discussion -- http://ffmpeg.gusari.org/viewtopic.php?f=11&t=853 -- suggests that it is appropriate for me to report this problem to you because you may be able to debug it and improve ffmpeg to make it go away in the future.


#5869 ffserver crash when GET sdp file ffserver defect Sep 28, 2016

Summary of the bug:

when starting the following ffserver instance, running curl "http://localhost:9203/live.sdp"

seg faults the server.

here is the BT of the crash: http://pastebin.com/Bav5ZpnP

HTTPPort 9203
HTTPBindAddress 0.0.0.0
RTSPPort 9204
RTSPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -

<Feed feed1.ffm>
  File feed1.ffm
  FileMaxSize 5M
  ACL allow 127.0.0.1
</Feed>

<Stream live.mp3>
  Format rtp
  Feed feed1.ffm
  AudioCodec libmp3lame
  AudioBitRate 128
  AudioChannels 2
  AudioSampleRate 44100
  NoVideo
</Stream>

<Stream stat.html>
	Format status
	# ACL allow localhost
</Stream>

built on Ubuntu / OS X with version: 8b21b44e7e312589a6c4dbad1b4214f2a03fb54a


#5895 Configure error with GCC 6.2.0 and libsnappy build system defect Oct 18, 2016

When using MinGW-w64 and GCC 6.2.0 and configuring with

--enable-libsnappy

the configure process errors with relocation overflows.

There are numerous overflow errors, but the first is

libstdc++.a(cow-stdexcept.o): In function `_txnal_cow_string_C1_for_exceptions(void*, char const*, void*)':
cow-stdexcept.cc:236:(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x2c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU1'

This appears to be happening because of the ldflag

-Wl,--image-base,0x140000000

added on line 4769 in configure, and removing this ldflag resolves the issue for me.

This ldflag was added with commit a58c22d61260941fc651add73836882d5b112fdb


#5911 Error reading MOV file avformat defect Oct 26, 2016

I have a mov file recorded on an AJA KiPro?. I've never had a problem with the files from this device until now.

The contents should contain "Apple ProRes? 422(LT)" for the video stream, and "pcm_s24le" for the audio streams, plus a "tmcd" timecode.

This particular file will open and play with quicktime without audio, so something in one or both of the audio tracks is messed up. Oddly enough VLC for MacOS manages to open and play with audio.

With ffmpeg I get the following:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f426c0093e0] Invalid sample_count=-1744855732 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f426c0093e0] error reading header

This is using ffmpeg-3.1.5. I can build and test with current head if that would seem to make any difference.

The file is rather large (368G) so let me know how I can submit a chunk that is just large enough to provide enough info to work with


#5914 FFmpeg not able to read a specific HLS stream avformat defect Oct 27, 2016

Summary of the bug: Even I've succesfully played the stream in VLC, ffmpeg is not able to read it How to reproduce:

% ffmpeg -i http://sonlife-i.akamaihd.net/hls/live/250092/internationalvtt/internationalvtt1/internationalvtt1.m3u8
ffmpeg version N-82143-gbf14393 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
  configuration: --prefix=/ffmpeg --enable-static --disable-shared --enable-gpl --enable-libx264
  libavutil      55. 35.100 / 55. 35.100
  libavcodec     57. 65.100 / 57. 65.100
  libavformat    57. 57.100 / 57. 57.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 66.100 /  6. 66.100
  libswscale      4.  3.100 /  4.  3.100
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[hls,applehttp @ 0x3d3f240] No longer receiving playlist 0
http://sonlife-i.akamaihd.net/hls/live/250092/internationalvtt/internationalvtt1/internationalvtt1.m3u8: could not find codec parameters

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.


#5921 Can not read mjpeg from IP camera avformat defect Oct 31, 2016

Summary of the bug: I downloaded a FFmpeg demo from the internet. Tried to change the video source to IP camera, but it shows bugs as follows. BTW I use OC in Xcode How to reproduce:

self.video =[[XYQMovieObject alloc] initWithVideo:@"http://192.168.10.123:7060"];

The bug shows that

Input #0, mpjpeg, from 'http://192.168.10.123:7060':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 25 tbr, 25 tbn, 25 tbc
[mpjpeg @ 0x7feadc818000] Expected boundary '--' not found, instead found a line of 8 bytes
[mpjpeg @ 0x7feadc818000] Expected boundary '--' not found, instead found a line of 2 bytes

I don't know what to do to fix it. It works when I use other internet source of video like

self.video = [[XYQMovieObject alloc] initWithVideo:@"http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8"]; 

Can any one tell me what to do to debug that? I would really appreciate that. Thanks guys.


#5977 Impossible to play incomplete mkv videos avformat defect Nov 24, 2016

Summary of the bug:

While encoding H.264 videos with ffmpeg in the past, i was able to play the output video in the middle of the encoding, with the condition of using the "mkv" or "ts" containers for that output, but with the last ffmpeg versions this is not possible, so i have to wait until finishing the encoding (this may take hours or days in my case) to play the resulting video.

How to reproduce: ffmpeg -i anyvideo -c:v libx264 -c:a copy output.mkv

Note: Please try to play the output video with Potplayer or VLC.

ffmpeg version N-82597-gd316b21 built on 2016/11/22

Thanks


#5985 error decoding h264 stream with h264_cuvid in udp mpegts avcodec defect Dec 1, 2016

Summary of the bug: ffmpeg crashed, see the log-report, gdb and valgrind output below

the incoming multi-program transport stream contains several programs. They have mpeg2 or h264 video streams. There is no any problem decoding mpeg2 videostream with mpeg2_cuvid. If I capture the h264 stream into mp4 files and then decoding the video stream in mp4 container by h264_cuvid works well without error. So I think the error not relates to video content but to udp protocol.


#5998 ffmpeg 3.1.0 and later fails converting some MKVs with "sample_fmt" error avcodec defect Dec 6, 2016

the error occurs at least on the file 'Goodnight.Mommy.2014.Bluray.1080p.DTS-HD.x264-Grym.mkv' but this one is 13GB and hard to get.

i tried to cut out a smaller sample out of the MKV so i could upload it here, but unfortunately the error doesn't occur on the cut sample. if anyone has any ideas for getting a smaller sample to exhibit the same issue, please let me know.

so, assuming you have downloaded the 'offending' file and named it bug.mkv {{ ffmpeg -i bug.mkv -acodec ac3 -vcodec copy bug.mp4 }} works fine for every version up to and including version 3.0.2 versions starting with 3.1.0 and including up to git snapshot 82713-g4e6d1c1 from 1.12 just fail to convert the file with: 'Error setting option sample_fmt to value'

i'll upload complete command line outputs for conversion with working (3.0.2) version and failing version (3.1.0).

if there are any additional informations i could provide please let me know.


#6001 ffprobe: incorrect determination of the number of reference frames undetermined defect Dec 7, 2016

Hi!

ffprobe incorrect determinates of the number of reference frames. ffprobe for all video returns refs=1, which does not coincide with the values returned by MediaInfo?. The attached txt file contains information returned by ffprobe and MediaInfo?.


#244 rm muxer fails with frames larger than 64k byte avformat defect May 26, 2011

pbm file: https://ffmpeg.org/trac/ffmpeg/ticket/193

When I convert "bikerace.pbm" file to rv10

ffmpeg -i C:\bikerace.pbm -vcodec rv10 out.rm

everything works ok, but when I try to decode it I get error:

C:\>ffmpeg -i out.rm out.avi
ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on May 23 2011 03:43:18 with gcc 4.5.3
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --pkg-config=pkg-confi
g
  libavutil    51.  2. 1 / 51.  2. 1
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2. 10. 0 /  2. 10. 0
  libswscale    0. 14. 0 /  0. 14. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, rm, from 'out.rm':
  Metadata:
    title           :
    author          :
    copyright       :
    comment         :
  Duration: 00:00:00.04, start: 0.000000, bitrate: 33538 kb/s
    Stream #0.0: Video: rv10, yuv420p, 550x423, 200 kb/s, 25 tbr, 1k tbn, 25 tbc

[buffer @ 01DE1620] w:550 h:423 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
Output #0, avi, to 'out.avi':
  Metadata:
    INAM            :
    author          :
    ICOP            :
    ICMT            :
    ISFT            : Lavf53.2.0
    Stream #0.0: Video: mpeg4, yuv420p, 550x423, q=2-31, 200 kb/s, 25 tbn, 25 tb
c
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
[rv10 @ 02360780] illegal ac vlc code at 15x7
[rv10 @ 02360780] ERROR at MB 15 7
frame=    0 fps=  0 q=0.0 Lsize=       6kB time=10000000000.00 bitrate=   0.0kbi
ts/s
video:0kB audio:0kB global headers:0kB muxing overhead 1.#INF00%

I think this is a bug in RV10 / RV20 encoder that it doesn't check which picture sizes are valid for this codec, so probably a check like for H263 codec should be added to these codecs as well (I don't know which picture sizes are valid for RV10 and RV10, but for example 320x240 resolution seems to work correctly, but for example is not allowed for h263).

libavcodec/mpegvideo_env.c:

    case CODEC_ID_H263:
        if (!CONFIG_H263_ENCODER)  return -1;
        if (ff_match_2uint16(h263_format, FF_ARRAY_ELEMS(h263_format), s->width, s->height) == 8) {
            av_log(avctx, AV_LOG_ERROR, "The specified picture size of %dx%d is not valid for the H.263 codec.\nValid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152. Try H.263+.\n", s->width, s->height);
            return -1;
        }
        s->out_format = FMT_H263;
        s->obmc= (avctx->flags & CODEC_FLAG_OBMC) ? 1:0;
        avctx->delay=0;
        s->low_delay=1;
        break;

[...]

    case CODEC_ID_RV10:
        s->out_format = FMT_H263;
        avctx->delay=0;
        s->low_delay=1;
        break;
    case CODEC_ID_RV20:
        s->out_format = FMT_H263;
        avctx->delay=0;
        s->low_delay=1;
        s->modified_quant=1;
        s->h263_aic=1;
        s->h263_plus=1;
        s->loop_filter=1;
        s->unrestricted_mv= 0;
        break;

#259 framerate detection does not work properly. (mkv with default duration != actual average duration) undetermined defect Jun 1, 2011

Frameratedetection does not work well on some of my files:

ffmpeg -i wrong_framerate.mkv: [matroska,webm @ 0x276e420] Estimating duration from bitrate, this may be inaccurate Input #0, matroska,webm, from 'wrong_framerate.mkv':

Duration: 01:47:42.18, start: 0.000000, bitrate: 1984 kb/s

Stream #0.0: Video: vc1 (Advanced), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Stream #0.1: Audio: eac3, 48000 Hz, 5.1, s16, 1536 kb/s (default) Stream #0.2: Audio: eac3, 48000 Hz, 5.1, s16, 448 kb/s

At least one output file must be specified

ffmpeg version: git-N-30444-geb5a3ab correct framerate: 23.98/24 fps same false framerate detection with latest VLC xbmc does play it with the correct framerate and does play it without problems.


#443 -color_range AVOption appears to do nothing documentation defect Sep 7, 2011

according to source -color_range <int> can take the following values:- "0" auto "1" 16-235 "2" 0-255

and it functions on encode and decode. However altering the option value appears to make no change to the way media is processed, either on input, or output.

Attached stills sources and script to generate outputs using variations in value attached.


#691 Errors while decoding wmav2 stream avcodec defect Nov 27, 2011

My file decoded incorrectly, but on my mobile phone this file plays correctly. I can upload it on ftp server: upload.ffmpeg.org, if you need.


#730 Encoded video plays too fast for network input undetermined defect Dec 10, 2011

Many IP cameras have MJPEG streams that vary in framerate depending network conditions, ambient light, just plain slow processors on the camera itself, etc. This can be anything from 8fps to 30fps - even if the camera is set to a fixed framerate.

Right now, if you set a framerate in ffmpeg, the duration ffmpeg thinks the movie is does not match reality, sometimes by a factor of more than 3x. While ffmpeg supports variable framerate it requires timestamps which in this case do not exist.

Gstreamer has an option called do-timestamp=true that would be very useful in ffmpeg. From their website: "Timestamps are set on the buffers as they arrive from the camera. These are used by the mime/multipart demultiplexer to emit timestamps on the JPEG-encoded video frame buffers. This allows the multiplexer to timestamp the frames in the resulting file."

This would allow ffmpeg to set the timestamp of "now" on every single frame as it comes in and know the correct duration of the recording. This means correct duration, a/v sync and just being able to seek to specific parts of the recording.


#742 zygo video codec decodes with visible graphic corruption avcodec defect Dec 14, 2011
C:\>ffmpeg -i M3_E3TrailerMC56k7fps.mov
ffmpeg version N-35709-g7d531e8, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 12 2011 13:50:00 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 43. 0 / 53. 43. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[h263 @ 020C9E20] illegal ac vlc code at 3x0
[h263 @ 020C9E20] Error at MB: 3
[h263 @ 020C9E20] concealing 180 DC, 180 AC, 180 MV errors

Seems stream 1 codec frame rate differs from container frame rate: 29.97 (30000/
1001) -> 7.50 (15/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'M3_E3TrailerMC56k7fps.mov':
  Metadata:
    creation_time   : 2004-07-06 16:29:59
  Duration: 00:02:35.73, start: 0.000000, bitrate: 55 kb/s
    Stream #0:0(eng): Audio: qdm2 (QDM2 / 0x324D4451), 44100 Hz, 1 channels, s16
, 10 kb/s
    Metadata:
      creation_time   : 2004-07-06 16:29:59
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Video: h263 (ZyGo / 0x6F47795A), yuv420p, 240x192 [SAR 12:
11 DAR 15:11], 45 kb/s, 7.50 fps, 7.50 tbr, 600 tbn, 29.97 tbc
    Metadata:
      creation_time   : 2004-07-06 16:29:59
      handler_name    : ?Apple Alias Data Handler
At least one output file must be specified

#819 ffmpeg fails to read an image if the image filename contains an accent (win32) avformat defect Dec 22, 2011

When I want to convert a JPG file to a video, ffmpeg fail if the JPG filename contains an accent. Plateform is Windows Vista (6.0.6002) Command line :

xx:>dir
11/07/2009  11:15             7 536 Vidéo000-title.png

xx:>ffmpeg.exe -y -i Vidéo000-title.png -target pal-dvd -aspect 16/9 -loop 1 -r 25 -t 10 Vidéo000-title.mpg

ffmpeg version N-35966-g1d0ae92, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 19 2011 13:01:15 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 46. 1 / 53. 46. 1
  libavformat  53. 27. 0 / 53. 27. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Vidéo000-title.png: No such file or directory

Same result with double-quote escaping, or fullpath to the file. If I remove the accentued char it works.

ffplay can play this image.


#912 mpegts muxer does not follow TS buffering requirements specified in iso13818-1 section 2.4.2.3 avformat defect Jan 11, 2012

The mpegts muxer in ffmpeg (tested with 0.9.1) does not respect the 512 byte transport buffer for each pid as described in iso13818-1 section 2.4.2.3.

Streams created with ffmpeg (with the muxrate option) have been seen to send over 100 packets in sequence (at least on video data) which exceeds the maximum buffer extraction rate for streams in the Main Level (as defined in iso13818-2 table 8-13). The same also applies to audio packets, albeit with different limits.

For any stream >18mbit/sec the maximum number of packets for a PID that can be inserted in sequence is 2 or 3 (assuming an empty buffer prior to insertion).

This can cause errors in decoding the ts on certain hardware. The packets should therefore be ordered appropriately in the stream to comply with the TS buffer limit of 512 bytes when the muxrate parameter is specified.


#946 ffplay: almost unreadable dvd subtitles due to wrong colors avcodec defect Jan 28, 2012

http://www.datafilehost.com/download-76a1c6a8.html

related to:

commit cf16104ad13f6c558ea386e5fa55a67e2b378f5e
Author: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Date:   Sat Apr 30 23:00:17 2011 +0200

    Change guess_palette so its output matches the most common palette.
    
    This means it uses full brightness range and brightness
    increasing instead of decreasing with index of non-opaque
    color.
    
    Based on patch by Alexandre Colucci [alexandre elgato com]

diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index bb3e124..6d5973c 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -120,6 +120,14 @@ static void guess_palette(uint32_t *rgba_palette,
                           uint8_t *alpha,
                           uint32_t subtitle_color)
 {
+    static const uint8_t level_map[4][4] = {
+        // this configuration (full range, lowest to highest) in tests
+        // seemed most common, so assume this
+        {0xff},
+        {0x00, 0xff},
+        {0x00, 0x80, 0xff},
+        {0x00, 0x55, 0xaa, 0xff},
+    };
     uint8_t color_used[16];
     int nb_opaque_colors, i, level, j, r, g, b;
 
@@ -138,18 +146,18 @@ static void guess_palette(uint32_t *rgba_palette,
     if (nb_opaque_colors == 0)
         return;
 
-    j = nb_opaque_colors;
+    j = 0;
     memset(color_used, 0, 16);
     for(i = 0; i < 4; i++) {
         if (alpha[i] != 0) {
             if (!color_used[colormap[i]])  {
-                level = (0xff * j) / nb_opaque_colors;
+                level = level_map[nb_opaque_colors][j];
                 r = (((subtitle_color >> 16) & 0xff) * level) >> 8;
                 g = (((subtitle_color >> 8) & 0xff) * level) >> 8;
                 b = (((subtitle_color >> 0) & 0xff) * level) >> 8;
                 rgba_palette[i] = b | (g << 8) | (r << 16) | ((alpha[i] * 17) << 24);
                 color_used[colormap[i]] = (i + 1);
-                j--;
+                j++;
             } else {
                 rgba_palette[i] = (rgba_palette[color_used[colormap[i]] - 1] & 0x00ffffff) |
                                     ((alpha[i] * 17) << 24);
C:\>ffmpeg -i dvdsub.vob
ffmpeg version N-36890-g67f5650 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 16 2012 21:57:13 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 56.105 / 53. 56.105
  libavformat    53. 30.100 / 53. 30.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 59.100 /  2. 59.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    51.  2.100 / 51.  2.100
[mpeg @ 020F2320] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from 'dvdsub.vob':
  Duration: 00:00:07.96, start: 1556.319267, bitrate: 5263 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DA
R 16:9], 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:2[0x20]: Subtitle: dvd_subtitle
    Stream #0:3[0x22]: Subtitle: dvd_subtitle
    Stream #0:4[0x24]: Subtitle: dvd_subtitle
    Stream #0:5[0x25]: Subtitle: dvd_subtitle
    Stream #0:6[0x26]: Subtitle: dvd_subtitle
    Stream #0:7[0x28]: Subtitle: dvd_subtitle
    Stream #0:8[0x29]: Subtitle: dvd_subtitle
    Stream #0:9[0x21]: Subtitle: dvd_subtitle
    Stream #0:10[0x23]: Subtitle: dvd_subtitle
    Stream #0:11[0x27]: Subtitle: dvd_subtitle
    Stream #0:12[0x2a]: Subtitle: dvd_subtitle
At least one output file must be specified

#948 No audio in output when the audio starts late in VOB file avformat defect Jan 29, 2012

Here are the details about the issue:

Source: .VOB file extracted from DVD decrypter (first chapter of the movie). This has one video stream, one audio stream (AC3 5.1).

Issue: When I try to encode into any format, it reports 0 channels in ac3 stream and there is no audio track in the output. I tried with directly copying the AC3 stream, encoding AC3 to AAC, using analyzeduration option etc., But, the same file is working fine when I use Handbrake, MEncoder.

Source to download: You can download .VOB file here: http://poacric.blob.core.windows.net/$root/TestClip.zip Command Used: ffmpeg -i d:\testclip.vob -acodec copy d:\ffmpegout.mp4 Console output:

C:\ffmpeg>ffmpeg -i d:\testclip.vob -acode
c copy d:\ffmpegout.mp4
ffmpeg version N-35966-g1d0ae92, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 19 2011 13:10:19 with gcc 4.6.2
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzli
b --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-l
ibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-li
bvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-l
ibx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 46. 1 / 53. 46. 1
  libavformat  53. 27. 0 / 53. 27. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mpeg @ 0000000000497FD0] max_analyze_duration 5000000 reached at 5004667

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/
1001) -> 59.94 (60000/1001)
Input #0, mpeg, from 'd:\testclip.vob':
  Duration: 00:04:51.99, start: 0.316978, bitrate: 4939 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DA
R 16:9], 8000 kb/s, 23.98 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 0 channels
[buffer @ 00000000029E0BE0] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:32/27 sw
s_param:
[libx264 @ 00000000027E0810] using SAR=32/27
[libx264 @ 00000000027E0810] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShu
ffle SSE4.2
[libx264 @ 00000000027E0810] profile High, level 3.1
[libx264 @ 00000000027E0810] 264 - core 119 r2106 07efeb4 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed
_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pski
p=1 chroma_qp_offset=-2 threads=12 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 di
rect=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra
_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69
qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'd:\ffmpegout.mp4':
  Metadata:
    encoder         : Lavf53.27.0
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 720x480 [SAR 32:27
DAR 16:9], q=-1--1, 60k tbn, 59.94 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
[mpeg2video @ 00000000004AB7C0] warning: first frame is no keyframe
    Last message repeated 1 times
frame=  117 fps=  0 q=31.0 size=     273kB time=00:00:00.98 bitrate=2273.2kbits/
frame=  205 fps=201 q=31.0 size=     602kB time=00:00:02.45 bitrate=2011.7kbits/
frame=  282 fps=183 q=31.0 size=     861kB time=00:00:03.73 bitrate=1887.4kbits/
frame=  367 fps=178 q=31.0 size=    1179kB time=00:00:05.15 bitrate=1874.1kbits/
frame=  466 fps=182 q=31.0 size=    1376kB time=00:00:06.80 bitrate=1655.8kbits/
frame=  475 fps=175 q=-1.0 Lsize=    1401kB time=00:00:07.89 bitrate=1454.6kbits
/s dup=273 drop=0
video:1396kB audio:0kB global headers:0kB muxing overhead 0.367020%
[libx264 @ 00000000027E0810] frame I:3     Avg QP:23.66  size: 48841
[libx264 @ 00000000027E0810] frame P:309   Avg QP:26.15  size:  4086
[libx264 @ 00000000027E0810] frame B:163   Avg QP:30.33  size:   122
[libx264 @ 00000000027E0810] consecutive B-frames: 49.5%  7.2% 21.5% 21.9%
[libx264 @ 00000000027E0810] mb I  I16..4: 25.5% 46.0% 28.5%
[libx264 @ 00000000027E0810] mb P  I16..4:  1.0%  0.6%  0.0%  P16..4: 22.2%  4.5
%  4.5%  0.0%  0.0%    skip:67.1%
[libx264 @ 00000000027E0810] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 11.1%  0.0
%  0.0%  direct: 0.0%  skip:88.9%  L0:57.4% L1:39.9% BI: 2.6%
[libx264 @ 00000000027E0810] 8x8 transform intra:40.0% inter:74.5%
[libx264 @ 00000000027E0810] coded y,uvDC,uvAC intra: 44.1% 49.2% 24.7% inter: 1
1.6% 4.2% 1.0%
[libx264 @ 00000000027E0810] i16 v,h,dc,p: 39% 42%  6% 13%
[libx264 @ 00000000027E0810] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 32% 37%  3%  2%
 2%  4%  3%  7%
[libx264 @ 00000000027E0810] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6% 64% 14%  2%  2%
 2%  3%  2%  5%
[libx264 @ 00000000027E0810] i8c dc,h,v,p: 40% 48% 10%  2%
[libx264 @ 00000000027E0810] Weighted P-Frames: Y:0.3% UV:0.3%
[libx264 @ 00000000027E0810] ref P L0: 67.2% 13.1% 10.0%  9.8%
[libx264 @ 00000000027E0810] ref B L0: 98.4%  1.3%  0.3%
[libx264 @ 00000000027E0810] ref B L1: 96.1%  3.9%
[libx264 @ 00000000027E0810] kb/s:1442.51
Received signal 2: terminating.

Please let me know, if you need any more information.

I have been searching for a proper encoder from past 2 months and couldn't find a working solution.

My requirement: I have several DVDs and want to convert them into MP4/M2TS/TS files with 2 audio streams (AC3 5.1 and AAC). Also, want to add watermark on the output. Tried different encoders, but nothing is working as per my requirement. Thank you for your time!


#979 Unexpected Color Conversion (bgr->yuv vs rgb->yuv) swscale defect Feb 4, 2012

Input file is bgr24. Output file is yuv420p. If I instruct ffmpeg to convert to rgb24 first (instead of bgr24->yuv420p directly), the colors are slightly different.

Test input, exact command lines, and console output attached.


#1150 H264 Main remuxing to TS fails (missing timestamps) undetermined defect Mar 30, 2012

ffmpeg -i test.264 -vcodec copy -an -f mpegts test.ts

Fails with errors.

Earlier builds did produce TS streams but playback was jittery.

I know this is already a known but but I'm submitting this in order to provide test material.

version N-38772-gc2e3b56

attached files will include: test.pcap -- raw rtp session of H264 stream from a real-time encoder test.sdp -- matching sdp file to the live feed test.264 -- extracted raw H264 elementary stream from RTP feed, ie what is supposed to be able to be mux'd inside of ffmpeg. This is a H264 Main compliant stream (ie B frames).


#1282 VP6F Libavcodec decoding bug (slowly accumulating artifacts) avcodec defect May 8, 2012

Hello, Here's a report for a FLV4/VP6 Libavcodec decoding bug. A sample is here: http://videoff7.free.fr/sample_artefact.flv (also tentatively attached to this ticket).

As the video progresses, PQ becomes worse and worse, it can be seen easily on the newscaster's face 10 seconds in.

I tested with DShow based decoders (FFDShow/LAV) and also with mplayer2, all on Windows. The issue shows up with all of them.

No such issue happens when decoding with the original On2 VP6 directshow decoder [ http://videoff7.free.fr/On2_VP6_Decoder.zip ].

Thank you for your support.


#1438 Seeking in vob file with timestamp discontinuities fails avformat defect Jun 11, 2012

I am trying to transcode from *.vob to *.avi. As long as I don't use -ss option everything works as expected. With -ss option ffmpeg exits with following error:

[ac3 @ 0xa0c75a0] frame sync error Error while decoding stream #0:9 [mpeg @ 0xa0133c0] Adjusting PTS forward

Last message repeated 27 times

frame= 0 fps=0.0 q=0.0 Lsize= 27kB time=00:-17:-25.-89 bitrate= -0.2kbits/s dup=0 drop=7 video:0kB audio:16kB global headers:0kB muxing overhead 65.411932%

The command line that I use is: ffmpeg -ss 0:17:47 -t 01:28:48.4 -i '/A/film.vob' '/A/film.avi'

The information about input file: -> ffmpeg -v 9 -loglevel 99 -i '/A/film.vob' ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers

built on Jun 9 2012 00:17:30 with gcc 4.6.2 configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --disable-ffserver --enable-x11grab --disable--amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100

[mpeg @ 0x906f3c0] Format mpeg probed with size=8192 and score=52 [mpeg @ 0x906f3c0] File position before avformat_find_stream_info() is 0 [mpeg @ 0x906f3c0] probing stream 0 pp:2500 [mpeg @ 0x906f3c0] Probe with size=2012, packets=1 detected mpegvideo with score=25 [mpeg @ 0x906f3c0] probing stream 0 pp:2499 [mpeg @ 0x906f3c0] Probe with size=4037, packets=2 detected mpegvideo with score=25 [mpeg @ 0x906f3c0] probing stream 0 pp:2498 [mpeg @ 0x906f3c0] Probe with size=6062, packets=3 detected mpegvideo with score=25 [mpeg @ 0x906f3c0] probing stream 0 pp:2497 [mpeg @ 0x906f3c0] probing stream 0 pp:2496 [mpeg @ 0x906f3c0] Probe with size=10112, packets=5 detected mpegvideo with score=51 [mpeg @ 0x906f3c0] probed stream 0 [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 29454 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 47454 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 31614 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 34494 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 40254 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 46014 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 65454 in que [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 72654 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 90654 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 48894 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 54654 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 57534 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 63294 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 69054 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 77694 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 74814 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 83454 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 92094 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 108654 in que [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 115854 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 133854 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 94974 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 100734 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 106494 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 115134 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 118014 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 123774 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 126654 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 129534 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 138174 in que [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 151854 in que [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 159054 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 177054 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 143934 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 152574 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 155454 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 161214 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 166974 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 175614 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 198654 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 178494 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 184254 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 190014 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 198654 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 204414 in que

Last message repeated 5 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 213054 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 215934 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 221694 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 227454 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 230334 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 236094 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 238974 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 244734 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 250494 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 259134 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 256254 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 264894 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 273534 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 276414 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 282174 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 287934 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 296574 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 299454 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 305214 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 308094 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 310974 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 319614 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 325374 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 334014 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 336894 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 342654 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 348414 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 357054 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 359934 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 365694 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 371454 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 380094 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 385854 in que

Last message repeated 5 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 394494 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 397374 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 403134 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 408894 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 411774 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 417534 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 420414 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 426174 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 431934 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 440574 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 437694 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 446334 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 454974 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] max_analyze_duration 5000000 reached at 5000000 [mpeg @ 0x906f3c0] File position after avformat_find_stream_info() is 0 Input #0, mpeg, from '/A/film.vob':

Duration: 00:00:21.02, start: 0.287267, bitrate: -2147483 kb/s

Stream #0:0[0x1e0], 127, 1/90000: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1/50, 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x20], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:2[0x21], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:3[0x22], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:4[0x23], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:5[0x24], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:6[0x25], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:7[0x26], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:8[0x27], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:9[0x80], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s Stream #0:10[0x81], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s Stream #0:11[0x82], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s Stream #0:12[0x83], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s Stream #0:13[0x84], 152, 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s Stream #0:14[0x28], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:15[0x29], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:16[0x2a], 1, 1/90000: Subtitle: dvd_subtitle

At least one output file must be specified

best regards

Andrzej

P.S. I've already reported this issue almost 2 years ago. It disappeared from bug reports in ffmpeg but I google it out: http://roundup.libav.org/issue2199


#1582 Banding/discoloration in darker gradients when converting to rgb24 swscale defect Jul 28, 2012

Summary: I've discovered that when I'm converting videos to the rgb24 format (in attempting to use the libx264rgb codec) I get banding and discoloration in darker areas with (color) gradients. To eliminate the possibility that it was the codec (as opposed to the format filter) causing the problem, I did some tests converting the video to .png images. Specifically, I found that: yuv420p10le(source video) -- looks nice yuv420p10le -> rgb24 -- banding/discoloration yuv420p10le -> rgb48be -- looks nice yuv420p10le -> rgb48be -> rgb24 -- banding/discoloration yuv420p10le -> yuv420p -> rgb24 -- banding but no discoloration

I assume that the banding in the yuv420p example is simply a result of the reduced colorspace, but I don't see why any of the other conversions should result in any visible changes. I'm using one of Zeranoe's windows builds (win7 64bit) so I don't know if this happens on Linux. Log file output for the yuv420p10le->rgb24 example follows:

ffmpeg started on 2012-07-28 at 10:56:16
Report written to "ffmpeg-20120728-105616.log"
Command line:
ffmpeg -i vtst0.mp4 -map 0:0 -vsync 0 -report -filter:v "format=rgb24" "tst%03d.png"
ffmpeg version N-42704-g85761ef Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 20 2012 20:39:19 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 65.100 / 51. 65.100
  libavcodec     54. 42.100 / 54. 42.100
  libavformat    54. 18.100 / 54. 18.100
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  2.100 /  3.  2.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] File position before avformat_find_stream_info() is 7074306
[h264 @ 00000000002f40a0] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] All info found
rfps: 23.750000 0.011875
rfps: 23.833333 0.004757
rfps: 23.916667 0.000859
rfps: 24.000000 0.000180
rfps: 24.083333 0.002721
rfps: 24.166667 0.008482
rfps: 24.250000 0.017461
rfps: 47.666667 0.019029
rfps: 47.750000 0.009623
rfps: 47.833333 0.003436
rfps: 47.916667 0.000469
rfps: 48.000000 0.000722
rfps: 48.083333 0.004194
rfps: 48.166667 0.010885
rfps: 23.976024 0.000046
rfps: 47.952048 0.000183
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] File position after avformat_find_stream_info() is 1243950
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'vtst0.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.18.100
  Duration: 00:00:10.09, start: 0.000000, bitrate: 5607 kb/s
    Stream #0:0(und), 41, 1/1000: Video: h264 (High 10) (avc1 / 0x31637661), yuv420p10le, 1920x1080, 5604 kb/s, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      handler_name    : VideoHandler
[buffer @ 0000000004ba0f20] Setting entry with key 'video_size' to value '1920x1080'
[buffer @ 0000000004ba0f20] Setting entry with key 'pix_fmt' to value '72'
[buffer @ 0000000004ba0f20] Setting entry with key 'time_base' to value '1/1000'
[buffer @ 0000000004ba0f20] Setting entry with key 'pixel_aspect' to value '0/1'
[buffer @ 0000000004ba0f20] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0000000004ba0f20] Setting entry with key 'frame_rate' to value '24000/1001'
[graph 0 input from stream 0:0 @ 0000000004d73980] w:1920 h:1080 pixfmt:yuv420p10le tb:1/1000 fr:24000/1001 sar:0/1 sws_param:flags=2
[Parsed_format_0 @ 0000000004d738e0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_format_0'
[auto-inserted scaler 0 @ 0000000004d73b20] w:1920 h:1080 fmt:yuv420p10le sar:0/1 -> w:1920 h:1080 fmt:rgb24 sar:0/1 flags:0x4
[h264 @ 00000000002f40a0] detected 2 logical cores
Output #0, image2, to 'tst%03d.png':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.18.100
    Stream #0:0(und), 0, 1/90000: Video: png, rgb24, 1920x1080, q=2-31, 200 kb/s, 90k tbn, 23.98 tbc
    Metadata:
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> png)
Press [q] to stop, [?] for help
[h264 @ 00000000003aa100] no picture 
DTS -42, next:-62146 st:0 invalid dropping
[h264 @ 0000000004cdbf00] no picture 
frame=    3 fps=0.0 q=0.0 size=       0kB time=00:00:00.12 bitrate=   0.0kbits/s    
frame=    5 fps=3.1 q=0.0 size=       0kB time=00:00:00.20 bitrate=   0.0kbits/s    
frame=    7 fps=3.0 q=0.0 size=       0kB time=00:00:00.29 bitrate=   0.0kbits/s    

...
 
frame=  237 fps=2.6 q=0.0 size=       0kB time=00:00:09.88 bitrate=   0.0kbits/s    
No more inputs to read from, finishing.
[output stream 0:0 @ 0000000004d73a00] EOF on sink link output stream 0:0:default.
frame=  242 fps=2.6 q=0.0 Lsize=       0kB time=00:00:10.26 bitrate=   0.0kbits/s    

video:276218kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000%
[AVIOContext @ 000000000216fd80] Statistics: 4336059 bytes read, 2 seeks

#1598 Muxing raw h264 into mpegts (and mkv) fails. undetermined defect Aug 2, 2012

Can not multiplex h264 and AAC into MPEG2-TS container.

  1. Encode a file

ffmpeg -i $source_file -acodec libfaac -vcodec libx264 test.ts

  1. Demux:

ffmpeg -i test.ts -acodec copy 1.aac -vcodec copy 1.h264

  1. Attempt to mux back:

ffmpeg -i 1.aac -i 1.h264 -acodec copy -vcodec copy mux.ts

#3 Fails with error:

[mpegts @ 0x124de2a0] first pts value must set av_interleaved_write_frame(): Invalid data found when processing input

FFmpeg version 0.11, gcc 4.1.2 20080704 (Red Hat 4.1.2-52). Running Centos 5.8 on 64bit 12 core Intel.


#1614 AAC stream with SBR fails with "channel element 0.1 is not allocated" avcodec defect Aug 6, 2012

Summary of the bug: Getting the following message repeatedly when trying to play the AAC stream with ffplay from master: [aac @ 0x7ff1c2023800] channel element 0.1 is not allocated

Stream is http://3043.live.streamtheworld.com/SAM04AAC41_SC

This stream works fine in VideoLan? VLC player.

How to reproduce: ./ffplay http://3043.live.streamtheworld.com/SAM04AAC41_SC


#1618 Padding to odd/uneven size fails avfilter defect Aug 8, 2012

### WHAT I am try resize (scale + pad) and convert a video file to mp4 format and defined size.

### PROBLEM When padding to odd width I face problems. Strangely, when I use even numbers then it works.

### COMMAND LINES (for two files)

  1. File "Duracell10sec_CutdowulydCDCD.wmv"

A.1 Resizing to 425x300

  • COMMAND LINE:
    ffmpeg.exe -i "Duracell10sec_Cutdow__ulydCDCD.wmv"  -vf "scale=427:239,pad=427:300:0:30,setdar=427:300"  -y -b:v 400k -r 49.75 -ar 44100  -acodec libmp3lame -vcodec libx264 -ac 2 "Duracell10sec_Cutdow__ulydCDCD4_TMP.mp4"
    
  • OUTPUT:
    ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
      built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --ena
    ble-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li
    bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --e
    nable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      51. 66.100 / 51. 66.100
      libavcodec     54. 49.100 / 54. 49.100
      libavformat    54. 22.100 / 54. 22.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  5.102 /  3.  5.102
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    Guessed Channel Layout for  Input Stream #0.0 : mono
    Input #0, asf, from 'Duracell10sec_Cutdow__ulydCDCD.wmv':
      Metadata:
        WMFSDKVersion   : 10.00.00.3702
        WMFSDKNeeded    : 0.0.0.0000
        IsVBR           : 1
        VBR Peak        : 139
        Buffer Average  : 151
      Duration: 00:00:10.04, start: 0.000000, bitrate: 1864 kb/s
        Stream #0:0(dan): Audio: wmav2 (a[1][0][0] / 0x0161), 8000 Hz, mono, s16, 0 kb/s
        Stream #0:1(dan): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 1280x720, 1843 kb/s, 49.75 tbr, 1k tbn, 1k tbc
    [Parsed_pad_1 @ 01f9a760] Input area 0:30:427:269 not within the padded area 0:0:426:300 or zero-sized
    [Parsed_scale_0 @ 01fe7260] Failed to configure input pad on Parsed_pad_1
    Error opening filters!
    
  1. File "fishermans_friendCD_720_xvid.avi"

B.1 Resizing to 425x300

  • COMMAND LINE:
    ffmpeg.exe -i "fishermans_friendCD_720_xvid.avi"  -vf "scale=425:239,pad=425:300:0:30,setdar=425:300"  -y -b:v 400k -r 25 -ar 44100  -ab 128 -acodec libmp3lame -vcodec libx264 -ac 2 "fishermans_friendCD_720_xvid4_TMP.mp4"
    
  • OUTPUT:
    ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
      built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --ena
    ble-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li
    bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --e
    nable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      51. 66.100 / 51. 66.100
      libavcodec     54. 49.100 / 54. 49.100
      libavformat    54. 22.100 / 54. 22.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  5.102 /  3.  5.102
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    Input #0, avi, from 'fishermans_friendCD_720_xvid.avi':
      Metadata:
        encoder         : MEncoder Sherpya-SVN-r32492-4.2.5
      Duration: 00:00:09.96, start: 0.000000, bitrate: 1090 kb/s
        Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
        Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s
    [Parsed_pad_1 @ 03fd59e0] Input area 0:30:425:269 not within the padded area 0:0:424:300 or zero-sized
    [Parsed_scale_0 @ 03fd5940] Failed to configure input pad on Parsed_pad_1
    Error opening filters!
    

### FILES

  1. "Duracell10sec_CutdowulydCDCD.wmv"
  • OUTPUT:
    ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
      built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --ena
    ble-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li
    bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --e
    nable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      51. 66.100 / 51. 66.100
      libavcodec     54. 49.100 / 54. 49.100
      libavformat    54. 22.100 / 54. 22.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  5.102 /  3.  5.102
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    [asf @ 01fbc400] Format asf probed with size=2048 and score=100
    [asf @ 01fbc400] gpos mismatch our pos=24, end=26
    [asf @ 01fbc400] gpos mismatch our pos=24, end=3622
    [asf @ 01fbc400] gpos mismatch our pos=24, end=38
    [asf @ 01fbc400] Unsupported value type 1 in tag ASFLeakyBucketPairs.
    [asf @ 01fbc400] gpos mismatch our pos=24, end=252
    [asf @ 01fbc400] gpos mismatch our pos=24, end=38
    [asf @ 01fbc400] File position before avformat_find_stream_info() is 5300
    [asf @ 01fbc400] parser not found for codec wmav2, packets or times may be invalid.
    [wmv3 @ 01fbd720] Header: 4DC11A01
    [wmv3 @ 01fbd720] Profile 1:
    frmrtq_postproc=6, bitrtq_postproc=28
    LoopFilter=0, MultiRes=0, FastUVMC=0, Extended MV=0
    Rangered=0, VSTransform=1, Overlap=1, SyncMarker=0
    DQuant=1, Quantizer mode=0, Max B frames=0
    [asf @ 01fbc400] parser not found for codec wmav2, packets or times may be invalid.
    [asf @ 01fbc400] All info found
    rfps: 24.583333 0.019493
        Last message repeated 1 times
    rfps: 24.666667 0.010206
        Last message repeated 1 times
    rfps: 24.750000 0.003909
        Last message repeated 1 times
    rfps: 24.833333 0.000600
        Last message repeated 1 times
    rfps: 24.916667 0.000281
    rfps: 25.000000 0.002950
    rfps: 25.083333 0.008607
        Last message repeated 1 times
    rfps: 25.166667 0.017254
        Last message repeated 1 times
    rfps: 49.500000 0.015636
        Last message repeated 1 times
    rfps: 49.583333 0.007524
        Last message repeated 1 times
    rfps: 49.666667 0.002402
        Last message repeated 1 times
    rfps: 49.750000 0.000268
        Last message repeated 1 times
    rfps: 49.833333 0.001122
    rfps: 49.916667 0.004966
    rfps: 50.000000 0.011798
    [asf @ 01fbc400] File position after avformat_find_stream_info() is 251519
    Guessed Channel Layout for  Input Stream #0.0 : mono
    Input #0, asf, from 'Duracell10sec_Cutdow__ulydCDCD.wmv':
      Metadata:
        WMFSDKVersion   : 10.00.00.3702
        WMFSDKNeeded    : 0.0.0.0000
        IsVBR           : 1
        VBR Peak        : 139
        Buffer Average  : 151
      Duration: 00:00:10.04, start: 0.000000, bitrate: 1864 kb/s
        Stream #0:0(dan), 18, 1/1000: Audio: wmav2 (a[1][0][0] / 0x0161), 8000 Hz, mono, s16, 0 kb/s
        Stream #0:1(dan), 41, 1/1000: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 1280x720, 1/1000, 1843 kb/s, 49.75 tbr, 1k tbn, 1k tbc
    At least one output file must be specified
    [AVIOContext @ 01fb14e0] Statistics: 262144 bytes read, 0 seeks
    
  1. "fishermans_friendCD_720_xvid.avi"
  • OUTPUT:
    ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
      built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --ena
    ble-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li
    bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --e
    nable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      51. 66.100 / 51. 66.100
      libavcodec     54. 49.100 / 54. 49.100
      libavformat    54. 22.100 / 54. 22.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  5.102 /  3.  5.102
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    [avi @ 0235c400] Format avi probed with size=2048 and score=100
    [avi @ 02351560] use odml:1
    st:1 removing common factor 36 from timebase
    [avi @ 0235c400] File position before avformat_find_stream_info() is 4108
    [avi @ 0235c400] All info found
    [avi @ 0235c400] File position after avformat_find_stream_info() is 22706
    Input #0, avi, from 'fishermans_friendCD_720_xvid.avi':
      Metadata:
        encoder         : MEncoder Sherpya-SVN-r32492-4.2.5
      Duration: 00:00:09.96, start: 0.000000, bitrate: 1090 kb/s
        Stream #0:0, 1, 1/25: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1/25, 25 tbr, 25 tbn, 25 tbc
        Stream #0:1, 20, 32/1225: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s
    At least one output file must be specified
    [AVIOContext @ 023514c0] Statistics: 184008 bytes read, 7 seeks
    

#1625 avformat_find_stream_info waits for non-existing video track in mms stream avformat defect Aug 10, 2012

url: mms://live.rgd.com.cn/993

stuck on avformat_find_stream_info

version: 0.11.1


#1712 Audio precision in lossless and long time to encode. ffmpeg defect Sep 2, 2012

Summary of the bug: Hi, first of all, i'm sorry for my english. I've tried the last ffmpeg build and i get a problem with Audio precision in lossless audio file, the audio is delayed about 2 seconds. The audio is passed to another program throught a pipe, but i know that the other program isn't the problem, because with a very old ffmpeg version (SVN 16573, Jan 13 2009) works fine, and i've tried with wav output without pipe and get the same problem.

If you want, here's a test wav files: http://www.mediafire.com/?1ewceliyjhspedk

The command line that i've used is : ffmpeg_old -i "input.ape" -ss 00:59:18.71 -t 00:00:15.55 out_oldffmpeg.wav ffmpeg -i "input.ape" -ss 00:59:18.71 -t 00:00:15.55 out_newffmpeg.wav

How to reproduce:

% ffmpeg -i input -ss 00:45:25 -t 00:05:25 -ac 2 -f wav -

The output is a pipe to another program.

'''ffmpeg version''' N-44080-gdfb4757
'''built on''' Aug 31 2012 16:58:51 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib

The other thing that i wan to answer is why the program take a long time to convert a portion of a file, for example: ffmpeg -i input.ape -ss 00:45:15.42 -t 00:00:15.25 output.wav

the program stay a long time without do anything and then start to convert. I take about 2 minutes to convert 15s of audio.


#1719 MPEG-TS demuxer : don't parse a PAT (and clear programs) if its version number is the same as the previous one avformat defect Sep 5, 2012
ffmpeg -i euronews_long_pmt_over_pat.ts
ffmpeg version N-44162-gfc15f58 Copyright (c) 2000-2012 the FFmpeg developers   
  built on Sep  5 2012 12:24:04 with gcc 4.7 (Debian 4.7.1-2)
  configuration: --prefix=/home/aurelien/local --enable-postproc --enable-nonfree --enable-gpl --enable-libopencore-amrnb --enable-libfaac --enable-libmp3lame --enable-shared --enable-libxvid --enable-libx264 --extra-cflags=-I/home/aurelien/local/include --extra-ldflags=-L/home/aurelien/local/lib --enable-version3 --disable-optimizations --enable-libfreetype --disable-stripping --enable-libaacplus --enable-libfaac
  libavutil      51. 70.100 / 51. 70.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 25.104 / 54. 25.104
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 15.103 /  3. 15.103
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpegts @ 0x1b61240] probed stream 1 failed
[mpegts @ 0x1b61240] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x1b61240] Could not find codec parameters for stream 1 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x1b61240] PES packet size mismatch
    Last message repeated 9 times
Input #0, mpegts, from '/home/dump/euronews_long_pmt_over_pat.ts':
  Duration: 00:02:59.27, start: 10770.595789, bitrate: 4407 kb/s
  Program 8202
    Metadata:
      service_name    : ARM_1
      service_provider: GlobeCast   
[...]  
  No Program
    Stream #0:0[0x8c6]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:1[0x300]: Unknown: none
    Stream #0:2[0x8ad]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 3240 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:3[0x8c1]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:4[0x8bf]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:5[0x8c0]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:6[0x8bd]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:7[0x8be]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:8[0x8bb]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:9[0x8ba]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:10[0x8bc]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:11[0x8b9]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:12[0x8b8]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:13[0x8b7]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s

The stream looks like :
[PAT]
[PAT]
[PAT]
[PMT_first packet]
[PAT]
[PAT]
[PAT]
[PMT_last_packet]
[etc...]

In pat_cb(), clear_programs() is called unconditionally so the when the second half of the PMT is received it will be discarded. The attached patch fixes that.

The sample is on the ffmpeg ftp : euronews_long_pmt_over_pat.ts


#1737 ffmpeg detect aac stereo as mono avcodec defect Sep 14, 2012

How to reproduce:

ffprobe -v 9 -loglevel 99 ./audio_aac_stereo_as_mono.mp4
ffprobe version N-44445-ge332947 Copyright (c) 2007-2012 the FFmpeg developers
  built on Sep 14 2012 14:05:18 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --cc='gcc -O2 -m64 -mtune=core2 -pipe' --enable-version3 --enable-libfaac --enable-libx264 --enable-pthreads --enable-gpl --enable-nonfree --enable-librtmp --enable-shared --enable-filter=movie --enable-avfilter --enable-libspeex --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libaacplus --enable-libvo-aacenc
  libavutil      51. 73.100 / 51. 73.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 27.100 / 54. 27.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 16.103 /  3. 16.103
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] File position before avformat_find_stream_info() is 1175362
[aac @ 0x179cc60] channel element 0.0 is not allocated
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] File position after avformat_find_stream_info() is 143323
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './audio_aac_stereo_as_mono.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Teradek stream
    encoder         : Lavf54.27.100
    copyright       : Teradek
  Duration: 00:00:21.05, start: 0.000000, bitrate: 446 kb/s
    Stream #0:0(und), 41, 1/1000: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 360x240 [SAR 32:27 DAR 16:9], 1/50, 407 kb/s, 23.86 fps, 25 tbr, 1k tbn, 50 tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und), 120, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, s16, 32 kb/s
    Metadata:
      handler_name    : SoundHandler
[h264 @ 0x179bc00] detected 8 logical cores
[AVIOContext @ 0x179da40] Statistics: 214912 bytes read, 2 seeks

Attach log for:

ffmpeg -v 9 -loglevel 99 -i ./audio_aac_stereo_as_mono.mp4 -vcodec copy -acodec libfaac -ar 22050 -report -f mp4 /tmp/aaa3.mp4

#1768 audio AAC fails at CCE avcodec defect Sep 27, 2012

get_che function of aacdec.c file doesn't handle CCE type, as a result, AAC decoder fails to continue decoding. I got "channel element 2.8 is not allocated" error message for my AAC audio.


#1798 Real-world transport stream with incorrect PMT plays fine with WMP avformat defect Oct 10, 2012

There's no sound with this file. It comes from a dvb-s2 channel.

WMP is the only player working. ffplay git, MPlayer 1.1, MPlayer2, VLC 2.0.3, xbmc git (07/Oct/12) does not play audio (either windows or linux)

I managed to play audio only with mplayer -novideo switch.

It seems that PMT indicates the wrong stream type.


#1806 Audio/video stream order reversed in remuxed VOB files avformat defect Oct 12, 2012

Summary of the bug: I am using ffmpeg to edit and remultiplex unencrypted VOB files (from a HD recorder). When copying (ie not transcoding) the streams ffmpeg ALWAYS insists on making the audio stream ID 0 and video stream ID 1 even though the input file was the other way round and it reports itself as NOT doing this.

Using the -map commands also seem to be ignored wherever they appear on the command line.

(This is a problem because I am using dvdauthor on the files and it only seems to work with VOB files with video as the first stream. Fails with infamous ERR: Cannot infer pts for VOBU if there is no audio or video and it is the first VOBU.)

How to reproduce (with any vob file 'input.vob'): % ffmpeg -i input.vob -target pal-dvd -codec copy output.vob ffmpeg version N-45279-g1a104bf Copyright (c) 2000-2012 the FFmpeg developers

built on Oct 10 2012 19:21:13 with gcc 4.7.2 (GCC)

Input #0, mpeg, from 'input.vob':

Duration: 00:01:28.15, start: 137.626044, bitrate: 2858 kb/s

Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x576 [SAR 24:11 DAR 4:3], 3060 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s

Output #0, dvd, to 'output.vob':

Metadata:

encoder : Lavf54.31.100 Stream #0:0: Video: mpeg2video, yuv420p, 352x576 [SAR 24:11 DAR 4:3], q=2-31

, 3060 kb/s, 25 fps, 90k tbn, 25 tbc

Stream #0:1: Audio: ac3, 48000 Hz, stereo, 256 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy)

But running ffprobe on resulting 'output.vob': Input #0, mpeg, from 'output.vob':

Duration: 00:01:28.15, start: 1.000000, bitrate: 2877 kb/s

Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x576 [SAR 24:11 DAR 4:3], 3060 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc

Streams swapped round!


#1810 ffprobe: some .m4a files' metatags are not read by ffprobe avformat defect Oct 13, 2012

Summary of the bug: How to reproduce:

% ffprobe Portugal.m4a
ffprobe version 0.11.2 Copyright (c) 2007-2012 the FFmpeg developers
  built on Oct 10 2012 18:26:07 with gcc 4.7.1

Running ffprobe on alac encoded files (.m4a), only returns the creation_date metadata. Album, artist, title, etc. are not returned.

The mp4v2 tool returns those correctly. Also, AtomicParsley? and Mp3tag read the metadata correctly.

Here are the outputs of ffprobe and mp4v2:

configuration: --enable-libmp3lame --enable-libtheora --enable-libx264 --disable-libgsm --enable-postproc --disable-libxvid --enable-libfaac --enable-pthreads --enable-libvorbis --enable-gpl --disable-x11grab --enable-nonfree

libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Portugal.m4a':

Metadata:

major_brand : M4A minor_version : 0 compatible_brands: mp42isomM4A creation_time : 2012-09-29 15:28:41

Duration: 00:01:28.80, start: 0.000000, bitrate: 608 kb/s

Stream #0:0(und): Audio: alac (alac / 0x63616C61), 44100 Hz, 2 channels, s16, 608 kb/s Metadata:

creation_time : 2012-09-29 15:28:41

[FORMAT] filename=Portugal.m4a nb_streams=1 format_name=mov,mp4,m4a,3gp,3g2,mj2 format_long_name=QuickTime?/MPEG-4/Motion JPEG 2000 format start_time=0.000000 duration=88.800000 size=6756165 bit_rate=608663 TAG:major_brand=M4A TAG:minor_version=0 TAG:compatible_brands=mp42isomM4A TAG:creation_time=2012-09-29 15:28:41 FORMAT

mp4info version 2.0.0 Portugal.m4a: ReadChildAtoms?: "Portugal.m4a": In atom meta missing child atom hdlr Track Type Info 1 audio alac, 88.800 secs, 608 kbps, 44100 Hz ReadChildAtoms?: "Portugal.m4a": In atom meta missing child atom hdlr

Name: Sonhei que estava em Portugal Artist: Cristina Branco Album: Ulisses Track: 1 of 0 Genre: Fado


#1853 libswscale writes past scanline end swscale defect Oct 27, 2012

libswscale sometimes writes to the memory past the end of each scanline, into the space between end of scanline and start of the next pixel, or in other words, it overwrites pixels between (dstw, y) and (0, y+1).

Often, this memory is just padding to satisfy alignment constraints on strides, but there are use cases where it's reasonable to expect that pixels outside the specified destination width should not be overwritten. For example, the destination image could be set up as cropped region of a larger image, and the regions of the larger images not covered by the destination region should not be overwritten.

I suspect this bug/caveat happens due to use of SIMD to work on multiple pixels at once. libswscale should just use an unaccelerated code path to handle trailing pixels.

This happens at least with PIX_FMT_BGRA.


#1891 Problem transcoding realmedia file avformat defect Nov 6, 2012

Summary of the bug: When trying to convert a certain file, ffmpeg does not terminate. Seems to be related to the input file, since no output formats i have tried works.

How to reproduce:

This is the command I am trying to execute:
$ ffmpeg.exe -xerror -i "438bdca27d59ed83f91cb8dd9dc127cd.rm" -r 30 -vcodec mpeg1video -b:v 200k -acodec libvorbis -ac 2 -ar 48000 -ab 128k -y "test.mpg"

This is the output of "ffmpeg -v 9 -loglevel 99 -i 438bdca27d59ed83f91cb8dd9dc127cd.rm":
$ ffmpeg -v 9 -loglevel 99 -i 438bdca27d59ed83f91cb8dd9dc127cd.rm
ffmpeg version N-41668-g564bb24 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 17 2012 20:18:05 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --ena  libavutil      51. 58.100 / 51. 58.100
  libavcodec     54. 25.100 / 54. 25.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 81.100 /  2. 81.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rm @ 00000000021df300] Format rm probed with size=2048 and score=100
[rm @ 00000000021df300] Unsupported stream type 00000187
[rm @ 00000000021df300] Unsupported stream type 00000431
[rm @ 00000000021df300] Unsupported stream type 0000028f
[rm @ 00000000021df300] File position before avformat_find_stream_info() is 3953
[cook @ 000000000034da60] codecdata_length=8
[cook @ 000000000034da60] subpacket[0].cookversion=1000001
[cook @ 000000000034da60] MONO
[cook @ 000000000034da60] sqvh VLC init
[cook @ 000000000034da60] VLC tables initialized.
[cook @ 000000000034da60] MDCT initialized, order = 11.
[rm @ 00000000021df300] parser not found for codec rv20, packets or times may be invalid.
    Last message repeated 2 times
[cook @ 0000000000365bc0] codecdata_length=8
[cook @ 0000000000365bc0] subpacket[0].cookversion=1000001
[cook @ 0000000000365bc0] MONO
[cook @ 0000000000365bc0] sqvh VLC init
[cook @ 0000000000365bc0] VLC tables initialized.
[cook @ 0000000000365bc0] MDCT initialized, order = 11.
[cook @ 000000000036e240] codecdata_length=8
[cook @ 000000000036e240] subpacket[0].cookversion=1000001
[cook @ 000000000036e240] MONO
[cook @ 000000000036e240] sqvh VLC init
[cook @ 000000000036e240] VLC tables initialized.
[cook @ 000000000036e240] MDCT initialized, order = 11.
[rm @ 00000000021df300] parser not found for codec rv20, packets or times may be invalid.
    Last message repeated 4 times
[rm @ 00000000021df300] max_analyze_duration 5000000 reached at 5000000
[cook @ 000000000034da60] Deallocating memory.
[cook @ 000000000034da60] Memory deallocated.
[cook @ 0000000000365bc0] Deallocating memory.
[cook @ 0000000000365bc0] Memory deallocated.
[cook @ 000000000036e240] Deallocating memory.
[cook @ 000000000036e240] Memory deallocated.
[rm @ 00000000021df300] File position after avformat_find_stream_info() is 163859
Input #0, rm, from '438bdca27d59ed83f91cb8dd9dc127cd.rm':
  Metadata:
    title           : Title
    author          : Author
    copyright       : (c)2000
    comment         :
  Duration: 00:01:03.71, start: 0.000000, bitrate: 649 kb/s
    Stream #0:0, 0, 1/1000: Data: none
    Stream #0:1, 0, 1/1000: Data: none
    Stream #0:2, 0, 1/1000: Data: none
    Stream #0:3, 0, 1/1000: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, flt, 32 kb/s
    Stream #0:4, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:5, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 132 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:6, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 68 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:7, 196, 1/1000: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, flt, 32 kb/s
    Stream #0:8, 0, 1/1000: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, flt, 32 kb/s
    Stream #0:9, 75, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:10, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:11, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:12, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 68 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
At least one output file must be specified
[AVIOContext @ 00000000021df840] Statistics: 200630 bytes read, 2 seeks

PS. I work at a company (www.netclean.com) that makes software used to analyzes data from seized computers in child sexual abuse investigations, and we use ffmpeg to convert video files. We sometimes test our software on legal porn to test functionality such as nudity detection etc. This is why the file I am trying to convert is porn.


#1927 ffplay loop triggers image corruption with cut realvideo sample undetermined defect Nov 17, 2012

After the resolution changes in the attached file which is from ticket #1507, any attempt to seek to absolute zero will cause distortion. For the video stream, the first index entry timestamp is zero and the first_dts is zero. Any value greater than zero and it works. The reason for the distortion is because the packets contain the old resolution values, as does the AVFrame and AVCodecContext.

You can seek to zero fine before the resolution change.

The best way to show you the problem is to make ffplay loop. This is because using left arrow does not go back far enough in time to produce the problem and by allowing ffplay to loop it will seek to zero or to the very beginning of playback.

This is not an ffplay problem as I can reproduce it in my own code.

After the loop back to zero it will correct itself and get the resolution change about 6/7 seconds into playback.

ffplay -loop 10 Wrong_aspect_after_resolution_change.rmvb
ffplay version N-46469-gc995644 Copyright (c) 2003-2012 the FFmpeg developers
  built on Nov  5 2012 17:56:17 with gcc 4.7.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib
--enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-
amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut -
-enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enab
le-libxavs --enable-libxvid --enable-zlib
  libavutil      52.  5.100 / 52.  5.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 21.106 /  3. 21.106
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
Input #0, rm, from 'Wrong_aspect_after_resolution_change.rmvb':
  Metadata:
    Audiences       : Easy RealMedia Tool's Audience;
    audioMode       : music
    Creation Date   : 3/22/2005 10:25:31
    Description     : +ú+++·+˜ú¦¦+-+¦¦+«¦¼+¦íó++-++·+¦+++Ñ-¬-°ú¼+÷¦¬+÷+-+¦-++¦+˜
-º
                    : -¦íó++-˜+«++íú¦+¦t+¦¦µ+¿¦T+¡¦t+¦¦½-+-·+-íú++¦++T+»+=+÷+-¦+
¦+¦½+¬¦
    Email           : rick@redcheek.net
    Generated By    : Easy RealMedia Tools V1.8
    HomeWeb         : http://redcheek.net
    Keywords        :
    Modification Date: 3/22/2005 10:25:31
    videoMode       : sharp
    File ID         : 545932b0-2885-caea-bdd7-d268c869a693
    title           : [YY]0419.¦++-+¦¦¦_¦¦¦·+t+¦+-+n-O-¦f(+-)- -++-¦8 +¦-([YY]¦ñ
+˜-- YYTvO+¦+˜
    author          : feng
    copyright       : YY@2005
    comment         :
  Duration: 00:43:16.92, start: 0.000000, bitrate: 7 kb/s
    Stream #0:0: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, fltp, 44 kb/s
    Stream #0:1: Video: rv40 (RV40 / 0x30345652), yuv420p, 480x360, 391 kb/s, 23
 fps, 23 tbr, 1k tbn, 1k tbc
Frame changed from size:0x0 to size:480x360  97KB sq=    0B f=0/0
  15.74 A-V: -0.017 f[rv40 @ 0119d800] d= Changing dimensions to 480x288
  15.82 A-V: -0.021 fd=   7 aq=    1KB vq=   28KB sq=   Frame changed from size:
480x360 to size:480x288
  39.3[rv40 @ 0117dc20] 6 AFirst slice header is incorrectB f=0/0
[rv40 @ 0119d800] warning: first frame is no keyframe    0B f=0/0
   9.76 A-V: -0.004[rv40 @ 0119d800]  fdChanging dimensions to 480x360
   9.83 A-V: -0.008 fd=  60 aq=    1KB vq=   4Frame changed from size:480x288 to
 size:480x360
  12.34 A-V:  0.086 fd=  62 aq=    1KB vq=   17KB sq=    0B f=0/1

#1993 Badly interleaved partial AVI file causes audio/video desync avformat defect Dec 5, 2012

Reproducible with streams.videolan.org/issues/ffmpeg/yet-another-broken-interleaved-avi.avi and

dd if=yet-another-broken-interleaved-avi.avi of=test.avi bs=1048576 count=200

The problem description is exactly the same as #333, except with partial files (the complete test file as linked above works fine, just cutting it makes it fail).

Just like with bug #333 (before it was fixed), it causes desync after some time of normal playback in ffplay/mplayer, and it works correctly with mplayer -demuxer avi.

Compared to playback of the complete file, the following ffplay message is missing:

[avi @ 0x7f94980008c0] non-interleaved AVI

which possibly means that the demuxer fails to recognize the file as badly interleaved if the trailing part of the file is missing.


#2009 Bogus library dependencies (e.g. on SDL) build system defect Dec 10, 2012

Summary of the bug: pkg-config files contain unneeded dependencies (e.g. libavcodec.pc contains -lSDL)

How to reproduce:

% grep SDL /usr/lib/pkgconfig/libav*
/usr/lib/pkgconfig/libavcodec.pc:Libs: -L${libdir} -lavcodec -ldl -lva -lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac -lass -lm -pthread -lbz2 -lz -lrt
/usr/lib/pkgconfig/libavdevice.pc:Libs: -L${libdir} -lavdevice -ldl -lva -lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac -lass -lm -pthread -lbz2 -lz -lrt
/usr/lib/pkgconfig/libavfilter.pc:Libs: -L${libdir} -lavfilter -ldl -lva -lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac -lass -lm -pthread -lbz2 -lz -lrt
/usr/lib/pkgconfig/libavformat.pc:Libs: -L${libdir} -lavformat -ldl -lva -lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac -lass -lm -pthread -lbz2 -lz -lrt
% nm -A /usr/lib/libavcodec.a  | grep SDL
%

Issue is that $extralibs is generally used in the configure script for multiple modules, despite them needing different things. It causes issues for programs linking to both libavcodec/libavformat and SDL2.


#2035 DVD subtitle from VOB does not contain CodecPrivate data avcodec defect Dec 16, 2012

Summary of the bug:

When copying DVD subtitles from vob files into the matroska container the subtitles do not contain CodecPrivate? data.

The subtitles play fine in vlc but mkvtoolnix has problems with editing the file. The header editor recognizes all tracks but mkvextract fails to extract the subtitles because of the missing data (Error: Track 5 with the CodecID 'S_VOBSUB' is missing the "codec private" element and cannot be extracted.). Also editing the file with mmg/mkvmerge does not work because the existing subtitles are ignored and not written to the output file because of the same reason (Warning: matroska_reader: The CodecID for track 5 is 'S_VOBSUB', but there was no private data found).

While I understand that the CodecPrivate? data is not direct available when reading from VOB files as this information normally comes from the IDX part of extracted subtitles in vobsub format. However it would be nice if this information could be acquired somehow and written to the codec initialization part for the files to be editable by mkvtoolnix. This would save the additional step of extracting the subtitles to IDX/SUB. I guess that the ultimate solution would be to add a DVD reader who understands the dvd structure as I this information is stored in the IFO file.

How to reproduce:

% ffmpeg -i concat:VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB \
-map 0:0 -map 0:1 -map 0:2 -map 0:6 -map 0:5 -map 0:4 \
-c:v libx264 -preset fast -crf 18 \
-c:a copy -metadata:s:a:0 language=ger \
-c:a copy -metadata:s:a:1 language=eng \
-c:s copy -metadata:s:s:0 language=eng \
-c:s copy -metadata:s:s:1 language=ger \
-c:s copy -metadata:s:s:2 language=ger \
-f matroska movie.mkv

ffmpeg version N-47903-gde89dff
built on Dec 16 2012 15:51:01

#2061 ffmpeg -vf drawtext not support ft_load_flags=vertical_layout avfilter defect Dec 24, 2012

Summary of the bug:

ffmpeg -vf drawtext not support ft_load_flags=vertical_layout

How to reproduce:

ffmpeg.exe -i 1.avi -codec:v libx264 -vf drawtext="ft_load_flags=render+vertical_layout:shadowcolor=0xaaaaaa66:shadowx=5:shadowy=2:fontcolor=white:fontsize=40:fontfile=STXIHEI.TTF:text='ABC':x=10:y=10" 21.avi

Only use ft_load_flags=render is ok to render ABC on video.

ffmpeg version: ffmpeg version N-47062-g26c531c Copyright (c) 2000-2012 the FFmpeg developers

built on Nov 25 2012 12:21:26 with gcc 4.7.2 (GCC)

configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt

ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass - -enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enab le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libo pus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena ble-zlib

libavutil 52. 9.100 / 52. 9.100 libavcodec 54. 77.100 / 54. 77.100 libavformat 54. 37.100 / 54. 37.100 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 23.102 / 3. 23.102 libswscale 2. 1.102 / 2. 1.102 libswresample 0. 17.101 / 0. 17.101 libpostproc 52. 2.100 / 52. 2.100


#2078 FFMPEG created WTV files cannot be fast forwarded or fast rewound in Windows Media Center avformat defect Dec 29, 2012

Summary of the bug: Any WTV file created by FFMPEG, they can be seeked directly in MCE but when one tries toe fast forward or rewind (using the FF and RW buttons on the remote or the console) it does not go beyond at best 1 FF or 1 RW. i.e. WTV files recorded by MCE one can press the FF button upto 4 times to get 4x fast forward. Files created by FFMPEG sometimes get 1x FF and never go beyond 1x FF, it just returns to normal play.

This happens with any WTV file, so you can take any file you have in your archive and remux it to wtv and see the results.

something as simple as: ffmpeg -i test.ts -c copy test.wtv

I'm not uploading a sample since it can be reproduced with any file remuxed to WTV.


#2085 h264 remuxed from flv to mov fails on Android (duplicated SPS) undetermined defect Dec 30, 2012

Summary of the bug:

We use FLV captured stream from webcam (using application build for Flash Player), h264 comes direct from the flash, but audio stream Speex should be encoded to AAC to make the streams compatible with mobile devices h264 (Baseline) + AAC.

Video stream should not be encoded again, so we use the copy method, like the following:

ffmpeg -i input.flv -c:v copy -c:a libvo_aacenc output.mp4

The resulted MP4 video files plays back well on Flash Player 11.4+ and iPhone/iPad with iOS 5+ (Baseline compatible video stream). but on Android devices and Flash Player 11.1/11.2 the playback freezes at 2-3 seconds. We also use qt-faststart, but it doesn't affect on stuck problem.

Stdout of ffmpeg encoding script:

ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 17 2012 23:45:34 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libvo-aacenc --enable-libspeex
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[libspeex @ 0x7fabb902ea00] Missing Speex header, assuming defaults.
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, flv, from '1.flv':
  Metadata:
    creationdate    : Thu Nov 22 09:46:36
    duration2       : 29964
  Duration: 00:00:30.25, start: 0.000000, bitrate: 212 kb/s
    Stream #0:0: Video: h264 (Baseline), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 20 tbr, 1k tbn, 40 tbc
    Stream #0:1: Audio: speex, 16000 Hz, mono, s16
File '1.mp4' already exists. Overwrite ? [y/N] y
Missing Speex header, assuming defaults.
Output #0, mp4, to '1.mp4':
  Metadata:
    creationdate    : Thu Nov 22 09:46:36
    duration2       : 29964
    encoder         : Lavf54.29.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 1k tbn, 1k tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 16000 Hz, mono, s16, 96 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (libspeex -> libvo_aacenc)
Press [q] to stop, [?] for help
[mp4 @ 0x7fabb9012800] st:0 PTS: 2139 DTS: 2139 < 2140 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 2722 DTS: 2722 < 2723 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 5440 DTS: 5440 < 5441 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 8105 DTS: 8105 < 8106 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 10772 DTS: 10772 < 10773 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 13456 DTS: 13456 < 13457 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 16127 DTS: 16127 < 16128 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 18835 DTS: 18835 < 18836 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 21675 DTS: 21675 < 21676 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 24476 DTS: 24476 < 24477 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 27283 DTS: 27283 < 27284 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 30079 DTS: 30079 < 30080 invalid, clipping
frame=  454 fps=0.0 q=-1.0 Lsize=     978kB time=00:00:30.31 bitrate= 264.4kbits/s    
video:620kB audio:346kB subtitle:0 global headers:0kB muxing overhead 1.170369%

I tried different versions of ffmpeg (0.10, 0.11, 1.0, 1.01) compiled with mandatory --with-libvo-aacenc --with-speex, but the problem still not resolved.


#2129 no_proxy environment variable implemented wrong avformat defect Jan 10, 2013

Summary of the bug: no_proxy is defined as an exclusion list; however, to ffmpeg, this variable disables proxy support entirely

How to reproduce:

% strace -fe connect ffplay "http://192.0.2.42/foo.mp3"
[pid  4727] connect(6, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("192.0.2.42")}, 16) = -1 EINPROGRESS (Operation now in progress)
# no proxy is used. good

% env http_proxy="http://192.0.2.23:8080" strace -fe connect ffplay "http://192.0.2.42/foo.mp3"
[pid  4658] connect(6, {sa_family=AF_INET, sin_port=htons(8080), sin_addr=inet_addr("192.0.2.23")}, 16) = -1 EINPROGRESS (Operation now in progress)
# proxy is properly used, good

% env http_proxy="http://192.0.2.23:8080" no_proxy="192.0.2.42" strace -fe connect ffplay "http://192.0.2.42/foo.mp3"
[pid  4837] connect(6, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("192.0.2.42")}, 16) = -1 EINPROGRESS (Operation now in progress)
# proxy is not used, good

env http_proxy="http://192.0.2.23:8080" no_proxy="192.0.2.123" strace -fe connect ffplay "http://192.0.2.42/foo.mp3"
[pid  4894] connect(6, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("192.0.2.42")}, 16) = -1 EINPROGRESS (Operation now in progress)
# proxy is not used, BAD!

Cause in the source, to be found in libavformat/tls.c and libavformat/http.c:

    proxy_path = getenv("http_proxy");
    use_proxy = (proxy_path != NULL) && !getenv("no_proxy") &&
        av_strstart(proxy_path, "http://", NULL);

Actually, the no_proxy variable would need parsing and comparing to the URL!

See here: http://www.w3.org/Daemon/User/Proxies/ProxyClients.html http://lynx.isc.org/lynx2.8.6/lynx2-8-6/lynx_help/keystrokes/environments.html curl(1) wget(1) http://www.gnu.org/software/emacs/manual/html_node/url/Proxies.html


#2162 ffmpeg does not create PS3 compatible m2ts files avformat defect Jan 21, 2013

I have some movies (mpeg2 video, AC3 audio) that I would like to convert to m2ts. If I do this with tsMuxerGUI, it plays like a charm on my PS3. If I try this with ffmpeg the PS3 does never recognize the audio track. I've used "ffmpeg -i sample.vob -acodec copy -vcodec copy sample.m2ts"

Sample files were uploaded to the ftp Server upload.ffmpeg.org: PS3Issue_Readme.txt PS3IssueSampleFFMPEG.m2ts PS3IssueSampleTSMUXERGUI.m2ts

============================== 1.) convert the file with "ffmpeg.exe" -i sample.mkv -acodec copy -vcodec copy -t 7 sampleFFMPEG.m2ts" ==============================

ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  8 2013 16:16:22 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 'sample.mkv':
  Metadata:
    creation_time   : 2013-01-21 07:30:54
  Duration: 00:11:12.24, start: 0.000000, bitrate: 8453 kb/s
    Chapter #0.0: start 0.000000, end 672.238000
    Metadata:
      title           : Chapter 01
    Stream #0:0(eng): Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR
16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : 3/2+1
Output #0, mpegts, to 'sampleFFMPEG.m2ts':
  Metadata:
    encoder         : Lavf54.59.106
    Chapter #0.0: start 0.000000, end 7.000000
    Metadata:
      title           : Chapter 01
    Stream #0:0(eng): Video: mpeg2video, yuv420p, 720x480 [SAR 186:157 DAR 279:1
57], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s (default)
    Metadata:
      title           : 3/2+1
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  211 fps=0.0 q=-1.0 Lsize=    8038kB time=00:00:07.00 bitrate=9396.6kbits
/s
video:6880kB audio:383kB subtitle:0 global headers:0kB muxing overhead 10.673105
%

============================== here ist the output of "ffmpeg -i sampleFFMPEG.m2ts" ==============================

ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  8 2013 16:16:22 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mpegts, from 'sampleFFMPEG.m2ts':
  Duration: 00:00:07.04, start: 1.400000, bitrate: 9353 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x101](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1
(side), fltp, 448 kb/s
At least one output file must be specified

============================== then I have "posprocessed" the sampleFFMPEG.m2ts with tsMuxerGUI here ist the output of "ffmpeg -i sampleTSMUXERGGUI.m2ts" ==============================

ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  8 2013 16:16:22 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mpegts, from 'sampleTSMUXERGUI.m2ts':
  Duration: 00:00:07.04, start: 600.000000, bitrate: 8894 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
0p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1100](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side
), fltp, 448 kb/s
At least one output file must be specified

============================== The differences that I see between ffmpeg output and tsMuxerGUI output are the track IDs and then "ac3 ([129][0][0][0] / 0x0081)" vs. "(AC-3 / 0x332D4341)".


#2270 ffmpeg transcodes cover art to a video stream with a single frame avformat defect Feb 14, 2013
$ ffmpeg -i tests/sample.mp3 out.mkv 
ffmpeg version 1.0.3 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 24 2013 14:52:18 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --disable-altivec --disable-armv5te --disable  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mp3 @ 0x8091a60] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0x8091a60] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'tests/sample.mp3':
  Metadata:
    album_artist    : Armin Van Buuren
    track           : 26
    encoded_by      : Https://Www.Facebook.Com/Inspirontrance
    title           : Serenity (Andrew Rayel Aether Remix) [Future Favorite]
    artist          : Armin Van Buuren Feat. Jan Vayne
    album           : A State Of Trance Episode 587 (2012-11-15)
    genre           : Trance
    date            : 2012

  Duration: 00:05:20.20, start: 0.000000, bitrate: 255 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 256 kb/s
    Stream #0:1: Video: mjpeg, yuvj444p, 720x720 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : 
      comment         : Cover (front)
[libx264 @ 0x80a82e0] using SAR=1/1
[libx264 @ 0x80a82e0] MB rate (182250000) > level limit (2073600)
[libx264 @ 0x80a82e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x80a82e0] profile High, level 5.2
[libx264 @ 0x80a82e0] 264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'out.mkv':
  Metadata:
    album_artist    : Armin Van Buuren
    PART_NUMBER     : 26
    encoded_by      : Https://Www.Facebook.Com/Inspirontrance
    title           : Serenity (Andrew Rayel Aether Remix) [Future Favorite]
    artist          : Armin Van Buuren Feat. Jan Vayne
    album           : A State Of Trance Episode 587 (2012-11-15)
    genre           : Trance
    date            : 2012
    encoder         : Lavf54.29.104
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p, 720x720 [SAR 1:1 DAR 1:1], q=-1--1, 1k tbn, 90k tbc
    Metadata:
      title           : 
      comment         : Cover (front)
    Stream #0:1: Audio: vorbis (oV[0][0] / 0x566F), 44100 Hz, stereo, flt
Stream mapping:
  Stream #0:1 -> #0:0 (mjpeg -> libx264)
  Stream #0:0 -> #0:1 (mp3 -> libvorbis)
Press [q] to stop, [?] for help
frame=    1 fps=0.1 q=33.0 Lsize=    4410kB time=00:05:12.99 bitrate= 115.4kbits/s    
video:11kB audio:4276kB subtitle:0 global headers:4kB muxing overhead 2.766691%

[libx264 @ 0x80a82e0] frame I:1     Avg QP:31.73  size: 10211
[libx264 @ 0x80a82e0] mb I  I16..4: 46.9% 35.0% 18.1%
[libx264 @ 0x80a82e0] 8x8 transform intra:35.0%
[libx264 @ 0x80a82e0] coded y,uvDC,uvAC intra: 26.8% 8.9% 3.2%
[libx264 @ 0x80a82e0] i16 v,h,dc,p: 70% 16%  7%  7%
[libx264 @ 0x80a82e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 14% 23%  4%  5% 11%  5%  6%  5%
[libx264 @ 0x80a82e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 20% 13%  4%  5%  7%  4%  4%  3%
[libx264 @ 0x80a82e0] i8c dc,h,v,p: 91%  4%  5%  0%
[libx264 @ 0x80a82e0] kb/s:7351920.00
$ ffprobe out.mkv 
ffprobe version 1.0.3 Copyright (c) 2007-2012 the FFmpeg developers
  built on Jan 24 2013 14:52:18 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --disable-altivec --disable-armv5te --disable  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[matroska,webm @ 0x807f6e0] max_analyze_duration 5000000 reached at 5017000
Input #0, matroska,webm, from 'out.mkv':
  Metadata:
    title           : Serenity (Andrew Rayel Aether Remix) [Future Favorite]
    ALBUM_ARTIST    : Armin Van Buuren
    track           : 26
    ENCODED_BY      : Https://Www.Facebook.Com/Inspirontrance
    ARTIST          : Armin Van Buuren Feat. Jan Vayne
    ALBUM           : A State Of Trance Episode 587 (2012-11-15)
    GENRE           : Trance
    DATE            : 2012
    ENCODER         : Lavf54.29.104
  Duration: 00:05:13.54, start: 0.000000, bitrate: 115 kb/s
    Stream #0:0: Video: h264 (High), yuvj420p, 720x720 [SAR 1:1 DAR 1:1], 30k fps, 30k tbr, 1k tbn, 180k tbc
    Metadata:
      title           : 
      COMMENT         : Cover (front)
    Stream #0:1: Audio: vorbis, 44100 Hz, stereo, s16 (default)

It should create an audio-only mkv with the picture embedded as metadata instead. Should it turn out that mkv does not have anything like image data in metadata, ffmpeg should not create a video stream anyway.


#2282 Failed seeks lead to undefined behavior avformat defect Feb 19, 2013

Play a .flac file with ffplay. Right at the start, hit the cursor-right and cursor-down key multiple times. Then ffplay prints some error messages, and the printed playback position doesn't actually match what you hear.

Specifically, it prints decoder errors after an (obviously) failed seek. This indicates a problem with demuxer behavior and/or the seek API. (And if not, it's a ffplay bug.)

On IRC, it was said that failed seeks leave the demuxer in an undefined state.

$ ffplay test.flac 
ffplay version 1.0.3 Copyright (c) 2003-2012 the FFmpeg developers
  built on Jan 24 2013 14:52:18 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --disable-altivec --disable-armv5te --disable  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[flac @ 0x80e0620] max_analyze_duration 5000000 reached at 5015510
Input #0, flac, from 'test.flac':
  Metadata:
    ENCODER         : Lavf54.29.104
  Duration: 00:10:01.48, bitrate: 1186 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
test.flac: error while seeking=   47KB vq=    0KB sq=    0B f=0/0   
[flac @ 0x80e8a80] invalid sync codeKB vq=    0KB sq=    0B f=0/0   
[flac @ 0x80e8a80] invalid frame header
[flac @ 0x80e8a80] decode_frame() failed
[flac @ 0x80e8a80] invalid sync codeKB vq=    0KB sq=    0B f=0/0   
[flac @ 0x80e8a80] invalid frame header
[flac @ 0x80e8a80] decode_frame() failed


#2349 Windows, continuously write progress on one line undetermined defect Mar 12, 2013

When encoding FFmpeg prints a new line every second with the progress, example

frame= 31 fps=0.0 q=0.0 size= 152kB time=00:00:00.72 bitrate=1726.3kbits/s frame= 59 fps= 57 q=0.0 size= 175kB time=00:00:01.90 bitrate= 751.1kbits/s frame= 89 fps= 58 q=0.0 size= 204kB time=00:00:03.04 bitrate= 549.8kbits/s

With a large file these lines can quickly fill the console screen. I would like to see the progress on one line if possible, that is to say each second the same line is overwritten with the updated progress.

http://superuser.com/questions/564483/how-to-make-ffmpeg-continuously-write-progress-on-one-line


#2398 Bad timestamps when remuxing h264 wtv to ts undetermined defect Mar 24, 2013

Summary of the bug:

How to reproduce:

ffmpeg -i input.wtv -vcodec copy -acodec copy -map 0:a -map 0:v -f mpegts output.ts

Command line : See attached log. Too large to paste.

#2410 ffmpeg down with video4linux2. avdevice defect Mar 28, 2013

I have Easycap DC60 card(a video capture card). it runs on kernel 3.2 with stk1160 driver. I download ffmpeg source code on 3013/03/29 and compile it. when I run a commandline:

[root@localhost ~]# ffmpeg -f video4linux2 -pix_fmt yuv420p -i /dev/video0  -vco                                                      dec mpeg4 -b:v 1200k -y test.avi
ffmpeg version N-51426-gdd17843 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 29 2013 00:22:28 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
  configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopenco                                                      re-amrwb --enable-avfilter --enable-nonfree --enable-libmp3lame --enable-gpl --e                                                      nable-libfaac --enable-libx264 --enable-pthreads --disable-stripping --enable-li                                                      bass --extra-cflags=-I/usr/local/include --disable-debug
  libavutil      52. 22.101 / 52. 22.101
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 48.105 /  3. 48.105
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
'''[video4linux2,v4l2 @ 0x99704a0] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for de                                                      vice
/dev/video0: Inappropriate ioctl for device'''

#2474 MKV transcoded to MKV with copied attachments is unplayable if output is stdout avformat defect Apr 16, 2013

Summary of the bug:

A MKV that contains attachments (for example additional fonts for subs) that is transcoded to another MKV, copying the attachements, results in an unplayable file ([02189f60] mkv demux error: cannot find any cluster, damaged file ?) if the output specified to ffmpeg is stdout (-) instead of a regular file.

If the attachements streams are omitted in the transcoded output file, the file is playable in both cases.

So there seems to be a specific problem with transcoding to stdout and MKV attachments.

How to reproduce:

First, donwload this MKV containing attachments: http://www.auby.no/files/video_tests/h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv

Let's transcode it to MKV, copying the attachement streams, to a regular file named file1.mkv. This file is playabale.

$ ffmpeg -async 1 -i h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv -map 0 -vf scale="trunc(oh*a/2)*2:240" -vcodec libx264 -preset medium -acodec libmp3lame -ac 2 -ab 128000 -f matroska file1.mkv
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 28 2013 00:28:48 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 'h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv':
  Metadata:
    title           : Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR
    creation_time   : 2011-03-01 00:35:17
  Duration: 00:01:52.83, start: 0.000000, bitrate: 7066 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Planet Earth - EP01 - From Pole to Pole
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : AC3 5.1
    Stream #0:2(eng): Subtitle: ssa (default)
    Stream #0:3(rum): Subtitle: ssa
Codec 0x18000 is not in the full list.
    Stream #0:4: Attachment: unknown_codec
    Metadata:
      filename        : exprswy_free.ttf
      mimetype        : application/x-truetype-font
Codec 0x18000 is not in the full list.
    Stream #0:5: Attachment: unknown_codec
    Metadata:
      filename        : Framd.TTF
      mimetype        : application/x-truetype-font
-async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
[libx264 @ 0422f380] using SAR=640/639
[libx264 @ 0422f380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0422f380] profile High, level 2.1
[libx264 @ 0422f380] 264 - core 130 r2274 c832fe9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'file1.mkv':
  Metadata:
    title           : Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR
    encoder         : Lavf54.63.104
    Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p, 426x240 [SAR 640:639 DAR 16:9], q=-1--1, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Planet Earth - EP01 - From Pole to Pole
    Stream #0:1(eng): Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      title           : AC3 5.1
    Stream #0:2(eng): Subtitle: ssa (default)
    Stream #0:3(rum): Subtitle: ssa
Codec 0x18000 is not in the full list.
    Stream #0:4: Attachment: unknown_codec
    Metadata:
      filename        : exprswy_free.ttf
      mimetype        : application/x-truetype-font
Codec 0x18000 is not in the full list.
    Stream #0:5: Attachment: unknown_codec
    Metadata:
      filename        : Framd.TTF
      mimetype        : application/x-truetype-font
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (ac3 -> libmp3lame)
  Stream #0:2 -> #0:2 (ass -> ass)
  Stream #0:3 -> #0:3 (ass -> ass)
  Stream #0:4 -> #0:4 (copy)
  Stream #0:5 -> #0:5 (copy)
Press [q] to stop, [?] for help
frame= 2705 fps=155 q=2686567.0 Lsize=   11312kB time=00:01:52.84 bitrate= 821.2kbits/s
video:9298kB audio:1764kB subtitle:2 global headers:2kB muxing overhead 2.238986%
[libx264 @ 0422f380] frame I:20    Avg QP:19.09  size: 15456
[libx264 @ 0422f380] frame P:1418  Avg QP:23.83  size:  5843
[libx264 @ 0422f380] frame B:1267  Avg QP:25.03  size:   730
[libx264 @ 0422f380] consecutive B-frames: 29.4% 21.1% 10.3% 39.2%
[libx264 @ 0422f380] mb I  I16..4: 39.5% 30.6% 30.0%
[libx264 @ 0422f380] mb P  I16..4:  0.4%  0.4%  0.8%  P16..4: 26.9% 16.7% 13.4%  0.0%  0.0%    skip:41.4%
[libx264 @ 0422f380] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 29.4%  2.7%  1.3%  direct: 3.2%  skip:63.4%  L0:32.1% L1:49.9% BI:18.0%
[libx264 @ 0422f380] 8x8 transform intra:27.2% inter:46.1%
[libx264 @ 0422f380] coded y,uvDC,uvAC intra: 64.7% 65.6% 50.9% inter: 23.3% 12.8% 1.7%
[libx264 @ 0422f380] i16 v,h,dc,p: 70% 10%  9% 11%
[libx264 @ 0422f380] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 18% 19%  8%  8%  7%  8%  8% 13%
[libx264 @ 0422f380] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 18% 15%  9%  9%  8% 10%  7% 13%
[libx264 @ 0422f380] i8c dc,h,v,p: 65% 18% 11%  6%
[libx264 @ 0422f380] Weighted P-Frames: Y:11.3% UV:0.9%
[libx264 @ 0422f380] ref P L0: 70.0% 20.6%  5.8%  3.4%  0.2%
[libx264 @ 0422f380] ref B L0: 87.3%  9.6%  3.1%
[libx264 @ 0422f380] ref B L1: 87.6% 12.4%
[libx264 @ 0422f380] kb/s:675.06

Now let's transcode it but specifying stdout (-) as the output and redirecting stdout to file2.mkv. file2.mkv is not playabale and VLC gives error "mkv demux error: cannot find any cluster, damaged file ?". Discarding the attachement streams in the resulting file would render the file playable.

$ ffmpeg -async 1 -i h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv -map 0 -vf scale="trunc(oh*a/2)*2:240" -vcodec libx264 -preset medium -acodec libmp3lame -ac 2 -ab 128000 -f matroska - > file2.mkv
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 28 2013 00:28:48 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 'h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv':
  Metadata:
    title           : Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR
    creation_time   : 2011-03-01 00:35:17
  Duration: 00:01:52.83, start: 0.000000, bitrate: 7066 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Planet Earth - EP01 - From Pole to Pole
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : AC3 5.1
    Stream #0:2(eng): Subtitle: ssa (default)
    Stream #0:3(rum): Subtitle: ssa
Codec 0x18000 is not in the full list.
    Stream #0:4: Attachment: unknown_codec
    Metadata:
      filename        : exprswy_free.ttf
      mimetype        : application/x-truetype-font
Codec 0x18000 is not in the full list.
    Stream #0:5: Attachment: unknown_codec
    Metadata:
      filename        : Framd.TTF
      mimetype        : application/x-truetype-font
-async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
[libx264 @ 0433cba0] using SAR=640/639
[libx264 @ 0433cba0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0433cba0] profile High, level 2.1
[libx264 @ 0433cba0] 264 - core 130 r2274 c832fe9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'pipe:':
  Metadata:
    title           : Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR
    encoder         : Lavf54.63.104
    Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p, 426x240 [SAR 640:639 DAR 16:9], q=-1--1, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Planet Earth - EP01 - From Pole to Pole
    Stream #0:1(eng): Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      title           : AC3 5.1
    Stream #0:2(eng): Subtitle: ssa (default)
    Stream #0:3(rum): Subtitle: ssa
Codec 0x18000 is not in the full list.
    Stream #0:4: Attachment: unknown_codec
    Metadata:
      filename        : exprswy_free.ttf
      mimetype        : application/x-truetype-font
Codec 0x18000 is not in the full list.
    Stream #0:5: Attachment: unknown_codec
    Metadata:
      filename        : Framd.TTF
      mimetype        : application/x-truetype-font
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (ac3 -> libmp3lame)
  Stream #0:2 -> #0:2 (ass -> ass)
  Stream #0:3 -> #0:3 (ass -> ass)
  Stream #0:4 -> #0:4 (copy)
  Stream #0:5 -> #0:5 (copy)
Press [q] to stop, [?] for help
frame= 2705 fps=160 q=2686567.0 Lsize=   11316kB time=00:01:52.84 bitrate= 821.5kbits/s
video:9298kB audio:1764kB subtitle:2 global headers:2kB muxing overhead 2.277988%
[libx264 @ 0433cba0] frame I:20    Avg QP:19.09  size: 15456
[libx264 @ 0433cba0] frame P:1418  Avg QP:23.83  size:  5843
[libx264 @ 0433cba0] frame B:1267  Avg QP:25.03  size:   730
[libx264 @ 0433cba0] consecutive B-frames: 29.4% 21.1% 10.3% 39.2%
[libx264 @ 0433cba0] mb I  I16..4: 39.5% 30.6% 30.0%
[libx264 @ 0433cba0] mb P  I16..4:  0.4%  0.4%  0.8%  P16..4: 26.9% 16.7% 13.4%  0.0%  0.0%    skip:41.4%
[libx264 @ 0433cba0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 29.4%  2.7%  1.3%  direct: 3.2%  skip:63.4%  L0:32.1% L1:49.9% BI:18.0%
[libx264 @ 0433cba0] 8x8 transform intra:27.2% inter:46.1%
[libx264 @ 0433cba0] coded y,uvDC,uvAC intra: 64.7% 65.6% 50.9% inter: 23.3% 12.8% 1.7%
[libx264 @ 0433cba0] i16 v,h,dc,p: 70% 10%  9% 11%
[libx264 @ 0433cba0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 18% 19%  8%  8%  7%  8%  8% 13%
[libx264 @ 0433cba0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 18% 15%  9%  9%  8% 10%  7% 13%
[libx264 @ 0433cba0] i8c dc,h,v,p: 65% 18% 11%  6%
[libx264 @ 0433cba0] Weighted P-Frames: Y:11.3% UV:0.9%
[libx264 @ 0433cba0] ref P L0: 70.0% 20.6%  5.8%  3.4%  0.2%
[libx264 @ 0433cba0] ref B L0: 87.3%  9.6%  3.1%
[libx264 @ 0433cba0] ref B L1: 87.6% 12.4%
[libx264 @ 0433cba0] kb/s:675.06


#2496 seek swf file failed undetermined defect Apr 24, 2013

When I used ffmpeg lib in my application I met an error (av_seek_frame returned -1). And then I used ffplay to play the video, and when I seeked in ffplay, it failed again.

below is the output from ffplay $ ffplay.exe big_buck_bunny.swf

5.56 A-V: -0.004 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 = 0B f=0/0

ffplay version N-50025-gb8bb661 Copyright (c) 2003-2013 the FFmpeg developers

built on Feb 17 2013 02:37:45 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.100 / 3. 38.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100

[swf @ 03c41800] max_analyze_duration 5000000 reached at 5008151 microseconds [swf @ 03c41800] Estimating duration from bitrate, this may be inaccurate Input #0, swf, from 'big_buck_bunny.swf':

Duration: 00:06:30.11, start: 0.000000, bitrate: 47 kb/s

Stream #0:0: Audio: mp3, 22050 Hz, stereo, s16p, 48 kb/s Stream #0:1: Video: flv1, yuv420p, 640x360, 23.98 fps, 47.92 tbr, 23.96 tbn

Seek to 70% ( 0:04:33) of total duration ( 0:06:30) big_buck_bunny.swf: error while seeking


#2515 Output file incompatible with PS3 and a Panasonic TV when muxing h264 to mpegts undetermined defect Apr 30, 2013

I have a set of files that are identical in MediaInfo? except for bitrate. I'm trying to mux them to MPEG-TS using the following command:

ffmpeg -i input.mkv -c:a copy -v:a copy -vbsf h264_mp4toannexb -f mpegts output.mpeg

The strange thing is that one file in the set is coming out differently to the others, causing it to be incompatible with devices over DLNA (tested on a PS3 and a Panasonic TV). MediaInfo? doesn't report any difference between the output files, either, except for bitrate.

Windows Explorer reads them differently, though; the file that does work is read by Windows to have the correct resolution but incorrect duration (1920x1080 and 18 hours long) and the one that does not work is reported by Windows to have the incorrect resolution but correct duration (720x480 and 10 seconds). Windows is horrible at reading file info but the fact that it sees the two files very differently shows that there is a difference between them. Windows does not show any difference between the input files; it correctly detects their duration and resolution.

I have uploaded 10 second samples of 2 of the files after verifying that the bug is reproducible via the samples. Produces erroneous file: http://www.spirton.com/uploads/FFmpeg/20130430-1.mkv Produces normal file: http://www.spirton.com/uploads/FFmpeg/20130430-2.mkv

I have tried several versions of FFmpeg, from the latest from Git master to versions several years old, with the same result each time.


#2547 -muxrate option doesn't work with stream_segment mpegts output avformat defect May 9, 2013

When I use the -muxrate parameter with the mpegts muxer directly, it works fine without any errors and I get the desired muxrate. But it is not working when using the mpegts muxer indirectly via the stream_segment muxer (even after patching segment.c to pass the muxrate parameter to the mpegts muxer and verifying that the right value was passed - see below).

Using mpegts muxer directly: ffmpeg -i lg4test.ts -map 0:0 -vcodec libx264 -s 640x360 -b:v 1M -minrate 1M -maxrate 1M -bufsize 500K -muxrate 1.25M -g 60 -profile:v main -map 0:1 -acodec aac -strict experimental -b:a 128K -ac 2 -ar 48000 -f mpegts -v verbose test.ts

Complete console output attached as: mpegts_output.txt

Quote from the output: [mpegts @ 0x7fc381829c00] muxrate 1250000, pcr every 16 pkts, sdt every 415, pat/pmt every 83 pkts

So, that looks good. Next I want to do the same thing when using mpegts via the stream_segment muxer.

First I edited libavformat/segment.c to enable the muxrate option to be passed to the muxer specified by -segment_format, via a new option called -segment_format_muxrate (see patch attached). There may be a better way to accomplish this, but it works for now. If you prefer, I can submit this patch first to ffmpeg-devel and then inquire about this bug.

Next, making use of this new option:

ffmpeg -i lg4test.ts -map 0:0 -vcodec libx264 -s 640x360 -b:v 1M -minrate 1M -maxrate 1M -bufsize 500K -muxrate 1.25M -g 60 -profile:v main -map 0:1 -acodec aac -strict experimental -b:a 128K -ac 2 -ar 48000 -f ssegment -segment_list test.m3u8 -segment_list_flags +live -segment_time 10 -segment_format mpegts -segment_format_muxrate 1.25M -segment_time_delta 1.0 -v verbose test%05d.ts

Complete console output attached as: ssegment_output.txt

This message cofirms that the muxrate option was correctly passed to the mpegts muxer: [mpegts @ 0x7fdff3c16800] muxrate 1250000, pcr every 16 pkts, sdt every 415, pat/pmt every 83 pkts

However, as you can see in the console output, I now get this error message repeated very often: [mpegts @ 0x7fdff3c16800] dts < pcr, TS is invalid

Last message repeated 58 times

When this error occurs, I found that the size of each segment file (which should be all roughly the same size, since they are all approx. the same duration) is actually growing by multiples, e.g.: ls -al test0*.ts -rw-r--r-- 1 jasonlivingston admin 1657784 May 8 22:39 test00000.ts -rw-r--r-- 1 jasonlivingston admin 3273268 May 8 22:39 test00001.ts -rw-r--r-- 1 jasonlivingston admin 5023736 May 8 22:39 test00002.ts -rw-r--r-- 1 jasonlivingston admin 6452160 May 8 22:39 test00003.ts -rw-r--r-- 1 jasonlivingston admin 8077796 May 8 22:39 test00004.ts -rw-r--r-- 1 jasonlivingston admin 9741784 May 8 22:39 test00005.ts -rw-r--r-- 1 jasonlivingston admin 11516692 May 8 22:39 test00006.ts -rw-r--r-- 1 jasonlivingston admin 13087244 May 8 22:39 test00007.ts -rw-r--r-- 1 jasonlivingston admin 14500816 May 8 22:39 test00008.ts -rw-r--r-- 1 jasonlivingston admin 16241884 May 8 22:39 test00009.ts

Again, these are all the same duration and same CBR, so they should be roughly the same size.

Any ideas why this works fine for using mpegts directly, but not when using mpegts via ssegment?


#2594 ffmpeg stalls when accessing a live Windows Media stream with multiple audio and video streams undetermined defect May 21, 2013

Summary of the bug:

ffmpeg stalls when accessing a live Windows Media stream with multiple audio and video streams.

How to reproduce:

% ffmpeg -i mmsh://livewms.europarl.europa.eu/reflector:52819 -c copy -map 0:0 -map 0:23 -f matroska output.mkv

ffmpeg version N-52045-g694fa00 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 12 2013 16:54:51 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-l
bass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 53.101 /  3. 53.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[wmv3 @ 02770c80] Extra data: 8 bits left, value: 0
[wmv3 @ 027717c0] Extra data: 8 bits left, value: 0
[wmv3 @ 02772e80] Extra data: 8 bits left, value: 0
[asf @ 026579a0] max_analyze_duration 5000000 reached at 5180000 microseconds
Guessed Channel Layout for  Input Stream #0.0 : stereo
Guessed Channel Layout for  Input Stream #0.1 : stereo
Guessed Channel Layout for  Input Stream #0.2 : stereo
Guessed Channel Layout for  Input Stream #0.3 : stereo
Guessed Channel Layout for  Input Stream #0.4 : stereo
Guessed Channel Layout for  Input Stream #0.5 : stereo
Guessed Channel Layout for  Input Stream #0.6 : stereo
Guessed Channel Layout for  Input Stream #0.7 : stereo
Guessed Channel Layout for  Input Stream #0.8 : stereo
Guessed Channel Layout for  Input Stream #0.9 : stereo
Guessed Channel Layout for  Input Stream #0.10 : stereo
Guessed Channel Layout for  Input Stream #0.11 : stereo
Guessed Channel Layout for  Input Stream #0.12 : stereo
Guessed Channel Layout for  Input Stream #0.13 : stereo
Guessed Channel Layout for  Input Stream #0.14 : stereo
Guessed Channel Layout for  Input Stream #0.15 : stereo
Guessed Channel Layout for  Input Stream #0.16 : stereo
Guessed Channel Layout for  Input Stream #0.17 : stereo
Guessed Channel Layout for  Input Stream #0.18 : stereo
Guessed Channel Layout for  Input Stream #0.19 : stereo
Guessed Channel Layout for  Input Stream #0.20 : stereo
Guessed Channel Layout for  Input Stream #0.21 : stereo
Guessed Channel Layout for  Input Stream #0.22 : stereo
Guessed Channel Layout for  Input Stream #0.25 : stereo
Input #0, asf, from 'mmsh://livewms.europarl.europa.eu/reflector:52819':
  Metadata:
    WMFSDKVersion   : 11.0.5721.5145
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    DeviceConformanceTemplate: MP@LL
  Duration: N/A, start: 70625.818000, bitrate: 1663 kb/s
    Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:1(fre): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:2(ger): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:3(ita): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:4(spa): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:5(gre): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:6(por): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:7(dut): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:8(dan): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:9(fin): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:10(swe): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:11(cze): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:12(est): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:13(lav): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:14(lit): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:15(hun): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:16(mlt): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:17(pol): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:18(slo): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:19(slv): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:20(bul): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:21(rum): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:22(hrv): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:23(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 384x288, 512 kb/s, 1k tbr, 1k tbn, 1k tbc
    Stream #0:24(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 384x288, 256 kb/s, 1k tbr, 1k tbn, 1k tbc
    Stream #0:25(zul): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:26(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 192x144, 128 kb/s, 25 tbr, 1k tbn, 1k tbc
Output #0, matroska, to 'output.mkv':
  Metadata:
    WMFSDKVersion   : 11.0.5721.5145
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    DeviceConformanceTemplate: MP@LL
    encoder         : Lavf55.2.100
    Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, 31 kb/s
    Stream #0:1(eng): Video: wmv3 (WMV3 / 0x33564D57), yuv420p, 384x288, q=2-31, 512 kb/s, 1k tbn, 1k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:23 -> #0:1 (copy)
Press [q] to stop, [?] for help
^C
Received signal 2: terminating.

Normally after the "press [q] to stop" ffmpeg outputs capture statistics. Here nothing happens and ffmpeg just stalls (I used "Ctrl+C" to exit). No rise in CPU either.

"mplayer -dumpstream" can save the file, albeit with some problems previously discussed in the closed bug #2572


#2595 Last frame of partly deintelacted video stream, not deinterlaced avfilter defect May 21, 2013

I have an input video file where some sequences are interlaced and the rest isn't. I am using -vf yadif=enable='between(t,A,B)+...' to only deinterlace where needed. It works almost fine, except that the very last frame of each specified time sequence is not deinterlaced.

How to reproduce:

% ffmpeg -i input.mpg -vf yadif=enable='between(t,0,1.040)' output.mpg
ffmpeg version N-53323-gb8a9876 Copyright (c) 2000-2013 the FFmpeg developers
  built on May 21 2013 16:20:56 with gcc 4.7 (SUSE Linux)

As a workaround, I am adding one frame at the end of every sequence which needs to be deinterlaced.


#2607 Ffmpeg duplicates and drops frames when given a .ts stream. undetermined defect May 28, 2013

Summary of the bug: I have a .ts video from a capture device. When I attempt to encode it in a less-bloated format, the resulting output has an incorrect framerate. Upon closer examination it appears that almost every frame has been dropped and then previous frames duplicated, resulting in video that not only plays at 15 FPS, but has many duplicate frames that make it appear to play at 10 FPS.

The source video file is running at 59.94 FPS. Specifying -r (both before and after -i, or any combination) does not solve the problem.

How to reproduce:

ffmpeg -i foo.ts -c:v libx264 -an outbar.mp4
ffmpeg version N-53528-g160ea26
built on May 27 2013 15:25:58 with gcc 4.7.3 (GCC)

Other video codecs and containers produce the same results. It is possible to take the resulting footage apart with "ffmpeg -i foo.mp4 frame_%d.png" and see the problematic frames.

Please note that the counter in the bottom right corner of the screen goes up by 3 every 3 frames (rather than 1 every frame), making it an unreliable way to test for the bug's presence.

I have uploaded a sample from the .ts file to upload.mplayerhq.hu/incoming/ under the filename "Ffmpeg_duplicates_and_drops_frames_when_given_a_ts_stream.ts", along with a .txt file with the same name that contains a copy of this bug and the output of "ffmpeg -v 9 -loglevel 99 -i CROP_B.ts -c:v libx264 -an test.mp4". The log has an identical name to the .ts file, except with .txt at the end.

The sample is a little strange and may be related to the problem, but even with its defects ffmpeg is still producing very odd output.


#2617 Playback of HLS fails when one of the variant streams are down avformat defect May 31, 2013

Summary of the bug: In cases of poorly managed HLS streams where one of the variant streams inside the m3u8 playlist are down, ffmpeg fails to play as soon as it sees a 404 error for one of the variant streams, while iOS ignores the dead stream and just plays it with the ones that work. How to reproduce:

ffmpeg -i http://telly.powerrangermail.net/hlstest/playlist.m3u8
ffmpeg version N-53690-g2886e80 Copyright (c) 2000-2013 the FFmpeg developers
  built on May 30 2013 15:49:51 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
  configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-postproc --enable-libx264 --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --enable-libvpx --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libxvid --enable-libfaac --cpu=amdfam10 --enable-x11grab --enable-libxavs --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libcelt --enable-openal --enable-libcdio --enable-libaacplus --enable-libmodplug --enable-libpulse --enable-openssl --enable-libv4l2 --enable-libass --enable-libbluray --enable-avresample --enable-libiec61883 --enable-libopus --enable-libcaca --enable-libfdk-aac --enable-libilbc --enable-libtwolame --enable-librtmp --enable-libsoxr --disable-stripping --enable-libaacplus --enable-opencl --enable-libflite --enable-libquvi
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 12.102 / 55. 12.102
  libavformat    55.  8.100 / 55.  8.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 73.100 /  3. 73.100
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[http @ 0xf8d2c0] HTTP error 404 Not Found
http://telly.powerrangermail.net/hlstest/playlist.m3u8: Input/output error

Since the stream in question that I use is only available weekdays for one hour a day, the output above is with a sample I created that intentionally has the same error so you can reproduce.


#2622 Subtitle (hdmv pgs) remux fails avformat defect Jun 2, 2013

Summary of the bug:ffmpeg fails when remuxing hdmv pgs subtitles

How to reproduce:ffmpeg -i hdmv_pgs_subtitle_remux_fail.m2ts -map 0 -c copy out.m2ts

ffmpeg version: git-master
June 1, 2013
Files are available on the ftp under incoming/hdmv_pgs_subtitle_remux_fail.tgz

Attempted to run
skifreak@LedBox ~/Documents/x264 Encoding/hdmv_pgs_subtitle_remux_fail $ ffmpeg -i hdmv_pgs_subtitle_remux_fail.m2ts -map 0 -c copy /tmp/test.m2tsffmpeg version N-53758-g5711e4f Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun  1 2013 18:59:50 with gcc 4.5.4 (Gentoo 4.5.4 p1.1, pie-0.4.7)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe -g' --extra-cflags='-march=native -O2 -pipe -g' --extra-cxxflags='-march=native -O2 -pipe -g' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --disable-network --disable-openssl --enable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus --disable-libfaac --enable-libtheora --disable-libtwolame --enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --enable-libdc1394 -  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 13.100 / 55. 13.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 74.101 /  3. 74.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mpegts @ 0x25698a0] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x25698a0] Stream #4: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x25698a0] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x25698a0] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[NULL @ 0x256f780] start time is not set in estimate_timings_from_pts
[NULL @ 0x25701c0] start time is not set in estimate_timings_from_pts
[mpegts @ 0x25698a0] PES packet size mismatch
Input #0, mpegts, from 'hdmv_pgs_subtitle_remux_fail.m2ts':
  Duration: 00:00:05.22, start: 65.986667, bitrate: 23524 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: vc1 (VC-1 / 0x312D4356), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), s16, 4608 kb/s
    Stream #0:2[0x1101]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Stream #0:3[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:4[0x1201]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
File '/tmp/test.m2ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to '/tmp/test.m2ts':
  Metadata:
    encoder         : Lavf55.8.102
    Stream #0:0: Video: vc1 (VC-1 / 0x312D4356), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 90k tbn, 23.98 tbc
    Stream #0:1: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), 4608 kb/s
    Stream #0:2: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), 640 kb/s
    Stream #0:3: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:4: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x2570f20] Application provided invalid, non monotonically increasing dts to muxer in stream 3: 458492 >= 458492
av_interleaved_write_frame(): Invalid argument


skifreak@LedBox ~/Documents/x264 Encoding/hdmv_pgs_subtitle_remux_fail $ ffmpeg -v 9 -loglevel 99 -i hdmv_pgs_subtitle_remux_fail.m2ts 
ffmpeg version N-53758-g5711e4f Copyright (c) 2000-2013 the FFmpeg developers                                                                                      
  built on Jun  1 2013 18:59:50 with gcc 4.5.4 (Gentoo 4.5.4 p1.1, pie-0.4.7)                                                                                      
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe -g' --extra-cflags='-march=native -O2 -pipe -g' --extra-cxxflags='-march=native -O2 -pipe -g' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --disable-network --disable-openssl --enable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus --disable-libfaac --enable-libtheora --disable-libtwolame --enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --enable-libdc1394 -  libavutil      52. 34.100 / 52. 34.100                                                                              
  libavcodec     55. 13.100 / 55. 13.100                                                                                                                           
  libavformat    55.  8.102 / 55.  8.102                                                                                                                           
  libavdevice    55.  2.100 / 55.  2.100                                                                                                                           
  libavfilter     3. 74.101 /  3. 74.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.                                                                               
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.                                                                
Reading option '-i' ... matched as input file with argument 'hdmv_pgs_subtitle_remux_fail.m2ts'.                                                                   
Finished splitting the commandline.                                                                                                                                
Parsing a group of options: global .                                                                                                                               
Applying option v (set logging level) with argument 9.                                                                                                             
Successfully parsed a group of options.                                                                                                                            
Parsing a group of options: input file hdmv_pgs_subtitle_remux_fail.m2ts.                                                                                          
Successfully parsed a group of options.                                                                                                                            
Opening an input file: hdmv_pgs_subtitle_remux_fail.m2ts.                                                                                                          
[mpegts @ 0x12b3080] Format mpegts probed with size=2048 and score=100                                                                                             
[mpegts @ 0x12b3080] stream=0 stream_type=ea pid=1011 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] stream=1 stream_type=80 pid=1100 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] stream=2 stream_type=81 pid=1101 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] stream=3 stream_type=90 pid=1200 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] stream=4 stream_type=90 pid=1201 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] File position before avformat_find_stream_info() is 0                                                                                         
[mpegts @ 0x12b3080] parser not found for codec pcm_bluray, packets or times may be invalid.                                                                       
[mpegts @ 0x12b3080] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                
    Last message repeated 1 times
[mpegts @ 0x12b3080] parser not found for codec pcm_bluray, packets or times may be invalid.
[NULL @ 0x12b7160] Header: DBFE3BF2                                                                                                                                
[NULL @ 0x12b7160] Advanced Profile level 3:                                                                                                                       
frmrtq_postproc=7, bitrtq_postproc=31                                                                                                                              
LoopFilter=0, ChromaFormat=1, Pulldown=1, Interlace: 0                                                                                                             
TFCTRflag=0, FINTERPflag=0                                                                                                                                         
[NULL @ 0x12b7160] Display extended info:                                                                                                                          
[NULL @ 0x12b7160] Display dimensions: 1920x1080                                                                                                                   
[NULL @ 0x12b7160] Aspect: 1:1                                                                                                                                     
[NULL @ 0x12b7160] Entry point: 1ADFFCEF                                                                                                                           
[NULL @ 0x12b7160] Entry point info:                                                                                                                               
BrokenLink=0, ClosedEntry=0, PanscanFlag=0                                                                                                                         
RefDist=1, Postproc=1, FastUVMC=0, ExtMV=1                                                                                                                         
DQuant=1, VSTransform=1, Overlap=0, Qmode=3                                                                                                                        
[NULL @ 0x12b7160] Header: DBFE3BF2                                                                                                                                
[NULL @ 0x12b7160] Advanced Profile level 3:                                                                                                                       
frmrtq_postproc=7, bitrtq_postproc=31                                                                                                                              
LoopFilter=1, ChromaFormat=1, Pulldown=1, Interlace: 0                                                                                                             
TFCTRflag=0, FINTERPflag=0                                                                                                                                         
[NULL @ 0x12b7160] Display extended info:                                                                                                                          
[NULL @ 0x12b7160] Display dimensions: 1920x1080                                                                                                                   
[NULL @ 0x12b7160] Aspect: 1:1                                                                                                                                     
[NULL @ 0x12b7160] Entry point: 1ADFFCEF                                                                                                                           
[NULL @ 0x12b7160] Entry point info:                                                                                                                               
BrokenLink=0, ClosedEntry=0, PanscanFlag=0                                                                                                                         
RefDist=1, Postproc=1, FastUVMC=0, ExtMV=1                                                                                                                         
DQuant=1, VSTransform=1, Overlap=0, Qmode=3                                                                                                                        
[NULL @ 0x12b7160] Header: DBFE3BF2                                                                                                                                
[NULL @ 0x12b7160] Advanced Profile level 3:                                                                                                                       
frmrtq_postproc=7, bitrtq_postproc=31                                                                                                                              
LoopFilter=1, ChromaFormat=1, Pulldown=1, Interlace: 0                                                                                                             
TFCTRflag=0, FINTERPflag=0                                                                                                                                         
[NULL @ 0x12b7160] Display extended info:                                                                                                                          
[NULL @ 0x12b7160] Display dimensions: 1920x1080                                                                                                                   
[NULL @ 0x12b7160] Aspect: 1:1                                                                                                                                     
[NULL @ 0x12b7160] Entry point: 1ADFFCEF                                                                                                                           
[NULL @ 0x12b7160] Entry point info:                                                                                                                               
BrokenLink=0, ClosedEntry=0, PanscanFlag=0                                                                                                                         
RefDist=1, Postproc=1, FastUVMC=0, ExtMV=1                                                                                                                         
DQuant=1, VSTransform=1, Overlap=0, Qmode=3                                                                                                                        
[mpegts @ 0x12b3080] Probe buffer size limit of 5000000 bytes reached                                                                                              
[mpegts @ 0x12b3080] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x12b3080] Stream #4: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x12b3080] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x12b3080] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[NULL @ 0x12b9020] start time is not set in estimate_timings_from_pts
[NULL @ 0x12b9a60] start time is not set in estimate_timings_from_pts
[mpegts @ 0x12b3080] PES packet size mismatch
[mpegts @ 0x12b3080] File position after avformat_find_stream_info() is 0
Input #0, mpegts, from 'hdmv_pgs_subtitle_remux_fail.m2ts':
  Duration: 00:00:05.22, start: 65.986667, bitrate: 23524 kb/s
  Program 1 
    Stream #0:0[0x1011], 37, 1/90000: Video: vc1 (VC-1 / 0x312D4356), 1920x1080 [SAR 1:1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100], 325, 1/90000: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), s16, 4608 kb/s
    Stream #0:2[0x1101], 50, 1/90000: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Stream #0:3[0x1200], 0, 1/90000: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:4[0x1201], 0, 1/90000: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x12bb7a0] Statistics: 5984400 bytes read, 3 seeks

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.


#2646 FFMPEG HTTP protocol not generation authorization line avformat defect Jun 6, 2013

I have an acti camera, I can send these headers to it to receive an MJPEG stream:

GET /cgi-bin/cmd/system?GET_STREAM HTTP/1.1
User-Agent: Mozilla/5.0 Lavf/55.8.102
Accept: */*
Host: 192.168.1.40
Connection: Close
Range: bytes=0-
Authorization: Basic YWRtaW46MTIzNDU2

However when I run:

ffmpeg -i "http://admin:123456@192.168.1.40/cgi-bin/cmd/system?GET_STREAM"

And capture what it sends with tcpdump, I see it sends these headers:

GET /cgi-bin/cmd/system?GET_STREAM HTTP/1.1
User-Agent: Mozilla/5.0 Lavf/55.8.102
Accept: */*
Range: bytes=0-
Connection: close
Host: 192.168.1.40

Notice there are identical except FFMPEG doesn't generate the Authorization line. Isn't it meant to?

I'm using ffmpeg version N-53816-g55121f3 compiled Jun 4 2013 on Ubuntu 13.04.


#2691 ffmpeg detects 0 channels in audio streams (audio streams are detected after the main loop in find_stream_info) avformat defect Jun 20, 2013

Summary of the bug: ffmpeg does not detect the audio channels if the audio streams don't have any in the first few seconds.

How to reproduce:

vhann@vhanndinateur ~,0 $ foo/ffmpeg -i outputShortest.vobffmpeg version N-54023-g6fe419b Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 14 2013 05:12:40 with gcc 4.6 (Debian 4.6.3-1)
  configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
  libavutil      52. 35.101 / 52. 35.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mpeg @ 0xaaa3060] max_analyze_duration 5000000 reached at 5005000 microseconds
Input #0, mpeg, from 'outputShortest.vob':
  Duration: 00:00:24.46, start: 0.140600, bitrate: 17150 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0x82]: Audio: ac3, 0 channels
    Stream #0:3[0x81]: Audio: ac3, 0 channels
    Stream #0:4[0x80]: Audio: ac3, 0 channels
At least one output file must be specified

-analyzeduration and -probesize make it work though:

vhann@vhanndinateur ~,0 $ foo/ffmpeg -analyzeduration 50000000 -probesize 50000000 -i outputShortest.vob 
ffmpeg version N-54023-g6fe419b Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 14 2013 05:12:40 with gcc 4.6 (Debian 4.6.3-1)
  configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
  libavutil      52. 35.101 / 52. 35.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mpeg @ 0xa8d21e0] max_analyze_duration 50000000 reached at 50032489 microseconds
Input #0, mpeg, from 'outputShortest.vob':
  Duration: 00:00:24.50, start: 0.095889, bitrate: 17118 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:3[0x82]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:4[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
At least one output file must be specified

llogan and vulture both were valuable in figuring the problem.


#2712 remuxing h264 from avi to ts leads to stuttering with WMP undetermined defect Jun 25, 2013

I tried to resample otr Videofiles to avchd so that the video can be played on my Sony TV.

Therefor the h.264 video in the avi container can be copied and the mp3 audio must be reencoded to ac3 audio. See logfile for details.

But on the TV I have bad audio and with windows mediaplayer or vlc the video is not smooth.


#2741 Remuxing dvbsub to mkv fails undetermined defect Jul 2, 2013

Summary of the bug: How to reproduce: an mkv file with subtitles / a video overlaid with subtitles

% ffmpeg -i input.wtv -map 0 -map -0:3 -vcodec libx264 -acodec libmp3lame -scodec copy output.mkv

or

% ffmpeg -i input.wtv -filter_complex "[0:v][0:s]overlay[v]" -map [v] -map 0:a output.mkv

ffmpeg version N-54082-g96b33dd
built on Jun 17 2013 02:10:21 with gcc 4.7.3

The first command get aborted. The error return is

ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 17 2013 02:10:21 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.103 / 55.  8.103
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[wtv @ 000000000249b380] truncated file
    Last message repeated 3 times
[mpeg2video @ 000000000263f620] Invalid frame dimensions 0x0.
    Last message repeated 26 times
[wtv @ 000000000249b380] max_analyze_duration 5000000 reached at 5016000 microseconds
Input #0, wtv, from '16 and Pregnant_Viva_2013_06_13_20_00_00.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : 16 and Pregnant
    WM/SubTitleDescription: Reality series following prospective teenage parents. An aspiring cage fighter strives to be an independent mother.
    genre           : Documentary;Reality TV
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: Viva
    service_name    : Viva
    WM/MediaOriginalChannel: 21
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2012-08-14T23:00:00Z
    WM/MediaOriginalRunTime: 35984082205
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: true
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2013-06-13 19:00:01
    WM/WMRVSeriesUID: !GenericSeries!16 and Pregnant
    WM/WMRVServiceID: !Generated!45f9cf3444c149a4b3532ce756741d6a
    WM/WMRVProgramID: !MCProgram!46241323
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: false
    Duration        : 35994188749
    WM/WMRVEndTime  : 2013-06-13 20:00:01
    WM/WMRVBitrate  : 2.168572
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: 298
    WM/WMRVActualSoftPostPadding: 1
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 372
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4644939472175984804
  Duration: 01:00:03.21, start: 1.449767, bitrate: 2166 kb/s
    Stream #0:0[0x69](eng): Subtitle: dvb_subtitle
    Stream #0:1[0x6a](eng): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x6b]: Video: mpeg2video (Main), yuv420p, 544x576 [SAR 32:17 DAR 16:9], 25 fps, 25 tbr, 10000k tbn, 50 tbc
    Stream #0:3[0x0]: Video: mjpeg, yuvj420p, 189x200 [SAR 96:96 DAR 189:200], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
File 'test.mkv' already exists. Overwrite ? [y/N] [libx264 @ 000000000457f8e0] using SAR=32/17
[libx264 @ 000000000457f8e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 000000000457f8e0] profile High, level 3.0
[libx264 @ 000000000457f8e0] 264 - core 133 r2334 a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'test.mkv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : 16 and Pregnant
    WM/SubTitleDescription: Reality series following prospective teenage parents. An aspiring cage fighter strives to be an independent mother.
    genre           : Documentary;Reality TV
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: Viva
    service_name    : Viva
    WM/MediaOriginalChannel: 21
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2012-08-14T23:00:00Z
    WM/MediaOriginalRunTime: 35984082205
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: true
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2013-06-13 19:00:01
    WM/WMRVSeriesUID: !GenericSeries!16 and Pregnant
    WM/WMRVServiceID: !Generated!45f9cf3444c149a4b3532ce756741d6a
    WM/WMRVProgramID: !MCProgram!46241323
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: false
    Duration        : 35994188749
    WM/WMRVEndTime  : 2013-06-13 20:00:01
    WM/WMRVBitrate  : 2.168572
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: 298
    WM/WMRVActualSoftPostPadding: 1
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 372
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4644939472175984804
    encoder         : Lavf55.8.103
    Stream #0:0(eng): Subtitle: dvb_subtitle
    Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p
    Stream #0:2: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 544x576 [SAR 32:17 DAR 16:9], q=-1--1, 1k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (mp2 -> libmp3lame)
  Stream #0:2 -> #0:2 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
[matroska @ 000000000255fa60] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3532 >= 3461
av_interleaved_write_frame(): Invalid argument

This program is made in America and broadcast on a British TV channel. I don't know what's happening inside. I have tried to translate many episodes of this program and get the same return and abort at different progress level.

I don't know what "Application provided invalid, non montonically increasing av_interleaved_write_frame(): Invalid argument mean. What can I do with it?

So I try to overlay the subtitles on my video using the command provided in the tutorial. I have never made a successful attempt once. The output file is a regular video file which does not contain any subtitles overlaid on it.

During the translation, the return contains a yellow line.

sub2video: rectangle overflowing

How do I tackle this problem?


#2746 Incorrect -to arg working ffmpeg defect Jul 3, 2013

Summary of the bug: I don't know, it bug in -to argument or in documentation. But if follow documentation, -to should stop writing on position, but it work as duration. For example: I want cut fragment from 10 to 20 sec.

ffmpeg -report -ss 10 -i "video\\orig_51d32ada7179a5.91859583.avi" -to 20 test.gif

cutting from 10 to 30 sec

‘-to position (output)’
Stop writing the output at position. position may be a number in seconds, or in hh:mm:ss[.xxx] form.
ffmpeg -version
ffmpeg version N-54362-ge0be3cb
built on Jul  2 2013 22:15:59 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avis
ynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable
-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enabl
e-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-lib
opus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspee
x --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-am
rwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --en
able-libxvid --enable-zlib
libavutil      52. 38.100 / 52. 38.100
libavcodec     55. 18.100 / 55. 18.100
libavformat    55. 11.100 / 55. 11.100
libavdevice    55.  2.100 / 55.  2.100
libavfilter     3. 77.101 /  3. 77.101
libswscale      2.  3.100 /  2.  3.100
libswresample   0. 17.102 /  0. 17.102
libpostproc    52.  3.100 / 52.  3.100

#2750 video buffer problem after cut video undetermined defect Jul 4, 2013

Summary of the bug: How to reproduce:

% ffmpeg -i INPUT.flv -ss 10 -t 40 -vcodec copy -acodec copy OUTPUT.flv
ffmpeg version - 1.0.7

Hi,

we are using ffmpeg to cut video from long video ( say 30 second video from 2 minute video ). we are using above command for that.

With that command, video is cut successfully. but when we are trying to play that video into flash player there is buffering problem. Video is only playing after loading full video content. It is not buffering for long videos and wait till full download.

Please help asap, we need to fix that urgently.

Thanks Keyur doba


#2758 DVD-A LPCM in vob cannot be decoded avformat defect Jul 6, 2013

Summary of the bug: Sample: http://mpchc.omertabeyond.com/incorrect_audio_stream.AOB

This AOB sample is incorrectly detected as PCM audio.

How to reproduce:

% ffplay.exe incorrect_audio_stream.AOB
ffplay version N-54277-gff130d7 Copyright (c) 2003-2013 the FFmpeg developers
  built on Jun 30 2013 01:20:12 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 17.100 / 55. 17.100
  libavformat    55. 10.100 / 55. 10.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from 'incorrect_audio_stream.AOB':sq=    0B f=0/0
  Duration: 00:04:18.27, start: 0.006500, bitrate: 6141 kb/s
    Stream #0:0[0xa0]: Audio: pcm_s16be, 44100 Hz, 2 channels, s16, 1411 kb/s
[pcm_s16be @ 0464b240] Invalid PCM packet, data has size 8 but at least a size of 16 was expected
[pcm_s16be @ 0464b240] Invalid PCM packet, data has size 13 but at least a size of 16 was expected
    Last message repeated 10 times
    ...

#2832 ffmpeg produces broken audio with -async 1 undetermined defect Aug 3, 2013

I uploaded audio_glitch_input.flv to upload.ffmpeg.org/incoming

ffmpeg -nostats -nostdin -probesize 5000000\

-i ./audio_glitch_input.flv -map_metadata -1 -pass 1\ -shortest -apad 512 -b:a 64000 -ac 1 -ar 22050 -async 1 -compression_level 0 -acodec libmp3lame -sn\ -f flv -y audio_glitch_output.flv

ffmpeg version git-2013-05-15-1a36c75 Copyright (c) 2000-2013 the FFmpeg developers

built on May 14 2013 19:05:26 with gcc 4.6 (Ubuntu/Linaro? 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libx264 --enable-libfaac --enable-libmp3lame --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib libavutil 52. 31.100 / 52. 31.100 libavcodec 55. 9.100 / 55. 9.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 67.100 / 3. 67.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100


#3032 ffmpeg fails to stream copy mpeg2 TS file with timestamp discontinuity undetermined defect Oct 7, 2013

Summary of the bug: In some cases when trying to stream copy a TS video file while trimming some video at the beginning and at the end, it fails with an error av_interleaved_write_frame Invalid Argument.

I try to use +genpts to fix the timestamp issues and it still eventually fails.

See below:

without genpts it fails immediately

ffmpeg.2314Custom.exe -y -ss 10 -i "..\0 Channel mp1 Audio - HD.ts" -t 1767 -map 0:
a -map 0:v -vcodec copy -acodec copy test.ts
ffmpeg version N-56896-ga927276 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  5 2013 09:46:09 with gcc 4.8.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-lib
mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enabl
e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r
 --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-
libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
--enable-libzvbi --enable-libcaca --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32 --enab
le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray -
-extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 34.100 / 55. 34.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from '..\0 Channel mp1 Audio - HD.ts':
  Duration: 00:29:47.23, start: 0.266733, bitrate: 11930 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.
97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Output #0, mpegts, to 'test.ts':
  Metadata:
    encoder         : Lavf55.19.100
    Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s
    Stream #0:1: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, max. 11546 kb/s, 29.97 fps, 90k tbn,
29.97 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0277d600] first pts value must be set
av_interleaved_write_frame(): Invalid data found when processing input

with +genpts it fails after a while

ffmpeg.2314Custom.exe -y -fflags +genpts -ss 10 -i "..\0 Channel mp1 Audio - HD.ts"
 -t 1767 -map 0:a -map 0:v -vcodec copy -acodec copy test.ts
ffmpeg version N-56896-ga927276 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  5 2013 09:46:09 with gcc 4.8.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-lib
mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enabl
e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r
 --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-
libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
--enable-libzvbi --enable-libcaca --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32 --enab
le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray -
-extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 34.100 / 55. 34.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from '..\0 Channel mp1 Audio - HD.ts':
  Duration: 00:29:47.23, start: 0.266733, bitrate: 11930 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.
97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Output #0, mpegts, to 'test.ts':
  Metadata:
    encoder         : Lavf55.19.100
    Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s
    Stream #0:1: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, max. 11546 kb/s, 29.97 fps, 90k tbn,
29.97 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 3846245, current: 3846245; changing to 3846246. T
his may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 12494893, current: 12494893; changing to 12494894
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 12756155, current: 12756155; changing to 12756156
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 49636034, current: 49636034; changing to 49636035
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 53491890, current: 53491890; changing to 53491891
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 69885283, current: 69885283; changing to 69885284
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 82714111, current: 82714111; changing to 82714112
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 86557955, current: 86557955; changing to 86557956
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 89648045, current: 89648045; changing to 89648046
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] pts (89747144) < dts (89837234) in stream 1
av_interleaved_write_frame(): Invalid argument

It works fine if the video is converted to mpeg2:

ffmpeg.2314Custom.exe -y -fflags +genpts -ss 10 -i "..\0 Channel mp1 Audio - HD.ts"
 -t 1767 -map 0:a -map 0:v -vcodec mpeg2video -qscale 0 -acodec copy test.ts
ffmpeg version N-56896-ga927276 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  5 2013 09:46:09 with gcc 4.8.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-lib
mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enabl
e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r
 --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-
libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
--enable-libzvbi --enable-libcaca --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32 --enab
le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray -
-extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 34.100 / 55. 34.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from '..\0 Channel mp1 Audio - HD.ts':
  Duration: 00:29:47.23, start: 0.266733, bitrate: 11930 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.
97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
Output #0, mpegts, to 'test.ts':
  Metadata:
    encoder         : Lavf55.19.100
    Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s
    Stream #0:1: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (mpeg2video -> mpeg2video)
Press [q] to stop, [?] for help
[mpeg2video @ 03855700] 00 motion_type at 68 6300:00:58.58 bitrate=33725.0kbits/s dup=55 drop=0
[mpeg2video @ 03855700] 00 motion_type at 16 42
[mpeg2video @ 03855700] 00 motion_type at 5 43
[mpeg2video @ 03855700] ac-tex damaged at 26 44
[mpeg2video @ 03855700] ac-tex damaged at 39 45
[mpeg2video @ 03855700] 00 motion_type at 1 46
[mpeg2video @ 03855700] 00 motion_type at 10 47
[mpeg2video @ 03855700] 00 motion_type at 48 48
[mpeg2video @ 03855700] 00 motion_type at 7 49
[mpeg2video @ 03855700] 00 motion_type at 8 50
[mpeg2video @ 03855700] ac-tex damaged at 4 51
[mpeg2video @ 03855700] 00 motion_type at 10 52
[mpeg2video @ 03855700] 00 motion_type at 8 53
[mpeg2video @ 03855700] 00 motion_type at 9 54
[mpeg2video @ 03855700] ac-tex damaged at 12 55
[mpeg2video @ 03855700] 00 motion_type at 11 56
[mpeg2video @ 03855700] 00 motion_type at 8 57
[mpeg2video @ 03855700] ac-tex damaged at 7 58
[mpeg2video @ 03855700] ac-tex damaged at 3 59
[mpeg2video @ 03855700] 00 motion_type at 4 60
[mpeg2video @ 03855700] 00 motion_type at 13 61
[mpeg2video @ 03855700] ac-tex damaged at 7 62
[mpeg2video @ 03855700] 00 motion_type at 33 63
[mpeg2video @ 03855700] invalid mb type in P Frame at 52 64
[mpeg2video @ 03855700] ac-tex damaged at 16 65
[mpeg2video @ 03855700] 00 motion_type at 4 66
[mpeg2video @ 03855700] 00 motion_type at 15 67
[mpeg2video @ 03855700] Warning MVs not available
[mpeg2video @ 03855700] concealing 3120 DC, 3120 AC, 3120 MV errors in P frame
[mpeg2video @ 03855700] 00 motion_type at 4 16
[mpeg2video @ 03855700] Warning MVs not available
[mpeg2video @ 03855700] concealing 1560 DC, 1560 AC, 1560 MV errors in P frame
[mpeg2video @ 03855700] 00 motion_type at 63 2200:15:51.80 bitrate=26958.3kbits/s dup=631 drop=0
[mpeg2video @ 03855700] Warning MVs not available
[mpeg2video @ 03855700] concealing 120 DC, 120 AC, 120 MV errors in B frame
frame=52958 fps= 46 q=0.0 Lsize= 5407271kB time=00:29:27.00 bitrate=25068.6kbits/s dup=1278 drop=0
video:4921717kB audio:81591kB subtitle:0 global headers:0kB muxing overhead 8.073939%

#3087 Suspicion that valid random access point is not marked as keyframe in AVCHD samples from Panasonic Lumix GH1 (1080i material) avcodec defect Oct 27, 2013

This is a follow-up to #3083.

The issue is very similar here, that I-frames that work as random access points (checked by cutting off the beginning of the file until the packet start of such a frame and it decodes fine) are not marked as keyframes by the parser.

The heuristic introduced to fix #3083

if(h->sps.ref_frame_count <= 1 && h->pps.ref_count[0] <= 1 && s->pict_type == AV_PICTURE_TYPE_I)

s->key_frame = 1;

fails here because both, h->sps.ref_frame_count and h->pps.ref_count[0] are 2.

I understand too little of h264 internals to say how that may be changed but maybe the heuristic does not cover the interlaced case.

I don't know if it has anything to do with it but this material is progressive segmented frame (i.e. progressively scanned but encoded as field pictures).


#3175 audio (aac) silently on streamcopy from mpegts to flv avformat defect Nov 27, 2013

If you do streamcopy from mpegts to flv with audiocodec aac audio in output is silently. Reproduced with internal aac encoder, faac and libfdk_aac. The problem occurs, because AudioSpecificConfig? (ASC) is not written on streamcopy. Bitstream filter aac_adtstoasc_bsf.c writes ASC correctly (line 94-99) but too late (after flv header). If you write ASC in flvenc.c manually, encoded file is written correctly:

--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -397,7 +397,8 @@ static int flv_write_header(AVFormatContext *s)
             if (enc->codec_id == AV_CODEC_ID_AAC) {
                 avio_w8(pb, get_audio_flags(s, enc));
                 avio_w8(pb, 0); // AAC sequence header
-                avio_write(pb, enc->extradata, enc->extradata_size);
+                avio_wb16(pb, 5000); // ^= 0x1388; AAC LC, 22050 Hz, 1 channel
+                //avio_write(pb, enc->extradata, enc->extradata_size);
             } else {
                 avio_w8(pb, enc->codec_tag | FLV_FRAME_KEY); // flags
                 avio_w8(pb, 0); // AVC sequence header

More information about ASC: http://wiki.multimedia.cx/index.php?title=MPEG-4_Audio#Audio_Specific_Config I don't know if you can call bitstream filter before writing flv header.

How to reproduce:

% ffmpeg -re -i /tmp/input.ts -c:v copy -c:a libfaac -b:a 32k -ar 22050 -ac 1 -f mpegts udp://localhost:1234
ffmpeg version N-58470-g3c846fd Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 26 2013 14:56:57 with gcc 4.4.5 (Debian 4.4.5-8)
  configuration: --enable-nonfree --enable-libfaac --enable-libx264 --enable-gpl --enable-libzmq --enable-libfreetype --enable-ffplay --enable-librtmp --enable-libfdk-aac --enable-libmp3lame --enable-libvpx
  libavutil      52. 55.100 / 52. 55.100
  libavcodec     55. 44.100 / 55. 44.100
  libavformat    55. 21.102 / 55. 21.102
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 91.100 /  3. 91.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from '/tmp/input.ts':
  Duration: 00:01:00.00, start: 1.378667, bitrate: 2319 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x101](deu): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 121 kb/s
Output #0, mpegts, to 'udp://localhost:1234':
  Metadata:
    encoder         : Lavf55.21.102
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 90k tbn, 50 tbc
    Stream #0:1(deu): Audio: aac (libfaac), 22050 Hz, mono, s16, 32 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help

% ffmpeg -i udp://localhost:1234 -c copy -bsf:a aac_adtstoasc -f flv output.flv

My intention is to stream one mpegts (with one h264 and multiple languages -> aac) to a local udp port and then steam each language in extra processes to different flash servers.


#3179 Transcoding a transport stream with a timestamp wrap does not work with -copyts undetermined defect Nov 28, 2013

Hello,

I have a sample I specialy crafted to reproduce a problem I'm facing with some streams I'm using.

I split an MPEG-TS file in half and put the second part before the first so timestamps suddenly jumps to a very old value (or very far in the future if we consider there was a timestamp wrap).

When transcoded with ffmpeg it gets stuck just like in ticket #3176 (nb_frames in do_video_out() is huge and ffmpeg duplicates a frame "forever").

If I remove -copyts it does not get stuck.

I uploaded the sample copyts_concatenated_stream.ts on the FTP.

How to reproduce:

% ffmpeg -copyts -i /dump/copyts_concatenated_stream.ts -vcodec libx264 -profile:v baseline -r 12 -g 36 -preset ultrafast -filter:v yadif -f mpegts -y /dev/null
ffmpeg version N-58512-g2459318 Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 28 2013 12:27:19 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/home/aurelien/local --enable-postproc --enable-nonfree --enable-gpl --enable-libfaac --enable-shared --enable-libx264 --extra-cflags=-I/home/aurelien/local/include --extra-ldflags=-L/home/aurelien/local/lib --enable-version3 --disable-optimizations --enable-libfreetype --disable-stripping --enable-libaacplus --enable-libfdk-aac
  libavutil      52. 55.100 / 52. 55.100
  libavcodec     55. 44.100 / 55. 44.100
  libavformat    55. 21.102 / 55. 21.102
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     3. 91.100 /  3. 91.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mp3 @ 0x18135c0] Header missing
[mpeg2video @ 0x1812b60] Invalid frame dimensions 0x0.
[mp3 @ 0x1814a80] Header missing
[mpeg2video @ 0x1812b60] Invalid frame dimensions 0x0.
    Last message repeated 4 times
[mpegts @ 0x180eb00] PES packet size mismatch
Input #0, mpegts, from '/dump/copyts_concatenated_stream.ts':
  Duration: 26:28:51.62, start: 863.036433, bitrate: 0 kb/s
  Program 1230
    Stream #0:0[0x8aa]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 544x576 [SAR 32:17 DAR 16:9], max. 5200 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x90e](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
    Stream #0:2[0x972](fra): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:3[0x9d6](qad): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
[libx264 @ 0x1815c80] using SAR=32/17
[libx264 @ 0x1815c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x1815c80] profile Constrained Baseline, level 2.2
Output #0, mpegts, to '/dev/null':
  Metadata:
    encoder         : Lavf55.21.102
    Stream #0:0: Video: h264 (libx264), yuv420p, 544x576 [SAR 32:17 DAR 16:9], q=-1--1, 90k tbn, 12 tbc
    Stream #0:1(fra): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  Stream #0:1 -> #0:1 (mp2 -> mp2)
Press [q] to stop, [?] for help   
[mp2 @ 0x18135c0] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x18135c0] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x1812b60] 00 motion_type at 0 28
[mpeg2video @ 0x1812b60] 00 motion_type at 0 29
[mpeg2video @ 0x1812b60] 00 motion_type at 18 24
[mpeg2video @ 0x1812b60] invalid mb type in B Frame at 3 32
[mpeg2video @ 0x1812b60] 00 motion_type at 1 33
[mpeg2video @ 0x1812b60] 00 motion_type at 0 34
[mpeg2video @ 0x1812b60] ac-tex damaged at 1 35
[mpeg2video @ 0x1812b60] 00 motion_type at 19 10
[mpeg2video @ 0x1812b60] 00 motion_type at 0 11
[mpeg2video @ 0x1812b60] 00 motion_type at 0 12
[mpeg2video @ 0x1812b60] 00 motion_type at 7 13
[mpeg2video @ 0x1812b60] invalid mb type in B Frame at 1 30
[mpeg2video @ 0x1812b60] 00 motion_type at 0 31
[mpeg2video @ 0x1812b60] 00 motion_type at 15 14
[mpeg2video @ 0x1812b60] invalid cbp -1 at 3 15
[mpeg2video @ 0x1812b60] slice mismatch
[mpeg2video @ 0x1812b60] 00 motion_type at 1 17
[mpeg2video @ 0x1812b60] invalid cbp -1 at 0 18
[mpeg2video @ 0x1812b60] ac-tex damaged at 0 19
[mpeg2video @ 0x1812b60] invalid cbp 0 at 0 20
[mpeg2video @ 0x1812b60] invalid mb type in B Frame at 4 21
[mpeg2video @ 0x1812b60] 00 motion_type at 5 22
[mpeg2video @ 0x1812b60] 00 motion_type at 0 23
[mpeg2video @ 0x1812b60] 00 motion_type at 1 24
[mpeg2video @ 0x1812b60] 00 motion_type at 2 25
[mpeg2video @ 0x1812b60] 00 motion_type at 0 26
[mpeg2video @ 0x1812b60] 00 motion_type at 0 27
[mpeg2video @ 0x1812b60] Warning MVs not available
[mpeg2video @ 0x1812b60] concealing 884 DC, 884 AC, 884 MV errors in B frame

<<< need to Ctrl-C twice to kill ffmpeg from here >>>

#3182 A/V desync when transcoding MPEG-TS streams if an audio track disappears undetermined defect Nov 29, 2013

Hi,

I have some streams that for some unknown reasons (I don't have control on them since it's mainly DVB-S streams) lose audio from time to time.

In some cases a new PMT with only a video track can be found or the audio packets could just disappear. This can last a few seconds or multiple hours (delay for the broadcaster to fix the problem I guess).

In both cases get_input_packet() from process_input() won't see packets with stream_index=audio anymore. ffmpeg will keep encoding the video frames.

The problem is with av_interleaved_write_frame() in write_frame(). This functions waits for all streams to have at least one packet before writing to the output. In this case it will buffer video packets (thus leaking) until another audio packet comes ; and then it will start to write the video packets again but they won't match the audio packets.

I crafted (once again) a sample 'bbb_gap_sound.ts' by deleting some audio packets from an MPEG-TS stream (I don't have a sample where the PMT changes). It's from Big Buck Bunny so there are only music and noises but it's quite easy to spot the A/V desync (the audio disappears at ~37s).

How to reproduce:

ffmpeg -i bbb_gap_sound.ts  -acodec libfdk_aac -b:a 64k -ac 2 -ar 44100 -vcodec libx264 -b:v 800k -s 320x240 /tmp/bbb_encoded.ts
ffmpeg version N-58591-ga677fb6 Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 29 2013 17:58:08 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/home/aurelien/local --enable-postproc --enable-nonfree --enable-gpl --enable-libfaac --enable-shared --enable-libx264 --extra-cflags=-I/home/aurelien/local/include --extra-ldflags=-L/home/aurelien/local/lib --enable-version3 --disable-optimizations --enable-libfreetype --disable-stripping --enable-libaacplus --enable-libfdk-aac
  libavutil      52. 55.100 / 52. 55.100
  libavcodec     55. 44.100 / 55. 44.100
  libavformat    55. 21.102 / 55. 21.102
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     3. 91.100 /  3. 91.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x16a9aa0] non-existing PPS referenced
[h264 @ 0x16a9aa0] non-existing PPS 0 referenced
[h264 @ 0x16a9aa0] decode_slice_header error
[h264 @ 0x16a9aa0] no frame!
[... non-existing PPS messages skipped ...]
[mpegts @ 0x16a5a00] PES packet size mismatch
Input #0, mpegts, from 'bbb_gap_sound.ts':
  Duration: 00:01:58.26, start: 211.763244, bitrate: 988 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 320x240, 24 fps, 24 tbr, 90k tbn, 48 tbc
    Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 64 kb/s
[libx264 @ 0x16abb40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x16abb40] profile High, level 2.0
Output #0, mpegts, to '/tmp/bbb_encoded.ts':
  Metadata:
    encoder         : Lavf55.21.102
    Stream #0:0: Video: h264 (libx264), yuv420p, 320x240, q=-1--1, 800 kb/s, 90k tbn, 24 tbc
    Stream #0:1(eng): Audio: aac (libfdk_aac), 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> libfdk_aac)
Press [q] to stop, [?] for help
[mpegts @ 0x16a5a00] PES packet size mismatchme=00:01:53.16 bitrate= 616.6kbits/s dup=32 drop=0
[h264 @ 0x228af80] error while decoding MB 4 13, bytestream (-40)
[h264 @ 0x228af80] concealing 85 DC, 85 AC, 85 MV errors in P frame
frame= 2839 fps=601 q=-1.0 Lsize=   14116kB time=00:01:58.20 bitrate= 978.2kbits/s dup=33 drop=0
video:12165kB audio:565kB subtitle:0 global headers:0kB muxing overhead 10.884066%

#3262 Interlaced VC-1 flat spots on static scenes. avcodec defect Dec 31, 2013

When playing interlaced VC-1 video (Doctor Who episodes 1080p) the video playback is now smooth, but the longer a scene goes with out alot of motion the more flat spots start to form. Can be verified by playing in any video player in software decode mode that is built with ffmpeg (yes I rebuilt after doing a git build)

version: ffmpeg version N-59422-g828ac6d


#3265 Trouble with WebM and FFserver ffserver defect Jan 3, 2014

I cannot get webM to work with FFserver git-master, it will only work with FFserver v1.0.8. In 1.0.8 if i add a x264 stream to the same feed as the webm stream, the feed will no longer keep the ffmpeg input going. and get the same error below.

Command: /home/pferland/bin/ffmpeg -v 9 -loglevel 99 -i /mnt/e/Shows/Bobs\ Burgers/Season?\ 02/bobs.burgers.207.hdtv-lol.avi -ss 00:00:00 http://172.16.0.57:8090/feed1.ffm

Error: av_interleaved_write_frame(): Connection reset by peer

ffserver.conf:

Port 8090 BindAddress? 172.16.0.57 MaxHTTPConnections 2000 MaxClients? 1000 MaxBandwidth? 10000 CustomLog? /var/log/ffserver/access.log

<Feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize? 6GB </Feed>

<Stream stream1.webm>

Feed feed1.ffm Format webm

AudioCodec? vorbis AudioBitRate? 64 AudioChannels? 2 AudioSampleRate? 44100

VideoCodec? libvpx VideoSize? hd720 VideoFrameRate? 25 VideoBitRate? 400 VideoQMin 10 VideoQMax 31 VideoGopSize? 12

AVOptionVideo flags +global_header AVOptionAudio flags +global_header PreRoll? 15 StartSendOnKey?

</Stream>

FFmpeg full verbose output:

ffmpeg version N-59486-g2e59ffb Copyright (c) 2000-2014 the FFmpeg developers

built on Jan 2 2014 17:54:30 with gcc 4.6 (Ubuntu/Linaro? 4.6.3-1ubuntu5) configuration: --prefix=/home/pferland/ffmpeg_build --extra-cflags=-I/home/pferland/ffmpeg_build/include --extra-ldflags=-L/home/pferland/ffmpeg_build/lib --bindir=/home/pferland/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree libavutil 52. 59.100 / 52. 59.100 libavcodec 55. 47.100 / 55. 47.100 libavformat 55. 22.102 / 55. 22.102 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.103 / 4. 0.103 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100

Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'. Reading option '-i' ... matched as input file with argument '/mnt/e/Shows/Bobs Burgers/Season? 02/bobs.burgers.207.hdtv-lol.avi'. Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '00:00:00'. Reading option 'http://172.16.0.57:8090/feed1.ffm' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument 9. Successfully parsed a group of options. Parsing a group of options: input file /mnt/e/Shows/Bobs Burgers/Season? 02/bobs.burgers.207.hdtv-lol.avi. Successfully parsed a group of options. Opening an input file: /mnt/e/Shows/Bobs Burgers/Season? 02/bobs.burgers.207.hdtv-lol.avi. [avi @ 0x218b940] Format avi probed with size=2048 and score=100 [avi @ 0x218bfe0] use odml:1 [avi @ 0x218b940] Before avformat_find_stream_info() pos: 9912 bytes read:1477376 seeks:4 [h264 @ 0x218c420] no picture [avi @ 0x218b940] All info found rfps: 23.750000 0.011842

Last message repeated 1 times

rfps: 23.833333 0.004720

Last message repeated 1 times

rfps: 23.916667 0.000817

Last message repeated 1 times

rfps: 24.000000 0.000133

Last message repeated 1 times

rfps: 24.083333 0.002669

Last message repeated 1 times

rfps: 24.166667 0.008425

Last message repeated 1 times

rfps: 24.250000 0.017400

Last message repeated 1 times

rfps: 47.666667 0.018878

Last message repeated 1 times

rfps: 47.750000 0.009463

Last message repeated 1 times

rfps: 47.833333 0.003267

Last message repeated 1 times

rfps: 47.916667 0.000290

Last message repeated 1 times

rfps: 48.000000 0.000533

Last message repeated 1 times

rfps: 48.083333 0.003995

Last message repeated 1 times

rfps: 48.166667 0.010677

Last message repeated 1 times

rfps: 23.976024 0.000000 rfps: 47.952048 0.000000 [avi @ 0x218b940] After avformat_find_stream_info() pos: 93954 bytes read:1542912 seeks:4 frames:108 Input #0, avi, from '/mnt/e/Shows/Bobs Burgers/Season? 02/bobs.burgers.207.hdtv-lol.avi':

Metadata:

encoder : Lavf54.29.104

Duration: 00:21:21.86, start: 0.000000, bitrate: 465 kb/s

Stream #0:0, 41, 1001/24000: Video: h264 (High) (H264 / 0x34363248), yuv420p, 720x404, 1001/48000, 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc Stream #0:1, 67, 3/125: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s

Successfully opened the file. Parsing a group of options: output file http://172.16.0.57:8090/feed1.ffm. Applying option ss (set the start time offset) with argument 00:00:00. Successfully parsed a group of options. Opening an output file: http://172.16.0.57:8090/feed1.ffm. [http @ 0x218f600] request: GET /feed1.ffm HTTP/1.1 User-Agent: Lavf/55.22.102 Accept: */* Range: bytes=0- Connection: close Host: 172.16.0.57:8090

[http @ 0x218f600] header='HTTP/1.0 200 OK' [http @ 0x218f600] http_code=200 [http @ 0x218f600] header='Pragma: no-cache' [http @ 0x218f600] header='Content-Type: application/x-octet-stream' [http @ 0x218f600] header= [ffm @ 0x224bea0] Format ffm probed with size=2048 and score=101 [AVIOContext @ 0x221dc40] Statistics: 8192 bytes read, 0 seeks [http @ 0x218f600] request: POST /feed1.ffm HTTP/1.1 Transfer-Encoding: chunked User-Agent: Lavf/55.22.102 Accept: */* Connection: close Host: 172.16.0.57:8090

Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:1 @ 0x218b820] Setting 'time_base' to value '1/48000' [graph 0 input from stream 0:1 @ 0x218b820] Setting 'sample_rate' to value '48000' [graph 0 input from stream 0:1 @ 0x218b820] Setting 'sample_fmt' to value 's16p' [graph 0 input from stream 0:1 @ 0x218b820] Setting 'channel_layout' to value '0x3' [graph 0 input from stream 0:1 @ 0x218b820] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x3 [audio format for output stream 0:0 @ 0x21922a0] Setting 'sample_fmts' to value 'fltp' [audio format for output stream 0:0 @ 0x21922a0] Setting 'sample_rates' to value '44100' [audio format for output stream 0:0 @ 0x21922a0] Setting 'channel_layouts' to value '0x3' [audio format for output stream 0:0 @ 0x21922a0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0' [AVFilterGraph @ 0x221dd60] query_formats: 5 queried, 9 merged, 3 already done, 0 delayed [auto-inserted resampler 0 @ 0x224eae0] ch:2 chl:stereo fmt:s16p r:48000Hz -> ch:2 chl:stereo fmt:fltp r:44100Hz [graph 1 input from stream 0:0 @ 0x224daa0] Setting 'video_size' to value '720x404' [graph 1 input from stream 0:0 @ 0x224daa0] Setting 'pix_fmt' to value '0' [graph 1 input from stream 0:0 @ 0x224daa0] Setting 'time_base' to value '1001/24000' [graph 1 input from stream 0:0 @ 0x224daa0] Setting 'pixel_aspect' to value '0/1' [graph 1 input from stream 0:0 @ 0x224daa0] Setting 'sws_param' to value 'flags=2' [graph 1 input from stream 0:0 @ 0x224daa0] Setting 'frame_rate' to value '24000/1001' [graph 1 input from stream 0:0 @ 0x224daa0] w:720 h:404 pixfmt:yuv420p tb:1001/24000 fr:24000/1001 sar:0/1 sws_param:flags=2 [scaler for output stream 0:1 @ 0x224e020] Setting 'w' to value '1280' [scaler for output stream 0:1 @ 0x224e020] Setting 'h' to value '720' [scaler for output stream 0:1 @ 0x224e020] Setting 'flags' to value '0x4' [scaler for output stream 0:1 @ 0x224e020] w:1280 h:720 flags:'0x4' interl:0 [format @ 0x2179740] compat: called with args=[yuv420p] [format @ 0x2179740] Setting 'pix_fmts' to value 'yuv420p' [AVFilterGraph @ 0x224e9c0] query_formats: 6 queried, 5 merged, 0 already done, 0 delayed [scaler for output stream 0:1 @ 0x224e020] w:720 h:404 fmt:yuv420p sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x4 [libvpx @ 0x224cee0] v1.3.0 [libvpx @ 0x224cee0] --prefix=/home/pferland/ffmpeg_build --disable-examples [libvpx @ 0x224cee0] vpx_codec_enc_cfg [libvpx @ 0x224cee0] generic settings

g_usage: 0 g_threads: 0 g_profile: 0 g_w: 320 g_h: 240 g_timebase: {1/30} g_error_resilient: 0 g_pass: 0 g_lag_in_frames: 0

[libvpx @ 0x224cee0] rate control settings

rc_dropframe_thresh: 0 rc_resize_allowed: 0 rc_resize_up_thresh: 60 rc_resize_down_thresh: 30 rc_end_usage: 0 rc_twopass_stats_in: (nil)(0) rc_target_bitrate: 256

[libvpx @ 0x224cee0] quantizer settings

rc_min_quantizer: 4 rc_max_quantizer: 63

[libvpx @ 0x224cee0] bitrate tolerance

rc_undershoot_pct: 100 rc_overshoot_pct: 100

[libvpx @ 0x224cee0] decoder buffer model

rc_buf_sz: 6000 rc_buf_initial_sz: 4000 rc_buf_optimal_sz: 5000

[libvpx @ 0x224cee0] 2 pass rate control settings

rc_2pass_vbr_bias_pct: 50 rc_2pass_vbr_minsection_pct: 0 rc_2pass_vbr_maxsection_pct: 400

[libvpx @ 0x224cee0] keyframing settings

kf_mode: 1 kf_min_dist: 0 kf_max_dist: 128

[libvpx @ 0x224cee0] [libvpx @ 0x224cee0] vpx_codec_enc_cfg [libvpx @ 0x224cee0] generic settings

g_usage: 0 g_threads: 0 g_profile: 0 g_w: 1280 g_h: 720 g_timebase: {1001/24000} g_error_resilient: 0 g_pass: 0 g_lag_in_frames: 25

[libvpx @ 0x224cee0] rate control settings

rc_dropframe_thresh: 0 rc_resize_allowed: 0 rc_resize_up_thresh: 60 rc_resize_down_thresh: 30 rc_end_usage: 0 rc_twopass_stats_in: (nil)(0) rc_target_bitrate: 400

[libvpx @ 0x224cee0] quantizer settings

rc_min_quantizer: 10 rc_max_quantizer: 31

[libvpx @ 0x224cee0] bitrate tolerance

rc_undershoot_pct: 0 rc_overshoot_pct: 100

[libvpx @ 0x224cee0] decoder buffer model

rc_buf_sz: 2000 rc_buf_initial_sz: 1500 rc_buf_optimal_sz: 1666

[libvpx @ 0x224cee0] 2 pass rate control settings

rc_2pass_vbr_bias_pct: 0 rc_2pass_vbr_minsection_pct: 0 rc_2pass_vbr_maxsection_pct: 200

[libvpx @ 0x224cee0] keyframing settings

kf_mode: 1 kf_min_dist: 0 kf_max_dist: 12

[libvpx @ 0x224cee0] [libvpx @ 0x224cee0] vpx_codec_control [libvpx @ 0x224cee0] VP8E_SET_CPUUSED: 1 [libvpx @ 0x224cee0] VP8E_SET_ARNR_MAXFRAMES: 0 [libvpx @ 0x224cee0] VP8E_SET_ARNR_STRENGTH: 3 [libvpx @ 0x224cee0] VP8E_SET_ARNR_TYPE: 3 [libvpx @ 0x224cee0] VP8E_SET_NOISE_SENSITIVITY: 0 [libvpx @ 0x224cee0] VP8E_SET_TOKEN_PARTITIONS: 0 [libvpx @ 0x224cee0] VP8E_SET_STATIC_THRESHOLD: 0 [libvpx @ 0x224cee0] VP8E_SET_CQ_LEVEL: 0 [libvpx @ 0x224cee0] Using deadline: 1000000 Output #0, ffm, to 'http://172.16.0.57:8090/feed1.ffm':

Metadata:

creation_time : now encoder : Lavf55.22.102 Stream #0:0, 0, 1/1000000: Audio: vorbis (libvorbis), 44100 Hz, stereo, fltp, 64 kb/s Stream #0:1, 0, 1/1000000: Video: vp8 (libvpx), yuv420p, 1280x720, 1001/24000, q=10-31, 400 kb/s, 1000k tbn, 23.98 tbc

Stream mapping:

Stream #0:1 -> #0:0 (mp3 -> libvorbis) Stream #0:0 -> #0:1 (h264 -> libvpx)

Press [q] to stop, ? for help [h264 @ 0x22156c0] no picture [h264 @ 0x22167e0] no picture * 2 dup! av_interleaved_write_frame(): Connection reset by peer0.34 bitrate= 192.2kbits/s dup=2 drop=0 [AVIOContext @ 0x221dc40] Statistics: 0 seeks, 2 writeouts

Thanks for the help!


#3267 MP4 chapter metadata issues: weird/superfluous text streams undetermined defect Jan 3, 2014

If I try to create an mp4 file with chapters in it and I do not include -map_metadata:c -1 in my command line, the resulting file will, for some bizarre reason, get a weird text stream tacked on to it invisibly. This stream doesn't show up anywhere in the creation log, and cannot be edited by ffmpeg in any way (trying to modify or add to its metadata has no effect). but a subsequent ffprobe will reveal its presence. My best guess is that this 'stream' contains the chapter metadata, but I am confounded as to why chapter metadata should show up in its own little fake stream while all other metadata is handled transparently. Example with metatst.mp4:

ffmpeg started on 2013-12-30 at 22:02:26
Report written to "ffmpeg-20131230-220226.log"
Command line:
ffmpeg -i metatst.mp4 -report -c copy metatst2.mp4
ffmpeg version N-59275-g9b195dd Copyright (c) 2000-2013 the FFmpeg developers
  built on Dec 21 2013 22:06:20 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 58.101 / 52. 58.101
  libavcodec     55. 45.103 / 55. 45.103
  libavformat    55. 22.100 / 55. 22.100
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  0.100 /  4.  0.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'metatst.mp4'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option 'metatst2.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file metatst.mp4.
Successfully parsed a group of options.
Opening an input file: metatst.mp4.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000357a60] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000357a60] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000357a60] Before avformat_find_stream_info() pos: 485573 bytes read:34864 seeks:1
[h264 @ 000000000035b4c0] Detected GBR colorspace.
[h264 @ 000000000035b4c0] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000357a60] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000357a60] After avformat_find_stream_info() pos: 7081 bytes read:67632 seeks:2 frames:2
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'metatst.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.22.100
  Duration: 00:00:01.13, start: 0.094000, bitrate: 3446 kb/s
    Chapter #0.0: start 0.000000, end 0.500000
    Metadata:
      title           : 
    Chapter #0.1: start 0.500000, end 1.033000
    Metadata:
      title           : 
    Stream #0:0(und), 1, 1/24000: Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), gbrp(tv, GBR), 1280x720 [SAR 1:1 DAR 16:9], 3030 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und), 1, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 410 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Successfully opened the file.
Parsing a group of options: output file metatst2.mp4.
Applying option c (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: metatst2.mp4.
Successfully opened the file.
Output #0, mp4, to 'metatst2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.22.100
    Chapter #0.0: start 0.094000, end 0.594000
    Metadata:
      title           : 
    Chapter #0.1: start 0.594000, end 1.127000
    Metadata:
      title           : 
    Stream #0:0(und), 0, 1/24000: Video: h264 ([33][0][0][0] / 0x0021), gbrp, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 3030 kb/s, 23.98 fps, 24k tbn, 24k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und), 0, 1/48000: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 410 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
No more output streams to write to, finishing.
frame=   27 fps=0.0 q=-1.0 Lsize=     475kB time=00:00:01.10 bitrate=3505.7kbits/s    

video:417kB audio:56kB subtitle:0 global headers:0kB muxing overhead 0.557476%
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0000000002659ec0] Statistics: 86 seeks, 148 writeouts
[AVIOContext @ 0000000000358060] Statistics: 520389 bytes read, 2 seeks
ffprobe started on 2013-12-30 at 22:02:54
Report written to "ffprobe-20131230-220254.log"
Command line:
ffprobe metatst2.mp4 -report
ffprobe version N-59275-g9b195dd Copyright (c) 2007-2013 the FFmpeg developers
  built on Dec 21 2013 22:06:20 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 58.101 / 52. 58.101
  libavcodec     55. 45.103 / 55. 45.103
  libavformat    55. 22.100 / 55. 22.100
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  0.100 /  4.  0.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002fc680] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002fc680] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002fc680] Before avformat_find_stream_info() pos: 486124 bytes read:68179 seeks:3
[h264 @ 000000000030d620] Detected GBR colorspace.
[h264 @ 000000000030d620] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002fc680] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002fc680] After avformat_find_stream_info() pos: 7085 bytes read:100947 seeks:4 frames:2
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'metatst2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.22.100
  Duration: 00:00:01.20, start: 0.000000, bitrate: 3230 kb/s
    Chapter #0.0: start 0.000000, end 0.594000
    Metadata:
      title           : 
    Chapter #0.1: start 0.594000, end 1.127000
    Metadata:
      title           : 
    Stream #0:0(und), 1, 1/24000: Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), gbrp(tv, GBR), 1280x720 [SAR 1:1 DAR 16:9], 3030 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und), 1, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 378 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng), 0, 1/1000: Subtitle: mov_text (text / 0x74786574), 0 kb/s
    Metadata:
      handler_name    : SubtitleHandler
detected 2 logical cores
[AVIOContext @ 0000000000304ca0] Statistics: 100947 bytes read, 4 seeks

Note the third stream (index 2) that only shows up in the ffprobe report. Moreover, as previously mentioned, the only way to prevent this weirdostream from appearing is to include -map_metadata:c -1 (or -map_metadata -1) in the command line. This means that even if there is no actual chapter metadata, one such superfluostream is (aggravatingly) still generated by default (as demonstrated above).


#3317 Drawtext+Alphamerge results in incorrect alpha value avfilter defect Jan 18, 2014

I was trying to create a video of a timer for use in other videos with a transparent background. There doesn't seem to be a transparent video source so I used alphamerge to achieve the same effect.

Unfortunately, drawtext with alphamerge results in a max alpha of 235 not 255.

Running the following 3 commands generates the 3 attatched files. Note that in alpha.png the text has 235 alpha, not 255, and that I can't reproduce without using drawtext directly.

# Drawtext to alphamerge
ffmpeg -f lavfi -r 30 -t 10 -i "color=c=#FFFFFF" -f lavfi -r 30 -t 10 -i "color=c=#000000" -filter_complex "[1]drawtext=text="FFmpeg":fontcolor=white:fontsize=150:fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf[text];[0][text]alphamerge[out]" -map "[out]" -vframes 1 -c:v png -pix_fmt rgba alpha.png

# Saving the drawtext mask on it's own
ffmpeg -f lavfi -r 30 -t 10 -i "color=c=#FFFFFF" -f lavfi -r 30 -t 10 -i "color=c=#000000" -filter_complex "[1]drawtext=text="FFmpeg":fontcolor=white:fontsize=150:fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf[out]" -map "[out]" -vframes 1 -c:v png -pix_fmt rgba noalpha.png

# And applying that mask (No bug here)
ffmpeg -f lavfi -r 30 -t 10 -i "color=c=#FFFFFF" -i noalpha.png -filter_complex "[0][1]alphamerge[out]" -map "[out]" -vframes 1 -c:v png -pix_fmt rgba third.png

#3369 Copying from MPEG TS to MKV fails with "Can't write packet with unknown timestamp" undetermined defect Feb 3, 2014

When copying from a DVB recording of a channel, to change the container type from MPEG TS to Matroska, the copy aborts as soon as it encounters a missing timestamp with the message:

"Can't write packet with unknown timestamp"

The equivalent operation to change the container to MP4 merely reports a warning message and continues encoding to the end of the file:

"pts has no value"

How to reproduce:

% ffmpeg-2014-02-03 -y  -i TestFiles/BBC3HD_Sherlock_Cut.mpg -vcodec copy -acodec copy  -map 0:0 -map 0:15 -map 0:1 test.mkv
ffmpeg version 2.1.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb  3 2014 17:36:04 with gcc 4.3.2 (Debian 4.3.2-1.1)
  configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --disable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --disable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libfreetype --disable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --enable-libzvbi --extra-cflags='-I/home/justin/ffmpeg/x264-2014-01-04/ -I/home/justin/ffmpeg/xvidcore-2014-01-04/src/ -I/home/justin/ffmpeg/libogg-1.3.1/include -I/home/justin/ffmpeg/libtheora-1.1.1/include -I/home/justin/ffmpeg/libvorbis-1.3.3/include -I/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-ldflags='-L/home/justin/ffmpeg/x264-2014-01-04/ -L/home/justin/ffmpeg/xvidcore-2014-01-04/build/generic/=build/ -L/home/justin/ffmpeg/libogg-1.3.1/src/.libs/ -L/home/justin/ffmpeg/libtheora-1.1.1/lib/.libs/ -L/home/justin/ffmpeg/libvorbis-1.3.3/lib/.libs/ -L/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-libs=-ldl
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 49.101 / 55. 49.101
  libavformat    55. 29.100 / 55. 29.100
  libavdevice    55.  7.100 / 55.  7.100
  libavfilter     4.  1.102 /  4.  1.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[mpegts @ 0x93b9de0] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #4: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #5: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #6: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #7: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #8: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #9: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #10: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #11: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #12: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #13: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #14: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #16: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #17: not enough frames to estimate rate; consider increasing probesize
[NULL @ 0x93bf520] start time is not set in estimate_timings_from_pts
[NULL @ 0x93bfd80] start time is not set in estimate_timings_from_pts
[NULL @ 0x93c05e0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93c16e0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93c1f40] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d48e0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d5100] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d5960] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d61c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d6a20] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d72c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d8400] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d8d00] start time is not set in estimate_timings_from_pts
[mpegts @ 0x93b9de0] PES packet size mismatch
    Last message repeated 1 times
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 3 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 5 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 7 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 8 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 9 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 10 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 11 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 12 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 13 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 14 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 16 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 17 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'TestFiles/BBC3HD_Sherlock_Cut.mpg':
  Duration: 00:00:14.26, start: 39086.002622, bitrate: 11765 kb/s
  Program 1 
    Stream #0:0[0x15e0]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x15e2](NAR): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x15e3](eng,eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
    Stream #0:3[0xf06]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:4[0xf07]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:5[0xf09]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:6[0x15e4](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:7[0xf00]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:8[0xf01]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:9[0xf02]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:10[0xf03]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:11[0xf04]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:12[0x911]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:13[0x912]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:14[0x913]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:15[0x15e1](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:16[0x15e5]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:17[0x15e6]: Unknown: none ([5][0][0][0] / 0x0005)
Output #0, matroska, to 'test.mkv':
  Metadata:
    encoder         : Lavf55.29.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 1k tbn, 90k tbc
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s
    Stream #0:2(NAR): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:15 -> #0:1 (copy)
  Stream #0:1 -> #0:2 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x93d9dc0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
[matroska @ 0x93d9dc0] Can't write packet with unknown timestamp
frame=  173 fps=0.0 q=-1.0 Lsize=    6494kB time=00:00:08.06 bitrate=6594.1kbits/s    
video:7021kB audio:395kB subtitle:0 data:0 global headers:0kB muxing overhead -12.425578%

Using '-fflags +genpts' as recommended in some other reports has no effect on the output, thus:

% ffmpeg-2014-02-03 -y -fflags +genpts -i TestFiles/BBC3HD_Sherlock_Cut.mpg -vcodec copy -acodec copy  -map 0:0 -map 0:15 -map 0:1 test.mkv

ffmpeg version 2.1.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb  3 2014 17:36:04 with gcc 4.3.2 (Debian 4.3.2-1.1)
  configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --disable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --disable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libfreetype --disable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --enable-libzvbi --extra-cflags='-I/home/justin/ffmpeg/x264-2014-01-04/ -I/home/justin/ffmpeg/xvidcore-2014-01-04/src/ -I/home/justin/ffmpeg/libogg-1.3.1/include -I/home/justin/ffmpeg/libtheora-1.1.1/include -I/home/justin/ffmpeg/libvorbis-1.3.3/include -I/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-ldflags='-L/home/justin/ffmpeg/x264-2014-01-04/ -L/home/justin/ffmpeg/xvidcore-2014-01-04/build/generic/=build/ -L/home/justin/ffmpeg/libogg-1.3.1/src/.libs/ -L/home/justin/ffmpeg/libtheora-1.1.1/lib/.libs/ -L/home/justin/ffmpeg/libvorbis-1.3.3/lib/.libs/ -L/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-libs=-ldl
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 49.101 / 55. 49.101
  libavformat    55. 29.100 / 55. 29.100
  libavdevice    55.  7.100 / 55.  7.100
  libavfilter     4.  1.102 /  4.  1.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[mpegts @ 0x8545e20] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #4: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #5: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #6: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #7: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #8: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #9: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #10: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #11: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #12: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #13: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #14: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #16: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #17: not enough frames to estimate rate; consider increasing probesize
[NULL @ 0x854b5c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x854be20] start time is not set in estimate_timings_from_pts
[NULL @ 0x854c6e0] start time is not set in estimate_timings_from_pts
[NULL @ 0x854d7a0] start time is not set in estimate_timings_from_pts
[NULL @ 0x854e000] start time is not set in estimate_timings_from_pts
[NULL @ 0x8560960] start time is not set in estimate_timings_from_pts
[NULL @ 0x85611c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x8561a20] start time is not set in estimate_timings_from_pts
[NULL @ 0x8562280] start time is not set in estimate_timings_from_pts
[NULL @ 0x8562ae0] start time is not set in estimate_timings_from_pts
[NULL @ 0x8563340] start time is not set in estimate_timings_from_pts
[NULL @ 0x8564400] start time is not set in estimate_timings_from_pts
[NULL @ 0x8564d00] start time is not set in estimate_timings_from_pts
[mpegts @ 0x8545e20] PES packet size mismatch
    Last message repeated 1 times
[mpegts @ 0x8545e20] Could not find codec parameters for stream 3 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 5 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 7 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 8 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 9 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 10 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 11 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 12 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 13 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 14 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 16 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 17 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'TestFiles/BBC3HD_Sherlock_Cut.mpg':
  Duration: 00:00:14.26, start: 39086.002622, bitrate: 11765 kb/s
  Program 1 
    Stream #0:0[0x15e0]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x15e2](NAR): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x15e3](eng,eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
    Stream #0:3[0xf06]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:4[0xf07]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:5[0xf09]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:6[0x15e4](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:7[0xf00]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:8[0xf01]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:9[0xf02]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:10[0xf03]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:11[0xf04]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:12[0x911]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:13[0x912]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:14[0x913]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:15[0x15e1](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:16[0x15e5]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:17[0x15e6]: Unknown: none ([5][0][0][0] / 0x0005)
Output #0, matroska, to 'test.mkv':
  Metadata:
    encoder         : Lavf55.29.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 1k tbn, 90k tbc
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s
    Stream #0:2(NAR): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:15 -> #0:1 (copy)
  Stream #0:1 -> #0:2 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x8565aa0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
[matroska @ 0x8565aa0] Can't write packet with unknown timestamp
frame=  173 fps=0.0 q=-1.0 Lsize=    6494kB time=00:00:08.06 bitrate=6594.1kbits/s    
video:7021kB audio:395kB subtitle:0 data:0 global headers:0kB muxing overhead -12.425578%

Example file for problem, and the related logs can be found here:

http://usenet.gerph.org/FFMPEG/Copy-BBC-HD-To-MKV-Fails/

  • BBC3HD_Sherlock_Cut.mpg
    • Example file.
  • ffmpeg-fileinfo-2014-02-03.txt
    • Output from "ffmpeg -i" from snapshot as at 2014-02-03.
  • ffmpeg-fileinfo.txt
    • Output from "ffmpeg -i" from 2.1.3.
  • ffmpeg-mkv-copy-fails-2014-02-03+genpts.txt
    • Output from "ffmpeg -fflags +genpts ... test.mkv" from snapshot as at 2014-02-03.
  • ffmpeg-mkv-copy-fails-2014-02-03.txt
    • Output from "ffmpeg ... test.mkv" from snapshot as at 2014-02-03.
  • ffmpeg-mkv-copy-fails.txt
    • Output from "ffmpeg ... test.mkv" from 2.1.3.
  • ffmpeg-mp4-copy-works-2014-02-03.txt
    • Output from "ffmpeg ... test.mp4" from snapshot as at 2014-02-03; for comparison of a working conversion.
  • ffmpeg-mp4-copy-works.txt
    • Output from "ffmpeg ... test.mp4" from 2.1.3; for comparison of a working conversion.

Tested on 2.1.1, 2.1.3 and snapshot from 2014-02-03. All fail in the manner described. The '-fflags +genpts' option has no effect on any of these versions.


#3375 FFmpeg doesn't set the right language code for Dutch tracks avformat defect Feb 10, 2014

Summary of the bug: When remuxing an .mkv file with Dutch audio/subtitle tracks to an .mp4 file, the language code is not set properly, which results in an "unknown" language in programs such as VLC and Subler. After creating a bug report on the Subler site, the developer replied the following:

you need to use an ISO-639-2/T language code as specified in the mp4 specifications. ISO-639-2/B languages code are invalid.

So please make sure FFmpeg uses the right language codes for mp4 files i.e. set the language code for Dutch tracks to 'nld' instead of 'dut'.

How to reproduce:

ffmpeg -i sample.mkv -map 0 sample.mp4
ffmpeg version 2.0.2
built on Oct  8 2013 20:26:27 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.


1 2 3 4 5 6
Note: See TracReports for help on using and creating reports.