Encoded videos start at -0.007000

Sonic Angel Knight

Well-Known Member
OP
Member
Joined
May 27, 2016
Messages
14,409
Trophies
1
Location
New York
XP
12,995
Country
United States
upload_2020-10-26_14-39-17.png


It's something I been noticing with the videos I encode. It's bugging me too. I also notice the every time these videos start, it has a loud cracking noise just as it starts to play. But it plays fine. I just curious if the sound issues is related to this starting time stamp which is weird to exist. :blink:
 

Tom Bombadildo

Dick, With Balls
Member
Joined
Jul 11, 2009
Messages
14,580
Trophies
2
Age
29
Location
I forgot
Website
POCKET.LIKEITS
XP
19,281
Country
United States
Post the full command you're running, can't really help without knowing exactly what it is you're putting into ffmpeg.

But generally, no, that's not what would be causing the clipping sound, that timestamp is usually how ffmpeg processes start times.
 

tech3475

Well-Known Member
Member
Joined
Jun 12, 2009
Messages
3,705
Trophies
2
XP
6,126
Country
In regards to the audio, I’d try opening the audio stream in something like audacity to see if that’s the issue.
 

Sonic Angel Knight

Well-Known Member
OP
Member
Joined
May 27, 2016
Messages
14,409
Trophies
1
Location
New York
XP
12,995
Country
United States
In regards to the audio, I’d try opening the audio stream in something like audacity to see if that’s the issue.
Audacity doesn't have this issue. I tried both files before and after encoding and audacity doesn't have the issue with either. Only when is being played through a video player after encoding with ffmpeg does the sound happen. I tried in vlc player, MPC HC, even web browser. :blink:

Post the full command you're running, can't really help without knowing exactly what it is you're putting into ffmpeg.
If you want to know how I encoded it I used this

Code:
ffmpeg -i input.avi -pix_fmt yuv420p out.webm

ffprobe -i out.webm
The second line is how I got the status of the encoded file that is in the image. :)
 

Tom Bombadildo

Dick, With Balls
Member
Joined
Jul 11, 2009
Messages
14,580
Trophies
2
Age
29
Location
I forgot
Website
POCKET.LIKEITS
XP
19,281
Country
United States
Audacity doesn't have this issue. I tried both files before and after encoding and audacity doesn't have the issue with either. Only when is being played through a video player after encoding with ffmpeg does the sound happen. I tried in vlc player, MPC HC, even web browser. :blink:


If you want to know how I encoded it I used this

Code:
ffmpeg -i input.avi -pix_fmt yuv420p out.webm

ffprobe -i out.webm
The second line is how I got the status of the encoded file that is in the image. :)
What audio format does the input file use?
 

Sonic Angel Knight

Well-Known Member
OP
Member
Joined
May 27, 2016
Messages
14,409
Trophies
1
Location
New York
XP
12,995
Country
United States
After complete accident, I found out how to avoid that "-0.007000" problem. It seems to happen when you set the output file to webm extension. So to avoid it, it's possible to simply use mkv extension. Not a huge problem, but I think is just a ffmpeg issue or oversight. Maybe it will get fixed if word spread. I still have no idea why it causes the problem though. Guess is better anyway since using mkv means more flexible audio codecs including lossless ones. :)

I originally thought it might been that I wasn't using a 2-pass feature, since it is recommended for vp9 encodes. After actually managing to set up a two pass and using it, it didn't solve the issue. But I guess it doesn't matter anymore.

I also had another question, when I encode videos, should I be using yuv420p or yuv444p? The guide for ffmpeg says that yuv420p is moe compatible, but yuv444p looks better. Especially when I record videos from emulators which always seem to use rgb24. The conversion from rgb to 420 looks bad, but 444 looks nearly identical. It also has lower file size in 444p compared to rgb. :ninja:
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Its funny because crypto cannot be recovered, just another one of those Nigerian scams that ask you for a Google Play giftcard. https://www.youtube.com/watch?v=gBs0AG_MN3g
    +1
  • SylverReZ @ SylverReZ:
    Also hi
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, why are most scams from mid-east countries?
  • SylverReZ @ SylverReZ:
    @Xdqwerty, I've reported the domain directly to their registrar so that they can take action. ;)
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, To be fair, I have no idea.
    +1
  • SylverReZ @ SylverReZ:
    Likely because they are not as economic compared to us.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, so their only way of getting money is thru scams?
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Exactly.
  • SylverReZ @ SylverReZ:
    Why not they just mine Monero instead of scamming vulnerable people? If they have a decent machine they can hit a jackpot at any given time.
    +1
  • SylverReZ @ SylverReZ:
    Bitcoin on the other hand, requires a very powerful mining rig and is more costly.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, different cultures so probably they have their reasons
  • K3Nv2 @ K3Nv2:
    Yes a $2,000 rig for $5 a day
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Or could be in correlation to laws.
    +1
  • SylverReZ @ SylverReZ:
    Technically, cryptocurrencies aren't illegal, as long as you don't use it for criminal activity. If you sign up with an exchange, and that they get a tip from law enforcement, they have the right to freeze your assets.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, Yea I heard law is vastly different there
  • SylverReZ @ SylverReZ:
    Nigeria's central bank did make crypto illegal before, until last year they lifted the ban. Always make sure to check before you exchange. ;)
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, speaking of crypto i remember reading about a guy who spend like 10 grand bitcoin on a couple pizzas (when bitcoin wasnt as worthy as nowadays)
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's mental. If he had saved up when Bitcoin sky-rocketed in price, then he might've become the next Jeff Bezos for all I know.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, he couldnt know the price was gonna skyrocket anyway
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Then it dropped sometime in 2022, 2021 was when it really went up in price.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also recall watching a video of some failed games with their own crypto currency or smth like that, lemme link it to you (it's in spanish tho)
  • SylverReZ @ SylverReZ:
    @Xdqwerty, I remember that. Didn't Steam ban games with NFTs before somehow devs managed to circumvent it? Think EA tried to dabble in NFTs too.
    SylverReZ @ SylverReZ: @Xdqwerty, I remember that. Didn't Steam ban games with NFTs before somehow devs managed to...