Welcome, Guest
Username Password: Remember me

TOPIC: Codec not supported

Re: Codec not supported 3 years ago #8465

  • drkuli
  • OFFLINE
  • Platinum Boarder
  • Posts: 1415
ffmpeg -i input.mts -acodec aac -vcodec copy output.mp4
i5-2500K@4.5GHz | Asrock Z68 Extreme3 Gen3 | 2x4GB Corsair XMS3 | Radeon HD4850 1GB GDDR3 + Intel HD Graphics 3000 | 2xHP w2408h + Sony PWM14L2 | OCZ Vertex2 40 GB + 2xSamsung HD502HJ | Welland ME751 HDD dock | Liteon iHAS424 | Corsair HX520 | Sharkoon Rebel9 Eco | Win7x64Ult.

Re: Codec not supported 3 years ago #8467

I used this cammand: ffmpeg -i tom.mts -acodec aac -vcodec copy tom.mp4

and got the following reply:

C:\Users\username\Desktop>ffmpeg -i tom.mts -acodec aac -vcodec copy tom.mp4
'ffmpeg' is not recognized as an internal or external command,
operable program or batch file.
Dell Inspiron 560MT. Intel Core 2 Quad Q8300 Processor (2.50GHz, 4MB cache, 1333MHz FSB). 6 GB Dual Channel DDR3 [2x2048 + 2x1024]. 1TB (7200 rpm) SATA Internal HDD (Windows 7 installed), Seagate Barracuda 2 TB internal HDD (Ubuntu Studio 12.04 installed). 2TB WD External 1021 SATA HDD (7200 rpm), ITB Toshiba External HDD (7200 rpm), ATI Radeon HD 5450. Samsung SyncMaster S23B35OH LED monitor. EchoAudio Mia 24/96 soundcard. Windows 7 Home Premium 64 bit SP1. Sony HDR SR10 Handycam.

I am not employed by EditShare. I am a Lightworks user.

Re: Codec not supported 3 years ago #8468

  • drkuli
  • OFFLINE
  • Platinum Boarder
  • Posts: 1415
Put tom.mts and ffmpeg.exe in one folder without any subfolders, navigate to that folder in command prompt window and issue a command being there.
i5-2500K@4.5GHz | Asrock Z68 Extreme3 Gen3 | 2x4GB Corsair XMS3 | Radeon HD4850 1GB GDDR3 + Intel HD Graphics 3000 | 2xHP w2408h + Sony PWM14L2 | OCZ Vertex2 40 GB + 2xSamsung HD502HJ | Welland ME751 HDD dock | Liteon iHAS424 | Corsair HX520 | Sharkoon Rebel9 Eco | Win7x64Ult.

Re: Codec not supported 3 years ago #8471

OK I put the tom.mts file in the ffmpeg folder on the desktop and then navigated to ffmpeg folder in command prompt. Below is the record of what happend.

C:\Users\username>cd desktop

C:\Users\username\Desktop>cd ffmpeg

C:\Users\username\Desktop\ffmpeg>ffmpeg -i tom.mts -acodec aac -vcodec copy tom.mp4

FFmpeg version git-N-28671-gf8b0cd8-Sherpya, Copyright (c) 2000-2011 the FFmpeg
developers
  built on Mar 27 2011 07:24:33 with gcc 4.2.5 20090330 (prerelease) [Sherpya]
  libavutil    50. 40. 0 / 50. 40. 0
  libavcodec   52.115. 0 / 52.115. 0
  libavformat  52.103. 0 / 52.103. 0
  libavdevice  52.  3. 0 / 52.  3. 0
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 13. 0 /  0. 13. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 50.00 (50/1)
Input #0, mpegts, from 'tom.mts':
  Duration: 00:02:38.08, start: 1.000033, bitrate: 17306 kb/s
  Program 1
    Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:
