[FFmpeg-user] Issue in OUTPUT of lossless cut of a x264 stream - could not find codec parameters for stream

Sub Phil phil4000n at gmail.com
Tue Feb 14 01:40:39 EET 2017


When copying a part of x264 video, ffmpeg -i of the extract reports:
"[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000001e6300] Could not find codec
parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 620x360,
216 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize'
options"

PROBLEM: fails to merge/concat two extract of this same source

It didn't help to use :
ffmpeg -y -analyzeduration 1234567890 -probesize 1234567890 -i "1_1.mp4"
-ss 413 -t 189 -c copy "1_2 la barria2.mp4"

Console output below.

Thanks

First extraction:
F:\dances>ffmpeg -y -i "1_1.mp4" -ss 413 -t 189 -c copy "1_2 la barria2.mp4"
ffmpeg version N-83454-g3aae1ef Copyright (c) 2000-2017 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda
--enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig
--enable-frei0r --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 46.100 / 55. 46.100
  libavcodec     57. 77.100 / 57. 77.100
  libavformat    57. 66.101 / 57. 66.101
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1_1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    genre           : Dance Bachata
    album           :
    title           : VTS_01_1
    encoder         : Lavf55.49.100
  Duration: 00:18:03.42, start: 0.000000, bitrate: 316 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
620x360 [SAR 8:9 DAR 124:81], 207 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 32000 Hz, mono, s16p,
103 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Output #0, mp4, to '1_2 la barria2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    genre           : Dance Bachata
    album           :
    title           : VTS_01_1
    encoder         : Lavf57.66.101
    Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p,
620x360 [SAR 8:9 DAR 124:81], q=2-31, 207 kb/s, 29.97 fps, 29.97 tbr, 30k
tbn, 30k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (i[0][0][0] / 0x0069), 32000 Hz, mono,
s16p, 103 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
frame= 5494 fps=0.0 q=-1.0 Lsize=    7398kB time=00:03:08.97 bitrate=
320.7kbits/s speed=1.09e+003x
video:4852kB audio:2410kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 1.863659%

F:\dances>


Check of extraction:
F:\dances>ffmpeg -i "1_2 la barria2.mp4"
ffmpeg version N-83454-g3aae1ef Copyright (c) 2000-2017 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda
--enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig
--enable-frei0r --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 46.100 / 55. 46.100
  libavcodec     57. 77.100 / 57. 77.100
  libavformat    57. 66.101 / 57. 66.101
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000001e6300] Could not find codec
parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 620x360,
216 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1_2 la barria2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : VTS_01_1
    album           :
    encoder         : Lavf57.66.101
    genre           : Dance Bachata
  Duration: 00:03:09.00, start: 0.011000, bitrate: 320 kb/s
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 620x360, 216
kb/s, SAR 8:9 DAR 124:81, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 32000 Hz, mono, s16p,
104 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
At least one output file must be specified

F:\dances>


More information about the ffmpeg-user mailing list