Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
How to salvage a gigantic, possibly corrupt, AIFF file ?
12 février 2012, par Ross DuncanDue to a Sound Track Pro glitch, I have a problematic AIF file. It plays fine in QuickTime Player, and is about 1 hour 50 mins long. However:
- It's 3.81GB in size, whereas (I believe) AIF files are only supposed to be 2GB or smaller.
- iTunes refuses to play it.
- Logic Pro gives the error message "
party-mix.aif is empty!
" when I try to import it. - VLC will open and play the file, but it ends after an 1 hour (I guess this is the 2GB point).
Attempting to transcode using ffmpeg to Ogg gives the errors,
[aiff @ 0x102051000] max_analyze_duration 5000000 reached at 5001333
....
[pcm_s16be @ 0x10205a200] invalid PCM packet
but the resulting file plays in VLC up till 1 hour, when it ends.
- Attempting to transcode using ffmpeg to MP3 gives similar results as Ogg, except that the number of channels must reduced from 6 to 2. This is odd because it was a stereo project - where the extra 4 channels came from I have no idea.
- There are a few places where the audio has been very noticeably sped up.
My question: how can I transcode this frankenstein monster to MP3 without losing the second half? I am running Mac OS 10.6.8.
-
Full HD video converted to FLV, slow playback in browser
12 février 2012, par Boyan GeorgievI rendered a full HD video using Adobe AfterEffects CS5 in mp4 format. It plays just fine. I've got this video app to which I fed the mp4 file. The video app converts the mp4 to flv format and makes the video available via a web page. I've downloaded the resulting flv file to my local PC - it plays just fine in my VLC player. But, the problem is I'm getting awful playback inside my browser.
I've made sure the issue is not bandwidth related. Both original mp4 file, and ffmpeg-converted FLV file, play perfectly using VLC player. I've tested the FLV file with two players - Agryia FLV Player Elite and JW Player. Both players play the video awfully - really slow and very choppy.
Here's my ffmpeg -i myflvfile.flv: `
Seems stream 0 codec frame rate differs from container frame rate: 119.88 (120000/1001) -> 59.92 (719/12) Input #0, flv, from '94044631305552037.flv': Metadata: duration : 146 width : 1920 height : 1080 videodatarate : 684 framerate : 60 videocodecid : 7 audiodatarate : 62 audiosamplerate : 22050 audiosamplesize : 16 stereo : true audiocodecid : 2 major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 creation_time : 2012-02-10 00:55:19 encoder : Lavf52.111.0 filesize : 61969316 Duration: 00:02:25.77, start: 0.034000, bitrate: 764 kb/s Stream #0.0: Video: h264 (High), yuv420p, 1920x1080 [PAR 3:4 DAR 4:3], 700 kb/s, 59.92 tbr, 1k tbn, 119.88 tbc Stream #0.1: Audio: mp3, 22050 Hz, stereo, s16, 64 kb/s`
Can any one point me in the right direction here? Why is playback perfect with VLC player of both the mp4 and the flv file on my local PC, yet in my browser, using two different players, the playback is so bad?
PS Here's my convert command:
ffmpeg -y -i /var/www/sandverlag.com/htdocs/rmtk/videos/originals/94044631305552038.mp4 -vcodec libx264 -ar 22050 -ac 2 -vb 700000 -s 1920x1080 -crf 22 -threads 0 -f flv /var/www/sandverlag.com/htdocs/rmtk/videos/converted/94044631305552038.flv > /dev/null &
-
compiling ffmpeg for iPhone SDK 4.3 [error : is unable to create an executable file.]
12 février 2012, par user509020Like many others.. I'm compiling ffmpeg using gas preprocessor
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-October/077701.html
This is my command
./configure --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 --as='gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk --enable-cross-compile --target-os=darwin --arch=arm7 --cpu=cortex-a8 --enable-pic
the error:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 is unable to create an executable file. C compiler test failed.
I looked up the
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
folder usingFinder
.. arm-apple-darwin10-gcc-4.2.1 was there..Thanks, Suhas
-
jsp : process exec issue
10 février 2012, par asdI have a problem when I try to execute the ffmpeg program to convert a video in a jsp page.
Runtime rt = Runtime.getRuntime(); String comando; comando = "ffmpeg -i \"" + saveFile + "\" -f mov -acodec libmp3lame -ab 128k -ar 48000 -ac 2 -y -vcodec libx264 \""+ absolute_path + "video\\conv\\" + file_name+"."+"mp4\"\n"; out.println(comando); Process p = rt.exec(comando);
the ffmpeg process start but it don't do anything and it doesn't end until manually terminated. When I execute the same line using cmd.exe it works without asking for any input, so I can't understand why the process don't convert this video. For developing I am using netbeans with the glassfish 3.1 server. Have you got any ideas on how could I see the output of the program executed by jsp or how could I fix it or any other ideas for converting a video in mp4 by a jsp page? Thank you for your help.
-
iOS how to build ffmpeg
10 février 2012, par zvoiceHow to build ffmpeg for iOS? I have got 5.0 framework and scripts from iFrameExtractor fail to build it with - invalid operand on inline asm ldr ${0:q}, $1
Do you have a successfull experience with it?