Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
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
-
How to match precompiled static library's debugging symbols to source code with Xcode 5 ?
21 septembre 2013, par Chris BallingerI have to compile FFmpeg for iOS using an external build script, but when I am debugging I see assembler if I delve too deep into libavformat library functions:
0x109a73: cmpl $0, 1192(%ebp) 0x109a7a: jns 0x109a86 ; mov_write_header + 198 at movenc.c:3539 0x109a7c: movl $1, 1192(%ebp) 0x109a86: movl 16(%ebp), %eax 0x109a89: cmpl $0, 84(%eax) 0x109a8d: movl %edx, %ecx 0x109a8f: jne 0x109ad9 ; mov_write_header + 281 at movenc.c:3548 0x109a91: testb $2, 48(%ecx) 0x109a95: jne 0x109ac1 ; mov_write_header + 257 at movenc.c:3541
There are clear debugging symbols left behind which would lead me to believe that there should be some way to tell Xcode the location of this source code to allow easier debugging.
Is this even possible?
edit: I found a related question here No symbols/source for external library in Xcode 4
So when I run
xcrun dwarfdump libavformat.a | grep "\.c"
I get a bunch of results like this:AT_decl_file( "libavformat/movenc.c" )
So I tried putting the relevant source files in folders relative to both the .a file and my .xcodeproj file, but neither of those methods worked. Full source code is available here: https://github.com/openwatch/livestreamer-ios
edit2: I found another question about how to set the source mapping for lldb but I'm not quite sure what to do... LLDB equivalent of gdb "directory" command for specifying source search path?
It seems like I might need to do
(lldb) settings set target.source-map libavformat/movenc.c /path/to/libavformat/movenc.c
for every file I need?
-
Encode & play video formats without 3rd party codec packs
20 septembre 2013, par JezzaWe have built a windows based software system that allows users to import their own video for viewing in the software. It works fine for AVI and WMV as we use a windows based player. For encoding or playing to work with most common video formats we have to ask our customers to download a 3rd party codec pack, such as K-Lite or Combined Community Codec Pack. Many of our customers are not allowed to do this due to IT Management rules.
Are they are any suggestions regarding a player and encoder that can be built into our windows based software without needing 3rd party codec packs.
I am not sure if ffmpeg, handbrake, VLC can be used for this purpose.
Thanks. J
-
How To create mosaic with live stream with ffmpeg ( or with xuggle )
20 septembre 2013, par Emre KarataşoğluFor a thousand minutes I try to find a way that stream multiple video and combine them into a one output . I wanna do that with ffmpeg or xuggler with ffmpeg cmd. VirtualDub and avis couldn't meet my needs. Actually I couldn't find a way stream in avis . I can only make 4 8 16 videos in a screen on virtualdub but they are local videos and not my issue .
>cd c:\f\bin
ffmpeg -i rtmp://localhost/live/me -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left]; movie=other stream, scale=iw/4:ih/4 [right]; [left][right] overlay=main_w/2:0 [out]" -b:v 768k output
anyway join two stream side by side , but I want more . Is it possible with ffmpeg ? Also I cant use the program like spycam ,vlc etc . Don't say to me vlc , console vlc can easily do it .
-
How to open webcam in opencv2.4.6.1 on ubuntu12.04 ?
20 septembre 2013, par user2079542I am using opencv2.4.6.1 on Ubuntu 12.04 LTS. I am new to opencv and have been trying to understand the sample programs in the opencv docs. I am trying to work on a project which takes a picture from a USB webcam (Kinamax Night Vision Camera) and do some image processing on it. I came across a sample code that is shown below:
#include "cv.h" #include "highgui.h" #include // A Simple Camera Capture Framework int main() { CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANY ); if ( !capture ) { fprintf( stderr, "ERROR: capture is NULL \n" ); getchar(); return -1; } // Create a window in which the captured images will be presented cvNamedWindow( "mywindow", CV_WINDOW_AUTOSIZE ); // Show the image captured from the camera in the window and repeat while ( 1 ) { // Get one frame IplImage* frame = cvQueryFrame( capture ); if ( !frame ) { fprintf( stderr, "ERROR: frame is null...\n" ); getchar(); break; } cvShowImage( "mywindow", frame ); // Do not release the frame! //If ESC key pressed, Key=0x10001B under OpenCV 0.9.7(linux version), //remove higher bits using AND operator if ( (cvWaitKey(10) & 255) == 27 ) break; } // Release the capture device housekeeping cvReleaseCapture( &capture ); cvDestroyWindow( "mywindow" ); return 0; }
On compiling using:
g++ trycam.c -o trycam `--cflags --libs opencv`
It gives no errors. When I try to run it using : ./trycam Nothing shows up! Literally Nothing.
On searching google and some other posts in the stackoverflow community, I tried updating the libraries and install other dependencies like ffmpeg,GTK, Gstreamer,etc. I understand that the webcam I have connected via USB is not supported as per the list of webcams supported by linux opencv in the link here. Even my default webcam that is in my HP Pavilion dv6000 is not opening.
Is there a way I could get around this? Kindly help me out.