Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
FFMPEG Detect volume of streaming (PHP)
22 septembre 2013, par Mohamed MostafaI spent last 4 days trying to acheive that but with no luck,
I am trying to detect volume of streaming link or save audio file, using the FFmpeg I tried every single command line.
ffmpeg -f lavfi -i amovie=sample1.aac,volumedetect -f null -y test.txt
Output
There was a problem! Array ( [0] => FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers [1] => built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6) [2] => configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab [3] => libavutil 50.15. 1 / 50.15. 1 [4] => libavcodec 52.72. 2 / 52.72. 2 [5] => libavformat 52.64. 2 / 52.64. 2 [6] => libavdevice 52. 2. 0 / 52. 2. 0 [7] => libavfilter 1.19. 0 / 1.19. 0 [8] => libswscale 0.11. 0 / 0.11. 0 [9] => libpostproc 51. 2. 0 / 51. 2. 0 [10] => Unknown input format: 'lavf' )
Basically my problem now is :
Unknown input format: 'lavf'
Any help please
My FFMpeg Version is
[root@bea ~]# ffmpeg -formats | grep lavfi
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0
From PHP info
ffmpeg
ffmpeg-php version 0.6.0-svn ffmpeg-php built on Sep 21 2013 15:38:20 ffmpeg-php gd support enabled ffmpeg libavcodec version Lavc52.72.2 ffmpeg libavformat version Lavf52.64.2 ffmpeg swscaler version SwS0.11.0
Directive Local Value Master Value ffmpeg.allow_persistent 0 0 ffmpeg.show_warnings 0 0
-
FFmpeg into Qt 5.0.2 : exit code -1073741515 on av_register_all() ;
21 septembre 2013, par Nifty255I am attempting to integrate FFmpeg into my Qt app. I used the FFmpeg git-0fb64da 64-bit Dev source from Zeranoe FFmpeg builds page and added avformat.lib to my project. My .pro file:
unix|win32: LIBS += -L$$PWD/../../FFmpeg/ffmpeg-20130428-git-0fb64da-win64-dev/lib/ -lavformat INCLUDEPATH += $$PWD/../../FFmpeg/ffmpeg-20130428-git-0fb64da-win64-dev/include DEPENDPATH += $$PWD/../../FFmpeg/ffmpeg-20130428-git-0fb64da-win64-dev/include
I included libavformat/avformat.h inside the "extern "C"" block.
As long as I don't call av_register_all(), this all works fine, but once I do, my app exits with code -1073741515. Any ideas as to why?
-
How to invoke FFmpeg methods on Android
21 septembre 2013, par Gonzalo Solerahow could I invoke the FFmpeg methods on Android?? I have compiled the libraries and I added them to my project, but I don´t know how to use the functions of the ffmpeg´s libraries... Thanks!!
-
Sending per frame metadata with H264 encoded frames
21 septembre 2013, par user2459280We're looking for a way to send per frame metadata (for example an ID) with H264 encoded frames from a server to a client.
We're currently developing a remote rendering application, where both client and server side are actively involved. The server renders a high quality image with all effects, lighting etc. The client also has model-informations and renders a diffuse image that is used when the bandwidth is too low or the images have to be warped in order to avoid stuttering .
So far we're encoding the frames on the server side with ffmpeg and streaming them with live555 to the client, who receives an rtsp-stream and decodes the frames again using ffmpeg.
For our application, we now need to send per frame metadata. We want the client to tell the server where the camera is right now. Ideally we'd be able to send the client's view matrix to the server, render the corresponding frame and send it back to the client together with its view matrix. So when the client receives a frame, we need to know exactly at what camera position the frame was rendered.
Alternatively we could also tag each view matrix with an ID, send it to the server, render the frame and tag it with the same ID and send it back. In this case we'd have to assign the right matrix to the frame again on the client side.
After several attempts to realize the above intent with ffmpeg we came to the conclusion that ffmpeg does not provide the required functionality. ffmpeg only provides a fix, predefined set of fields for metadata, that either cannot store a matrix or can only be set for every key frame, which is not frequently enough for our purpose.
Now we're considering using live555. So far we have an on demand Server, witch gets a VideoSubsession with a H264VideoStreamDiscreteFramer to contain our own FramedSource class. In this class we load the encoded AVPacket (from ffmpeg) and send its data-buffer over the network. Now we need a way to send some kind of metadata with every frame to the client.
Do you have any ideas how to solve this metadata problem with live555 oder another library?
Thanks for your help!
-
How to transmux ismv file to mp4
21 septembre 2013, par PriyalI wanted to convert ismv file to mp4 without any packet loss.
I tried it with ffmpeg as:
ffmpeg -i input.ismv output.mp4
But the resultant mp4 file has some packet/frame loss due which video is distracted.
ffmpeg
command line return the following:Metadata: major_brand : isml minor_version : 1 compatible_brands: piffiso2 Duration: 00:03:57.18, start: 0.000000, bitrate: 1612 kb/s Stream #0:0(und): Audio: wmapro (b[1][0][0] / 0x0162), 44100 Hz, stereo, fltp, 64 kb/s (default)Metadata: creation_time : 2013-09-20 06:18:40 handler_name : Audio Stream #0:1(und): Video: vc1 (Advanced) (vc-1 / 0x312D6376), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 1343 kb/s, 30 tbr, 10000k tbn, 60 tbc (default) Metadata: creation_time : 2013-09-20 06:18:40 Video Stream #0:2(und): Video: vc1 (Advanced) (vc-1 / 0x312D6376), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 887 kb/s, 30 fps, 30 tbr, 10000k tbn, 60 tbc (default) Metadata: creation_time : 2013-09-20 06:18:40 handler_name : Video Stream #0:3(und): Video: vc1 (Advanced) (vc-1 / 0x312D6376), yuv420p, 364x27 2 [SAR 136:136 DAR 91:68], 599 kb/s, 30 fps, 30 tbr, 10000k tbn, 60 tbc (default ) Metadata: creation_time : 2013-09-20 06:18:40 handler_name : Video Stream #0:4(und): Video: vc1 (Advanced) (vc-1 / 0x312D6376), yuv420p, 276x20 8 [SAR 207:208 DAR 14283:10816], 400 kb/s, 30 fps, 30 tbr, 10000k tbn, 60 tbc (d efault) Metadata: creation_time : 2013-09-20 06:18:40 handler_name : Video [wmapro @ 003fa000] Channel transform bit is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error while decoding stream #0:0: Invalid data found when processing input [wmapro @ 003fa000] frame[0] would have to skip -9 bits[wmapro @ 003fa000] Packet loss detected! seq e vs d [wmapro @ 003fa000] Packet loss detected! seq d vs f [wmapro @ 003fa000] Reserved bit is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented