Hello Guys!
I'm experiensing some real strange (to me) problem.
I have to extract portions of a video, let's say, one second.

I use
ffmpeg -i origin.mxf -ss 00:00:00.000 -t 00:00:01.000  -c copy -map 0 -y
chunk.mxf

What I get is this:

ffmpeg version 2.8.6-1ubuntu2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.1 (Ubuntu 5.3.1-11ubuntu1) 20160311
  configuration: --prefix=/usr --extra-version=1ubuntu2
--build-suffix=-ffmpeg --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
--cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping
--disable-decoder=libopenjpeg --disable-decoder=libschroedinger
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
--enable-libmodplug --enable-libmp3lame --enable-libopenjpeg
--enable-libopus --enable-libpulse --enable-librtmp
--enable-libschroedinger --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi
--enable-openal --enable-opengl --enable-x11grab --enable-libdc1394
--enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264
--enable-libopencv
  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
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.1 : mono
Guessed Channel Layout for  Input Stream #0.2 : mono
Guessed Channel Layout for  Input Stream #0.3 : mono
Guessed Channel Layout for  Input Stream #0.4 : mono
Guessed Channel Layout for  Input Stream #0.5 : mono
Guessed Channel Layout for  Input Stream #0.6 : mono
Guessed Channel Layout for  Input Stream #0.7 : mono
Guessed Channel Layout for  Input Stream #0.8 : mono
Input #0, mxf, from 'origin.mxf':
  Metadata:
    uid             : 18e7e903-ca5c-4949-b0ec-ef95f190fad0
    generation_uid  : 746fc1f5-2301-4611-86e5-7cbda614c01d
    company_name    : SONY
    product_name    : XDCAM Transfer
    product_version : 650
    application_platform: SONY MXF Development Kit (MacOS X)
    product_uid     : 060e2b34-0401-0103-0e06-012002410200
    modification_date: 2016-06-13 16:48:47
    material_package_umid:
0x060A2B340101010501010D231300000078C2CFAA743544349D741AF7D0CA519D
    timecode        : 01:00:00:00
  Duration: 00:00:39.14, start: 0.000000, bitrate: 60077 kb/s
    Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080
[SAR 1:1 DAR 16:9], 50000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
Output #0, mxf, to 'chunk.mxf':
  Metadata:
    uid             : 18e7e903-ca5c-4949-b0ec-ef95f190fad0
    generation_uid  : 746fc1f5-2301-4611-86e5-7cbda614c01d
    company_name    : SONY
    product_name    : XDCAM Transfer
    product_version : 650
    application_platform: SONY MXF Development Kit (MacOS X)
    product_uid     : 060e2b34-0401-0103-0e06-012002410200
    modification_date: 2016-06-13 16:48:47
    material_package_umid:
0x060A2B340101010501010D231300000078C2CFAA743544349D741AF7D0CA519D
    timecode        : 01:00:00:00
    encoder         : Lavf56.40.101
    Stream #0:0: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 50000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D231300000094EB3E6DAE4145DCB308BC1B1A21FB56
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)
  Stream #0:5 -> #0:5 (copy)
  Stream #0:6 -> #0:6 (copy)
  Stream #0:7 -> #0:7 (copy)
  Stream #0:8 -> #0:8 (copy)
Press [q] to stop, [?] for help
[mxf @ 0x1c07620] -d10_channelcount requires MXF D-10 and will be ignored
    Last message repeated 7 times
[mxf @ 0x1c07620] missing frames
frame=   16 fps=0.0 q=-1.0 Lsize=    3922kB time=00:00:01.00
bitrate=32097.4kbits/s
video:3291kB audio:1126kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown



Seems ok lookin at duration, but the frame= 16 is really strange since the
video is at 29.97fps...

When checking the chunk.mxf

ffprobe version 2.8.6-1ubuntu2 Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 5.3.1 (Ubuntu 5.3.1-11ubuntu1) 20160311
  configuration: --prefix=/usr --extra-version=1ubuntu2
--build-suffix=-ffmpeg --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
--cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping
--disable-decoder=libopenjpeg --disable-decoder=libschroedinger
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
--enable-libmodplug --enable-libmp3lame --enable-libopenjpeg
--enable-libopus --enable-libpulse --enable-librtmp
--enable-libschroedinger --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi
--enable-openal --enable-opengl --enable-x11grab --enable-libdc1394
--enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264
--enable-libopencv
  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
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[mxf @ 0x2396ac0] index entry 15 + TemporalOffset 1 = 16, which is out of
bounds
Input #0, mxf, from 'chunk.mxf':
  Metadata:
    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000
    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001
    company_name    : FFmpeg
    product_name    : OP1a Muxer
    product_version : 56.40.101
    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002
    modification_date: 0-01-01 00:00:00
    material_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599700
    timecode        : 01:00:00:00


  Duration: 00:00:00.53, start: 0.000000, bitrate: 60181 kb/s
    Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080
[SAR 1:1 DAR 16:9], 50000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599701
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599701
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599701
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599701
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599701
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599701
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599701
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599701
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001397071A529471345997071A0052947134599701

The video has ony 0.53s, or 16 frames more or less...

I tried setting the fps by hand, using -to instead of -t but nothing
changes...

Does someone has some idea about it? What am I doing wrong?

Thanks and Best Regards
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to