Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Audio When Previewing A Clip? #322

Closed
VonSupponnatime opened this issue Apr 22, 2020 · 5 comments
Closed

No Audio When Previewing A Clip? #322

VonSupponnatime opened this issue Apr 22, 2020 · 5 comments

Comments

@VonSupponnatime
Copy link

This has been happening to any MKV file I attempt to edit. When I load the clip, and then hit play (so that I can get to the right spot), the video plays but there is no audio. The final product (after an attempted guess) does have the audio in playback.

Has anyone else encountered this?

@mifi
Copy link
Owner

mifi commented Apr 23, 2020

Do you see any popup saying something about unsupported file and a low quality preview?

@ipkpjersi
Copy link

ipkpjersi commented Apr 25, 2020

This is happening for me too, with an MKV, no audio when previewing. The audio exports fine, video quality of the preview and final export result is absoutely perfect.

More info:

{
  "index": 1,
  "codec_name": "ac3",
  "codec_long_name": "ATSC A/52A (AC-3)",
  "codec_type": "audio",
  "codec_time_base": "1/48000",
  "codec_tag_string": "[0][0][0][0]",
  "codec_tag": "0x0000",
  "sample_fmt": "fltp",
  "sample_rate": "48000",
  "channels": 6,
  "channel_layout": "5.1(side)",
  "bits_per_sample": 0,
  "dmix_mode": "-1",
  "ltrt_cmixlev": "-1.000000",
  "ltrt_surmixlev": "-1.000000",
  "loro_cmixlev": "-1.000000",
  "loro_surmixlev": "-1.000000",
  "r_frame_rate": "0/0",
  "avg_frame_rate": "0/0",
  "time_base": "1/1000",
  "start_pts": 0,
  "start_time": "0.000000",
  "bit_rate": "640000",
  "disposition": {
    "default": 1,
    "dub": 0,
    "original": 0,
    "comment": 0,
    "lyrics": 0,
    "karaoke": 0,
    "forced": 0,
    "hearing_impaired": 0,
    "visual_impaired": 0,
    "clean_effects": 0,
    "attached_pic": 0,
    "timed_thumbnails": 0
  },
  "tags": {
    "language": "eng"
  }
}

I am using LosslessCut 3.20.1 on Ubuntu 18.04.

The preview audio is fine with an mp4, just not with mkv.

@ipkpjersi
Copy link

It turns out it's not all mkv videos, some mkv videos preview audio just fine, here is one that is fine:

{
  "index": 1,
  "codec_name": "aac",
  "codec_long_name": "AAC (Advanced Audio Coding)",
  "profile": "LC",
  "codec_type": "audio",
  "codec_time_base": "1/44100",
  "codec_tag_string": "[0][0][0][0]",
  "codec_tag": "0x0000",
  "sample_fmt": "fltp",
  "sample_rate": "44100",
  "channels": 2,
  "channel_layout": "stereo",
  "bits_per_sample": 0,
  "r_frame_rate": "0/0",
  "avg_frame_rate": "0/0",
  "time_base": "1/1000",
  "start_pts": 0,
  "start_time": "0.000000",
  "disposition": {
    "default": 1,
    "dub": 0,
    "original": 0,
    "comment": 0,
    "lyrics": 0,
    "karaoke": 0,
    "forced": 0,
    "hearing_impaired": 0,
    "visual_impaired": 0,
    "clean_effects": 0,
    "attached_pic": 0,
    "timed_thumbnails": 0
  },
  "tags": {
    "HANDLER_NAME": "ISO Media file produced by Google Inc.",
    "DURATION": "00:52:34.802000000"
  }
}

@mifi
Copy link
Owner

mifi commented Apr 26, 2020

I think this is because LosslessCut cannot decode AC3. You can use the Convert to friendly format menu, and choose slow: low quality encode. then you will get a preview with audio but it's a bit slow. I'm working on a much faster low quality audio preview generating.

mifi added a commit that referenced this issue Apr 27, 2020
- allow to convert to friendly format with audio #322
- add create dummy video progress
- trash dummy video when remove source
@mifi
Copy link
Owner

mifi commented Apr 27, 2020

Fast audio preview has now been implemented and can be tested in the next release

@mifi mifi closed this as completed May 3, 2020
mifi added a commit that referenced this issue May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants