mediacms icon indicating copy to clipboard operation
mediacms copied to clipboard

[Bug] webm video fail in transcoding

Open gharsallahmoez opened this issue 3 years ago • 5 comments

I'm trying to upload video with webm format, I get the following result. webm

is webm video format is supported by mediacms?

gharsallahmoez avatar Feb 03 '21 15:02 gharsallahmoez

Hello, I now tried with a webm file and it gets encoded - https://demo.mediacms.io/view?m=7e0VCAWL4 Can you upload the file to demo.mediacms.io or here?

mgogoulos avatar Feb 04 '21 10:02 mgogoulos

Btw error logs will be exposed to admin at some point, so that it won't be necessary to look on the logs to see why something didn't encode correctly!

mgogoulos avatar Feb 04 '21 11:02 mgogoulos

@mgogoulos I upload it with the same issue : https://demo.mediacms.io/view?m=klsDYVRqy

gharsallahmoez avatar Feb 04 '21 11:02 gharsallahmoez

the file has issues as far as I can tell and this is why encoding fails, does not seem related with the .webm format necessaryly... Thanks for uploading though, will do some more testing and perhaps there's a place where the mechanism can be improved to bypass any errors...

mgogoulos avatar Feb 04 '21 19:02 mgogoulos

This could be the issue with the file: https://stackoverflow.com/questions/34118013/how-to-determine-webm-duration-using-ffprobe

The format matroska,webm is not known by mediacms, and the file also lacks a duration

{
    "format": {
        "filename": "/files/liveMeetingrecord6.webm",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "matroska,webm",
        "format_long_name": "Matroska / WebM",
        "start_time": "0.000000",
        "size": "135770798",
        "probe_score": 100,
        "tags": {
            "encoder": "Chrome"
        }
    }
}
{
    "streams": [
        {
            "index": 0,
            "codec_name": "opus",
            "codec_long_name": "Opus",
            "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": 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
            },
            "tags": {
                "language": "eng"
            }
        },
        {
            "index": 1,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "Constrained Baseline",
            "codec_type": "video",
            "codec_time_base": "1/2000",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 1280,
            "height": 720,
            "coded_width": 1280,
            "coded_height": 720,
            "has_b_frames": 0,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "16:9",
            "pix_fmt": "yuv420p",
            "level": 32,
            "chroma_location": "left",
            "refs": 1,
            "is_avc": "false",
            "nal_length_size": "0",
            "r_frame_rate": "120/1",
            "avg_frame_rate": "0/0",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "bits_per_raw_sample": "8",
            "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
            },
            "tags": {
                "language": "eng"
            }
        }
    ],
    "format": {
        "format_name": "matroska,webm"
    }
}

swiftugandan avatar Feb 05 '21 09:02 swiftugandan