<div dir="ltr">Oh i didn't know that, so I need to add the adts headers to it?<div><br></div><div>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:</div><div><br></div><div>
<p class=""><span class="">ffprobe -i test.mov <br></span>ffprobe version 2.8.6 Copyright (c) 2007-2016 the FFmpeg developers<br> built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010<br> configuration: <br> libavutil 54. 31.100 / 54. 31.100<br> libavcodec 56. 60.100 / 56. 60.100<br> libavformat 56. 40.101 / 56. 40.101<br> libavdevice 56. 4.100 / 56. 4.100<br> libavfilter 5. 40.101 / 5. 40.101<br> libswscale 3. 1.101 / 3. 1.101<br> libswresample 1. 2.101 / 1. 2.101</p>
<p class=""><span class="">Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':<br></span> Metadata:<br> major_brand : qt <br> minor_version : 512<br> compatible_brands: qt <br> encoder : Lavf56.40.101</p>
<p class=""><span class=""> Duration: 00:00:04.02, start: 0.000000, bitrate: 1711 kb/s<br></span> 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)<br> Metadata:<br> handler_name : DataHandler</p>
<p class=""><span class=""> Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 66 kb/s (default)<br></span> Metadata:<br> handler_name : DataHandler</p><p class=""><br></p><p class="">Then if i do: ffmpeg -i test.mov -strict -2 output.mov</p><p class=""><span class="">ffprobe -i output.mov <br></span>ffprobe version 2.8.6 Copyright (c) 2007-2016 the FFmpeg developers<br> built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010<br> configuration: <br> libavutil 54. 31.100 / 54. 31.100<br> libavcodec 56. 60.100 / 56. 60.100<br> libavformat 56. 40.101 / 56. 40.101<br> libavdevice 56. 4.100 / 56. 4.100<br> libavfilter 5. 40.101 / 5. 40.101<br> libswscale 3. 1.101 / 3. 1.101<br> libswresample 1. 2.101 / 1. 2.101</p><p class=""><span class="">Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mov':<br></span> Metadata:<br> major_brand : qt <br> minor_version : 512<br> compatible_brands: qt <br> encoder : Lavf56.40.101</p><p class=""><span class=""> Duration: 00:00:04.03, start: 0.000000, bitrate: 1569 kb/s<br></span> 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)<br> Metadata:<br> handler_name : DataHandler<br> encoder : Lavc56.60.100 mpeg4</p><p class=""><span class=""> Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 76 kb/s (default)<br></span> Metadata:<br> handler_name : DataHandler</p>
</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 11:31 AM, Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Kam <kam187@...> writes:<br>
<br>
> I'm pulling out my hair trying to get a h264 and aac (raw<br>
> with no adts)<br>
<br>
</span>I may misunderstand but afair FFmpeg simply doesn't support<br>
raw aac (without adts).<br>
Does it work with ffmpeg (the command line tool)?<br>
<br>
Carl Eugen<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br></div>