Encoded videos start at -0.007000

Sonic Angel Knight

Well-Known Member
OP
Member
Joined
May 27, 2016
Messages
14,408
Trophies
1
Location
New York
XP
12,985
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,269
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,694
Trophies
2
XP
6,103
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,408
Trophies
1
Location
New York
XP
12,985
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,269
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,408
Trophies
1
Location
New York
XP
12,985
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: I think they should tie up diddy, and let all the victims come and abuse him, we'll make a...