Giter Site home page Giter Site logo

Comments (5)

opoplawski avatar opoplawski commented on July 20, 2024 1

Googling around on that error it seems that the input file must have bad timestamp values that ffmpeg cannot handle.

from comchap.

opoplawski avatar opoplawski commented on July 20, 2024

The "Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead" message at least seems to be an internal ffmpeg issue and should be harmless.

Here's the edl:

$ cat All\ Our\ Yesterdays.edl
0.00    18.92   0
242.41  496.39  0
874.36  1145.29 0
1790.79 2002.40 0
2932.81 3180.55 0
3692.02 3932.42 0
4187.37 4200.95 0

And the ffmeta:

$ cat All\ Our\ Yesterdays.ffmeta
;FFMETADATA1
[CHAPTER]
TIMEBASE=1/1000
START=0
END=0
[CHAPTER]
TIMEBASE=1/1000
START=0
END=223490
[CHAPTER]
TIMEBASE=1/1000
START=223490
END=601460
[CHAPTER]
TIMEBASE=1/1000
START=601460
END=1246960
[CHAPTER]
TIMEBASE=1/1000
START=1246960
END=2177370
[CHAPTER]
TIMEBASE=1/1000
START=2177370
END=2688840
[CHAPTER]
TIMEBASE=1/1000
START=2688840
END=2943790

So the first issue seems to be a zero length section at the start for some reason.

+ echo ';FFMETADATA1'
+ IFS=' '
+ read -r -a line
+ (( i++ ))
+ end=0.00
++ echo 0.00 - 0
++ bc
++ awk '{printf "%f", $0}'
+ duration=0.000000
+ startnext=18.92
+ hascommercials=true
+ echo '[CHAPTER]'
+ echo TIMEBASE=1/1000
++ echo '(0 - 0) * 1000'
++ bc
++ awk '{printf "%i", $0}'
+ echo START=0
++ echo '(0.00 - 0) * 1000'
++ awk '{printf "%i", $0}'
++ bc
+ echo END=0
+ chapterfile='All Our Yesterdays.part-1.ts'
+ [[ ! -z '' ]]
+ tempfiles+=("$chapterfile")
+ concat='|All Our Yesterdays.part-1.ts'
+ ffmpeg -nostdin -i 'All Our Yesterdays.mpg' -ss 0 -t 0.000000 -c copy -y 'All Our Yesterdays.part-1.ts'

maybe this is normal.

This I think is the real issue:

++ bc
++ echo 0 + 18.92 - 0.00
+ totalcutduration=18.92
+ start=18.92
+ IFS=' '
+ read -r -a line
+ (( i++ ))
+ end=242.41
++ echo 242.41 - 18.92
++ awk '{printf "%f", $0}'
++ bc
+ duration=223.490000
+ startnext=496.39
+ hascommercials=true
+ echo '[CHAPTER]'
+ echo TIMEBASE=1/1000
++ echo '(18.92 - 18.92) * 1000'
++ awk '{printf "%i", $0}'
++ bc
+ echo START=0
++ echo '(242.41 - 18.92) * 1000'
++ bc
++ awk '{printf "%i", $0}'
+ echo END=223490
+ chapterfile='All Our Yesterdays.part-2.ts'
+ [[ ! -z '' ]]
+ tempfiles+=("$chapterfile")
+ concat='|All Our Yesterdays.part-1.ts|All Our Yesterdays.part-2.ts'
+ ffmpeg -nostdin -i 'All Our Yesterdays.mpg' -ss 18.92 -t 223.490000 -c copy -y 'All Our Yesterdays.part-2.ts'
ffmpeg version 3.1.6 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.2.1 (GCC) 20160916 (Red Hat 6.2.1-2)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i686 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --extra-cflags=-I/usr/include/nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i686 --enable-libmfx --enable-runtime-cpudetect
  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
Input #0, mpeg, from 'All Our Yesterdays.mpg':
  Duration: 01:10:01.17, start: 0.982767, bitrate: 2126 kb/s
    Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, fcc/bt470bg/bt470bg), 480x480 [SAR 4:3 DAR 4:3], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
[mpegts @ 0x81df84c0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, mpegts, to 'All Our Yesterdays.part-2.ts':
  Metadata:
    encoder         : Lavf57.41.100
    Stream #0:0: Video: mpeg2video, yuv420p(tv, fcc/bt470bg/bt470bg), 480x480 [SAR 4:3 DAR 4:3], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
[mpegts @ 0x81df84c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[mpegts @ 0x81df84c0] first pts value must be set
av_interleaved_write_frame(): Invalid data found when processing input                                                                                                      
frame=    1 fps=0.0 q=-1.0 Lsize=      14kB time=00:00:00.53 bitrate= 212.8kbits/s speed=6.19x    
video:9kB audio:12kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

from comchap.

BrettSheleski avatar BrettSheleski commented on July 20, 2024

I think it has something to do with a zero-length chapter. Try manually editing the edl and removing the zero length chapter and rerun comcut.

I thought I addressed this before. But apparently not.

from comchap.

BrettSheleski avatar BrettSheleski commented on July 20, 2024

I also see that comcut is still using bc under the hood. @Reed97123 submitted a fix which removed bc and uses awk instead for comchap for a very similar issue. See: #12 for details of that change.

from comchap.

BrettSheleski avatar BrettSheleski commented on July 20, 2024

I removed calls to bc in favor of using awk and also added logic to skip zero-time chapters. See 517116e and 517116e.

Please see if this fixes your issue.

from comchap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.