Quantcast

Firefox supports MP4 FLAC

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Firefox supports MP4 FLAC

zeromux
Hello, FFmpeg talk!

Starting from Firefox 51, you can play FLAC files directly in Firefox. According to their wiki, Firefox 51 also supports "MP4 FLAC"

https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats
> Starting in Firefox 51, you can play MP4 files using the FLAC codec, both with and without MediaSource Extensions and DRM support.

... MediaSource.isTypeSupported('audio/mp4; codecs="flac"')
... true

but I can't really put an FLAC file into an MP4 container.

$ ffmpeg -i a.flac -acodec copy -vn b.mp4
Stream #0:0: Audio: flac, 44100 Hz, stereo (16 bit)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

Any ideas how to make an "MP4 FLAC" file?

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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
|  
Report Content as Inappropriate

Re: Firefox supports MP4 FLAC

Carl Eugen Hoyos-2
2017-02-13 10:11 GMT+01:00  <[hidden email]>:

> $ ffmpeg -i a.flac -acodec copy -vn b.mp4

Complete, uncut console output missing / only
current git head supported on this mailing list.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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
|  
Report Content as Inappropriate

Re: Firefox supports MP4 FLAC

Moritz Barsnick
On Mon, Feb 13, 2017 at 11:43:29 +0100, Carl Eugen Hoyos wrote:
> > $ ffmpeg -i a.flac -acodec copy -vn b.mp4
>
> Complete, uncut console output missing / only
> current git head supported on this mailing list.

Or in other words: If you refer to the newest version of Firefox, you
should also test the newest version of ffmpeg (in this case really the
newest git, not the latest release).

With recent git, this is what you should be getting:
$ ffmpeg -i noise.flac -c copy noise.mp4 -y
[...]
[mp4 @ 0xb748540] track 0: codec frame size is not set
[mp4 @ 0xb748540] FLAC in MP4 support is experimental, add '-strict -2' if you want to use it.
Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature
[...]

And then instead:
$ ffmpeg -i noise.flac -strict experimental -c copy noise.mp4 -y
[... Just works.]

BTW, I did *not* quote my complete output (unlike what is asked of you), because
we're not debugging *my* ffmpeg issue.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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
|  
Report Content as Inappropriate

Re: Firefox supports MP4 FLAC

zeromux
Hello. I got it working in the git head version. The versions are kind of confusing though.

apt-get version:
> ffmpeg version 2.8.10-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers
>   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
(XXX Too old XXX)

latest stable version:
> ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg  Copyright (c) 2000-2017 the FFmpeg developers
>   built with gcc 5.4.1 (Debian 5.4.1-5) 20170205
> [mp4 @ 0x3b8a260] Could not find tag for codec flac in stream #0, codec not currently supported in container
> Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>     Last message repeated 1 times

git head version:
$ ./ffmpeg -i a.flac -acodec copy -vn b.mp4
> ffmpeg version N-83494-g2b9f92fcc5-static http://johnvansickle.com/ffmpeg  Copyright (c) 2000-2017 the FFmpeg developers
>   built with gcc 5.4.1 (Debian 5.4.1-5) 20170205
> [mp4 @ 0x4bfc0a0] FLAC in MP4 support is experimental, add '-strict -2' if you want to use it.
> Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature

$ ./ffmpeg -i a.flac -strict -2 -acodec copy -vn b.mp4
> [...]
>     Stream #0:0: Audio: flac ([193][0][0][0] / 0x00C1), 44100 Hz, stereo, s16
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
> Press [q] to stop, [?] for help
(Works)

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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
|  
Report Content as Inappropriate

Re: Firefox supports MP4 FLAC

Carl Eugen Hoyos-2
2017-02-13 23:11 GMT+01:00  <[hidden email]>:
> Hello. I got it working in the git head version.

Did you test the output files with Firefox?

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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
|  
Report Content as Inappropriate

Re: Firefox supports MP4 FLAC

zeromux
Yes. It works in Firefox 51.

Firefox 51:
.flac works
.mp4 works

Google Chrome 56:
.flac works
.mp4 does not work (no support?)

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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
|  
Report Content as Inappropriate

Re: Firefox supports MP4 FLAC

Reindl Harald


Am 14.02.2017 um 04:27 schrieb [hidden email]:
> Yes. It works in Firefox 51.
>
> Firefox 51:
> .flac works
> .mp4 works
>
> Google Chrome 56:
> .flac works
> .mp4 does not work (no support?)

define ".mp4" - that can be anything - proper H264 videos are no problem
on *any* browser these days

for mp4 and broad client support you need h264 baseline with AAC audio
and when possible use .m4v as extension - just because a random browser
at a random point of time plays a chimere like MP4+FLAC audio don't mean
that it is wise to create such files
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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
|  
Report Content as Inappropriate

Re: Firefox supports MP4 FLAC

Carl Eugen Hoyos-2
In reply to this post by zeromux
2017-02-14 4:27 GMT+01:00  <[hidden email]>:
> Yes. It works in Firefox 51.
>
> Firefox 51:
> .flac works
> .mp4 works

Thanks for testing.

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

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