java linux ffmpeg视频avi转码mp4 报错 Decoder (codec tscc) not found for input stream #0:0

ffmpeg安装好后又装了libX264,ffmpeg -version能显示出版本信息和编码器
ffmpeg -codescs也有tscc
..V..S tscc TechSmith Screen Capture Codec
D.V.L. tscc2 TechSmith Screen Codec 2

Java代码:

  List<String> commend = new ArrayList<String>();
        commend.add("/usr/softinstall/ffmpeg/bin/./ffmpeg");
        commend.add("-i");
        commend.add("data/video0/4/0485c48656a57f766a96531ee5a93b8f/0485c48656a57f766a96531ee5a93b8f.avi");
         commend.add("-y");
        commend.add("-s");
        commend.add("1280*720");
        commend.add("/data/video0/4/0485c48656a57f766a96531ee5a93b8f/0485c48656a57f766a96531ee5a93b8f.mp4");

完整报错:

================ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
  configuration: --prefix=/usr/softinstall/ffmpeg --enable-gpl --enable-shared --enable-libx264
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, avi, from '/data/video0/4/0485c48656a57f766a96531ee5a93b8f/0485c48656a57f766a96531ee5a93b8f.avi':
  Duration: 00:03:47.00, start: 0.000000, bitrate: 344 kb/s
    Stream #0:0: Video: tscc (tscc / 0x63637374), none, 1364x768, 215 kb/s, 5 fps, 5 tbr, 5 tbn, 5 tbc
    Metadata:
      title           : CamCaptureaecf1a7_Screen.avi 视频 #1
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, mono, fltp, 128 kb/s
    Metadata:
      title           : Microsoft Wave
================form: CamConvertaf0f9c2.wav
Stream mapping:
  Stream #0:0 -> #0:0 (? (?) -> h264 (libx264))
  Stream #0:1 -> #0:1 (mp3 (mp3float) -> aac (native))
Decoder (codec tscc) not found for input stream #0:0

c:fc:fc:mc:pc:ec:gc: c:vc:ec:rc:sc:ic:oc:nc: c:4c:.c:1c: c:Cc:oc:pc:yc:rc:ic:gc:hc:tc: c:(c:cc:)c: c:2c:0c:0c:0c:-c:2c:0c:1c:8c: c:tc:hc:ec: c:Fc:Fc:mc:pc:ec:gc: c:dc:ec:vc:ec:lc:oc:pc:ec:rc:sc:
c: c: c:bc:uc:ic:lc:tc: c:wc:ic:tc:hc: c:gc:cc:cc: c:4c:.c:8c:.c:5c: c:(c:Gc:Cc:Cc:)c: c:2c:0c:1c:5c:0c:6c:2c:3c: c:(c:Rc:ec:dc: c:Hc:ac:tc: c:4c:.c:8c:.c:5c:-c:4c:4c:)c:
c:,c: c:fc:lc:tc:pc:,c: c:1c:2c:8c: c:kc:bc:/c:sc:
c: c: c: c: c:Mc:ec:tc:ac:dc:ac:tc:ac::c:
c: c: c: c: c: c: c:tc:ic:tc:lc:ec: c: c: c: c: c: c: c: c: c: c: c::c: c:Mc:ic:cc:rc:oc:sc:oc:fc:tc: c:Wc:ac:vc:ec:fc:oc:rc:mc::c: c:Cc:ac:mc:Cc:oc:nc:vc:ec:rc:tc:ac:fc:0c:fc:9c:cc:2c:.c:wc:ac:vc:
c:Ac:tc: c:lc:ec:ac:sc:tc: c:oc:nc:ec: c:oc:uc:tc:pc:uc:tc: c:fc:ic:lc:ec: c:mc:uc:sc:tc: c:bc:ec: c:sc:pc:ec:cc:ic:fc:ic:ec:dc:
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
  configuration: --prefix=/usr/softinstall/ffmpeg --enable-gpl --enable-shared --enable-libx264
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, avi, from '/data/video0/4/0485c48656a57f766a96531ee5a93b8f/0485c48656a57f766a96531ee5a93b8f.avi':
  Duration: 00:03:47.00, start: 0.000000, bitrate: 344 kb/s
    Stream #0:0: Video: tscc (tscc / 0x63637374), none, 1364x768, 215 kb/s, 5 fps, 5 tbr, 5 tbn, 5 tbc
    Metadata:
      title           : CamCaptureaecf1a7_Screen.avi ÊÓÆµ #1
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, mono, fltp, 128 kb/s
    Metadata:
      title           : Microsoft Waveform: CamConvertaf0f9c2.wav
At least one output file must be specified

c:fc:fc:mc:pc:ec:gc: c:vc:ec:rc:sc:ic:oc:nc: c:4c:.c:1c: c:Cc:oc:pc:yc:rc:ic:gc:hc:tc: c:(c:cc:)c: c:2c:0c:0c:0c:-c:2c:0c:1c:8c: c:tc:hc:ec: c:Fc:Fc:mc:pc:ec:gc: c:dc:ec:vc:ec:lc:oc:pc:ec:rc:sc:
c: c: c:bc:uc:ic:lc:tc: c:wc:ic:tc:hc: c:gc:cc:cc: c:4c:.c:8c:.c:5c: c:(c:Gc:Cc:Cc:)c: c:2c:0c:1c:5c:0c:6c:2c:3c: c:(c:Rc:ec:dc: c:Hc:ac:tc: c:4c:.c:8c:.c:5c:-c:4c:4c:)c:
c:4c:ac:,c:3c:gc:pc:,c:3c:gc:2c:,c:mc:jc:2c: c:@c: c:0c:xc:1c:ec:8c:ac:3c:4c:0c:]c: c:mc:oc:oc:vc: c:ac:tc:oc:mc: c:nc:oc:tc: c:fc:oc:uc:nc:dc:
c:/c:dc:ac:tc:ac:/c:vc:ic:dc:ec:oc:0c:/c:4c:/c:0c:4c:8c:5c:cc:4c:8c:6c:5c:6c:ac:5c:7c:fc:7c:6c:6c:ac:9c:6c:5c:3c:1c:ec:ec:5c:ac:9c:3c:bc:8c:fc:/c:0c:4c:8c:5c:cc:4c:8c:6c:5c:6c:ac:5c:7c:fc:7c:6c:6c:ac:9c:6c:5c:3c:1c:ec:ec:5c:ac:9c:3c:bc:8c:fc:.c:mc:pc:4c::c: c:Ic:nc:vc:ac:lc:ic:dc: c:dc:ac:tc:ac: c:fc:oc:uc:nc:dc: c:wc:hc:ec:nc: c:pc:rc:oc:cc:ec:sc:sc:ic:nc:gc: c:ic:nc:pc:uc:tc:
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
  configuration: --prefix=/usr/softinstall/ffmpeg --enable-gpl --enable-shared --enable-libx264
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1e8a340] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1e8a340] moov atom not found
/data/video0/4/0485c48656a57f766a96531ee5a93b8f/0485c48656a57f766a96531ee5a93b8f.mp4: Invalid data found when processing input

java.lang.NullPointerException
        at com.nx.manage_media_process.service.impl.MediaProcessServiceImpl.check_video_time(MediaProcessServiceImpl.java:269)
        at com.nx.manage_media_process.service.impl.MediaProcessServiceImpl.generateMp4(MediaProcessServiceImpl.java:247)

求解答!! 急

可以参考下这个帖子,希望对你有帮助: