[FFmpeg-trac] #9643(avformat:new): Recognize HEVC fourCC and 0x704F fourCC input for asf

FFmpeg trac at avcodec.org
Sun Feb 20 07:12:07 EET 2022


#9643: Recognize HEVC fourCC and 0x704F fourCC input for asf
-------------------------------------+-------------------------------------
             Reporter:  shin         |                    Owner:  (none)
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  asf hevc     |               Blocked By:
  opus                               |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by shin:

Old description:

> 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?

New description:

 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
 }}}

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9643#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list