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,994
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,280
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,125
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,994
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,280
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,994
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
  • BigOnYa @ BigOnYa:
    You guys probably wearing winter jackets when in 60's in Cali.
  • BigOnYa @ BigOnYa:
    I heard a new term today related to Cali, thought was funny, "California Sober" lol
  • AncientBoi @ AncientBoi:
    ROFL LMAO
  • K3Nv2 @ K3Nv2:
    I hurt ancientbois feelings
  • BigOnYa @ BigOnYa:
    You wouldn't remove your teeth?
    +1
  • K3Nv2 @ K3Nv2:
    But his mouth is stuck on your meat
    +2
  • AncientBoi @ AncientBoi:
    AN SOFA
    +1
  • K3Nv2 @ K3Nv2:
    I had a power nap woke up with so much gas it's awesome
  • BakerMan @ BakerMan:
    holy shit why do i have 19 notifications?!
  • BakerMan @ BakerMan:
    AND WHY ARE SOME OF THEM BUNDLED UP REACTIONS TO POSTS?
  • BigOnYa @ BigOnYa:
    Cause I maybe, maybe clicked like a few times.
  • K3Nv2 @ K3Nv2:
    You're as loved as much as Juan now enjoy it
    +1
  • K3Nv2 @ K3Nv2:
    I'm sorry for the insult
  • BakerMan @ BakerMan:
    the difference is i like wario and samus and he likes muscle mommies and feet
    +1
  • BakerMan @ BakerMan:
    wait, i forgot wizards too
  • BigOnYa @ BigOnYa:
    I have a buddy that has a moonshine still and he makes his own shine. He brought me a jar of some peach shine/brandy, shit is damn good. Gonna have to see if can get more.
    +1
  • BakerMan @ BakerMan:
    careful that shit don't make you go blind
  • BigOnYa @ BigOnYa:
    Nuh that's only if you drink what first comes out when distilling, you must throw out the first part of it when it starts running. (Its called the "head(s)" of the run) Or use it for fuel or a general purpose cleaner
    +1
  • K3Nv2 @ K3Nv2:
    If alcohol would've made @BigOnYa blind by now it would have
    +2
  • BigOnYa @ BigOnYa:
    So True.
    +1
  • K3Nv2 @ K3Nv2:
    I should make a poll for bigonya to change his username to DrunkOnYa
    +1
  • BigOnYa @ BigOnYa:
    That's my alt
    +1
  • K3Nv2 @ K3Nv2:
    I don't wanna go to the store someone go for me
  • BigOnYa @ BigOnYa:
    Call my wifey, tell her pick up stuff on her way over.
  • K3Nv2 @ K3Nv2:
    Pick up my door dash meat me in the allyway
    +1
    K3Nv2 @ K3Nv2: Pick up my door dash meat me in the allyway +1