[FFmpeg-user] Fwd: coding video for some old Sony
Erik Dobák
erik.dobak at gmail.com
Thu Sep 5 20:12:31 EEST 2019
On Wed, 4 Sep 2019 at 23:06, Kieran O Leary <kieran.o.leary at gmail.com>
wrote:
> On Wed, 4 Sep 2019, 20:19 Erik Dobák, <erik.dobak at gmail.com> wrote:
>
> > On Tue, 3 Sep 2019 at 18:01, Michael Castellon <
> castellonmichael at gmail.com
> > >
> > wrote:
> >
> > > maybe bitrate,
> > > please try a short video so you don't get tired.
> > > this scale for old tv (crt), 640x480
> > > ffmpeg -strict experimental -i input.mp4 -vcodec libxvid -threads 8 -s
> > > 624x352 -g 400 -dia_size 514 -bf 1 -b:v 1200k -trellis 2 -aspect 1.860
> > > -level 5.1 -r 25 -acodec libmp3lame -ab 128k -ac 2 -async 1 -y
> output.avi
> > > or,
> > > ffmpeg -strict experimental -i input.mp4 -vcodec libxvid -threads 3 -s
> > > 624x352 -g 400 -dia_size 514 -bf 1 -b:v 816k -trellis 2 -aspect 1.860
> > > -level 5.1 -r 25 -acodec libmp3lame -ab 128k -ac 2 -async 1 -y
> output.mp4
> > >
> > > look..
> > >
> > >
> > > On Sun, Sep 1, 2019 at 12:33 PM Erik Dobák <erik.dobak at gmail.com>
> wrote:
> > >
> > > > the catch22 original did not work. all my attempts to convert it
> > resulted
> > > > also in a non working video.
> > > > E
> > > >
> > > > On Sun, 1 Sep 2019 at 19:22, Kieran O Leary <
> kieran.o.leary at gmail.com>
> > > > wrote:
> > > >
> > > > > Did that catch-22 example you posted work or not? You never
> > specified..
> > > > >
> > > > > K
> > > > > _______________________________________________
> > > > > ffmpeg-user mailing list
> > > > > ffmpeg-user at ffmpeg.org
> > > > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > > > >
> > > > > To unsubscribe, visit link above, or email
> > > > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > > > _______________________________________________
> > > > ffmpeg-user mailing list
> > > > ffmpeg-user at ffmpeg.org
> > > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > > >
> > > > To unsubscribe, visit link above, or email
> > > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> > > To unsubscribe, visit link above, or email
> > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> >
> > ok here i can report some sort of success:
> >
> > i created these 3 videos according to your hints:
> >
> > catch22bv1200.avi
> > catch22bv1200.mp4
> > catch22bv816.mp4
> >
> > the mp4 play fine the video (no sound but i can care about this later)
> > but the catch22bv1200.avi does not play at all despite the fact that i
> just
> > changed the extension of the output file in the command you have sent me.
> >
>
> Do both play fine? Please post full command line and terminal output of
> this successful file. And the same for the avi that does not work.
>
> Best,
>
> Kieran
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
sorry forgot to do the terminal output this time. look at the outcome:
>>>> this does not play <<<<<
ffmpeg -i Catch-22.\[1970\].DVDRip.XviD-BLiTZKRiEG.avi -b:v 1M -vcodec
libxvid -acodec libmp3lame -q:a 2 catch22.avi
ffmpeg version 4.1.4-1~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --prefix=/usr --extra-version='1~deb10u1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libcodec2 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl
--enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Input #0, avi, from 'Catch-22.[1970].DVDRip.XviD-BLiTZKRiEG.avi':
Metadata:
encoder : VirtualDubMod 1.5.4.1 (build 2178/release)
IAS1 : English
Duration: 01:56:41.00, start: 0.000000, bitrate: 837 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID /
0x44495658), yuv420p, 624x272 [SAR 1:1 DAR 39:17], 714 kb/s, 25 fps, 25
tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp,
109 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> mpeg4 (libxvid))
Stream #0:1 -> #0:1 (mp3 (mp3float) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, avi, to 'catch22.avi':
Metadata:
IAS1 : English
ISFT : Lavf58.20.100
Stream #0:0: Video: mpeg4 (libxvid) (xvid / 0x64697678), yuv420p,
624x272 [SAR 1:1 DAR 39:17], q=2-31, 1000 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc58.35.100 libxvid
Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz,
stereo, fltp
Metadata:
encoder : Lavc58.35.100 libmp3lame
frame=175025 fps=234 q=2.0 Lsize= 995387kB time=01:56:41.04
bitrate=1164.7kbits/s speed=9.35x
video:854615kB audio:129738kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 1.120937%
>>>> this does play fine <<<<<
ffmpeg -i Catch-22.\[1970\].DVDRip.XviD-BLiTZKRiEG.avi -b:v 1M -vcodec
libxvid -acodec libmp3lame -q:a 2 catch22.mp4
ffmpeg version 4.1.4-1~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --prefix=/usr --extra-version='1~deb10u1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libcodec2 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl
--enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Input #0, avi, from 'Catch-22.[1970].DVDRip.XviD-BLiTZKRiEG.avi':
Metadata:
encoder : VirtualDubMod 1.5.4.1 (build 2178/release)
IAS1 : English
Duration: 01:56:41.00, start: 0.000000, bitrate: 837 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID /
0x44495658), yuv420p, 624x272 [SAR 1:1 DAR 39:17], 714 kb/s, 25 fps, 25
tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp,
109 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> mpeg4 (libxvid))
Stream #0:1 -> #0:1 (mp3 (mp3float) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp4, to 'catch22.mp4':
Metadata:
IAS1 : English
encoder : Lavf58.20.100
Stream #0:0: Video: mpeg4 (libxvid) (mp4v / 0x7634706D), yuv420p,
624x272 [SAR 1:1 DAR 39:17], q=2-31, 1000 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc58.35.100 libxvid
Stream #0:1: Audio: mp3 (libmp3lame) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp
Metadata:
encoder : Lavc58.35.100 libmp3lame
frame=175026 fps=233 q=2.0 Lsize= 988356kB time=01:56:41.00
bitrate=1156.5kbits/s dup=1 drop=0 speed=9.32x
video:854001kB audio:129738kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.469345%
(still no audio)
i reduced the ffmpeg options to reduce complexity of this troubleshooting.
you can see that only the change of container avi -> mp4 makes it start to
work correctly. not sure why as the TV played .avi before. just in this
(and maybe few other cases it does not work).
could it be something inside the original avi container what got into the
second avi that could disturb the TV player?
also take a look at the frame count:
mp4 175025
avi 175026
i thought the encoding is the same as: -b:v 1M -vcodec libxvid is used for
both avi and mp4.
still avi has one extra frame....
is it a bug? sorry that i ask i am no expert in this area...
E
ps: if you need the complete terminal output let me know i will run it
again...
More information about the ffmpeg-user
mailing list