Himangi Saraogi
d768f8f5cf
ffmpeg: Avoid null pointer dereferences
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Clément Bœsch
c285937ccc
ffmpeg: comment mpeg4 hack
...
See 3734c3ea51
10 years ago
Michael Niedermayer
5ee3a40f1c
ffmpeg: Fix -vstats when coded_frame is not set
...
There are several encoders which do not set coded_frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Nicolas George
d92c6d82c0
ffmpeg: notify when the thread message queue blocks.
...
This can help finding the source of A-V desync with live input.
10 years ago
Nicolas George
508d6a23b4
ffmpeg: allow to set the thread message queue size.
10 years ago
Michael Niedermayer
2384933985
ffmpeg: Print negative times like "-00:05:01.22" instead of "00:-5:-1.-22"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
77f326dc36
ffmpeg: Make CFR frame drop threshold user adjustable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Paul B Mahol
5274860fe2
ffmpeg: remove unused header
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Christophe Gisquet
1fa637d2ef
ffmpeg: free_input_threads requires HAVE_PTHREADS
...
Hide behind that macro to avoid warning on systems with
!HAVE_PTHREADS.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
85d7e02e4a
ffmpeg: allow overriding and amending AVStream->disposition
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
90c98994f6
ffmpeg: Reduce noisiness of frame clipping in rate convertion
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
a582705d15
ffmpeg: Favor filter graph based duration over ost->frame_rate in fps code
...
The fate change adds a last frame with a subtitle not displayed in the previous
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
f96148913b
Fix precission typos
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
d3d9a00bcd
ffmpeg: Use filter graph output frame rate also for frame duration estimation
...
Previously the duration was sometimes wrong, this addition
limits the value and improves which frames are choosen when
reducing the frame rate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
7b32856011
ffmpeg: Maintain higher precision pts between video filter and fps code
...
This is a bit ugly as it attempts to keep most of the computation
in integers before the double based fps code. The use of integers
is to reduce the chances of rounding differences between platforms
Previously the timestamp was rounded to the encoder timebase
before being converted back to double precision which could cause loss
of precision
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
261e8ccbd1
ffmpeg: drop redundant frame_pts value
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Anshul Maheshwari
bb0344dc55
ffmpeg: improve data stream support
...
This adds data codec/stream handling where previously there was only
audio/video/subtitles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
raxon1s
4184d344af
ffmpeg: Add bitrate value under -progress action
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
0409155261
ffmpeg: remove unneeded NULL pointer check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
6d1a2efb8a
ffmpeg: Clear error message array at init.
...
This avoids printing uninitialized bytes if no error message is set
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
78cb3c069d
ffmpeg: Use avio_closep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
627f5658b6
ffmpeg: Use av_freep(), avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Simon Thelen
cc63da1223
ffmpeg: add sdp_file option
...
Allow printing of sdp information to a file specified by -sdp_file
This allows users to print sdp information when at least one of the
outputs isn't an rtp stream.
Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
d2f9aefbde
ffmpeg: Check for subtitle_out malloc failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
28a6f970f6
ffmpeg: forward r_frame_rate to the muxer in case of stream copy
...
Fixes Ticket3629 part2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
242f1152bf
ffmpeg: drop usage of coded_frame
...
It causes all kinds of problems and there is no code in the muxers that reads
this field
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Christophe Gisquet
4c592c3908
ffmpeg: take bsf arguments from the command line
...
The format is now:
-bsf:X filter1[=opt1=str1/opt2=str2],filter2
ie the parameters are appended after the filter name using '='. As ','
has been reserved already for the list of filters, '/' is just an
example of token separation for now, but that could become part of the
API to avoid each bsf using its own tokenization.
The proper solution would be using AVOption, but this is overkill for now.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
98e8a9e2f2
ffmpeg: Print a debug message if the frame parameters mismatch the context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
33bc81e437
ffmpeg: skip duration cliping for passthrough & drop modes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
4e20e94921
ffmpeg: Check duration for overlap and clip in fps cfr/vfr code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
c509202590
ffmpeg: Use input packet duration in vfr/cfr code if available and valid
...
Fixes Ticket3052
10 years ago
Michael Niedermayer
61fc1cbfbd
ffmpeg: fix printed timestamp for droped frames
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
9f6d48d696
ffmpeg: better CFR frame duplication selection
...
This improves the handling of cases where the frame duration is not known
Fixes Ticket 4119
Fixes Ticket 1578
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
8b43b0e8b6
ffmpeg: fix variable type for end char
...
fixes warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
9421d974bc
ffmpeg: Fix last newline at log level less than "info"
...
Fixes Ticket3058
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
9bdb7a6c1a
ffmpeg: avoid endlessly reading from one input while another is unavailable
...
Testcase in Ticket 4051
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
83f84e4c53
ffmpeg: Fix stream copy with initial_padding
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
2284413206
ffmpeg: replace impossible dts/pts combinations by a reasonable guess instead of hard failing
...
Fixes stream copy from tserror270.ts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
16de4d927e
ffmpeg: Do av_buffersink_set_frame_size() when reconfiguring the filtergraph not just when changing audio resample parameters
...
Fixes Ticket3562
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
ab84effded
ffmpeg: Copy extradata if it has been initialized later from the encoder
...
Fixes Ticket3909
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
b01d2a5533
ffmpeg: Enable compute_edt only when the subtitles are used for a output stream instead of a filter
...
Fixes/works around Ticket3768
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
a2dbf379f0
avcodec/dvbsubdec: make compute_edt user settable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
31f9c228c0
ffmpeg: Fix missing {} in Stream to Packet side data code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
81a663f49e
Drop remaining unneeded != NULL
...
Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
d3a22491c7
ffmpeg: remove 32 channel limit from audio_channels_map
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Christophe Gisquet
33fefdb449
ffmpeg: fix streamcopy with side data
...
The issue is that, when the main packet data buffer is changed, streamcopy
uses a temporary new packet to store that buffer, frees the old packet, and
replace it with the new packet.
However, in doing so, it forgets about the side data, which gets freed, but
is still needed and referenced. Then, when the packet gets freed again in
the normal code path, it attempts to free its side data which has already
been freed.
Therefore, simply avoid the first free on side data by removing that side
data from the packet.
Fixes ticket #3773 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
7d03732f7e
ffmpeg: Do not fail if a demuxer and decoder use the same option identifer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
01c17b5224
ffmpeg: Fix copying timebase to muxer context
...
Fixes Ticket3741
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
8bbadc9b6e
ffmpeg: Use av_stream_get_parser() to avoid ABI issues
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
59975de777
ffmpeg: fix integer overflows with sub->*display_time
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago