Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • install FFMPEG on PHP 7.0.6 - Xampp

    29 mars 2017, par Bilal Zafar

    I am new to php. I am trying to convert video uploaded by the user. Somehow, I have done all the php work except conversion. I came to know about FFMPEG, I have installed it and tried with CLI and it worked perfect.

    When I tried it in ph using shell_exec() command. It gives me nothing, Then by google, I should activate the extension of ffmpeg in my php.ini file.

    shell_exec("ffmpeg -i video/Wildlife.wmv video/output.mp4");
    

    I have googled but there is no help regarding this php version. Any idea or guideline will be very helpful.

    This may be a duplicate question but there is nothing with php 7 version on stackoverflow.

  • ffmpeg - Concat multi mp4 files with audio file not working

    29 mars 2017, par Thanh Dao

    I follow this thread to concat multi mp4 files with audio file.
    But its not success. Have a lots error notifications had been displayed. I dont know how to fix it.
    Below is my command:

    "ffmpeg" -f concat -safe 0 \
    -i /path/to/text.txt \
    -i /path/to/audio.mp3 -vsync vfr -vf scale="640:640" -pix_fmt yuv420p \
    /path/to/output.mp4 2>&1
    

    The detail contents of text.txt

    file '/path/to/file1.mp4'
    file '/path/to/file2.mp4'
    file '/path/to/file3.mp4'
    file '/path/to/file4.mp4'
    file '/path/to/file5.mp4'
    file '/path/to/file6.mp4'
    file '/path/to/file7.mp4'
    file '/path/to/file8.mp4'
    file '/path/to/file9.mp4'
    file '/path/to/file10.mp4'
    file '/path/to/file11.mp4'
    file '/path/to/file12.mp4'
    file '/path/to/file13.mp4'
    file '/path/to/file14.mp4'
    file '/path/to/file15.mp4'
    file '/path/to/file16.mp4'
    file '/path/to/file17.mp4'
    file '/path/to/file18.mp4'
    

    And some lines of output errors:

    [concat @ 0x357e620] DTS 192000 < 229888 out of order
    [h264 @ 0x36920e0] top block unavailable for requested intra mode -1
    [h264 @ 0x36920e0] error while decoding MB 32 0
    [h264 @ 0x36920e0] concealing 2025 DC, 2025 AC, 2025 MV errors in I frame
    [h264 @ 0x36b7a80] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
    [h264 @ 0x36ff440] corrupted macroblock 26 1 (total_coeff=-1)
    [h264 @ 0x36ff440] error while decoding MB 26 1
    [h264 @ 0x36ff440] concealing 2003 DC, 2003 AC, 2003 MV errors in P frame
    [h264 @ 0x371af40] concealing 1456 DC, 1456 AC, 1456 MV errors in P frame
    [h264 @ 0x3736a40] ref 5 overflow
    [h264 @ 0x3736a40] error while decoding MB 1 1
    [h264 @ 0x3736a40] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
    [h264 @ 0x3752520] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
    [h264 @ 0x376dfa0] P sub_mb_type 8 out of range at 2 1
    [h264 @ 0x376dfa0] error while decoding MB 2 1
    [h264 @ 0x376dfa0] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
    [h264 @ 0x37a55a0] ref 6 overflow
    [h264 @ 0x37a55a0] error while decoding MB 3 1
    [h264 @ 0x37a55a0] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
    [h264 @ 0x3789aa0] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
    [h264 @ 0x36b7a80] ref 5 overflow
    [h264 @ 0x36b7a80] error while decoding MB 4 1
    [h264 @ 0x36b7a80] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
    [h264 @ 0x36920e0] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
    
  • how to use ffmpeg batch convert mp4 to m3u8 ? [on hold]

    29 mars 2017, par user6006103

    a script Can be use shell or perl or python by ffmpeg batch cut mp4 to m3u8 ts file?

  • OBS/ffmpeg HLS URL Output

    29 mars 2017, par Jeremy Labadie

    This is probably more of an OBS question and not exactly a ffmpeg question, but I am hoping someone with enough knowledge of what is going on can chime in or point me to the right direction.

    I am using OBS advanced output (ffmpeg) to output HLS to a URL. The URL target that I am using looks like this (replacing http to stay within the 2 link limit): hxxp://hostname:port/hostname/streamid/test

    And I expect the output to look something like this: hxxp://hostname:port/hostname/streamid/test/index.m3u8

    The problem is what is being generated is: hxxp://hostname:port/hostnameindex.m3u8

    Does anyone have an idea why this would be happening?

    For context, I am trying to publish HLS directly to another entry point on my network. I picked OBS because 1) it's free, 2) it uses ffmpeg, 3) it can stream RTMP and HLS, 4) it can write HLS to disk. I don't mind using ffmpeg natively (without OBS), but I will be the first to admit that I am a novice when it comes to ffmpeg.

    Thanks in advance for any help!

  • Permission denied when using matplotlib animation

    28 mars 2017, par Nate Stemen

    Trying to make an animation using example code found here. I have installed both ffmpeg and yasm, but when I run the code, including the line

    ani.save('test.mp4', writer = FFwriter, dpi = 40)
    

    I get the following error.

    PermissionError: [Errno 13] Permission denied
    

    (where FFwriter = animation.FFMpegWriter(fps = 30) is defined in the beginning of my Jupyter doc). I have tried so much, but can't get anything to work. Even tried changing the permissions of ffmpeg but still can't get the error to go away.

    EDIT Here is my imports and such to include more detail

    import numpy as np
    import matplotlib
    import matplotlib.pyplot as plt
    import matplotlib.animation as animation
    plt.rcParams['animation.ffmpeg_path'] = '/usr/local/Cellar/ffmpeg/'
    FFwriter = animation.FFMpegWriter(fps = 30)