Marth64 changed the topic of #ffmpeg to: Welcome to the FFmpeg USER support channel | Development channel: #ffmpeg-devel | Bug reports: https://ffmpeg.org/bugreports.html | Wiki: https://trac.ffmpeg.org/ | This channel is publically logged | FFmpeg 7.1 is released
Guest88 has joined #ffmpeg
Guest88 has quit [Client Quit]
Guest88 has joined #ffmpeg
Guest88 has left #ffmpeg [#ffmpeg]
lucasta has quit [Read error: Connection reset by peer]
phinxy has quit [Quit: WeeChat 4.5.1]
phinxy has joined #ffmpeg
phinxy has quit [Quit: WeeChat 4.5.1]
phinxy has joined #ffmpeg
Muimi has quit [Read error: Connection reset by peer]
iive has quit [Quit: They came for me...]
Some_Person has joined #ffmpeg
Some_Person has quit [Remote host closed the connection]
Some_Person has joined #ffmpeg
abdu66 has joined #ffmpeg
Muimi has joined #ffmpeg
abdu66 has quit [Ping timeout: 240 seconds]
damian101_ has joined #ffmpeg
damian101 has quit [Ping timeout: 252 seconds]
Tano has quit [Remote host closed the connection]
Tano has joined #ffmpeg
abdu66 has joined #ffmpeg
Buliarou1 has quit [Quit: leaving]
Buliarou1 has joined #ffmpeg
minimal has quit [Quit: Leaving]
damian101_ has quit [Ping timeout: 248 seconds]
Shuriko has quit [Read error: Connection reset by peer]
Shuriko has joined #ffmpeg
\\Mr_C\\ has quit [Remote host closed the connection]
neonboy has joined #ffmpeg
neonboy has quit [Quit: WeeChat 4.5.2]
Muimi has quit [Remote host closed the connection]
abdu66 has quit [Ping timeout: 240 seconds]
someuser has joined #ffmpeg
maxim_d33 has quit [Ping timeout: 246 seconds]
maxim_d33 has joined #ffmpeg
Keshl has quit [Read error: Connection reset by peer]
kepstin has quit [Remote host closed the connection]
kepstin has joined #ffmpeg
Shine has quit [Read error: Connection reset by peer]
Guest45 has joined #ffmpeg
Guest45 has quit [Client Quit]
Shine has joined #ffmpeg
olndrxyz has quit [Quit: Quit]
olndrxyz has joined #ffmpeg
tranzistor has joined #ffmpeg
emanuele6 has quit [Ping timeout: 244 seconds]
emanuele6 has joined #ffmpeg
emanuele6 has quit [Client Quit]
yans has quit [Ping timeout: 268 seconds]
olndrxyz has quit [Quit: Quit]
olndrxyz has joined #ffmpeg
<fsphil>
more playing about. sws_dither option has no effect. if I convert to rgb24 first, then rgb32, it looks fine - no horizontal lines
dev4ever has joined #ffmpeg
SohamK35 has joined #ffmpeg
<dev4ever>
Hello,
<dev4ever>
I've been using ffmpeg for a few days now and I'd like to know if what I want to do is possible because at the moment I can't do it, maybe I've misunderstood how it works or something.
<dev4ever>
Here's my question:
<dev4ever>
I have two files containing video data
<dev4ever>
the first file contains moov data, it contains the beginning of the video and I can read it.
<dev4ever>
The second file contains an empty part of the duration of the first video at the beginning and then continues with the video data.
<dev4ever>
Is it possible with ffmpeg to glue these two files back together so that playback is possible, without the problem of corruption?
<dev4ever>
I'm trying to do streaming, but at the moment I can't manage to get a file that's viable.
<dev4ever>
Thanks to all :)
rsx has joined #ffmpeg
<BtbN>
You mean you have a corrupted mp4 file, and want to fix it?
<dev4ever>
I'd like to assemble two parts, but since the second part contains no atom moov data, it tells me that the file is not found, so I don't know how to proceed.
TheSilentLink has quit [Ping timeout: 260 seconds]
<BtbN>
What is that second file? Where does it come from?
<BtbN>
Generally, an mp4/mov file without moov atom is not easily recoverable
<dev4ever>
both files come from a server that sends me the parts I request. In this case, I asked him for a first part of 4mo for the first file, which contains the moov files and allows me to start playing, and the second part contains the rest of the video but without the beginning of the video. I don't know if I'm clear enough :)
<BtbN>
But what kind of files are those? Is it fragmented mp4?
<BtbN>
If they're individual mp4 files, the second file without moov atom is useless
SohamK has joined #ffmpeg
<dev4ever>
basically I upload an mp4 video to a server
<dev4ever>
the two video parts I'm requesting from the server are the original video I sent to the server, cut in two, but I can't put them back together or merge them.
<BtbN>
Why not?
<BtbN>
If it's just the file cut in two, you can literally just cat them back together
<BtbN>
But I still don't understand from your description what's actually going on.
<dev4ever>
ffmpeg won't glue them back together because it can't find the moov atom
<BtbN>
Just use cat if it's just one file split in two?
<dev4ever>
yes, I haven't tried just gluing them back together yet, I'll try that :)
user_oreloznog has quit [Ping timeout: 244 seconds]
user_oreloznog has joined #ffmpeg
SohamK has quit [Quit: Client closed]
frankplow has quit [Quit: Goodbye]
frankplow has joined #ffmpeg
olndrxyz has quit [Quit: Quit]
tyzoid has quit [Ping timeout: 252 seconds]
tyzoid has joined #ffmpeg
lucasta has joined #ffmpeg
turlando has quit []
turlando has joined #ffmpeg
FlorianBad has quit [Ping timeout: 260 seconds]
turlando has quit []
coldfeet has quit [Remote host closed the connection]
turlando has joined #ffmpeg
busy has joined #ffmpeg
delthas has quit [Remote host closed the connection]
delthas has joined #ffmpeg
FlorianBad has joined #ffmpeg
bitbinge has quit [Remote host closed the connection]
System_Error has quit [Remote host closed the connection]
lucasta has quit [Quit: Leaving]
abdu has joined #ffmpeg
System_Error has joined #ffmpeg
Flat_ is now known as Flat
abdu18 has joined #ffmpeg
abdu has quit [Ping timeout: 240 seconds]
zsoltiv_ has joined #ffmpeg
bitbinge has joined #ffmpeg
derpydoo has joined #ffmpeg
abdu91 has joined #ffmpeg
abdu18 has quit [Ping timeout: 240 seconds]
abdu91 has quit [Ping timeout: 240 seconds]
abdu61 has joined #ffmpeg
JanC has joined #ffmpeg
JanC has quit [Killed (mercury.libera.chat (Nickname regained by services))]
justaguy has joined #ffmpeg
jmcantrell has joined #ffmpeg
<de-facto>
how can i output aac to "pipe:1" ?
<de-facto>
searching for a pipeline equivalent for ffmpeg -i pipe:0 -f mp3 -b:a 64k pipe:1
<de-facto>
but for aac
<furq>
-f adts
<de-facto>
hmm that never finishes
<de-facto>
i want the stdout to be a valid aac file
JanC has joined #ffmpeg
JanC is now known as Guest6952
Guest6952 has quit [Killed (lithium.libera.chat (Nickname regained by services))]
abdu61 has quit [Quit: Client closed]
abdu has joined #ffmpeg
minimal has joined #ffmpeg
<BtbN>
.aac is not a well defined file format iirc
<furq>
it is
<furq>
it's just not m4a which is what people think .aac is
<BtbN>
m4a is mov though, which cannot be streamed to a pipe
<furq>
right
<BtbN>
if you want to stream aac... I'd say go mpegts or flv
<furq>
mka works
jmcantrell has quit [Ping timeout: 248 seconds]
damian101 has joined #ffmpeg
<furq>
if you want a file that you can play and has duration headers etc but want to do this via stdout for some reason
<BtbN>
Doesn't streaming mkv result in it not having that?
<BtbN>
Since that involves seeking back to the start
<furq>
it works here
<BtbN>
how exactly are you doing it? If you "pipe" it to a file, that is seekable
derpydoo has quit [Quit: derpydoo]
<furq>
wait never mind
<furq>
i was looking at the wrong file
FlorianBad has quit [Quit: Konversation terminated!]
<furq>
i just happened to have another out.mka that was also 10 seconds of lc-aac
FlorianBad has joined #ffmpeg
<de-facto>
yeah i meant a file with header etc
rsx has quit [Quit: rsx]
<de-facto>
the streaming is just for not writing to disk, its probably going to be called via socat
<BtbN>
streaming and header for seeking are pretty much mutually exclusive
<de-facto>
not streaming, just output the file to stdout
<BtbN>
yes
<furq>
that is streaming
<BtbN>
Cause to write the header, it has to seek back to the front at the end and write it
<BtbN>
it cannot do that when it's not a file
<de-facto>
hmm but for mp3 that works
<BtbN>
mp3 has no header whatsoever
<BtbN>
it's pretty much just raw bitstream dumped to disk
<BtbN>
Which is why ffmpeg always detect any random file as mp3 with a low probability. Cause any file is valid mp3 bitstream :D
<furq>
that will only work for cbr mp3 because the player just estimates the duration from the bitrate
<furq>
bitrate and file size
<BtbN>
a lot of players also just parse the whole file in one go nowadays
<de-facto>
interesting
<furq>
if you do it with e.g. -q:a 0 the duration will be all wrong
<furq>
at least it is in my player
abdu has quit [Ping timeout: 240 seconds]
FlorianBad has quit [Remote host closed the connection]
<de-facto>
i used -b:1 64k
<BtbN>
that's horrible for mp3 :D
<furq>
yeah that's cbr
FlorianBad has joined #ffmpeg
MisterMinister has quit [Ping timeout: 244 seconds]
<furq>
cbr mp3 has no duration header
<de-facto>
the input is 24k samples of wav mono
MisterMinister has joined #ffmpeg
<de-facto>
my goal is to have a socat tts server that responds with valid files to text inputs via tcp
<furq>
seems like this works fine with ogg
<BtbN>
you'll need to use a streamable format then, without header
<furq>
so maybe consider using opus
<BtbN>
fragmented mp4, mpegts, flv
<furq>
it's pretty widely supported nowadays
<BtbN>
if you want it to play in a browser, fmp4 would be the obvious choice
<furq>
opus has been supported by all browsers for a while
JanC has joined #ffmpeg
JanC is now known as Guest5447
Guest5447 has quit [Killed (tantalum.libera.chat (Nickname regained by services))]
<furq>
but annoyingly safari only supports it in webm
psykose has quit [Remote host closed the connection]
psykose has joined #ffmpeg
FlorianBad has joined #ffmpeg
FlorianBad has quit [Remote host closed the connection]
FlorianBad has joined #ffmpeg
FlorianBad has quit [Client Quit]
FlorianBad has joined #ffmpeg
EmleyMoor has joined #ffmpeg
YUiNA_ has joined #ffmpeg
YUiNA has quit [Ping timeout: 248 seconds]
SohamK50 has joined #ffmpeg
damian101_ has joined #ffmpeg
damian101 has quit [Ping timeout: 248 seconds]
Narrat has joined #ffmpeg
Guest49 has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
<Guest49>
hello, I have a cross compiling issue related to pkg-config
<Guest49>
this works (Linux binary): ./configure --enable-libvmaf --extra-cflags="-I../vmaf/libvmaf/include" --extra-ldflags="-L../vmaf/libvmaf/build/src"
<Guest49>
this does not work: ./configure --target-os=mingw32 --arch=x86_64 --enable-libvmaf --extra-cflags="-I../vmaf/libvmaf/include" --extra-ldflags="-L../vmaf/libvmaf/build/src" --cross-prefix=x86_64-w64-mingw32-
<Guest49>
ERROR: libvmaf >= 2.0.0 not found using pkg-config
<Guest49>
but this works: pkg-config --modversion libvmaf
<BtbN>
Of course, cause it finds the version for the host OS
<Guest49>
and this also works: x86_64-w64-mingw32-pkg-config --modversion libvmaf
<BtbN>
It most likely also just finds the one for the host
<Guest49>
alright so what do I need to do to cross compile
<Guest49>
when I build libvmaf, should I have done it for windows as well?
<BtbN>
You need to make sure it finds the correct version of the library and its headers for the target
<BtbN>
of course, everything you link in needs to be for the target
<Guest49>
commands: pkg-config --modversion libvmaf and x86_64-w64-mingw32-pkg-config --modversion libvmaf give me version 3.0.0
<Guest49>
I do not usually build stuff by myself but I am trying and really struggling to understand what I need to do here
rossome has quit [Quit: WeeChat 4.5.1]
<Guest49>
BtbN you are building Windows binaries, hope you have some insights here
<BtbN>
There really is no simple "do this" here. You need to make sure it finds the right library, and that library needs to be built for the right target.
<BtbN>
cross-compiling is always a bit of an advanture the moment dependencies get involved
rossome has joined #ffmpeg
<Guest49>
right, so I understand I need to build libvmaf for Windows instead of following the official build instructions, correct?
<BtbN>
yes, you cannot link libraries for Linux into a windows binary
damian101 has joined #ffmpeg
<Guest49>
alright, good to know, are there any instructions to build libvmaf for Windows?