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,977
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,258
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,681
Trophies
2
XP
6,085
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,977
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,258
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,977
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
  • AncientBoi @ AncientBoi:
    ooowwww a new way for me to beat NFS 510 :D @SylverReZ
    +1
  • SylverReZ @ SylverReZ:
    @AncientBoi, Yeah, believe you can do PSP games as well. But a Pi5 is much powerful in comparison.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure about other models of Pi4 but the Pi 4 B with 8GBs OCed to 2Ghz handles PSP really great except like 1 game I found and it is playable it just looks bad lol Motor Storm Arctic something or other.
  • Psionic Roshambo @ Psionic Roshambo:
    Other games I can have turned up to like 2X and all kinds of enhancements, Motorstorm hmmm nope 1X and no enhancements lol
  • Veho @ Veho:
    Waiting for Anbernic's rg[whatever]SP price announcement, gimme.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I will admit that one does seem more interesting than the usual Ambernic ones, and I already liked those.
  • Veho @ Veho:
    I dread the price point.
    +1
  • Veho @ Veho:
    This looks like one of their premium models, so... $150 :glare:
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    To me that seems reasonable.
  • Psionic Roshambo @ Psionic Roshambo:
    I mean since basically all the games are errmmm free lol
  • Veho @ Veho:
    I mean yeah sure but the specs are the same as a $50 model, it's just those pesky "quality of life" things driving up the price, like an actually working speaker, or buttons that don't melt, and stuff like that.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I think all in my Pi 4 was well north of 200 bucks 150ish for the Pi 4 the case the fancy cooler, then like 70 for the 500GB MicroSD then like 70 for the Xbox controller. But honestly it's a nice set up I really enjoy and to me was worth every penny. (even bought more controllers for 2 or 4 player games.) hmmm have never played any 2 player games yet :(
  • Veho @ Veho:
    Yeah that's what I hate about the RPi, it's supposedly $30 or something but it takes an additional $200 of accessories to actually turn it into a working something.
  • Psionic Roshambo @ Psionic Roshambo:
    yes that's the expensive part lol
  • Veho @ Veho:
    I mean sure it's flexible and stuff but so is uremum but it's fiddly.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah a lot of it I consider a hobby, using Batocera I am constantly adjusting the collection adding and removing stuff, scraping the artwork. Haven't even started on some music for the theme... Also way down the road I am considering attempting to do a WiiFlow knock off lol
  • Veho @ Veho:
    I want everything served on a plate plz ktnx, "work" is too much work for me.
  • Veho @ Veho:
    Hmm, with that in mind, maybe a complete out-the-box solution with all the games collected, pacthed and optimized for me would be worth $150 :unsure:
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's all choice and that's a good thing :)
  • Bunjolio @ Bunjolio:
    animal crossing new leaf 11pm music
  • Bunjolio @ Bunjolio:
    avatars-kKKZnC8XiW7HEUw0-KdJMsw-t1080x1080.jpg
    wokey d pronouns
  • SylverReZ @ SylverReZ:
    What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo
    SylverReZ @ SylverReZ: What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo