1. Sonic Angel Knight

    OP Sonic Angel Knight GBAtemp Legend
    Member

    Joined:
    May 27, 2016
    Messages:
    13,712
    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:
     
  2. tech3475

    tech3475 GBAtemp Addict
    Member

    Joined:
    Jun 12, 2009
    Messages:
    2,013
    Country:
    What encoder do you use? Have you tried a different one or another version?
     
  3. Sonic Angel Knight

    OP Sonic Angel Knight GBAtemp Legend
    Member

    Joined:
    May 27, 2016
    Messages:
    13,712
    Country:
    United States
    I use ffmpeg, the latest version for windows. I have not tried other encoders, not sure what others to pick since most seem to be using some form of ffmpeg anyway.
     
  4. Tom Bombadildo

    Tom Bombadildo Dick, With Balls
    Reviewer

    Joined:
    Jul 11, 2009
    Messages:
    13,626
    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.
     
  5. tech3475

    tech3475 GBAtemp Addict
    Member

    Joined:
    Jun 12, 2009
    Messages:
    2,013
    Country:
    In regards to the audio, I’d try opening the audio stream in something like audacity to see if that’s the issue.
     
  6. Sonic Angel Knight

    OP Sonic Angel Knight GBAtemp Legend
    Member

    Joined:
    May 27, 2016
    Messages:
    13,712
    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. :)
     
  7. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08
    Member

    Joined:
    Mar 17, 2010
    Messages:
    20,064
    Country:
    Norway
    x264 ;)
     
  8. Tom Bombadildo

    Tom Bombadildo Dick, With Balls
    Reviewer

    Joined:
    Jul 11, 2009
    Messages:
    13,626
    Country:
    United States
    What audio format does the input file use?
     
  9. Sonic Angel Knight

    OP Sonic Angel Knight GBAtemp Legend
    Member

    Joined:
    May 27, 2016
    Messages:
    13,712
    Country:
    United States
    It's raw pcm
     
  10. Sonic Angel Knight

    OP Sonic Angel Knight GBAtemp Legend
    Member

    Joined:
    May 27, 2016
    Messages:
    13,712
    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:
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Encoded, videos, 007000