Questions tagged [codec]
Shorthand for "Encoder/Decoder". A codec allows to convert data into a different representation and decode it again. Codecs are mostly used in signal transmission, e.g. for audio/video playback or streaming.
437
questions
0
votes
0
answers
190
views
How to make Pipewire (or whatever) use the LDAC codec automatically when connecting my bluetooth headset automatically
Problem:
Whenever I turn on my Bluetooth headset it connects automatically to my pc choosing the "HSP/HFP" codec. This coded sounds terrible.
Additional info:
When I click "disconnect&...
2
votes
0
answers
54
views
How to know my audio codec will support the output container in. Fluent-ffmpeg [closed]
I am building a YouTube downloader. As YouTube doesn’t store high quality video with audio and store them separately so I have to merge them on server.
For merging I am using a Node.js server with ...
1
vote
0
answers
614
views
FFmpeg Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
I'm having trouble using FFmpeg to host an RTSP server for continuous video streaming. The command I'm using is:
ffmpeg -report -v verbose -re -stream_loop -1 -i store-aisle-detection.mp4 -c copy -f ...
2
votes
1
answer
436
views
Why does ffmpeg alter timestamps when "-codec copy" is given, and how to prevent this?
I am currently trying to remove certain audio tracks from a bunch of m2ts files (mainly to save space), using ffmpeg. In doing so, I would like the removal of those tracks to be the only action that ...
2
votes
0
answers
93
views
GNOME Network Displays - PackageKit service not found, codecs not detected
What's up StackExchange-land :)
I'm currently running into an issue with getting PackageKit to install or recognize codecs on my system when using GNOME Network Displays on Ubuntu 23.10.
When I try to ...
1
vote
1
answer
52
views
Is '-c' just shortened alias for '-codec' in ffmpeg?
I looked at the documentation and it does not seem clear to me. For example are the following two commands essentially the same?
ffmpeg -i .\video.mp4 -i .\metadata.txt -map_metadata 1 -codec: copy -...
1
vote
0
answers
158
views
H264_QSV will decode, VP9_QSV will not
Yet another Intel Quick Sync (QSV) issue.
I've been using QSV enabled decoders, encoders, and filters for about a year, and mostly it works, at least for H264. But, as others have reported, HEVC and ...
2
votes
0
answers
131
views
Video Encoded using FFmpeg is not being played in Azure Kinect Viewer
I captured a video using a Kinect Azure DK device and could play it back using Azure Kinect Viewer (v.1.4.1). However, when I encode a video using FFmpeg, the commands are given below. I can not ...
0
votes
0
answers
190
views
Best Lossless Video Codec for 8 bpc RGB image sequences?
I render 3D animations, many of which take days or even weeks to render at a time, and I need to keep a lossless archive of the output files. The output format from the render engine is 8 bit per ...
0
votes
0
answers
164
views
How to use Docker FFMPEG and HLS on my website
I want to use a Docker container to convert an mkv video to an HLS "video". This is my command for it:
docker run --rm \
-v /mnt:/config \
linuxserver/ffmpeg \
-i "/config/test....
1
vote
0
answers
47
views
FFMPEG: Sync issue between mp3 and mp4 converted from the same input webm file
Using this command to create 2 files :
ffmpeg -y -i input.webm -c:v copy -c:a libmp3lame -b:a 128k -strict -2 -f mp4 rec_50ae1a2a3da64cf1a5f46c53de757d6e-1692704540213.mp4 -vn -acodec libmp3lame -b:a ...
5
votes
1
answer
8k
views
How to select maximum resolution and specify a format/codec in yt-dlp?
I use yt-dlp frequently and like it. But there is a problem I can't find documented anywhere.
yt-dlp -v -f "bv*[height<=720]+ba*[ext=m4a]" -N 4 "https://www.youtube.com/xxx"
...
1
vote
0
answers
170
views
Force media info rewrite with ffmpeg
I have a bunch of video files created by MKVToolnix that have a Codec ID like: V_MS/VFW/FOURCC / HEVC.
I tried to run this:
ffmpeg -i test.mkv -c copy test.avi
to turn it to avi and then this:
ffmpeg ...
0
votes
1
answer
215
views
Why does the same timestamp represent different points in an MP3 in different media players?
I have an MP3 file that's 11 minutes long. When I jump to, say, 6:15 in the song in some media players (VLC, the web browser), that timestamp represents a different point in the song than in other ...
0
votes
1
answer
639
views
How to send av1 encoded stream to a mediamtx server?
I want to test streaming av1 encoded video from the command line but I don't have enough expertise to know if I'm doing something wrong or if it's simply unsupported.
So far I've tried gst-launch-1.0 ...
2
votes
1
answer
2k
views
Is it okay to re-encode videos from traditional lossless codec to modern lossless codec to save space and preserve quality?
Lossless video codec means almost zero information loss. After some internet search I found that there are some traditional opensource lossless codec like huffyuv, lagarith, utvideo and ffv1, which ...
0
votes
0
answers
174
views
Official source for portable embedded Chromium binaries, for kiosk use, with H264 support
I am using Chromium in kiosk mode, for an embedded computer project.
We can find portable snapshots on https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/
...
0
votes
0
answers
125
views
Identify supported video file format and convert accordingly
I have a small video advertising device that I want to change the video on.
Inside it has an AK2117 multimedia chip. The documentation states it has a WMA Decoder (bit rate 32-384 Kbps, 8-48KHZ), ...
1
vote
1
answer
542
views
How do I accurately cut video and audio with ffmpeg
So when I try to cut out a portion of a video I do this
ffmpeg -i originalClip.mp4 -ss 00:00:14 -t 00:00:21 -codec copy outputClip.mp4
And the video comes out with amazing quality and the sound is on ...
1
vote
0
answers
71
views
One IP camera playing, one isn't. Codec incompatibility?
I am new to video codecs and would like to understand my problem better.
I am using Siemens camera display in TIA V17 to display the RTSP streams of some IP cameras...
IP camera A: Supports H264 but ...
3
votes
1
answer
742
views
Kdenlive proxy clips vs. transcode to editor-friendly format
When should I use proxy clips vs. the "transcode to editor-friendly format" option? They both seem to accomplish the same goal, that is, providing the video in a format that the editor can ...
1
vote
1
answer
3k
views
mpv: error while loading shared libraries: libavcodec.so.59: cannot open shared object file: No such file or directory
System:
Linux 6.1.21-1-MANJARO
After updating/upgrading my system, mpv no longer works. It seems ffmpeg is using libavcodec 60 and mpv is using 59. Though I'm not 100% sure this is the issue. Any help ...
0
votes
0
answers
582
views
No video out from ffmpeg h264_v4l2m2m encoder on rtmp or fifo file
I am using ffmpeg to stream /dev/video0 to rtmp server.
I use -codec:v h264_v4l2m2m as encoder.
What ever I try I get no video out on the stream.
On my command line if I just replace -codec:v ...
0
votes
1
answer
93
views
What are the constraints for lacking encoder support in FFmpeg?
According to the documentation, there are several video and audio codecs with missing encoder support.
Is this typically because:
A) The encoder is copyright protected.
B) The encoder implementation ...
1
vote
0
answers
143
views
Why does running Netflix not cause a bump in video decode?
I don't have any performance issues - just curious about the internals of web browsers.
My understanding is Netflix uses H.264, VP9, or against some devices AV1. I wasn't able to figure out which ...
8
votes
2
answers
2k
views
FFmpeg incorrect colourspace with hardcoded subtitles
Problem
I have a MKV file which has 1 video and 1 subtitle stream, of which I want to hardcode the subtitle stream and output a MP4 file.
Example file, images and results can be found here.
mediainfo
...
1
vote
0
answers
532
views
Rebuild .m4a file with ffmpeg
I have a couple of corrupt m4a file that I'd like to try to repair by rebuilding the container, so I thought ffmpeg could do that easily. However, when I run this, even on a valid file, I get an error:...
1
vote
1
answer
453
views
How can most apps play AAC for free?
Web says that AAC is not a free format, and decoding software must pay the fee. I have downloaded a sample AAC file, and tried playing it with free apps. On Android, Google Files, VLC, and Musicolet ...
2
votes
1
answer
1k
views
Only convert codecs(preserve audio and subtitles)
I have a video file h265 mkv which has dual audio and multiple subtitles.
I want to convert it to h264 since it doesn't require further transcoding on my jellyfin server.
But I haven't been able to ...
0
votes
0
answers
186
views
How to cut 1 video into many different videos with different lengths? ( FFMPEG)
I need to cut a video with a length of several minutes into many different videos, In all but the videos cut from the original video will have different short lengths. what do i need to do?
This is ...
0
votes
1
answer
6k
views
Windows 11's new media player cannot play opus encoded audio in mp4 file
youtube-dl-gui allows choosing to download a video as an .mp4 file or an .mkv file. According to VLC, both options end up having the audio portion encoded as Opus audio. However, attempting to play ...
0
votes
1
answer
29
views
Songs of Conquest can't play cutscenes after winning a mission on Ubuntu 18.04
Songs of Conquest can't play a cutscene / video after winning a mission in campaign on Ubuntu 18.04. After you win a mission, there should be a bard singing a song. The screen just stays black. How do ...
0
votes
0
answers
15
views
Which FFmpeg video codec is natively supported in Windows 10 and Windows Media Player? [duplicate]
I need to generate a video that will run on Windows 10 with Windows Media Player without having to install any codec or anything else. I plan to generate that video using flags like the below.
What ...
1
vote
0
answers
85
views
How to export mestimate filter motion vectors into a separate file with ffmpeg binary?
So mestimate filter can be used to compute the motion vectors in a video. They can also be displayed. Is there a way to export them into a separate file using the ffmpeg binary? I would love to have ...
0
votes
1
answer
805
views
h264_cuvid @ 0x55e14e670bb0 ctx->cvdl->cuvidGetDecoderCaps(&ctx->caps8) failed
I have ubuntu18.04, NVIDIA GTX1060, NVIDIA driver 11.4, cuda version 10.2, cudnn version7.6.5.
Yesterday, I got it done with following configuration and it worked perfectly with my test video(ffmpeg ...
0
votes
0
answers
841
views
Bitrate over Codec for the best quality?
AFAIK bitrate means how many bits are used to record the audio/video within one second, while codec (or file format) means the compression method to store the clip.
To me, the higher the bitrate, the ...
3
votes
3
answers
10k
views
How do I find out what Audio Device Codec my laptop have?
I have a Dell Inspiron Laptop.
Now, usually, when you make a custom PC, you see something like ALC 892/897 Audio Device Codec name in motherboard specifications (that you are planning to use).
So ...
0
votes
1
answer
469
views
How does G729 Codec compress down to 8kbps?
As per https://en.wikipedia.org/wiki/G.729:
It has a sample frequency of 8kHz, so every second it takes 8000 Samples:
Sampling frequency 8 kHz/16-bit (80 samples for 10 ms frames)
It has a fixed ...
0
votes
0
answers
346
views
How to convert old videos to a new format that is playable in most modern browsers?
I found a stash of old video clips I'd like to share online with a HTML5-video player. But none of them opens in Chrome. I guess the codecs are not supported.
What format should I convert to? What is ...
2
votes
1
answer
2k
views
Realtek ALC289 codec not found on the whole internet
I'm trying to find a codec on internet to make my microphone work on my Dell XPS 13.
Since I've installed ubuntu 20.04, my microphone stop working, whether I try the built-in microphone or an external ...
1
vote
0
answers
361
views
Codec parameter is overridden by file extension when using ffmpeg
I'm using ffmpeg to transcode some video files and for this post we'll take test.mkv. test.mkv has an audio track at index 2 that is AAC 7.1. I want to keep the track but also add a AAC stereo version....
1
vote
1
answer
2k
views
How to split m4b file into many tracks on linux
I do have an audiobook with m4b extension, and I wish to split it into many tracks so that it becomes more manageable on my mobile.
Through splitting m4a into multiple files with ffmpeg, I ...
0
votes
1
answer
199
views
Verify k-lite codec windows 10 file SHA256
I'm trying to verify the k-lite codec I downloaded to my WINDOWS 10 laptop.
The site lists the .exe file to download with a link and lists the md5 and sha256 hashes. I'm trying to verify the hashes ...
2
votes
1
answer
145
views
ffmpeg : Not keeping original codec for Audio Track
I have 3 versions of the ffmpeg command and none of them are perfect... I am stuck.
Below are the examples I have and the issues I face with each version:
ffmpeg -i "%%a" -map 0:v:0 -map 0:a:...
0
votes
0
answers
5k
views
Save a local file URL .m3u8 stream using youtube-dl
I have a local .m3u8 file containing stream information. I would like to use youtube-dl or a fork to download the stream.
When I pass the local file to youtube-dl it gives the error that it is ...
0
votes
0
answers
753
views
Downloading songs from YouTube, which codec to use?
I want to mass download songs from YouTube using cli app called spotdl, I'm confused as it offers audio in different codecs, there is
Opus at ~120kbps-149kps,48KHz
AAC at ~133kbps-192kbps,44.1KHz ...
0
votes
0
answers
4k
views
FFMPEG Convert image format with best possible output?
With the standard command you can theoretically convert almost anything (ffmpeg -i input.png output.tiff),
but I'm afraid that the output will differ from the input in terms of quality and/or ...
1
vote
0
answers
2k
views
Calculate PSNR, VMAF, SSIM using FFmpeg
I am trying to calculate PSNR, VMAF, SSIM using FFmpeg after I reencode to 10-bit H.265 codec but I keep getting an errors:
"An invalid or unaligned stack was encountered during an unwind ...
1
vote
1
answer
4k
views
Could not find tag for codec none in stream #1, codec not currently supported in container vs Non-monotonous DTS in output stream
I'm trying to record video from my ip camera stream with ffmpeg in command line.
fmpeg -rtsp_transport tcp \
> -i rtsp://192.168.0.250/stream1 \
> -c copy \
> -map 0 \
> -f segment \
&...
1
vote
0
answers
20
views
Are the ffmpeg libraries able to suggest the audio codec? [closed]
I want to write a small audio data converter for a very special goal. I'd like to use different audio formats as input without investigating the input by myself and before selecting codec.
Is there a ...