bad snapshot-quality from avchd-videofile

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

bad snapshot-quality from avchd-videofile

scenator
Hello, I need your help again... The Quality of all extracted snapshot (from a HD-videofile) isn't acceptable, please watch the result: Snapshot_1.jpg C:\ProgramData\ffmpeg.exe -i "d:\Temp\STOP!1~1.M2T" -y -s 1920x1080 -ss 00:00:01.20 -vframes 1 C:\Users\Frank\AppData\Roaming\Snapshot_1.jpg There is no difference in quality by calling ...\Snapshot_1.bmp (6MB) or ...\Snapshot_1.jpg (157 kb) ffmpeg version N-54499-g63d7684 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 6 2013 10:30:06 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 11.101 / 55. 11.101 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 78.102 / 3. 78.102 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'd:\Temp\Stop!1.HZ!00.32.49.80!bigfile!bigfile!.m2ts': Duration: 00:16:22.28, start: 1.000033, bitrate: 17304 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090) Best regards in advantage, Frank
Reply | Threaded
Open this post in threaded view
|

Re: bad snapshot-quality from avchd-videofile

scenator
Unfortunately, the topic was bad formated:

call:
C:\ProgramData\ffmpeg.exe -i "d:\Temp\STOP!1~1.M2T" -y -s 1920x1080 -ss 00:00:01.20 -vframes 1 C:\Users\Frank\AppData\Roaming\Snapshot_1.jpg

There is no difference in quality by calling ...\Snapshot_1.bmp (6MB) or ...\Snapshot_1.jpg (157 kb)

video-details:
ffmpeg version N-54499-g63d7684 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 6 2013 10:30:06 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 11.101 / 55. 11.101 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 78.102 / 3. 78.102 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'd:\Temp\Stop!1.HZ!00.32.49.80!bigfile!bigfile!.m2ts': Duration: 00:16:22.28, start: 1.000033, bitrate: 17304 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)

Best regards in advantage,
  Frank
Reply | Threaded
Open this post in threaded view
|

Re: bad snapshot-quality from avchd-videofile

Carl Eugen Hoyos
scenator <info <at> scenator.de> writes:

> C:\ProgramData\ffmpeg.exe -i "d:\Temp\STOP!1~1.M2T" -y
> -s 1920x1080 -ss 00:00:01.20 -vframes 1
> C:\Users\Frank\AppData\Roaming\Snapshot_1.jpg

This is missing a quantiser like -qscale 2 (or a higher
value) or a bitrate.

Why are you specifying the output frame size (-s) if
you want it to be like the input?

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: bad snapshot-quality from avchd-videofile

René Calles
In reply to this post by scenator
Hi,

as Carl already mentioned you should set the -qscale argument with e.g. -qscale 2.

Cheers,
René
Am 4. April 2014 bei 05:35:20, scenator ([hidden email]) schrieb:

Hello,I need your help again...The Quality of /all/ extracted snapshot (from  
a HD-videofile) isn't acceptable, please watch the result:  
<http://ffmpeg-users.933282.n4.nabble.com/file/n4664636/Snapshot_1.jpg>  
C:\ProgramData\ffmpeg.exe -i "d:\Temp\STOP!1~1.M2T" -y -s 1920x1080 -ss  
00:00:01.20 -vframes 1 C:\Users\Frank\AppData\Roaming\Snapshot_1.jpgThere is  
no difference in quality by calling ...\Snapshot_1.bmp (6MB) or  
...\Snapshot_1.jpg (157 kb)ffmpeg version N-54499-g63d7684 Copyright (c)  
2000-2013 the FFmpeg developers built on Jul 6 2013 10:30:06 with gcc  
4.7.3 (GCC) configuration: --enable-gpl --enable-version3  
--disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig  
--enable-frei0r --enable-gnutls --enable-iconv --enable-libass  
--enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm  
--enable-libilbc --enable-libmodplug --enable-libmp3lame  
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg  
--enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr  
--enable-libspeex --enable-libtheora --enable-libtwolame  
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis  
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid  
--enable-zlib libavutil 52. 38.100 / 52. 38.100 libavcodec 55.  
18.102 / 55. 18.102 libavformat 55. 11.101 / 55. 11.101 libavdevice  
55. 2.100 / 55. 2.100 libavfilter 3. 78.102 / 3. 78.102 libswscale  
2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc  
52. 3.100 / 52. 3.100Input #0, mpegts, from  
'd:\Temp\Stop!1.HZ!00.32.49.80!bigfile!bigfile!.m2ts': Duration:  
00:16:22.28, start: 1.000033, bitrate: 17304 kb/s Program 1 Stream  
#0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080  
[SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]:  
Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s  
Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /  
0x0090)Best regards in advantage, Frank  



--  
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/bad-snapshot-quality-from-avchd-videofile-tp4664636.html 
Sent from the FFmpeg-users mailing list archive at Nabble.com.  
_______________________________________________  
ffmpeg-user mailing list  
[hidden email]  
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: bad snapshot-quality from avchd-videofile

Andy Furniss-2
In reply to this post by scenator
scenator wrote:
> Hello,I need your help again...The Quality of /all/ extracted snapshot (from
> a HD-videofile) isn't acceptable, please watch the result:
> <http://ffmpeg-users.933282.n4.nabble.com/file/n4664636/Snapshot_1.jpg>
> C:\ProgramData\ffmpeg.exe -i "d:\Temp\STOP!1~1.M2T" -y -s 1920x1080 -ss
> 00:00:01.20 -vframes 1 C:\Users\Frank\AppData\Roaming\Snapshot_1.jpgThere is
> no difference in quality by calling ...\Snapshot_1.bmp (6MB)

The source is interlaced so you are getting a weaved frame.

Try with a deinterlacer eg. -vf yadif=1

With the =1 yadif will produce one frame per field so you will have x2
frames to choose from.


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: bad snapshot-quality from avchd-videofile

scenator
This post was updated on .
In reply to this post by Carl Eugen Hoyos
Hello,

thank you very much!

when I use ... -qscale 2 an error occoures: Please use -q:a or -q:v, -qscale is ambiguous

So I tried -q 2 and everything is fine

In relation to the other comments above I got the best results with:
... -vframes 1 -q 2 -vf yadif=1

1000 thanks for your advices.

Best regards,
  Frank
Reply | Threaded
Open this post in threaded view
|

Re: bad snapshot-quality from avchd-videofile

Carl Eugen Hoyos
scenator <info <at> scenator.de> writes:

> when I use ... -qscale 2 an error occoures:
> Please use -q:a or -q:v, -qscale is ambiguous

Isn't this (much) more a hint than an error?
(I always use -qscale)

Please do not top-post here, it is considered rude.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user