[FFmpeg-user] How can I see what version of a library is linked? (e.g. libmp3lame)
Dear FFmpeg User Mailing List, The versions of certain libraries are printed in the banner, such as libavcodec. I am curious how to find information about linked libraries, such as libmp3lame, the LAME MP3 encoder. I would like to know: 1. Was it statically or dynamically linked? 2. If dynamically linked, where is the libmp3lame.so file? (I think the answer is /usr/local/libmp3lame.dylib in my case on my Mac, but I want FFmpeg to tell me. I am not on Kubuntu right now, but I can probably find it on Kubuntu also, and I'm guessing it is an .so and not a .dylib file on that OS.) 3. What is the version of the linked library? Here is how I can ask LAME itself, from the LAME CLI front-end for libmp3lame: bash$ lame --version LAME 64bits version 3.100 (http://lame.sf.net) - Here is my best guess: bash$ ffmpeg -h encoder=libmp3lame Encoder libmp3lame [libmp3lame MP3 (MPEG audio layer 3)]: General capabilities: delay small Threading capabilities: none Supported sample rates: 44100 48000 32000 22050 24000 16000 11025 12000 8000 Supported sample formats: s32p fltp s16p Supported channel layouts: mono stereo libmp3lame encoder AVOptions: -reservoir E...A... use bit reservoir (default true) -joint_stereo E...A... use joint stereo (default true) -abr E...A... use ABR (default false) This looks promising, but it turns out all of that information is hardcoded in this file: ffmpeg/libavcodec/libmp3lame.c You can even change this string: AVCodec ff_libmp3lame_encoder = { // ...snip... .long_name = "libmp3lame MP3 (MPEG audio layer 3)" ...and the FFmpeg help will display whatever you type. It is not pulling it from the library. This is intended to be a general question, so I am not going to include a specific FFmpeg banner because I use FFmpeg on two operating systems (MacOS 10.12 and Kubuntu) and I have multiple versions of FFmpeg. Thank you, Zak F. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
On 2018-06-11 at 5:32 PM EDT, Carl Eugen Hoyos wrote: 2018-06-07 23:40 GMT+02:00, mohammed bey ahmed khernache : My purpose is to calculate some metrics such as: fps, miss rate, etc, of video decoding. So I need only to decode a video without displaying it. Sorry for missing this: In this case, ffplay is the wrong tool for you, ffmpeg -i input -an -f null - may be a better idea. Okay, I am going to ask the questions that have been on my mind for this entire thread: 1. What is the goal of the original email? Frames per second is available from ffprobe, right? Does "miss rate" refer to cache misses while operating on the compressed video data? Won't the number of cache misses depend on many factors, possibly including whether the computer hardware is also busy rendering and displaying a video on the screen, such that disabling all video display actually will change the "miss rate"? This does not seem like a characteristic of the video file itself, it seems like a statistic that is only available during a specific instance of playing the video with specific software and hardware. Or maybe I am misunderstanding. The number of cache misses may in practice be exactly the same every time you play a given video on certain hardware, but the original email says the test is being run remotely on a computer that cannot display video, so any actual playback will occur on a different computer that will have different performance, unless I am misunderstanding. 2. What does ffmpeg with -f null really do, and how is it different than ffprobe? Thank you, Zak ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Fmp4 overhead vs ADTS/AAC
Hi all, I was curious about the best way to calculate the overhead of an fmp4 file vs ADTS. The fmp4 will just contain audio. I tried calculating the size of the ftyp, moov and subsequent moof and sidx boxes but that seems like it’s not enough. Is a portion of mdat overhead as well? If so, what would be the best way to calculate this? Thanks Ronak Sent from my iPhone ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Fmp4 overhead vs ADTS/AAC
Hi all, I was curious about the best way to calculate the overhead of an fmp4 file vs ADTS. The fmp4 will just contain audio. I tried calculating the size of the ftyp, moov and subsequent moof and sidx boxes but that seems like it’s not enough. Is a portion of mdat overhead as well? If so, what would be the best way to calculate this? Thanks Ronak Sent from my iPhone ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
2018-06-11 23:50 GMT+02:00, Moritz Barsnick : > On Mon, Jun 11, 2018 at 23:31:33 +0200, Carl Eugen Hoyos wrote: >> > I'm still convinced it's either an ffplay bug, or it's intended. >> >> Really? > > Yes. What are you implying with your question? That tautologies are typically true. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Size of the video output file changes after mirror effect.
On Mon, Jun 11, 2018, at 10:17 AM, Mehta Naisargi Rajeshbhai wrote: > > Here size of video output file decreases after giving mirror effect. And > rest of the things remains same for example resolution remains the same. > So can anyone tell me that why the size of video output file is > changing? Filtering requires encoding. The input is decoded, filtering is applied, then it is sent to the encoder to create the output. Since the output is not the exact same data as the input, and due to the differences between formats and encoder implementations, the resulting file size will be different. > And what steps I need to follow for mirror effect to keep the size of > the output file same as that of the input file. Why do you want to keep the file size the same? Mirror it using your player instead. For example: ffplay -vf hflip input.mp4 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
On Mon, Jun 11, 2018 at 23:31:33 +0200, Carl Eugen Hoyos wrote: > > I'm still convinced it's either an ffplay bug, or it's intended. > Really? Yes. What are you implying with your question? That the behavior is neither a bug nor is it the way ffplay was intended to behave? (Do you not understand "or", or do you not understand "intended"?) *I* was trying to say: If Mohammed's expectation was correct - I did follow it for a while - then it's some sort of bug. OTOH, if this behavior was intended, then it's obviously correct. Perhaps I should have written: "I'm not sure this is the intended behavior." (I am now.) (By the way, I was truly misled by the fact that I found no audio "equivalent" of "-nodisp", and thought it implied "don't play, just decode", when in fact it's an alias for "-vn" and the equivalent is "-an".) > > $ ffplay -nodisp test.aud.mp4 > > These work as expected afaict. > > > $ ffplay -nodisp test.vid.mp4 > > This can only fail afaict (and it does). Then does it not also "work" as expected? I find ffplay's error message misleading, but "patch surely welcome, but no patch attached". Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Size of the video output file changes after mirror effect.
Hello Everyone, I am using this below ffmpeg command for giving the mirror effect in the video output file : ffmpeg -i -pix_fmt yuv420p -vf "hflip" -metadata:s:v rotate=180 size of video input file is 3.0 M and size of video output file is 1.5M Here size of video output file decreases after giving mirror effect. And rest of the things remains same for example resolution remains the same. So can anyone tell me that why the size of video output file is changing? And what steps I need to follow for mirror effect to keep the size of the output file same as that of the input file. Please guide me with the proper steps. Thanking you. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
2018-06-07 23:40 GMT+02:00, mohammed bey ahmed khernache : > My purpose is to calculate some metrics such as: fps, miss rate, etc, of > video decoding. So I need only to decode a video without displaying it. Sorry for missing this: In this case, ffplay is the wrong tool for you, ffmpeg -i input -an -f null - may be a better idea. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Change the fps of mp4 file during streaming without restarting video
2018-06-11 16:03 GMT+02:00, mahek delawala : > I am able to see that fps gets changed in the second terminal but I am not > able to see the video in vlc in any of the above command ( vlc just plays > the audio stream, video stream is not present). Please test with testsrc2 as input and no audio and if it still fails, provide the command line you tested together with the complete, uncut console output. Changing the frame rate on-the-fly is not possible with ffmpeg (the application) afaict, vfr input and output is possible in some cases. Please remember not to top-post here, Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
2018-06-10 2:20 GMT+02:00, Moritz Barsnick : > On Sat, Jun 09, 2018 at 21:44:28 +0200, Carl Eugen Hoyos wrote: >> ffmpeg (the application) supports several audio output >> devices like alsa, pulse and oss. They may be what >> you need. > > But Mohammed's input video didn't even have an audio stream? > > I'm still convinced it's either an ffplay bug, or it's intended. Really? > "The file contains only audio, and '-an' is given, so refuse to play." Yes. > "The file contains only video, and '-vn'/'-nodisp' is given, so refuse to > play." Yes. > "The file contains audio and video, and at least one of them isn't disabled, > so go ahead with decoding." Yes. > I'm not sure the video decoder is used with '-vn'/'-nodisp', It should not be used afaict. > so perhaps running ffplay like this doesn't fulfill Mohammed's cause. > "ffmpeg -i ... -f null -" may be more effective. It is certainly a good idea if he just needs a performance test. > $ ffmpeg -f lavfi -i testsrc -t 10 test.vid.mp4 > $ ffmpeg -f lavfi -i sine -t 10 test.aud.mp4 > $ ffmpeg -f lavfi -i testsrc -f lavfi -i sine -t 10 test.vid+aud.mp4 > $ ffplay -nodisp test.vid+aud.mp4 > $ ffplay -nodisp test.aud.mp4 These work as expected afaict. > $ ffplay -nodisp test.vid.mp4 This can only fail afaict (and it does). What do I misunderstand? Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
2018-06-11 12:47 GMT+02:00, mohammed bey ahmed khernache : > I tried to run *ffplay* without "-*nodisp*" option, where being > connected to my board via *Remote Desktop Connection*. > Unfortunately, ffplay couldn't play it. Did you already try ffmpeg and one of its numerous audio output devices? Please remember not to top-post here, Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Change the fps of mp4 file during streaming without restarting video
On Mon, Jun 11, 2018 at 19:33:43 +0530, mahek delawala wrote: > I am able to see that fps gets changed in the second terminal but I am not > able to see the video in vlc in any of the above command ( vlc just plays > the audio stream, video stream is not present). I have no idea about RTSP and its format, and it seems it's not something I can test. The best you can do it t hope for someone else's help. What you need to do, is to provide the complete, uncut console output to each of these commands. Their output may give some indication as what might be happening. > 1. What can I do so that I am able to see the video track in vlc ? Have you tried some other player? (That's quite a long shot, as VLC should be capable of ... a lot.) > 2. When I am entering the second command it starts from 00:00:00 time, so > how can I check the exact instance of time at which change in fps has > resulted in video ? (for example if I am having 10 min video and I have > entered first command, it starts streaming now after 5 minutes I am > applying second command in another terminal it also starts with 00:00:00 > time now. Actually, FPS Changes effect must come from the 5 mintues(the > time at which i executed fps chagne command) only, Video plying must not be > start from the beginning.) I have no idea what you are trying to say, sorry. Can you explain to me how both your commands can simulaneously send to the identical RTSP URL? (As I mentioned, I have no idea about RTSP.) Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Change the fps of mp4 file during streaming without restarting video
Hi Moritz, I am having some issues regarding changing the fps of the streamed video. I am applying the following ffmpeg command on the terminal which has 30 fps in the output and pushes the stream to wowza server. ffmpeg -re -i ~/Videos/Movie/Chhello\ Divas\ 2015.mp4 -acodec copy -r 30 -f rtsp -muxdelay 0.01 rtsp://mahek:Mahek@123@ 192.168.201.76:1935/live/mystream During the execution of the above command, i am applying the below command simultaneously in other terminal which has 15 fps in the output. ffmpeg -re -i ~/Videos/Movie/Chhello\ Divas\ 2015.mp4 -acodec copy -r 15 -f rtsp -muxdelay 0.01 rtsp://mahek:Mahek@123@ 192.168.201.76:1935/live/mystream I am able to see that fps gets changed in the second terminal but I am not able to see the video in vlc in any of the above command ( vlc just plays the audio stream, video stream is not present). Following are my queries regarding changing the fps of the streamed video : 1. What can I do so that I am able to see the video track in vlc ? 2. When I am entering the second command it starts from 00:00:00 time, so how can I check the exact instance of time at which change in fps has resulted in video ? (for example if I am having 10 min video and I have entered first command, it starts streaming now after 5 minutes I am applying second command in another terminal it also starts with 00:00:00 time now. Actually, FPS Changes effect must come from the 5 mintues(the time at which i executed fps chagne command) only, Video plying must not be start from the beginning.) On 11 June 2018 at 00:45, Moritz Barsnick wrote: > On Sun, Jun 10, 2018 at 23:05:31 +0530, mahek delawala wrote: > > I am having one mp4 file. During the streaming of the file I want to > change > > the fps of video file without restarting the video or without creating > the > > new mp4 file with modified fps. > > Assuming you are using ffmpeg for streaming, use "-r " as an > output option (i.e. before your output stream URI). > > Note that ffmpeg will achieve this frame rate by dropping or > duplicating frames. If you want to interpolate, you need to use a > filter. > > Note also that this doesn't work with the video copy codec (-c:v copy). > > Cheers, > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
Hello again, I tried to run *ffplay* without "-*nodisp*" option, where being connected to my board via *Remote Desktop Connection*. Unfortunately, ffplay couldn't play it. Below is the output: -- output of ffplay - root@odroid:~/HEVC# ffplay jellyfish-10-mbps-hd-hevc.mkv ffplay version N-9-g380ca1bc Copyright (c) 2003-2018 the FFmpeg developers built with gcc 4.8 (Ubuntu/Linaro 4.8.2-19ubuntu1) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --arch=arm --arch=arm --enable-neon --enable-thumb --enable-optimizations --enable-pthreads --enable-gray --enable-version3 --enable-postproc --enable-libxcb --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libgsm --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-yasm --enable-nonfree libavutil 56. 18.102 / 56. 18.102 libavcodec 58. 19.102 / 58. 19.102 libavformat58. 13.102 / 58. 13.102 libavdevice58. 4.100 / 58. 4.100 libavfilter 7. 23.100 / 7. 23.100 libswscale 5. 2.100 / 5. 2.100 libswresample 3. 2.100 / 3. 2.100 libpostproc55. 2.100 / 55. 2.100 Input #0, matroska,webm, from 'jellyfish-10-mbps-hd-hevc.mkv':0/0 Metadata: COMPATIBLE_BRANDS: iso4hvc1iso6 MAJOR_BRAND : iso4 MINOR_VERSION : 1 ENCODER : Lavf56.3.100 Duration: 00:00:30.10, start: 0.067000, bitrate: 9978 kb/s Stream #0:0(und): Video: hevc (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Metadata: CREATION_TIME : 2016-02-04 22:41:00 LANGUAGE: und HANDLER_NAME: hevc@GPAC0.5.2-DEV-rev565-g71748d7-ab-suite [swscaler @ 0xab3e7360] No accelerated colorspace conversion found from yuv420p to bgra. X Error of failed request: GLXBadRenderRequestKB sq=0B f=0/0 Major opcode of failed request: 148 (GLX) Minor opcode of failed request: 1 (X_GLXRender) Serial number of failed request: 311 Current serial number in output stream: 313 -- Best regards On Sun, Jun 10, 2018 at 2:25 AM Moritz Barsnick wrote: > On Sat, Jun 09, 2018 at 21:44:28 +0200, Carl Eugen Hoyos wrote: > > ffmpeg (the application) supports several audio output > > devices like alsa, pulse and oss. They may be what > > you need. > > But Mohammed's input video didn't even have an audio stream? > > I'm still convinced it's either an ffplay bug, or it's intended. > "The file contains only audio, and '-an' is given, so refuse to play." > "The file contains only video, and '-vn'/'-nodisp' is given, so refuse to > play." > "The file contains audio and video, and at least one of them isn't > disabled, so go ahead with decoding." > > I'm not sure the video decoder is used with '-vn'/'-nodisp', so perhaps > running ffplay like this doesn't fulfill Mohammed's cause. > "ffmpeg -i ... -f null -" may be more effective. > > $ ffmpeg -f lavfi -i testsrc -t 10 test.vid.mp4 > $ ffmpeg -f lavfi -i sine -t 10 test.aud.mp4 > $ ffmpeg -f lavfi -i testsrc -f lavfi -i sine -t 10 test.vid+aud.mp4 > $ ffplay -nodisp test.vid+aud.mp4 > $ ffplay -nodisp test.aud.mp4 > $ ffplay -nodisp test.vid.mp4 > > The last one fails with said error. So does > $ ffplay -an test.aud.mp4 > > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] error: 'x265_api_get' undeclared (first use in this function)
Thank you. I fix it. 2018-06-11 11:55 GMT+08:00 Lou Logan : > On Sun, Jun 10, 2018, at 5:53 PM, lx wrote: > > hg clone https://bitbucket.org/multicoreware/x265 > > cd x265 > > hg checkout 0.8 > > According to the FFmpeg configure file: > > X265_BUILD >= 68 > > The x265 0.8 tag is probably too old, so reset to the "default" branch and > avoid checking out old, unsupported tags. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".