Announcement

Collapse
No announcement yet.

Encoded Youtube videos play without sound (when they play)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Encoded Youtube videos play without sound (when they play)

    I made a script to download a video from Youtube via "youtube-dl" and encode it with "ffmpeg". It just automates the job, so all can be done in 1 command line.
    Everything worked fine in Feisty, but after upgrading to Gutsy, there are 2 problems now:
    - Videos previously encoded crash Kaffeine sometimes, it just hangs and nothing is played. Need to kill, rerun, and cross fingers for it to play the file;
    - When the video finally plays, it comes with no sound, just the image.

    Anyone else having this kind of problem?
    Why in earth people broke what was already working? Goddamnit.

    #2
    Re: Encoded Youtube videos play without sound (when they play)

    This doesn't really answer you post but a workaround may be using one of the many firefox plugins designed for just this purpose:
    https://addons.mozilla.org/en-US/fir...video&status=4

    Comment


      #3
      Re: Encoded Youtube videos play without sound (when they play)

      Tried playing the FLVs with VLC?
      For external use only.

      Comment


        #4
        Re: Encoded Youtube videos play without sound (when they play)

        Having the flvs converted is more flexible if I were to share the videos with other people.
        The problem is ffmpeg.
        Old command: ffmpeg -i "${FILENAME}.flv" -ab 56 -ar 22050 -b 500 -s 320x240 "$FILENAME"
        New command: ffmpeg -i "${FILENAME}.flv" -ar 48000 -ac 2 -s 320x240 "$FILENAME"

        There is something wrong with the 22050Hz frequency when encoding. All files encoded with Gutsy have no sound, and I could confirm this playing the files in Windows and Mac.
        The Kaffeine in Gutsy also can't play sound on files previously encoded (with Feisty). Encoding with 48KHz solved the problem, but it is annoying to not have audio on the old videos.

        Comment

        Working...
        X