[FFmpeg-devel] [PATCH] examples: add remuxing example

Clément Bœsch u at pkh.me
Sun Jan 19 13:49:40 CET 2014


On Sun, Jan 19, 2014 at 01:47:01PM +0100, Stefano Sabatini wrote:
> Show how to perform streamcopy from one container to another.
> ---
>  doc/examples/Makefile   |   1 +
>  doc/examples/remuxing.c | 164 ++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 165 insertions(+)
>  create mode 100644 doc/examples/remuxing.c
> 
> diff --git a/doc/examples/Makefile b/doc/examples/Makefile
> index f085532..a25455e 100644
> --- a/doc/examples/Makefile
> +++ b/doc/examples/Makefile
> @@ -17,6 +17,7 @@ EXAMPLES=       decoding_encoding                  \
>                  filtering_audio                    \
>                  metadata                           \
>                  muxing                             \
> +                remuxing                           \
>                  resampling_audio                   \
>                  scaling_video                      \
>                  transcode_aac                      \

You need to add it in the configure and doc/Makefile as well,
unfortunately.

> diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c
> new file mode 100644
> index 0000000..5bf1640
> --- /dev/null
> +++ b/doc/examples/remuxing.c
> @@ -0,0 +1,164 @@
> +/*
> + * Copyright (c) 2013 Stefano Sabatini
> + *

Do we want to have copyrights for examples?

> + * Permission is hereby granted, free of charge, to any person obtaining a copy
> + * of this software and associated documentation files (the "Software"), to deal
> + * in the Software without restriction, including without limitation the rights
> + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> + * copies of the Software, and to permit persons to whom the Software is
> + * furnished to do so, subject to the following conditions:
> + *
> + * The above copyright notice and this permission notice shall be included in
> + * all copies or substantial portions of the Software.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
> + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> + * THE SOFTWARE.
> + */
> +
[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140119/a76a6f20/attachment.asc>


More information about the ffmpeg-devel mailing list