Convert DAV to MP4 and OGG

I want to prepare a web page containing films from camera recorders. Each recorder transmits video files in DAV format, so each movie is converted to MP4 format per script using this syntax:

ffmpeg -y -i movie.dav -vcodec libx264 -crf 24 movie.mp4

      

So, I included this entry in the HTMLv5 code:

 <video width="320" height="240">
  <source src="movie.mp4" type="video/mp4">
</video> 

      

It works correctly with Chrome, but not Firefox. To work correctly in FF, you need to add a link to the OGG file. Therefore, the correct HTMLv5 syntax for both browsers should look like this:

 <video width="320" height="240">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
</video>

      

Can anyone help me pass the correct ffmpeg syntax to generate the OGG file?

Quit console after using -movflags + quickstart 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.

      

+3


source to share


3 answers


ffmpeg -i movie.dav -vn -acodec libvorbis audiofile.ogg



I have not tested this.

0


source


I have an answer, just try it.

Install this Nuget NReco.VideoConverter

Package Management Console



Install-Package NReco.VideoConverter -Version 1.1.2

      

and this method to convert

var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
ffMpeg.ConvertMedia(inputfile.dav, "output.mp4", Format.mp4);

      

0


source


I just had to solve the same problem and I actually found a solution even if not using ffmpeg.

I've tried this on Windows, but I think it won't make any difference if done on Linux.

To convert .dav files I used VLC like this:

1) Go to Tools -> Preferences in the VLC toolbar.

2) Then select "All" in the "Show Settings" box in the lower left corner.

3) Go to the "Demultimeters" section and switch from "Automatic" to "H264 Video Driver" and "Save". 4) Then again from the VLC toolbar go to Media -> Convert / Save ...

5) Select "Add" and select the file you want to convert.

6) Click the arrow on the "Convert / Save" button and select "Convert"

7) Then select "Destination File" in the section below by clicking the "Browse" button

8) Finally click "Start" and wait for the VLC progress bar to be full.

At this point, the file should be successfully converted.

Anyway, after step 3, you should already be playing the .dav file, to make sure it is not damaged, try playing it first.

Hope the answer is helpful to someone and I wish you all a good day :)

EDIT: This answer is of course not entirely related to the question, because I don't know if any information is useful for web pages: \ so, sorry for not staying exactly on the topic

0


source







All Articles