[FFmpeg-user] [mp4 @ 00000000002ff260] Malformed AAC bitstream detected:

Simon Thelen ffmpeg-user at c-14.de
Wed Jul 23 18:05:28 CEST 2014


On 23/07/14 at 10:20, Bikash Kumar Sinha wrote:
> q1 - http://www.datafilehost.com/d/ef421240
> a1 - http://www.datafilehost.com/d/d301f7e6
> 
> C:\Bikash\temp\VideoMerge\upload\ffmpeg\bin>ffmpeg -i
> "concat:q1.mp4|a1.mp4" -c copy output.mp4
First of all, the concat protocol won't work with mp4s.
> *[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002ae88a0] Found duplicated MOOV Atom.
> Skipped it*
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:q1.mp4|a1.mp4':
>   Metadata:
>     encoder         : Lavf55.48.101
>     major_brand     : isom
>     minor_version   : 512
>     compatible_brands: isomiso2avc1mp41
>   Duration: 00:00:07.27, start: 0.025057, bitrate: 6497 kb/s
>     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
> 640x360 [SAR 1:1 DAR 16:9], 315 kb/s, 15 fps, 15 tbr, 15360 tbn, 30 tbc
> (default)
>     Metadata:
>       handler_name    : VideoHandler
>     Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo,
> s16p, 136 kb/s (default)
>     Metadata:
>       handler_name    : SoundHandler
> Output #0, mp4, to 'output.mp4':
>   Metadata:
>     compatible_brands: isomiso2avc1mp41
>     major_brand     : isom
>     minor_version   : 512
>     encoder         : Lavf55.48.101
>     Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
> 640x360 [SAR 1:1 DAR 16:9], q=2-31, 315 kb/s, 15 fps, 15360 tbn, 15360 tbc
> (default)
>     Metadata:
>       handler_name    : VideoHandler
>     Stream #0:1(eng): Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo,
> 136 kb/s (default)
>     Metadata:
>       handler_name    : SoundHandler
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>   Stream #0:1 -> #0:1 (copy)
> Press [q] to stop, [?] for help
> frame=  109 fps=0.0 q=-1.0 Lsize=     405kB time=00:00:07.14 bitrate=
> 464.1kbits/s
> video:280kB audio:119kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 1.294278%
Second, I found your problem. q1.mp4 is h264 (High), while a1.mp4 is
h264 (Baseline). This won't work with either the concat protocol or the
concat demuxer (because the codecs aren't the same). You'll have to use
the concat filter (which also means that you will need to reencode the
output). You can read the wiki for help with the filter:
https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files#filter

-- 
Simon Thelen


More information about the ffmpeg-user mailing list