[FFmpeg-devel] segment file realease time
hi all im creating a hls segment file and im seeing that the format wrightsthe m3u8 file when your at about 75 frames into the encoding how can i flush the file sooner im making the segment very small for testing about 0.5 sec per segment any ideas? -- Dan shamir Director of Graphic Technology *d...@idomoo.com * [image: idomoo_logo_moving people NEW email signature] <http://www.idomoo.com/> -- *This email and any files transmitted with it contain information from Idomoo which may be privileged and confidential and intended solely for the use of the addressee. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited; please notify us immediately by* *an **email reply and delete it from your system. Idomoo accepts no liability for any personal views or opinions expressed in this email. Email transmission cannot be guaranteed to be secure or error-free. Idomoo therefore is not liable for any errors or omissions in the contents of this message, which arise as a result of email transmission.* ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] add new decoder or format
hi, i am looking into how to add a custome format or decoder to ffmpeg can someone point me to relevent docs or example so i can get started? thank you very much -- Dan shamir Director of Graphic Technology *d...@idomoo.com * [image: idomoo_logo_moving people NEW email signature] <http://www.idomoo.com/> -- *This email and any files transmitted with it contain information from Idomoo which may be privileged and confidential and intended solely for the use of the addressee. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited; please notify us immediately by* *an **email reply and delete it from your system. Idomoo accepts no liability for any personal views or opinions expressed in this email. Email transmission cannot be guaranteed to be secure or error-free. Idomoo therefore is not liable for any errors or omissions in the contents of this message, which arise as a result of email transmission.* ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] add new decoder or format
Thanks. Any pointers on a format implementation for best guide or starting point? On Jun 5, 2016 2:42 PM, "Ronald S. Bultje" wrote: > Hi Dan, > > On Sun, Jun 5, 2016 at 4:31 AM, Dan Shamir wrote: > > > hi, > > i am looking into how to add a custome format or decoder to ffmpeg > > can someone point me to relevent docs or example so i can get started? > > thank you very much > > > The checklist should be pretty self-explanatory: > https://ffmpeg.org/developer.html#New-codecs-or-formats-checklist > > Ronald > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > -- *This email and any files transmitted with it contain information from Idomoo which may be privileged and confidential and intended solely for the use of the addressee. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited; please notify us immediately by* *an **email reply and delete it from your system. Idomoo accepts no liability for any personal views or opinions expressed in this email. Email transmission cannot be guaranteed to be secure or error-free. Idomoo therefore is not liable for any errors or omissions in the contents of this message, which arise as a result of email transmission.* ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] Adding new code
Hi. A question We have developed a new kind of video file and feel that ffmpeg is a good tool to help spread usage for this format. How does the dev community feel about adding a new decoder/muxer format? -- *This email and any files transmitted with it contain information from Idomoo which may be privileged and confidential and intended solely for the use of the addressee. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited; please notify us immediately by* *an **email reply and delete it from your system. Idomoo accepts no liability for any personal views or opinions expressed in this email. Email transmission cannot be guaranteed to be secure or error-free. Idomoo therefore is not liable for any errors or omissions in the contents of this message, which arise as a result of email transmission.* ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] mp4 format pre definde mov atom
hi all i am creating a fragmented mp4 ffmpeg -y -i input -vcodec nvenc -preset hp -pix_fmt nv12 -g 50 -f mp4 -movflags empty_moov+frag_keyframe out.mp4 and using jwplayer to view this files the problem is i want to view the files when i encode it real-time and jwplayer does not refresh the feed it it loads the mp4 , but just the parts that are ready and does not refresh the player each x secs to see new length of mp4 is there a way to add a fake duration on the mp4 track so you can tell it in advance the duration of the video? -- Dan shamir Director of Graphic Technology *d...@idomoo.com * [image: idomoo_logo_moving people NEW email signature] <http://www.idomoo.com/> -- *This email and any files transmitted with it contain information from Idomoo which may be privileged and confidential and intended solely for the use of the addressee. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited; please notify us immediately by* *an **email reply and delete it from your system. Idomoo accepts no liability for any personal views or opinions expressed in this email. Email transmission cannot be guaranteed to be secure or error-free. Idomoo therefore is not liable for any errors or omissions in the contents of this message, which arise as a result of email transmission.* ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] mp4 format pre definde mov atom
Thank you On Jun 30, 2016 9:56 PM, "Lou Logan" wrote: > On Thu, 30 Jun 2016 17:00:15 +0300, Dan Shamir wrote: > > > hi all > > i am creating a fragmented mp4 > > > > ffmpeg -y -i input -vcodec nvenc -preset hp -pix_fmt nv12 -g 50 -f mp4 > > -movflags empty_moov+frag_keyframe out.mp4 > > > > and using jwplayer to view this files > > the problem is i want to view the files when i encode it real-time > > and jwplayer does not refresh the feed > > > > it it loads the mp4 , but just the parts that are ready and does not > > refresh the player each x secs to see new length of mp4 > > > > is there a way to add a fake duration on the mp4 track so you can tell it > > in advance the duration of the video? > > Wrong mailing list. ffmpeg-devel is only for patch submissions and > discussions related to the development of FFmpeg. Usage questions > involving the FFmpeg cli tools should be asked at ffmpeg-user. > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > -- *This email and any files transmitted with it contain information from Idomoo which may be privileged and confidential and intended solely for the use of the addressee. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited; please notify us immediately by* *an **email reply and delete it from your system. Idomoo accepts no liability for any personal views or opinions expressed in this email. Email transmission cannot be guaranteed to be secure or error-free. Idomoo therefore is not liable for any errors or omissions in the contents of this message, which arise as a result of email transmission.* ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH v10] avformat/dashdec: add dash demuxer base version
-ד-דדש--- On Mar 29, 2017 3:42 PM, "Steven Liu" wrote: v2 fixed: 1. from autodetect to disabled 2. from camelCase code style to ffmpeg code style 3. from RepType to AVMediaType 4. fix variable typo 5. change time value from uint32_t to uint64_t 6. removed be used once API 7. change 'time(NULL)`, except it is not 2038-safe.' to av_gettime and av_timegm 8. merge complex free operation to free_fragment 9. use API from snprintf to av_asprintf v3 fixed: 1. fix typo from --enabled-xml2 to --enable-xml2 v4 fixed: 1. from --enable-xml2 to --enable-libxml2 2. move system includes to top 3. remove nouse includes 4. rename enum name 5. add a trailing comma for the last entry enum 6. fix comment typo 7. add const to DASHContext class front 8. check sscanf if return arguments and give warning message when error 9. check validity before free seg->url and seg 10. check if the val is null, before use atoll v5 fixed: 1. fix typo from mainifest to manifest v6 fixed: 1. from realloc to av_realloc 2. from free to av_free v7 fixed: 1. remove the -lxml2 from configure when require_pkg_config v8 fixed: 1. fix replace filename template by av_asprintf secure problem v9 modified: 1. make manifest parser clearly v10 fixed: 1. fix function API name code style 2. remove redundant strreplace call 3. remove redundant memory operation and check return value from get_content_url() 4. add space between ) and { 5. remove no need to log the value for print Reviewed-by: Clément Bœsch Reviewed-by: Michael Niedermayer Reviewed-by: Carl Eugen Hoyos Reviewed-by: Rodger Combs Reviewed-by: Moritz Barsnick Reviewed-by: Nicolas George Reviewed-by: Ricardo Constantino Signed-off-by: Steven Liu --- configure|4 + libavformat/Makefile |1 + libavformat/allformats.c |2 +- libavformat/dashdec.c| 1851 ++ 4 files changed, 1857 insertions(+), 1 deletion(-) create mode 100644 libavformat/dashdec.c diff --git a/configure b/configure index 9cc7e7d..4a6fe8a 100755 --- a/configure +++ b/configure @@ -273,6 +273,7 @@ External library support: --enable-libxcb-shapeenable X11 grabbing shape rendering [autodetect] --enable-libxvid enable Xvid encoding via xvidcore, native MPEG-4/Xvid encoder exists [no] + --enable-libxml2enable XML parsing using the C library libxml2 [no] --enable-libzimg enable z.lib, needed for zscale filter [no] --enable-libzmq enable message passing via libzmq [no] --enable-libzvbi enable teletext support via libzvbi [no] @@ -1574,6 +1575,7 @@ EXTERNAL_LIBRARY_LIST=" libvpx libwavpack libwebp +libxml2 libzimg libzmq libzvbi @@ -2906,6 +2908,7 @@ avi_muxer_select="riffenc" caf_demuxer_select="iso_media riffdec" caf_muxer_select="iso_media" dash_muxer_select="mp4_muxer" +dash_demuxer_deps="libxml2" dirac_demuxer_select="dirac_parser" dts_demuxer_select="dca_parser" dtshd_demuxer_select="dca_parser" @@ -5908,6 +5911,7 @@ enabled openssl && { use_pkg_config openssl openssl/ssl.h OPENSSL_init check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 || die "ERROR: openssl not found"; } enabled qtkit_indev && { check_header_objcc QTKit/QTKit.h || disable qtkit_indev; } +enabled libxml2 && require_pkg_config libxml-2.0 libxml2/libxml/xmlversion.h xmlCheckVersion # libdc1394 check if enabled libdc1394; then diff --git a/libavformat/Makefile b/libavformat/Makefile index f56ef16..d77ffaa 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -134,6 +134,7 @@ OBJS-$(CONFIG_CRC_MUXER) += crcenc.o OBJS-$(CONFIG_DATA_DEMUXER) += rawdec.o OBJS-$(CONFIG_DATA_MUXER)+= rawenc.o OBJS-$(CONFIG_DASH_MUXER)+= dashenc.o +OBJS-$(CONFIG_DASH_DEMUXER) += dashdec.o OBJS-$(CONFIG_DAUD_DEMUXER) += dauddec.o OBJS-$(CONFIG_DAUD_MUXER)+= daudenc.o OBJS-$(CONFIG_DCSTR_DEMUXER) += dcstr.o diff --git a/libavformat/allformats.c b/libavformat/allformats.c index 09e62c3..d57314b 100644 --- a/libavformat/allformats.c +++ b/libavformat/allformats.c @@ -96,7 +96,7 @@ static void register_all(void) REGISTER_DEMUXER (CINE, cine); REGISTER_DEMUXER (CONCAT, concat); REGISTER_MUXER (CRC, crc); -REGISTER_MUXER (DASH, dash); +REGISTER_MUXDEMUX(DASH, dash); REGISTER_MUXDEMUX(DATA, data); REGISTER_MUXDEMUX(DAUD, daud); REGISTER_DEMUXER (DCSTR,dcstr); diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c new file mode 100644 index 000..6081bd9 --- /dev/null +++ b/libavformat/dashdec.c @@ -0,0 +1,1851 @@ +/* + * Dynamic Adaptive Streaming over HTTP demux + * Copyright (c) 2017 samsam.