[Libav-user] h264 / aac in quicktime container, no audio in quicktime

Kam kam187 at gmail.com
Tue Feb 16 12:36:33 CET 2016


Oh i didn't know that, so I need to add the adts headers to it?

If i re-encode the video it works, which is probably adding adts.  Here's
an ffprobe of my resulting video with the above code:

ffprobe -i test.mov
ffprobe version 2.8.6 Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
  configuration:
  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
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf56.40.101

  Duration: 00:00:04.02, start: 0.000000, bitrate: 1711 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc),
720x960, 1651 kb/s, 50.29 fps, 60 tbr, 65536 tbn, 131072 tbc (default)
    Metadata:
      handler_name    : DataHandler

    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 66 kb/s (default)
    Metadata:
      handler_name    : DataHandler


Then if i do:  ffmpeg -i test.mov -strict -2 output.mov

ffprobe -i output.mov
ffprobe version 2.8.6 Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
  configuration:
  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
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf56.40.101

  Duration: 00:00:04.03, start: 0.000000, bitrate: 1569 kb/s
    Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D),
yuv420p, 720x960 [SAR 1:1 DAR 3:4], 1503 kb/s, 60 fps, 60 tbr, 15360 tbn,
60 tbc (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : Lavc56.60.100 mpeg4

    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 76 kb/s (default)
    Metadata:
      handler_name    : DataHandler

On Tue, Feb 16, 2016 at 11:31 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Kam <kam187 at ...> writes:
>
> > I'm pulling out my hair trying to get a h264 and aac (raw
> > with no adts)
>
> I may misunderstand but afair FFmpeg simply doesn't support
> raw aac (without adts).
> Does it work with ffmpeg (the command line tool)?
>
> Carl Eugen
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160216/e5ea3975/attachment.html>


More information about the Libav-user mailing list