Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unspecified pixel format error : on recursive combine.sh operation #4

Open
gitcommitshow opened this issue Jun 6, 2020 · 0 comments

Comments

@gitcommitshow
Copy link
Member

gitcommitshow commented Jun 6, 2020

The script combine.sh gives an output that seems to work but applying any further combine operation on trimmed part of that output are problematic

How to reproduce the error

  1. Use combine.sh to combine two videos
  2. Trim the output video(.mp4) ffmpeg -i outputFrom1.mp4 -ss 00:05 -to 00:17 -c copy problematicVideo.mp4
  3. Use combine.sh operation on problematicVideo.mp4

Result:

ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8 
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --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-libfreetype --enable-gnutls --disable-ffserver --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libtheora --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc --enable-libzimg
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100

**[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3615dc0] **Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x720, 467 kb/s): unspecified pixel format**
Consider increasing the value for the 'analyzeduration' and 'probesize' options**
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'problematicVideo.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.83.100
  Duration: 00:20:35.01, start: 0.010000, bitrate: 651 kb/s
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 1280x720, 467 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 15360 tbn, 30720 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 178 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
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
Too many packets buffered for output stream 0:1.
[aac @ 0x361af40] Qavg: 1144.676
[aac @ 0x361af40] 2 frames left in the queue on closing

How combine.sh works as of this issue creation date

  1. Convert videos to intermediary format(Quicktime container MTS)
    ffmpeg -i clip.flv -q 0 clip.MTS
    ffmpeg -i intro.flv -q 0 intro.MTS

At this point all files have same fps and timescale(90k)

  1. Combine the converted videos
    ? filesToJoin.txt : file intro.MTS \n file clip.MTS \n file outro.MTS

ffmpeg -f concat -i filesToJoin.txt -c copy output.MTS

  1. Convert format of output.MTS to .mp4
    ffmpeg -i output.MTS -q 0 intro.mp4
@gitcommitshow gitcommitshow changed the title Unspecified pixel format error : The file from combine.sh seems to be corrupt Unspecified pixel format error : on recursive combine.sh operation Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant