Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • Compile FFMPEG for iOS development

    7 avril 2016, par Alec Gamble

    So I've been googling around and there seem to be a lot of answers to this questions... for people who know what they're doing. Unfortunately I am not one of these people. I had a version of FFMPEG I was using in a project and now I want to port that project to iOS. So I have a version of FFMPEG with LAME installed on my desktop and in my C++ application I was just accessing this through the command line via the system() method. I also just downloaded the FFMPEG iOS build from here:

    https://github.com/kewlbear/FFmpeg-iOS-build-script

    and the gas-preprocessor from the link on that page but I'm unsure as to what to do with it now and how to get it to a state where I would be able to compile a basic FFMPEG test to my iPhone.


    I tried adding the libraries as mentioned in: How to Build FFMpeg as iOS Framework so my project hierarchy looks like:

    enter image description here

    but when I do:

    #import avcodec.h> as suggested

    or any other import I can think to do it always errors me out saying it can't find it. I'm not sure if this is because I'm not using search paths correctly or my import line is wrong or what...

  • Convert a Video that it can show with preview in telegram via bot api

    7 avril 2016, par siavashg

    I Have a video and i want to send it with telegram bot api by pytelegrambotapi library so i write this code for send video by bot :

    import telebot
    
    bot = telebot.TeleBot("TOKEN")
    
    @bot.message_handler(commands=['start'])
    def send_welcome(message):
        video = open('1.mp4', 'rb')
        bot.send_video(message.chat.id,video, duration=)
    
    bot.polling(none_stop=True)
    

    but I send a video and it has been sent successfully but telegram show black screen for my video like this picture Telegram With Black Scrreen preview of video. I think this is about the encoding . I found this site for encoding and it said the videos in telegram have specific format.

    Conditions to trim a video

    • Audio codec = mp4a
    • Video codec = supported by the device
    • Any side of the video more than 640px
    • Or if a side is less than 640px but video codec is h264

    Conditions to compress a video

    • Any side of the video over 640px
    • Audio codec = mp4a
    • A video encoder different than:
    • OMX.google.h264.encoder
    • OMX.ST.VFM.H264Enc
    • OMX.Exynos.avc.enc
    • OMX.MARVELL.VIDEO.HW.CODA7542ENCODER
    • OMX.MARVELL.VIDEO.H264ENCODER

    How can I send Video with blur image preview of that in telegram with telegram bot api ?

  • FFmpeg Video First Frame Time Code value

    7 avril 2016, par user1722669

    I would like to ask someone how knows FFmpeg good

    enter image description here

    As you can see I already know how to set timecodes that contain in green borders, but I don't know is there any opportunity set the Video timecode. Thank you for you help

  • FFMPEG iOS XCode Build

    7 avril 2016, par Alec Gamble

    I've been playing around with ffmpeg in the command line recently to perform a few tasks and now I want to make an app which utilises some of it's features. I've been looking at how to include it in my project with varied answers in the replies to other peoples questions.

    ffmpeg -i  -r  /img_%03d.png
    

    to convert my video file to a series of images for image processing.

    My question is:

    How can I include the ffmpeg libraries in my project and then translate my command line function to run from my ObjectiveC++ file?

    So far I'm struggling to even include it. I've tried downloading the normal and ios libraries as per the example in this question: How to Build FFMpeg as iOS Framework. But to no avail.

  • java.lang.NoClassDefFoundError : java.lang.ClassNotFoundException : org.bytedeco.javacpp.avutil

    7 avril 2016, par Saty

    I am finding this weird issue, I am using this(https://github.com/Bilibili/ijkplayer) library to play the RTMP. My App also includes the option to stream video as well for that I am using opencv and ffmpeg. I have included the below jar files to my libs folder for the streaming purpose and it was working well, I have added files from ijkplayer and its keep telling the error message

    If I make separate project for both, they are working!!

    ffmpeg-android-arm.jar ffmpeg-android-x86.jar ffmpeg.jar javacpp.jar javacv.jar opencv-android-arm.jar opencv-android-x86.jar opencv.jar videoinput.jar

    I am thinking that there must be a clash because both using FFMpeg so how can i detect that clash and resolve it?