Skip to content

Could not find tag for codec none in stream #0, codec not currently supported in container - incorrect codec parameters ? #48

Open
@userlip

Description

@userlip

Describe the bug
Trying to transcode an MP4 Video ( https://fuego-files.s3.eu-central-1.amazonaws.com/public/7c27c350565cf536a3de8f1e92c0448/23f6318b13cce446972ce1bf37df514/video/video.mp4 ) when I came across this error.

Edit: I have found that a similar/same error occurs when using this video ( https://fuego-files.s3.eu-central-1.amazonaws.com/public/2372b4ff89f01c95942243eb09572bd/d797b844073e642f966ed99a8ed64eb/video/video.mp4 ) which seems to be a HEVC video. Maybe that will help while debugging too.

I am using the code @aminyazdanpanah provided in Error #46 (thanks by the way!). Code works perfectly fine on most videos but I have been seeing some issues while batch processing videos and this is one I found that I cant find a fix for.

The ffmpeg command is:

ffmpeg '-y' '-i' 'video.mp4' '-bf' '1' '-keyint_min' '120' '-g' '120' '-sc_threshold' '0' '-b_strategy' '0' '-use_timeline' '1' '-use_template' '1' '-init_seg_name' 'video_init_$RepresentationID$.$ext$' '-media_seg_name' 'video_chunk_$RepresentationID$_$Number%05d$.$ext$' '-seg_duration' '2' '-hls_playlist' '1' '-f' 'dash' '-map' '0' '-b:v:0' '5075k' '-s:v:0' '640x360' '-map' '0' '-b:v:1' '6344k' '-s:v:1' '854x480' '-map' '0' '-b:v:2' '8458k' '-s:v:2' '1280x720' '-map' '0' '-b:v:3' '12688k' '-s:v:3' '1920x1080' '-c:v' 'libx264' '-strict' '-2' '/tmp/php_ffmpeg_video_streaming/video2.mpd'

Exact output that throws the error:

[mp4 @ 0x55f62b9bf580] Could not find tag for codec none in stream #0, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:12 --

To Reproduce

A) Use code from #46 and use the file i provided.
B) Download the provided video and use the ffmpeg command provided

Desktop/Server (please complete the following information):
ffmpeg version 4.2.2-1ubuntu118.04.sav0 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1
18.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions