Re: [FFmpeg-user] Prores enable all audio channels on output file
----- Original Message -----
From: "Carl Eugen Hoyos" <cehoyos@ag.or.at> To: ffmpeg-user@ffmpeg.org Sent: Friday, 12 December, 2014 15:51:14 Subject: Re: [FFmpeg-user] Prores enable all audio channels on output file
Kevin Wells <kevwells <at> hotmail.co.uk> writes:
I am using this version below, and it is not working, it is disabling all but the first audio channel.
This would be the expected behaviour but I fear this is not always what's happening, I believe there is a ticket open.
This patch is not recommended for release, just a quick solution to enable timecode and all audio tracks. diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 9445417..576e278 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -2130,6 +2130,10 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVMuxContext *mov, (version == 1) ? avio_wb32(pb, 104) : avio_wb32(pb, 92); /* size */ ffio_wfourcc(pb, "tkhd"); avio_w8(pb, version); + if (track->enc->codec_type == AVMEDIA_TYPE_AUDIO || + track->enc->codec_type == AVMEDIA_TYPE_DATA) /* enable all audio & data tracks */ + avio_wb24(pb, 0xf); + else avio_wb24(pb, flags); if (version == 1) { avio_wb64(pb, track->time); @@ -2150,7 +2154,7 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVMuxContext *mov, avio_wb32(pb, 0); /* reserved */ avio_wb32(pb, 0); /* reserved */ avio_wb16(pb, 0); /* layer */ - avio_wb16(pb, group); /* alternate group) */ + avio_wb16(pb, 0x0); /* set alternate group 0 as default ) */ /* Volume, only for audio */ if (track->enc->codec_type == AVMEDIA_TYPE_AUDIO) avio_wb16(pb, 0x0100); Regards Rens
Rens Dijkshoorn-2 wrote
----- Original Message -----
From: "Carl Eugen Hoyos" <
cehoyos@.or
>
To:
ffmpeg-user@
Sent: Friday, 12 December, 2014 15:51:14 Subject: Re: [FFmpeg-user] Prores enable all audio channels on output file
This patch is not recommended for release, just a quick solution to enable timecode and all audio tracks.
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 9445417..576e278 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -2130,6 +2130,10 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVMuxContext *mov, (version == 1) ? avio_wb32(pb, 104) : avio_wb32(pb, 92); /* size */ ffio_wfourcc(pb, "tkhd"); avio_w8(pb, version); + if (track->enc->codec_type == AVMEDIA_TYPE_AUDIO || + track->enc->codec_type == AVMEDIA_TYPE_DATA) /* enable all audio & data tracks */ + avio_wb24(pb, 0xf); + else avio_wb24(pb, flags); if (version == 1) { avio_wb64(pb, track->time); @@ -2150,7 +2154,7 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVMuxContext *mov, avio_wb32(pb, 0); /* reserved */ avio_wb32(pb, 0); /* reserved */ avio_wb16(pb, 0); /* layer */ - avio_wb16(pb, group); /* alternate group) */ + avio_wb16(pb, 0x0); /* set alternate group 0 as default ) */ /* Volume, only for audio */ if (track->enc->codec_type == AVMEDIA_TYPE_AUDIO) avio_wb16(pb, 0x0100);
Regards
Rens
_______________________________________________ ffmpeg-user mailing list
ffmpeg-user@
Could you let me know which lines of code to change in the current libavformat/movenc.c file please? Kind regards. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Prores-enable-all-audio-channels-on... Sent from the FFmpeg-users mailing list archive at Nabble.com.
speedyrazor <kevwells <at> hotmail.co.uk> writes:
Could you let me know which lines of code to change in the current libavformat/movenc.c file please?
The patch in the mail you quoted still applies... Carl Eugen
To: ffmpeg-user@ffmpeg.org From: cehoyos@ag.or.at Date: Sun, 10 May 2015 14:41:33 +0000 Subject: Re: [FFmpeg-user] Prores enable all audio channels on output file
speedyrazor <kevwells <at> hotmail.co.uk> writes:
Could you let me know which lines of code to change in the current libavformat/movenc.c file please?
The patch in the mail you quoted still applies...
Carl Eugen
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Hi Carl, I am able to compile locally using latest from GIT, how do I apply the patch please? Kind regards.
On Sun, May 10, 2015 at 16:28:30 +0000, Kevin Wells wrote:
Hi Carl, I am able to compile locally using latest from GIT, how do I apply the patch please?
Save the patch as a proper email (take caution that copy/pasting can introduce incorrect whitespace or the likes) and the do $ patch libavformat/movenc.c < textfilewithpatch.txt Moritz
Hi Simply from within your ffmpeg git directory patch libavformat/movenc.c my_movenc_patch.txt Just to check patch correctly applied git diff Regards Rens
Date: Sun, 10 May 2015 18:37:37 +0200 From: rens@offlinemedia.nl To: ffmpeg-user@ffmpeg.org Subject: Re: [FFmpeg-user] Prores enable all audio channels on output file Hi Simply from within your ffmpeg git directory patch libavformat/movenc.c my_movenc_patch.txt Just to check patch correctly applied git diff Regards Rens _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Works a treat, all tracks now enabled, just what I wanted. Cheers.
participants (5)
-
Carl Eugen Hoyos -
Kevin Wells -
Moritz Barsnick -
Rens Dijkshoorn -
speedyrazor