Hello!
I have a question,
I'm trying something pretty simple, I have a WebM file/container downloaded 
from YouTube containing only 16-Bit Opus audio. I want to copy and retain just 
the audio part since this container only has audio anyways, no video.
The WebM file/container is called Input.webm and is located in the 
YouTube_Samples folder on my desktop.
As shown in the attached picture, it is originally in a 16-Bit format which one 
would assume is using integer representation.
For copying I'm just using these very simple commands:
cd C:\Users\VLAD NEGRU\Desktop\YouTube_Samples
ffmpeg -i Input.webm -c:a copy Output.opus

However, the output file is now in a floating point format and my portable 
player won't play that.
Just in case that it matters somehow for anything, I'm using Windows 10 Pro as 
operating system on my computer.
Is it possible to change the default fltp (floating point) format when working 
with .webm and .opus files?
Is it possible to have it set so that it retains the original 16-Bit integer 
format when just copying the audio from the container?
If possible, then what is the command line argument for forcing the use of 
integers with .webm and .opus files?
Unfortunately the documentation does not provide much info about working with 
opus files:
https://ffmpeg.org/ffmpeg-codecs.html

Here is a copy of my entire command line in case it helps:
C:\Windows\system32>cd C:\Users\VLAD NEGRU\Desktop\YouTube_Samples

C:\Users\VLAD NEGRU\Desktop\YouTube_Samples>ffmpeg -i Input.webm -c:a copy 
Output.opus
ffmpeg version 7.0-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg 
developers
  built with gcc 13.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-libaribb24 --enable-libaribcaption 
--enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd 
--enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve 
--enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg 
--enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-libharfbuzz 
--enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg 
--enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va 
--enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec 
--enable-nvenc --enable-vaapi --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-libcodec2 --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      59.  8.100 / 59.  8.100
  libavcodec    61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample  5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
Input #0, matroska,webm, from 'Input.webm':
  Metadata:
    encoder        : google/video-file
  Duration: 00:02:08.24, start: -0.007000, bitrate: 126 kb/s
  Stream #0:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Output #0, opus, to 'Output.opus':
  Metadata:
    encoder        : Lavf61.1.100
  Stream #0:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
      Metadata:
        encoder        : Lavf61.1.100
Press [q] to stop, [?] for help
[out#0/opus @ 00000236f35d5600] video:0KiB audio:1929KiB subtitle:0KiB other 
streams:0KiB global headers:0KiB muxing overhead: 0.824350%
size=    1945KiB time=00:02:08.24 bitrate= 124.3kbits/s speed=4.31e+03x

Please Help with some much needed answers if possible.
Thank You!

With Respect,
Vlad Negru
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
libav-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to