PCM audio in MP4

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

PCM audio in MP4

Peter B.
Hi everyone :)

I'm trying to create .mp4 files with uncompressed, linear PCM for audio
in it.

I know for quite a while already that FFmpeg doesn't allow that:

> [mp4 @ 0x50cc780] Could not find tag for codec pcm_s16le in stream #0,
codec not currently supported in container
> Could not write header for output file #0 (incorrect codec parameters
?): Invalid argument

In my research a few years ago I stumbled over a few sources saying that
MP4 specs didn't allow LPCM for audio [1,2,3].
However, I know that some (Sony) video cameras do produce PCM in .mp4
container, and Wikipedia also lists LPCM as supported audio codec [4] in
MP4.


Experience has shown that "if FFmpeg can't/won't do it - there's a good
reason" :)
May I ask what that reason is?


Thank you very much in advance for any insights,
Peter B.



# Links

[1]
https://stackoverflow.com/questions/17651975/unable-to-store-pcm-audio-in-mp4-container-file
[2] https://forum.doom9.org/archive/index.php/t-140877.html
[3]
https://stackoverflow.com/questions/38309120/ffmpeg-mov-to-mp4-error-could-not-write-header-for-output-file-0-incorrect-co
[4]
https://en.wikipedia.org/wiki/Comparison_of_video_container_formats#Audio_formats_supported

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: PCM audio in MP4

Paul B Mahol
On 7/4/19, Peter B. <[hidden email]> wrote:

> Hi everyone :)
>
> I'm trying to create .mp4 files with uncompressed, linear PCM for audio
> in it.
>
> I know for quite a while already that FFmpeg doesn't allow that:
>
>> [mp4 @ 0x50cc780] Could not find tag for codec pcm_s16le in stream #0,
> codec not currently supported in container
>> Could not write header for output file #0 (incorrect codec parameters
> ?): Invalid argument
>
> In my research a few years ago I stumbled over a few sources saying that
> MP4 specs didn't allow LPCM for audio [1,2,3].
> However, I know that some (Sony) video cameras do produce PCM in .mp4
> container, and Wikipedia also lists LPCM as supported audio codec [4] in
> MP4.
>
>
> Experience has shown that "if FFmpeg can't/won't do it - there's a good
> reason" :)
> May I ask what that reason is?

To follow papers.

Use NUT container for storing raw audio and video.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: PCM audio in MP4

Le Chiffre
In reply to this post by Peter B.
Can you embed wav audio? I seem to remember doing that myself.

On Thu, Jul 4, 2019 at 2:30 AM Peter B. <[hidden email]> wrote:

> Hi everyone :)
>
> I'm trying to create .mp4 files with uncompressed, linear PCM for audio
> in it.
>
> I know for quite a while already that FFmpeg doesn't allow that:
>
> > [mp4 @ 0x50cc780] Could not find tag for codec pcm_s16le in stream #0,
> codec not currently supported in container
> > Could not write header for output file #0 (incorrect codec parameters
> ?): Invalid argument
>
> In my research a few years ago I stumbled over a few sources saying that
> MP4 specs didn't allow LPCM for audio [1,2,3].
> However, I know that some (Sony) video cameras do produce PCM in .mp4
> container, and Wikipedia also lists LPCM as supported audio codec [4] in
> MP4.
>
>
> Experience has shown that "if FFmpeg can't/won't do it - there's a good
> reason" :)
> May I ask what that reason is?
>
>
> Thank you very much in advance for any insights,
> Peter B.
>
>
>
> # Links
>
> [1]
>
> https://stackoverflow.com/questions/17651975/unable-to-store-pcm-audio-in-mp4-container-file
> [2] https://forum.doom9.org/archive/index.php/t-140877.html
> [3]
>
> https://stackoverflow.com/questions/38309120/ffmpeg-mov-to-mp4-error-could-not-write-header-for-output-file-0-incorrect-co
> [4]
>
> https://en.wikipedia.org/wiki/Comparison_of_video_container_formats#Audio_formats_supported
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: PCM audio in MP4

Carl Eugen Hoyos-2
In reply to this post by Peter B.
Am Do., 4. Juli 2019 um 11:30 Uhr schrieb Peter B. <[hidden email]>:

> I'm trying to create .mp4 files with uncompressed, linear
> PCM for audio in it.

It's allowed in mj2 which FFmpeg does not (currently) write.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".