converting to non HD avi with ffmpeg
Hi, I have downloaded from the web a video file with webm extension: ubunutuArm.webm (some lecture in video) Now, I converted it to avi thus: ffmpeg -i ubunutuArm.webm ubunutuArm.avi and put the ubunutuArm.avi on disk On Key. When trying to view it on TV with a DVD I see this messsage: "HD is not supported". Indeed, HD is not supported in my DVD and TV. Is there a way I can convert this video file with ffmpeg to an AVI so the result will be non HD ? (Second question: given some avi file, is there a way I can know whether it is in HD or not ?) Regards, Kevin
Am 11.09.2012 12:25, schrieb Kevin Wilson:
Hi, I have downloaded from the web a video file with webm extension: ubunutuArm.webm (some lecture in video)
Now, I converted it to avi thus: ffmpeg -i ubunutuArm.webm ubunutuArm.avi
and put the ubunutuArm.avi on disk On Key. When trying to view it on TV with a DVD I see this messsage: "HD is not supported". Indeed, HD is not supported in my DVD and TV. Is there a way I can convert this video file with ffmpeg to an AVI so the result will be non HD ?
change width/height and bitrate you did not set ANY parameter
Reindl, Thanks a lot for you quick response!
change width/height and bitrate
excuse me my ignorance: which width/height and bitrate are needed for non HD ? regards, Kevin On Tue, Sep 11, 2012 at 1:38 PM, Reindl Harald <h.reindl@thelounge.net> wrote:
Am 11.09.2012 12:25, schrieb Kevin Wilson:
Hi, I have downloaded from the web a video file with webm extension: ubunutuArm.webm (some lecture in video)
Now, I converted it to avi thus: ffmpeg -i ubunutuArm.webm ubunutuArm.avi
and put the ubunutuArm.avi on disk On Key. When trying to view it on TV with a DVD I see this messsage: "HD is not supported". Indeed, HD is not supported in my DVD and TV. Is there a way I can convert this video file with ffmpeg to an AVI so the result will be non HD ?
change width/height and bitrate you did not set ANY parameter
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
-----Original Message----- From: ffmpeg-user-bounces@ffmpeg.org [mailto:ffmpeg-user- bounces@ffmpeg.org] On Behalf Of Kevin Wilson Sent: 11 September 2012 12:55 To: FFmpeg user questions Subject: Re: [FFmpeg-user] converting to non HD avi with ffmpeg
Reindl,
Thanks a lot for you quick response!
change width/height and bitrate
excuse me my ignorance: which width/height and bitrate are needed for non HD ?
Here's one place to start: http://en.wikipedia.org/wiki/SD_video videohelp.com also has a usable glossary and informative forum for general video queries.
regards, Kevin
On Tue, Sep 11, 2012 at 1:38 PM, Reindl Harald <h.reindl@thelounge.net> wrote:
Am 11.09.2012 12:25, schrieb Kevin Wilson:
Hi, I have downloaded from the web a video file with webm extension: ubunutuArm.webm (some lecture in video)
Now, I converted it to avi thus: ffmpeg -i ubunutuArm.webm ubunutuArm.avi
and put the ubunutuArm.avi on disk On Key. When trying to view it on TV with a DVD I see this messsage: "HD is not supported". Indeed, HD is not supported in my DVD and TV. Is there a way I can convert this video file with ffmpeg to an AVI so the result will be non HD ?
change width/height and bitrate you did not set ANY parameter
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Now, I converted it to avi thus: ffmpeg -i ubunutuArm.webm ubunutuArm.avi
This might perform a transcode. Could you paste the full command line and console output please?
"HD is not supported". Indeed, HD is not supported in my DVD and TV. Is there a way I can convert this video file with ffmpeg to an AVI so the result will be non HD ?
My guess is to pass it some size parameter, like -vf scale=100x100 I think.
On Tue, 11 Sep 2012 13:25:21 +0300 Kevin Wilson <wkevils@gmail.com> wrote:
Hi, I have downloaded from the web a video file with webm extension: ubunutuArm.webm (some lecture in video)
Now, I converted it to avi thus: ffmpeg -i ubunutuArm.webm ubunutuArm.avi
and put the ubunutuArm.avi on disk On Key. When trying to view it on TV with a DVD I see this messsage: "HD is not supported". Indeed, HD is not supported in my DVD and TV. Is there a way I can convert this video file with ffmpeg to an AVI so the result will be non HD ?
ffmpeg -i input -filter:v scale=640:-1 -q:v 3 output I added the scale filter which will create an output that is 640 pixels wide and the height will be automatically calculated to preserve the aspect ratio. Of course you can change 640 to whatever desired width you want. You can also switch the position of the -1 and provide a desired height. The other addition controls the output quality to something probably better than the default of "-b:v 200k".
(Second question: given some avi file, is there a way I can know whether it is in HD or not ?)
You can see the size of a video stream with the output of: ffmpeg -i input
Hi, Lou. Thanks! I have tried: ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi And when loading the avi in a DVD I still get the HD error. I tried to fetch the avi properties, and this is what I got: ffmpeg -i ubunutuArmNonHD.avi ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 22:00:57 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 51. 35.100 / 51. 35.100 libavcodec 53. 61.100 / 53. 61.100 libavformat 53. 32.100 / 53. 32.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, avi, from 'ubunutuArmNonHD.avi': Metadata: encoder : Lavf53.32.100 Duration: 00:52:24.77, start: 0.000000, bitrate: 747 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s At least one output file must be specified So any idea: 1) Is this avi is HD or not ? could it be something in the header ? 2) what should I do to create non HD avi ? regards, Kevin On Tue, Sep 11, 2012 at 9:35 PM, Lou <lou@lrcd.com> wrote:
On Tue, 11 Sep 2012 13:25:21 +0300 Kevin Wilson <wkevils@gmail.com> wrote:
Hi, I have downloaded from the web a video file with webm extension: ubunutuArm.webm (some lecture in video)
Now, I converted it to avi thus: ffmpeg -i ubunutuArm.webm ubunutuArm.avi
and put the ubunutuArm.avi on disk On Key. When trying to view it on TV with a DVD I see this messsage: "HD is not supported". Indeed, HD is not supported in my DVD and TV. Is there a way I can convert this video file with ffmpeg to an AVI so the result will be non HD ?
ffmpeg -i input -filter:v scale=640:-1 -q:v 3 output
I added the scale filter which will create an output that is 640 pixels wide and the height will be automatically calculated to preserve the aspect ratio. Of course you can change 640 to whatever desired width you want. You can also switch the position of the -1 and provide a desired height.
The other addition controls the output quality to something probably better than the default of "-b:v 200k".
(Second question: given some avi file, is there a way I can know whether it is in HD or not ?)
You can see the size of a video stream with the output of: ffmpeg -i input _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
On Thu, 13 Sep 2012 05:18:20 +0300 Kevin Wilson <wkevils@gmail.com> wrote: [trimmed]
Hi, Lou.
Thanks!
I have tried: ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi
And when loading the avi in a DVD I still get the HD error.
What is the exact error? What make and model is this DVD player?
I tried to fetch the avi properties, and this is what I got:
ffmpeg -i ubunutuArmNonHD.avi
ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers [trimmed] Input #0, avi, from 'ubunutuArmNonHD.avi': Metadata: encoder : Lavf53.32.100 Duration: 00:52:24.77, start: 0.000000, bitrate: 747 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc -----------^ Your output is 640x360. This can be considered standard definition or "not HD".
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s At least one output file must be specified
So any idea: 1) Is this avi is HD or not ? could it be something in the header ?
It is not HD. ffmpeg will show output size in the console output. Look above to see my awesome ASCII art arrow for an example.
2) what should I do to create non HD avi ?
You already created a non HD file; therefore we need to determine what the actual issue with the player is. Do you have a video that does play on this picky device? If yes, then show the complete output of "ffmpeg -i input-file-that-actually-does-work-in-your-dvd-player.avi".
regards, Kevin
Note that top-posting is not recommended for this mailing list.
Hi, with test.avi , an avi which I can see this avi with this LG DVD without any "HD" message, and we have: (the model is not with me now) ffmpeg -i /mnt/sdc1/test.avi ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 20 2012 22:00:57 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 51. 35.100 / 51. 35.100 libavcodec 53. 61.100 / 53. 61.100 libavformat 53. 32.100 / 53. 32.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, avi, from '/mnt/sdc1/test.avi': Metadata: encoder : VirtualDubMod 1.5.10.2 (build 2542/release) Duration: 01:58:28.96, start: 0.000000, bitrate: 1640 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 29.97 tbr, 29.97 tbn, 29.98 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s At least one output file must be specified So we have here : yuv420p, 720x400 any suggestions ? rgs, Kevin On Thu, Sep 13, 2012 at 6:41 AM, Lou <lou@lrcd.com> wrote:
On Thu, 13 Sep 2012 05:18:20 +0300 Kevin Wilson <wkevils@gmail.com> wrote:
[trimmed]
Hi, Lou.
Thanks!
I have tried: ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi
And when loading the avi in a DVD I still get the HD error.
What is the exact error? What make and model is this DVD player?
I tried to fetch the avi properties, and this is what I got:
ffmpeg -i ubunutuArmNonHD.avi
ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers [trimmed] Input #0, avi, from 'ubunutuArmNonHD.avi': Metadata: encoder : Lavf53.32.100 Duration: 00:52:24.77, start: 0.000000, bitrate: 747 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc -----------^ Your output is 640x360. This can be considered standard definition or "not HD".
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s At least one output file must be specified
So any idea: 1) Is this avi is HD or not ? could it be something in the header ?
It is not HD. ffmpeg will show output size in the console output. Look above to see my awesome ASCII art arrow for an example.
2) what should I do to create non HD avi ?
You already created a non HD file; therefore we need to determine what the actual issue with the player is. Do you have a video that does play on this picky device? If yes, then show the complete output of "ffmpeg -i input-file-that-actually-does-work-in-your-dvd-player.avi".
regards, Kevin
Note that top-posting is not recommended for this mailing list. _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
On 2012-09-12 10:18 PM, Kevin Wilson wrote:
Hi, Lou.
Thanks!
I have tried: ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi
I have made a DVD file in the past, can you try this? However, I notice that some syntax has changed in the last months, forgive me if some of these parameters need their syntax updating... ffmpeg -i ubunutuArm.webm -target ntsc-dvd -bf 2 -flags2 ivlc -dc 10 -b 8000000 -maxrate 9000000 -bufsize 224kB -acodec mp2 -ac 2 -ab 128000 -vf scale=720:480 ubunutuArmNonHD.mpg -- Andy
Andy, This worked ! Thanxs. On Thu, Sep 13, 2012 at 7:38 AM, Andy Civil <andycivil@gmail.com> wrote:
On 2012-09-12 10:18 PM, Kevin Wilson wrote:
Hi, Lou.
Thanks!
I have tried: ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi
I have made a DVD file in the past, can you try this? However, I notice that some syntax has changed in the last months, forgive me if some of these parameters need their syntax updating...
ffmpeg -i ubunutuArm.webm -target ntsc-dvd -bf 2 -flags2 ivlc -dc 10 -b 8000000 -maxrate 9000000 -bufsize 224kB -acodec mp2 -ac 2 -ab 128000 -vf scale=720:480 ubunutuArmNonHD.mpg
-- Andy
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Hi, The command I am used in the past (which Andy suggested, see below) does not work with ffmpeg on Fedora 20, with ffmpeg-2.1.1-1. I am trying to convert an mp4 file to a non HD mpeg file. It *must* be non-HD since I want to play it on a non-HD DVD player I am getting various errors on various flags. The command I am using is (ubunutuArm.mp4 is an HD video file): ffmpeg -i ubunutuArm.mp4 -target ntsc-dvd -bf 2 -flags2 ivlc -dc 10 -b 8000000 -maxrate 9000000 -bufsize 224kB -acodec mp2 -ac 2 -ab 128000 -vf scale=720:480 ubunutuArmNonHD.mpg And it says an error about ivlc (and vlc is installed). Googling for that, I saw some suggestion to try -flags2 intra_vlc -non_linear_quant; I am not sure it is right, but I tried it, and then it says and error about -dc 10; I tried omitting -dc 10 and then it said an error about "Unable to parse option value "-b"". and so on I would appreciate if someone can tell what should be the command to convert an mp4 to a non HD file with this new ffmpeg application. Regards, Kevin On Thu, Sep 13, 2012 at 9:13 PM, Kevin Wilson <wkevils@gmail.com> wrote:
Andy, This worked !
Thanxs.
On 2012-09-12 10:18 PM, Kevin Wilson wrote:
Hi, Lou.
Thanks!
I have tried: ffmpeg -i ubunutuArm.webm -filter:v scale=640:-1 -q:v 3 ubunutuArmNonHD.avi
I have made a DVD file in the past, can you try this? However, I notice
On Thu, Sep 13, 2012 at 7:38 AM, Andy Civil <andycivil@gmail.com> wrote: that
some syntax has changed in the last months, forgive me if some of these parameters need their syntax updating...
ffmpeg -i ubunutuArm.webm -target ntsc-dvd -bf 2 -flags2 ivlc -dc 10 -b 8000000 -maxrate 9000000 -bufsize 224kB -acodec mp2 -ac 2 -ab 128000 -vf scale=720:480 ubunutuArmNonHD.mpg
-- Andy
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
participants (6)
-
Andy Civil -
Francois Visagie -
Kevin Wilson -
Lou -
Reindl Harald -
Roger Pack