[FFmpeg-user] Prores enable all audio channels on output file

speedyrazor kevwells at hotmail.co.uk
Sun May 10 16:11:32 CEST 2015


Rens Dijkshoorn-2 wrote
> ----- Original Message -----
>> From: "Carl Eugen Hoyos" <

> cehoyos at .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@

> http://ffmpeg.org/mailman/listinfo/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-output-file-tp4668458p4670323.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list