[FFmpeg-user] Sony XAVC codec errors when trying to clip

Mike Dahman mike.dahman at gmail.com
Thu Jan 23 22:55:08 EET 2020


Thanks Carl - the clipping with -c copy works to a .mov file.

VLC plays the output file although there seems to be something either jumpy
or a little off with the audio, still looking into it, but this helps.

ffmpeg -i C0003.MP4 -ss 00:06:15 -t 00:00:30 -c copy  clip-test.mov
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.16)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2 --enable-shared
--enable-pthreads --enable-version3 --enable-avresample --cc=clang
--host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include
-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin
-fno-stack-check' --host-ldflags= --enable-ffplay --enable-gnutls
--enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame
--enable-libopus --enable-librubberband --enable-libsnappy
--enable-libtesseract --enable-libtheora --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
--enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype
--enable-frei0r --enable-libass --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp
--enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack
--disable-indev=jack
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C0003.MP4':
  Metadata:
    major_brand     : XAVC
    minor_version   : 16785407
    compatible_brands: XAVCmp42iso2
    creation_time   : 2020-01-18T20:40:36.000000Z
  Duration: 00:08:48.03, start: 0.000000, bitrate: 51954 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709/bt709/iec61966-2-4), 1920x1080 [SAR 1:1 DAR 16:9], 49925 kb/s, 59.94
fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
    Metadata:
      creation_time   : 2020-01-18T20:40:36.000000Z
      handler_name    : Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz,
stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2020-01-18T20:40:36.000000Z
      handler_name    : Sound Media Handler
    Stream #0:2(und): Data: none (rtmd / 0x646D7472), 491 kb/s (default)
    Metadata:
      creation_time   : 2020-01-18T20:40:36.000000Z
      handler_name    : Timed Metadata Media Handler
      timecode        : 83:01:01;02
File 'clip-test.mov' already exists. Overwrite ? [y/N] y
Output #0, mov, to 'clip-test.mov':
  Metadata:
    major_brand     : XAVC
    minor_version   : 16785407
    compatible_brands: XAVCmp42iso2
    encoder         : Lavf58.29.100
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709/bt709/iec61966-2-4), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 49925
kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2020-01-18T20:40:36.000000Z
      handler_name    : Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz,
stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2020-01-18T20:40:36.000000Z
      handler_name    : Sound Media Handler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1777 fps=0.0 q=-1.0 Lsize=  187071kB time=00:00:29.98
bitrate=51100.1kbits/s speed=58.5x
video:181415kB audio:5627kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.015658%


On Thu, Jan 23, 2020 at 9:57 AM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

>
>
> > Am 23.01.2020 um 18:02 schrieb Mike Dahman <mike.dahman at gmail.com>:
> >
> > I'm trying to clip a XAVC file on MacOS 10.15.2. In the past, I've used
> > ffmpeg to pull clips from large files so I don't have to pull the whole
> > file into iMovie and clip it there. I just started using the higher
> quality
> > XAVC files, but seem to be running into codec issue.
> >
> > First attempt bombs out with codec pcm_s16be in stream #1, codec not
> > currently supported in container.
>
> Does it work if you use .mov (“I need Apple compatibility”) instead of
> .mp4 (“I don’t care about Apple compatibility”)?
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list