Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
How to directly embed an flv in actionscript so ffmpeg can convert from the compiled swf ?
3 décembre 2012, par user1872755I have an flv that needs to be embedded into a swf. I am currently using the Embed tag and playing the flv with NetStream. The problem is that it does not seem to be directly embedding the flv file, as ffmpeg does not detect it. I am currently using mxmlc to compile. If published from Flash Professional the conversion works. I can't use Flash Professional because I need to use the command line. Is there a way to embed an FLV in actionscript and have ffmpeg convert it?
-
ffmpeg and php upload
3 décembre 2012, par CoddedI have never used ffmpeg and was wondering if this script looked right and would work.
I would like to convert the uploaded video to .flv and then add the filename to the hidden input
But would also like to delete the original file after.
Any help/comments would be greatly appreciated.
if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST") { $name = $_FILES['thisimage']['name']; $size = $_FILES['thisimage']['size']; if(strlen($name)) { list($txt, $ext) = explode(".", $name); if(in_array($ext, $valid_formats_img)) { if($size<($image_size_limit*$image_size_limit)) { $actual_image_name = time().substr(str_replace(" ", "_", $txt), 5).".".$ext; $tmp = $_FILES['thisimage']['tmp_name']; if(move_uploaded_file($tmp, $path.$actual_image_name)) { echo "
"; } else echo ''.$txt_img_err1.''; } else echo ''.$txt_img_up_size.''; } else if(in_array($ext, $valid_formats_vid)) { if($size<($videos_size_limit*$videos_size_limit)) { $actual_image_name = time().substr(str_replace(" ", "_", $txt), 5).".".$ext; $tmp = $_FILES['thisimage']['tmp_name']; if(move_uploaded_file($tmp, $path.$actual_image_name)) { exec('ffmpeg -i '$path.$actual_image_name.' '$path.$txt.'.flv'); ?>
<script type="text/javascript" src="http://stackoverflow.com/feeds/tag/jwplayer.js"></script>
<?php echo ""; } else echo ''.$txt_img_err1.''; } else echo ''.$txt_img_up_size.''; } else echo ''.$txt_img_err2.''; } else echo ''.$txt_img_err3.''; exit; } -
Why container and codec has different time base ?
2 décembre 2012, par theateistI used ffmpeg to get video info. The output is
Duration: 00:05:57.00, start: 0.000000, bitrate: 611 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 808x610, 609 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
The time base is used to somehow(this is also my another question) calculate when to decode and show the frame, right? So whose time base is used, container (12800) or codec (50)?
The another question is why tbn=12800 and not 90000?
-
Converting m4a -> mp3 on ASP.NET
2 décembre 2012, par KillnineI currently post mp3s to a site and stream it to users. However, I record in m4a and that doesn't stream unless you use flash or some special html5 implementations.
I'd like to be able to upload m4as to the site and have it converted to mp3.
There are a few implementations that wrap ffmpeg for .net, but few have any documentation (FFLIB.NET, FFmpeg.NET, FFMpeg-sharp), especially with non-video formats.
Does anyone have any ideas about tackling this issue, or maybe some alternatives? I don't believe my host (Arvixe) supports Python on its ASP.NET packages...
EDIT: I selected Jorge's answer as, with the comments as further context, it mostly answers my question.
-
Creating an android ffmpeg executable
2 décembre 2012, par bruxHow do I do this? I dont want to use ffmpeg in an app programatically using the ndk / jni wrapper, I just want to compile a single binary/executable file that I can put in system/bin on the device and run from terminal.
Hi have tried William Seemann suggestion but it will not build the executable, when i try the default configure_everything.sh as it says in the docs i get lots of "file to patch errors" console output http://pastebin.com/m0uz5fx2
if i try the make_ffmpeg.sh script as william sggests then i get
brx@router ~/Documents/android-ffmpeg-master $ NDK_BASE=/home/brx/Documents/android-ndk-r6b ./make_ffmpeg.sh ~/Documents/android-ffmpeg-master ~/Documents/android-ffmpeg-master ~/Documents/android-ffmpeg-master/ffmpeg ~/Documents/android-ffmpeg-master ~/Documents/android-ffmpeg-master make: *** No targets specified and no makefile found. Stop. make: *** No rule to make target `install'. Stop. ~/Documents/android-ffmpeg-master ~/Documents/android-ffmpeg-master ~/Documents/android-ffmpeg-master