Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
handbrake does not recognize audio
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sat Mar 11, 2017 3:14 pm    Post subject: handbrake does not recognize audio Reply with quote

Code:
/home/roman/.config/ghb/Activity.log.6050


Code:
Input #0, avi, from '/home/roman/Fotos__von_alter_Festplatte_und_Kamera_BENQ/Videos/Busfahrt_im_Landesinneren_am_Abend_Straßenansicht.avi':
  Duration: 00:10:04.97, start: 0.000000, bitrate: 2802 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 2763 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
    Stream #0:1: Audio: adpcm_ms ([2][0][0][0] / 0x0002), 8000 Hz, 1 channels, s16, 32 kb/s
[15:37:07] scan: decoding previews for title 1
[15:37:08] scan: 10 previews, 640x480, 30,000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[15:37:08] scan: removing audio 0x1 because no bitrate found
[15:37:08] libhb: scan thread found 1 valid title(s)


Audio => Stream #0:1: Audio: adpcm_ms ([2][0][0][0] / 0x0002), 8000 Hz, 1 channels, s16, 32 kb/s

Sad face => [15:37:08] scan: removing audio 0x1 because no bitrate found


e.g. https://github.com/HandBrake/HandBrake/issues/68

Code:
ASUS-G75VW roman # emerge -pv handbrake

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-video/handbrake-1.0.3::gentoo  USE="fdk gtk x265 -gstreamer -libav -libav-aac" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Sat Mar 11, 2017 5:56 pm    Post subject: Reply with quote

Do you have the example file somewhere? The link from the github issue was broken. And so is the gentoo handbrake ebuilds according to the handbrake forums. I'm using a custom ebuild, based on something I found in an overlay last year, would be interesting to try and transcode your file.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Tue Mar 14, 2017 8:26 pm    Post subject: Reply with quote

Thank you.

I have choosen a small file.
The files are from my camera. Well it was around 2008. So it has PCM audio.

coding log for that file. auto settings withotu doing anything, any changes on my side
Code:
http://pastebin.com/yQj2gnGn


Yes the content is a bit funny. It's just to remember something of the past.

file

https://en.file-upload.net/download-12373858/img_0010.avi.html

or

https://uploadfiles.io/ab644

--

Two flaws of handbrake.

PCM audio seems to be dropped from file when you just click convert.

Crop autosetting is bad, it halfs down the conversion rate.
The files are already at 640x480, so the middle section of the ratio screen gives double the conversion rate as the auto selected crop feature, which keeps the video also at 640x480.

I have not yet checked if there is a way to change those auto settings. I think crop is a bad feature! Not very smart to crop contents below some screen ratio. like 640x480, ...
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Thu Mar 16, 2017 3:42 pm    Post subject: Reply with quote

I tried running the file through the command line version, and the output apparently keeps the audio stream, and indeed muxes the encoded video and audio together at the end, but the resulting file is still silent, which is weird.
Code:
HandBrakeCLI -i img_0010.avi -o TEST.mkv -e x264 --x264-preset slower -q 22 -E copy --audio-fallback flac24
The output indicates that the audio is fine....
Code:
[16:28:02] scan: audio 0x1: adpcm_ms, rate=8000Hz, bitrate=32000 Unknown (adpcm_ms) (1.0 ch)

...

  + audio tracks:
    + 1, Unknown (adpcm_ms) (1.0 ch) (iso639-2: und)

...

    "Audio": {
        "AudioList": [
            {
                "Bitrate": -1,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "flac24",
                "Gain": 0.0,
                "Mixdown": "mono",
                "NormalizeMixLevel": false,
                "PresetEncoder": "copy",
                "Quality": -3.0,
                "Samplerate": "auto",
                "Track": 0
            }

...

[16:28:02]  * audio track 1
[16:28:02]    + decoder: Unknown (adpcm_ms) (1.0 ch) (track 1, id 0x1)
[16:28:02]      + bitrate: 32 kbps, samplerate: 8000 Hz
[16:28:02]    + mixdown: Mono
[16:28:02]    + encoder: FLAC 24-bit (libavcodec)
[16:28:02]      + samplerate: 8000 Hz
[16:28:02]      + compression level: 5.00

...

[16:28:14] adpcm_ms-decoder done: 29 frames, 0 decoder errors

...

[16:28:14] mux: track 0, 225 frames, 2303463 bytes, 2446.16 kbps, fifo 256
[16:28:14] mux: track 1, 103 frames, 79141 bytes, 84.04 kbps, fifo 128
I'll try to take a closer look at the file when I get in front of the computer, did this remotely.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Thu Mar 16, 2017 9:34 pm    Post subject: Reply with quote

Scratch that, my video player at work was shitty, there's sound in my test encode, and I also get sound from the result of just opening your file in the GUI version and clicking encode. Here's a link to the ebuild I use, which you can put in your personal overlay.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sat Mar 18, 2017 12:50 pm    Post subject: Reply with quote

Thank you.

May I ask how you read out the file properties ?
Quote:
The output indicates that the audio is fine....


I just use the vlc hidden info dialog for the media.

I have to look later in the differences in these ebuilds. Or in the software components in question

It's good to know that it works on your side.
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Tue Mar 21, 2017 9:52 am    Post subject: Reply with quote

All the output was from the HandBrakeCLI command. A good way to check out the details of a video is to use ffprobe, which is a part of media-video/ffmpeg.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum