Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Converting DAV to MP4 and OGG
27 mars 2015, par mackowiakpI want to prepare WEB page containing films from security camera recorders. Each recorder transmit video files in DAV format so each film is converted to MP4 format by script, using such syntax:
ffmpeg -y -i movie.dav -vcodec libx264 -crf 24 movie.mp4
So I included in HTMLv5 code such entry:
It works correctly with Chrome but not with Firefox. For proper work in FF it is necessary add link to OGG file. So correct HTMLv5 syntax for both browsers should look like this:
Can anybody help me to pass correct ffmpeg syntax to create OGG file?
Output from console after using -movflags +faststart options
[maciek@piotr MMM]$ ../ffmpeg-2.4.2-64bit-static/ffmpeg -movflags +faststart -y -i 04.24.23-04.24.38\[M\]\[@0\]\[0\].dav -vcodec libx264 -crf 24 10.mp4 ffmpeg version 2.4.2- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2014 the FFmpeg developers built on Oct 9 2014 07:24:56 with gcc 4.8 (Debian 4.8.3-11) configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable- libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8 libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Option movflags not found.
-
ffmpeg mutliple file convert with error log file
27 mars 2015, par ketanI am using ffmpeg for converting file from MKV to MP4.
There is multiple video files like hundreds of files.I am using following command to convert file. I am using windows command line(cmd).
ffmpeg -y -i "mkvfilename.mkv" -vcodec copy -acodec copy "mp4filename.mp4"
It convert fine, But it become headache to convert hundred of files one by one.
So, i like to create script for converting multiple file one by one.But there is some issue that there is some file are corrupted/damaged which are not converting. So, i need file name with path of that no converted Or error file.
Is it possible in ffmpeg to get error file name which are not converted.
Thanks, -
How to deal with whitespace in foldernames
27 mars 2015, par FlashSolutionsI am trying to use ffmpeg to process input files with spaces in them.
To check the syntax, I try using Dir in a cmd window and get "file not found".
Dir "C:/DigitalSignageManager/LLRA photos/SpinningTop.mp4"
I have tried escaping with
\
and^
and used double and single quotes, but nothing seems to work.What is the proper syntax to make this work?
-
FFmpeg C API set encoded frame’s rotation
26 mars 2015, par Justin BradleyUsing the FFmpeg C API I have encoding and decoding a video working. However, the re-encoded video stream does not maintain the original video's orientation (rotation). So vertical videos have been flipped horizontal.
I’m not sure how to resolve this. Is there a metadata field that gets set? Using MediaInfo I see the original video has a metadata field ’Rotation : 90°’ and the new video does not. Or does each encoded frame need to be rotated vertically?
I’ve looked at the decode frame's side_data but it is empty.
for (j = 0; j < decoded_frame->nb_side_data; j++) { AVFrameSideData *sd = decoded_frame->side_data[j]; if(sd->type == AV_FRAME_DATA_DISPLAYMATRIX) { LOGI("=> displaymatrix: rotation of %.2f degrees", av_display_rotation_get((int32_t *)sd->data)); } }
-
How to shrink/expand a video file length in UNIX
26 mars 2015, par Maria FeenaI need to shrink/expand a video file (mp4, avi) length using command line tools,
say the original file have 1 min length and output file should have length of 1:10 min or 0:50 min. I would like to keep other aspects of the video as it is.
I would like to do same thing on mp3 file too. there are many files so I need to do it all in command line only.
help me please.