17:37
I am transcoding an image sequence to a 10 frame 60fps .mov files using the first command below. I am then concatenating the exported videos using the second command below.
Transcode
ffmpeg -y -r 60 -probesize 13M -start_number 1001 -i 'input_video.%04d.jpeg' -c:v libx265 -pix_fmt yuv420p10le -crf 28 -preset slower -tag:v hvc1 -vf lut3d='output_lut.cube' -r 60 -frames:v 10 -movflags faststart output_video_0001.mov
Concatenate
ffmpeg -y -f concat -safe 0 -i input_concat_list.txt -c copy output_concat.mov
I expected the final file from the (...)
18:57
I am opening a network file via HTTPS like this:
avformat_open_input(&m_format, "https://www.example.com/file.mp4", nullptr, nullptr);
It works, however sometimes connection is closed and this is logged:
[tls ⓐ 0x7f600ba690] Error in the pull function.
[tls ⓐ 0x7f600ba690] IO error: Connection reset by peer
[mov,mp4,m4a,3gp,3g2,mj2 ⓐ 0x7f6007e450] Packet corrupt (stream = 0, dts = 24188928).
[aac ⓐ 0x7f60324800] Input buffer exhausted before END element found
I found it possible to setup reconnection by logs from this post. Here are their (...)
18:18
I have some problem to add several fade effects to one audio file. When I try to use a command like this:
ffmpeg -y -i /home/user/video/test/sound.mp3 -af "afade=t=in:ss=0:d=3,afade=t=out:st=7:d=3,afade=t=in:st=10:d=3,afade=t=out:st=17:d=3,afade=t=in:st=20:d=3,afade=t=out:st=27:d=3" /tmp/test.mp3
then my output audio file has a fadein and fadeout applied only once. All the next effects don't get applied. Is there any possible way to apply several fade effects to the same audio file? Also, what is the difference between ss and st parameter in this (...)
17:44
In 6.1 Ffmpeg, it use "ch_layout" to replace the "channel_layout" and "number". The "ch_layout" is "AVChannelLayout *" type. This type is defined in channel_layout.h, some kind of "ch_layout" is defined in this file too.
If I want to use the "av_dict_set_int()" set the "ch_layout" to "AV_CHANNEL_LAYOUT_STEREO", what should I fill to the "value"?
/**
* Macro to define native channel layouts
*
* ⓐnote This doesn't use designated initializers for compatibility with C++ 17 and older.
*/
#define AV_CHANNEL_LAYOUT_MASK(nb, m) \\
/* .order */ (...)