Opened 2 years ago

Last modified 2 years ago

#9643 new enhancement

Recognize HEVC fourCC and 0x704F fourCC input for asf

Reported by: shin Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: asf hevc opus
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by shin)

ffmpeg -i input.mp4 -c:v libx265 -vtag HEVC -flags:v -global_header -bf 0 -preset ultrafast -c:a libopus -atag 0x704F -f asf output.asf

output.asf can be played on Windows Media Player
But output.asf cannot be played on ffplay

MFVideoFormat_HEVC 'HEVC'
See https://docs.microsoft.com/en-us/windows/win32/medfound/video-subtype-guids

WAVE_FORMAT_OPUS (0x704F)
See https://docs.microsoft.com/en-us/windows/win32/medfound/audio-subtype-guids

Is it posible to modify FFMPEG so as to also accept opening HEVC fourCC and 0x704F fourCC for asf?

% ffmpeg -i output.asf
ffmpeg version 5.0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
[asf @ 0000028ac59cbdc0] Could not find codec parameters for stream 0 (Video: none (HEVC / 0x43564548), none, 512x384): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[asf @ 0000028ac59cbdc0] Could not find codec parameters for stream 1 (Audio: none (Op[0][0] / 0x704F), 48000 Hz, 2 channels, 96 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, asf, from 'output.asf':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf59.16.100
  Duration: 00:00:32.31, start: 0.000000, bitrate: 417 kb/s
  Stream #0:0: Video: none (HEVC / 0x43564548), none, 512x384, SAR 1:1 DAR 4:3, 30 fps, 30 tbr, 1k tbn
  Stream #0:1: Audio: none (Op[0][0] / 0x704F), 48000 Hz, stereo, 96 kb/s
At least one output file must be specified

Attachments (1)

output.asf (1.6 MB ) - added by shin 2 years ago.

Download all attachments as: .zip

Change History (2)

by shin, 2 years ago

Attachment: output.asf added

comment:1 by shin, 2 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.