Carl Eugen Hoyos
303439bc5f
lavf/mpeg: Support demuxing HEVC in mpeg-ps.
2018-09-27 23:53:21 +02:00
James Almer
819e4e7979
avformat/matroskaenc: reindent after the previous commit
...
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-26 15:17:14 -03:00
James Almer
8439656503
avformat/matroskaenc: refactor checks for allowed codecs in WebM
...
Use the new ff_webm_codec_tags[] array for this purpose.
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-26 15:17:14 -03:00
James Almer
794079e815
avformat/matroskaenc: implement AVOutputFormat.query_codec for webm
...
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-26 15:17:13 -03:00
James Almer
14ac62f9af
avformat/matroskaenc: remove unnecessary additional codec tags
...
They are listed in riff.c already.
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-26 15:17:13 -03:00
Steven Liu
bb660800a5
avformat/utils: move mkdir_p to utils
...
Because it will be used by avformat/segment.c or other module which
need to automatically create sub-directories operation.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org >
2018-09-25 21:57:49 +08:00
Baptiste Coudurier
dc58e33dd3
avformat/utils: set AV_PKT_FLAG_KEY for data packets
2018-09-24 13:51:13 -07:00
James Almer
e50cb8b2f4
avformat/ivfenc: fix writing codec tag
...
The value in AVCodecParameters->codec_tag may not be correct for IVF,
as it's the case when remuxing AV1 streams from mp4, so ignore it and
write the correct value based on codec ID instead.
Reviewed-by: Jan Ekström <jeebjp@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-24 16:15:30 -03:00
James Almer
a068594248
Revert "avformat/matroskaenc: write CodecPrivate in WebM"
...
This reverts commit 4755b6e6d1 .
This change was not necessary. CodecPrivate was being written to WebM
for codecs like AV1 already.
2018-09-21 18:22:37 -03:00
James Almer
4755b6e6d1
avformat/matroskaenc: write CodecPrivate in WebM
...
This is now needed for AV1.
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-21 16:57:32 -03:00
Kagami Hiiragi
cbe5c7ef38
lavf/matroska: Allow AV1 in WebM
...
Nothing prevents it to work except this check. AV1 is already supported
by Matroska muxer and aomenc produces WebM/AV1 files as well.
Signed-off-by: Kagami Hiiragi <kagami@genshiken.org >
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-21 12:20:48 -03:00
Karthick Jeyapal
49c67e79ca
avformat/dashenc: Reduce Muxing overhead for chunked CMAF format
...
SIDX atom being inserted for every MOOF atom increases the muxing overhead.
This behaviour can be disabled for chunked CMAF format by enabling Global SIDX option of mov muxer.
2018-09-19 17:31:56 +05:30
Carl Eugen Hoyos
26902f2ef0
lavf/webvttenc: Always write hours in the timestamp with two characters.
...
Fixes ticket #7442 .
Reviewed-by: Reto Kromer
2018-09-19 18:07:32 +02:00
James Almer
e3981c5a21
avformat/dashenc: Format VP9 profile as decimal instead of Hexadecimal
...
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-17 14:29:46 -03:00
Karthick Jeyapal
422be081a3
avformat/dashenc: Format VP9 bitdepth as decimal instead of Hexadecimal
...
For example bitdepth should be printed as 10 instead of 0A. Thanks to Hendrik Leppkes for pointing this out
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-17 14:29:40 -03:00
Karthick Jeyapal
7ff3d2594f
avformat/dashenc: Format VP9 level as decimal instead of hexadecimal
...
Commit ID 63c69d51c7 fixed the bug in vpcc, get_vp9_level() function, causing this change.
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-17 14:29:40 -03:00
James Almer
63c69d51c7
avformat/vpcc: fix values in VP9 level detection heuristics
...
The levels are stored as decimal values, not hexadecimal.
Reviewed-by: James Zern <jzern@google.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-15 18:06:58 -03:00
Jason Stevens
384dcd66a2
libavformat/mxfenc: fix dnxhr ul typo
...
byte 8 of dnxhr codec ul should be 0x0D
Signed-off-by: Jason Stevens <jay@wizardofthenet.com >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-09-15 20:00:45 +02:00
Carl Eugen Hoyos
0a12af2185
lavf/davs2: Do not mix declarations and code.
...
Fixes the following warning:
libavformat/davs2.c:39:5: warning: ISO C90 forbids mixed declarations and code
2018-09-14 20:55:51 +02:00
hwren
0caa33c60b
lavf: add raw AVS2 demuxer
...
Signed-off-by: hwren <hwrenx@126.com >
Signed-off-by: Steven Liu <lq@chinaffmpeg.org >
2018-09-12 12:13:53 +08:00
Steven Liu
2e5860799b
Revert "lavf: add raw AVS2 demuxer"
...
This reverts commit 1e20ed4382 .
2018-09-12 12:11:25 +08:00
Steven Liu
1e20ed4382
lavf: add raw AVS2 demuxer
...
Signed-off-by: hwren <hwrenx@126.com >
Signed-off-by: Steven Liu <lq@chinaffmpeg.org >
2018-09-12 11:21:59 +08:00
Mark Thompson
ff21d4735e
lavf/Makefile: Fix standalone build of AVS2 muxer
...
Found-by: Paul B Mahol <onemda@gmail.com >
2018-09-11 22:36:58 +01:00
hwren
ed0bd0a71b
lavf: add raw avs2 muxer
...
Signed-off-by: hwren <hwrenx@126.com >
2018-09-11 21:48:49 +01:00
James Almer
092cbbfa74
avformat/tcp: re-add checks for setsockopt return values
...
Originally added in 0ed0af595b and lost
by mistake in ef71ef5f30 .
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-11 15:48:55 -03:00
James Almer
ef71ef5f30
Merge commit '8c76bfacf663ff71cee5264a74d0f9c86addd325'
...
* commit '8c76bfacf663ff71cee5264a74d0f9c86addd325':
tcp: Use ff_connect_parallel for RFC 8305 style connecting
Merged-by: James Almer <jamrial@gmail.com >
2018-09-11 13:54:59 -03:00
James Almer
762c2b5dcd
Merge commit '9b4c3f5aadf54ffd2a6e15746b1fd736379883c4'
...
* commit '9b4c3f5aadf54ffd2a6e15746b1fd736379883c4':
network: Add RFC 8305 style "Happy Eyeballs"/"Fast Fallback" helper function
Merged-by: James Almer <jamrial@gmail.com >
2018-09-11 13:54:30 -03:00
James Almer
f3881c04e9
Merge commit '6a9c00c09d2bc50c0ea64ba092b2f4afc46aa978'
...
* commit '6a9c00c09d2bc50c0ea64ba092b2f4afc46aa978':
tls_openssl: Fix checks for SSL_ERROR_WANT_WRITE in nonblocking operation
Merged-by: James Almer <jamrial@gmail.com >
2018-09-11 13:18:52 -03:00
James Almer
03210fe138
Merge commit '22f98ac19cf29f22b3e1d10314df9503f06fe683'
...
* commit '22f98ac19cf29f22b3e1d10314df9503f06fe683':
network: Check for EINTR in ff_poll_interrupt
Merged-by: James Almer <jamrial@gmail.com >
2018-09-11 13:17:38 -03:00
Karthick Jeyapal
44ee858b6d
avformat/dashenc: Remove muxer overhead from Bandwidth field in DASH manifest
...
Fixes bug id #7386
Muxer overhead calculations was intented for HLS playlist as Apple's mediastreamvalidator tests were failing.
But applying the same fix for DASH manifest proved counterproductive, as Bandwidth can be used for segment name templates.
2018-09-11 17:31:09 +05:30
Karthick Jeyapal
606879ec42
avformat/dashenc: Add CODECS tag to HLS master playlist
2018-09-11 17:30:27 +05:30
Jason Stevens
5632044939
libavformat/mxfenc: add missing dnxhr mxfcontainer essence ULs
...
Add missing dnxhr mxf container essence ULs to the mxf encoder.
This fixes dnxhr mxf files being quarantined by Avid Media Composer.
Signed-off-by: Jason Stevens <jay@wizardofthenet.com >
Reviewed-by: Baptiste Coudurier
2018-09-10 23:17:54 +02:00
James Almer
edafb9f529
avformat/movenc: remove experimental checks for AV1 streams
...
The spec has been finalized.
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-09 17:26:09 -03:00
Justin Ruggles
d2047c14c0
Use QT format for audio sample descriptors depending on stsd version.
...
ISOBMFF does not allow AudioSampleEntryV1 in stsd version 0, so
assume the descriptor format is QTFF SoundDescriptionV1. ISOBMFF does
not define a version 2.
This fixes audio decoding for some MP4 files generated with Apple
tools. The additional fields present in SoundDescriptionV1/V2 need to
be read in order to correctly read additional boxes that contain
information required for decoding the stream.
Fixes #7376 .
Also see: https://github.com/HandBrake/HandBrake/issues/1555
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2018-09-09 19:52:53 +01:00
Dale Curtis
8ef7fb86d6
avformat/utils: Don't calculate duration using AV_NOPTS_VALUE for start_time.
...
Found by ClusterFuzz, https://crbug.com/879852
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-09-09 12:01:07 +02:00
John Stebbins
4cfb01d6ae
lavf/movenc: Fail when codec tag is invalid for format
...
Fixes ticket #6897
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-08 19:08:36 -03:00
John Stebbins
981178f3b0
lavf/movenc: Add GoPro metadata to permitted mp4 "codecs"
...
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-08 19:08:35 -03:00
John Stebbins
3318ac5b9a
lavf/mov: factor out setting codec_id
...
Since it is performed in all cases now.
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-08 19:08:35 -03:00
John Stebbins
c9a992d931
lavf/mov: add AVCodecTag entry for GoPro metadata
...
This allows for validation of the track type
Signed-off-by: James Almer <jamrial@gmail.com >
2018-09-08 19:08:34 -03:00
Paul B Mahol
a5278b672a
avcodec: add RemotelyAnywhere Screen Capture decoder
2018-09-08 15:59:10 +02:00
Steven Liu
7bb90a9449
avformat/dashdec: minus minBufferTime when there have value
...
fix ticket 7382
2018-09-06 13:40:56 +08:00
Marton Balint
6aaf1b504c
avformat/mxfdec: do not use sound essence descriptor quantization bits for bits_per_coded_sample
...
It refers to the uncompressed quantization, therefore is not correct for AAC.
Also change mxf_set_pts to work based on current edit unit if
bits_per_coded_sample is not available.
Fixes error messages in the sample of ticket #7366 .
Signed-off-by: Marton Balint <cus@passwd.hu >
2018-09-05 22:41:09 +02:00
Steven Liu
ad9b4ecc26
avformat/dashdec: refine compute current fragment for presentation_timeoffset mode
...
fix ticket id: #7369 #7382 .
use ((wallclock - availability_start_time) * timescale -presentation_timeoffset) / duration
Signed-off-by: Steven Liu <lq@onvideo.cn >
2018-09-05 14:33:53 +08:00
Steven Liu
d0be0de065
avformat/dashdec: reindent code for previous commit
...
Signed-off-by: Steven Liu <lq@onvideo.cn >
2018-09-05 14:21:33 +08:00
Steven Liu
8eac027cd1
avformat/dashdec: add min_buffer_time process logic
...
if there have min_buffer_time in playlist, use the min_buffer_time
value for realtime.
Signed-off-by: Steven Liu <lq@onvideo.cn >
2018-09-05 14:20:52 +08:00
Steven Liu
e35e915465
avformat/dashdec: add trace message for get the logic output message
...
Signed-off-by: Steven Liu <lq@onvideo.cn >
2018-09-05 14:19:43 +08:00
Steven Liu
a222798ef3
avformat/dashdec: reindent code for previous commit
...
Signed-off-by: Steven Liu <lq@onvideo.cn >
2018-09-05 14:17:03 +08:00
Steven Liu
28578e6143
avformat/dashdec: remove redundant code
...
Signed-off-by: Steven Liu <lq@onvideo.cn >
2018-09-05 14:16:29 +08:00
Steven Liu
e134c20374
avformat/dashdec: refine adaptionset attribute members
...
Signed-off-by: Steven Liu <lq@onvideo.cn >
2018-09-05 14:15:47 +08:00
Steven Liu
f499679e17
avformat/dashdec: refine mpd element of attribute name availabilityEndTime
...
Signed-off-by: Steven Liu <lq@onvideo.cn >
2018-09-05 14:13:56 +08:00