9], 50 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.2[0x1200]: Subtitle: pgssub
encoder 'aac' is experimental and might produce bad results.
Add '-strict experimental' if you want to use it.
Or use the non experimental encoder 'libfaac'.
Dell Inspiron 560MT. Intel Core 2 Quad Q8300 Processor (2.50GHz, 4MB cache, 1333MHz FSB). 6 GB Dual Channel DDR3 [2x2048 + 2x1024]. 1TB (7200 rpm) SATA Internal HDD (Windows 7 installed), Seagate Barracuda 2 TB internal HDD (Ubuntu Studio 12.04 installed). 2TB WD External 1021 SATA HDD (7200 rpm), ITB Toshiba External HDD (7200 rpm), ATI Radeon HD 5450. Samsung SyncMaster S23B35OH LED monitor. EchoAudio Mia 24/96 soundcard. Windows 7 Home Premium 64 bit SP1. Sony HDR SR10 Handycam.

I am not employed by EditShare. I am a Lightworks user.
Last Edit: 3 years ago by shaunthesheep.

Re: Codec not supported 3 years ago #8472

  • drkuli
  • OFFLINE
  • Platinum Boarder
  • Posts: 1415
Add -strict experimental after -acodec aac.
i5-2500K@4.5GHz | Asrock Z68 Extreme3 Gen3 | 2x4GB Corsair XMS3 | Radeon HD4850 1GB GDDR3 + Intel HD Graphics 3000 | 2xHP w2408h + Sony PWM14L2 | OCZ Vertex2 40 GB + 2xSamsung HD502HJ | Welland ME751 HDD dock | Liteon iHAS424 | Corsair HX520 | Sharkoon Rebel9 Eco | Win7x64Ult.

Re: Codec not supported 3 years ago #8473

OK I added -strict experimental and here is the result. Familiar? Our old friend the FFMPEG bug. An mp4 file was generated but it was only 126 kB in size and obviously does not play.

The following line is red:

[mp4 @ 03e55020] Application provided invalid, non monotonically increasing dts
to muxer in stream 0: 1 >= 1


C:\Users\username>cd desktop

C:\Users\username\Desktop>cd ffmpeg

C:\Users\username\Desktop\ffmpeg>ffmpeg -i tom.mts -acodec aac -strict experimental
 -vcodec copy tom.mp4
FFmpeg version git-N-28671-gf8b0cd8-Sherpya, Copyright (c) 2000-2011 the FFmpeg
developers
  built on Mar 27 2011 07:24:33 with gcc 4.2.5 20090330 (prerelease) [Sherpya]
  libavutil    50. 40. 0 / 50. 40. 0
  libavcodec   52.115. 0 / 52.115. 0
  libavformat  52.103. 0 / 52.103. 0
  libavdevice  52.  3. 0 / 52.  3. 0
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 13. 0 /  0. 13. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 50.00 (50/1)
Input #0, mpegts, from 'tom.mts':
  Duration: 00:02:38.08, start: 1.000033, bitrate: 17306 kb/s
  Program 1
    Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:
9], 50 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.2[0x1200]: Subtitle: pgssub
Output #0, mp4, to 'tom.mp4':
  Metadata:
    encoder         : Lavf52.103.0
    Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31,
25 tbn, 25 tbc
    Stream #0.1: Audio: libfaac, 48000 Hz, 5.1, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[mp4 @ 03e55020] Application provided invalid, non monotonically increasing dts
to muxer in stream 0: 1 >= 1
av_interleaved_write_frame(): Invalid data found when processing input


But thanks for your assistance drkuli.
Dell Inspiron 560MT. Intel Core 2 Quad Q8300 Processor (2.50GHz, 4MB cache, 1333MHz FSB). 6 GB Dual Channel DDR3 [2x2048 + 2x1024]. 1TB (7200 rpm) SATA Internal HDD (Windows 7 installed), Seagate Barracuda 2 TB internal HDD (Ubuntu Studio 12.04 installed). 2TB WD External 1021 SATA HDD (7200 rpm), ITB Toshiba External HDD (7200 rpm), ATI Radeon HD 5450. Samsung SyncMaster S23B35OH LED monitor. EchoAudio Mia 24/96 soundcard. Windows 7 Home Premium 64 bit SP1. Sony HDR SR10 Handycam.

I am not employed by EditShare. I am a Lightworks user.
Last Edit: 3 years ago by shaunthesheep.
Time to create page: 1.35 seconds