Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • ffmpeg convert 4K file to 1080p mp4 file

    16 septembre 2015, par Hüseyin GÖZE

    i'm using ffmpeg to converting video in windows service, when i'm trying to converting 4K video to 1080p ffmpeg returns error like this:

    libvo_aacenc Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> aac (libvo_aacenc)) Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    my ffmpeg convert command like this:

    ffmpeg -i 4k2.mp4 -vf scale=1920:1080 -threads 3 4k2_1080.mp4

    what's wrong with this?

  • Youtube WatchMe android project Login issue

    16 septembre 2015, par Kichu

    I created live streaming application using https://github.com/youtube/yt-watchme. And its installed on android phone.If I logged into this app.I's still shows the "Not Signed in" Message. After login its showing the following error in android studio console

    09-16 16:48:01.970   25937-3107/com.google.android.apps.watchme E/WatchMe﹕ com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
        {
        "code": 403,
        "errors": [
        {
        "domain": "usageLimits",
        "message": "Access Not Configured. The API (YouTube Data API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
        "reason": "accessNotConfigured",
        "extendedHelp": "https://console.developers.google.com"
        }
        ],
        "message": "Access Not Configured. The API (YouTube Data API) is not enabled for your project. Please use the Google Developers Console to update your configuration."
        }
                at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
                at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
                at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
                at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1056)
                at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
                at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
                at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
                at com.google.android.apps.watchme.util.YouTubeApi.getLiveEvents(YouTubeApi.java:155)
                at com.google.android.apps.watchme.MainActivity$GetLiveEventsTask.doInBackground(MainActivity.java:312)
                at com.google.android.apps.watchme.MainActivity$GetLiveEventsTask.doInBackground(MainActivity.java:295)
                at android.os.AsyncTask$2.call(AsyncTask.java:288)
                at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                at java.lang.Thread.run(Thread.java:841)
    

    How can i solve this issue please help.

    This application is connecting to YouTube Watch Me project.Is it possible to connect my project using client Id and client secret(How can i configure my client id to this app?)?

    Please suggest

  • FFMPEG Concat protocol does not combine video files

    16 septembre 2015, par Michael Erwin

    So I've tried using the following command to combine 2 video files with the same codec:

    ffmpeg -i "concat:/home/mike/downloads/a1.mp4|/home/mike/downloads/a2.mp4" -c copy "/home/mike/downloads/output.mp4"
    

    The the result: output.mp4 only contains video from a1.mp4. I also tried 2 or more file but the result is the same. What could be the possible cause for this? Please help

    Mike

  • FFMpeg with libstagefright for hardware encoding jpeg images to mp4 on Android

    16 septembre 2015, par HashG

    I have compiled FFMpeg with libstagefright for Android. I know this can be used for hardware decoding but I would like to use it for hardware encoding a stream of jpeg images to mp4 video. Could someone please shed some light on this.

    I have looked at the post below where Alex Cohn says "Alternatively, you can compile ffmpeg with libstagefright, and it will use hardware avc encoder." - android-how-to-encode-a-stream-of-images-to-h264-with-hardware-acceleration

    Could someone explain how to do this. I have compiled ffmpeg with the following options:

    --disable-avdevice
    --disable-decoder=h264
    --disable-decoder=h264_vdpau
    --enable-libstagefright-h264
    

    All this relates to enabling hardware decoding but what would I need to specify to enable hardware encoding?

    My ffmpeg command to convert the images into a video looks like this:

    ffmpeg.execute(new String[]{"-framerate",
                    "25",
                    "-i",
                    "/images_directory/image%07d.jpg",
                    "-c:v",
                    "libx264",
                    "-preset",
                    "ultrafast",
                    "-tune",
                    "zerolatency",
                    "-r",
                    "25",
                    "-pix_fmt",
                    "yuv420p",
                    "output.mp4"})
    

    What should I change to enable hardware encoding?

  • raw h.264 bitstream decoding

    16 septembre 2015, par srjohnhuang

    I can get raw h.264 frames from a camera. (it does NOT contain any network headers, for example rtsp, http). They are h.264 raw data. And I push these data to a queue frame by frame. I googled many ffmpeg example which uses avformat_open_input() with either local file path or network path. And I can see the video while I save the frames to a file and using avformat_open_input().

    My problem is that I want to decode the frames realtime, not after it is saved as a file. Does anyone have any idea on this?

    Thanks!