Speex Audio Codec Support

Archive of historical feature requests.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
cewong2
Posts: 8
Joined: Thu Nov 05, 2015 12:31 pm

Speex Audio Codec Support

Post by cewong2 »

Please forgive me if this is incorrect but I asked if I should put this in and didn't receive a response so I will just add it.

I've included details from the orginial posting I made as well.

Please describe what you would like to see added to HandBrake:
Speex Audio Codec support

I'm trying to convert video into MP4 format using .h264 video and mp3 audio. The source video file is FLV with Speex audio but everytime i try to convert it in handbrake it doesn't recognize the audio only the video. Unfortunately the source file I have is too large to present as a sample, however I did find a sample online, and I downloaded it and it has the same issues. If you go to http://streams.videolan.org/issues/2973/ I downloaded the 37MB file (2012-11-10_201638511.1.flv on drive it came to 41.1MB) and put it through handbrake and it presents the same issue.

The video shows up fine, however the audio tab shows no audio, and when encoded it loses the audio. If there was at least a passthrough function to allow the audio track to passthru that would be a good backup for unsupported codecs.

I found the information for the speex format here http://www.speex.org/ but there is no codec installation for Macs it is open source however, and it looks like it's also depreciated now in favor of a newer type that they link to opus which is at http://opus-codec.org/

Why would you like to see this added:
Audio support

What version of HandBrake are you currently running:
0.10.2 / nightly

What operating system and version and you currently running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
Currently running OSX Mavericks 10.10.5

If there was any exception or error displayed, please copy it and paste it here:
No error message

Please include the scan or encode log:
this is from the activity log

Code: Select all

 [00:40:52] macgui: Handbrake Version: 0.10.2 x86_64 (2015061100)
[00:40:52] hb_init: starting libhb thread
[00:40:52] hb_init: starting libhb thread
[00:40:53] macgui: hbInstances path to this instance: /Applications/HandBrake.app
[00:40:53] macgui: hbInstance found instance pidnum: 5866 at path: /Applications/HandBrake.app
[00:40:53] macgui: hbInstance MATCH FOUND, our pidnum is: 5866
[00:40:53] macgui: Pid for this instance: 5866
[00:40:53] macgui: HBQueueController : My Pidnum is 5866
[00:41:00] macgui: scanning titles with a duration of 10 seconds or more
[00:41:00] CPU: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz
[00:41:00]  - Intel microarchitecture Ivy Bridge
[00:41:00]  - logical processor count: 4
[00:41:00] OpenCL device #1: Intel HD Graphics 4000
[00:41:00]  - OpenCL version: 1.2 
[00:41:00]  - driver version: 1.2(Sep 11 2015 11:30:03)
[00:41:00]  - device type:    GPU
[00:41:00]  - supported:      no
[00:41:00] hb_scan: path=/Users/cewong2/Downloads/2012-11-10_201638511.1.flv, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/cewong2/Downloads/2012-11-10_201638511.1.flv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/cewong2/Downloads/2012-11-10_201638511.1.flv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/Users/cewong2/Downloads/2012-11-10_201638511.1.flv) failed
[00:41:00] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[00:41:00] dvd: not a dvd - trying as a stream/file instead
Input #0, flv, from '/Users/cewong2/Downloads/2012-11-10_201638511.1.flv':
  Metadata:
    encoder         : Lavf54.0.100
  Duration: 00:26:33.81, start: 0.080000, bitrate: N/A
    Stream #0.0: Video: h264 (High), yuv420p, 640x360, 400 kb/s, 25 fps, 1k tbn, 50 tbc
    Stream #0.1: Audio: [0][0][0][0] / 0x0000, 16000 Hz, mono, 27 kb/s
[00:41:00] scan: decoding previews for title 1
[00:41:01] scan: 10 previews, 640x360, 25.000 fps, autocrop = 0/4/44/32, aspect 16:9, PAR 1:1
[00:41:01] libhb: scan thread found 1 valid title(s)
[00:41:01] macgui: ScanDone state received from fHandle
[00:41:01] macgui: showNewScan: This is a new source item scan
This is also the reading from MediaInfo

Code: Select all

General
Complete name                            : /Users/cewong2/Downloads/2012-11-10_201638511.1.flv
Format                                   : Flash Video
File size                                : 39.2 MiB
Duration                                 : 26mn 33s
Overall bit rate                         : 206 Kbps
Writing application                      : Lavf54.0.100

Video
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : 7
Duration                                 : 26mn 33s
Bit rate                                 : 391 Kbps
Width                                    : 640 pixels
Height                                   : 360 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.068
Stream size                              : 74.2 MiB
Writing library                          : x264 core 125 r2200 999b753
Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=29.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=1000 / vbv_bufsize=1000 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00

Audio
Format                                   : Speex
Codec ID                                 : 11
Duration                                 : 26mn 33s
Bit rate                                 : 27.1 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 11.025 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : 80ms
Stream size                              : 5.16 MiB (13%)
WhosAsking
Posts: 45
Joined: Fri Jul 03, 2009 1:40 pm

Re: Speex Audio Codec Support

Post by WhosAsking »

If Handbrake can't understand a codec, like Speex in your case, you'll need to transcode it to something that can.

In this case, you need another program, probably a version of ffmpeg compiled with libspeex, to convert the audio track into something like AAC or MP3 that Handbrake can recognize.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Speex Audio Codec Support

Post by BradleyS »

I'm looking into adding Speex decoding. In the meantime, @WhosAsking's advice is sound.
cewong2
Posts: 8
Joined: Thu Nov 05, 2015 12:31 pm

Re: Speex Audio Codec Support

Post by cewong2 »

Sorry for my late reply. Holidays and all.

But thank you for the replies, and I look forward to seeing it baked in, I can patiently wait unfortunately since I mainly use a MAC now I don't know as many tools and like the simplicity that Handbrake allows of, borrowing words of Ron Popil "Set it and Forget it" Plus the couple of alternative transcoders I've tried all take a LONG time to finish.
Post Reply