Portál AbcLinuxu, 5. května 2025 11:50

Dotaz: Parametry video konverze

21.6.2012 19:37 dustin | skóre: 63 | blog: dustin
Parametry video konverze
Přečteno: 546×
Odpovědět | Admin
Zdravím, hledám správné nastavení konvertoru pro videa do Emgeton Cult E8. Vycházel jsem z bedňovo http://bedna.kdesi.sk/index.php?odkaz=5&jazyk=svk (tímto autorovi děkuji). Leč ten E8 má menší displej. Zde jsou výstupy z mediainfo funkčního videa:
pavel@nahore:~/Stažené$ mediainfo  the-big-bang-theory-s04e11-hdtv-xvid-fever_PRO-E8.avi 
General
Complete name                            : the-big-bang-theory-s04e11-hdtv-xvid-fever_PRO-E8.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 111 MiB
Duration                                 : 19mn 56s
Overall bit rate                         : 779 Kbps
Writing application                      : MEncoder Sherpya-MinGW-20060312-4.1.0
Writing library                          : MPlayer

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Simple@L3
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 19mn 56s
Bit rate                                 : 638 Kbps
Width                                    : 160 pixels
Height                                   : 128 pixels
Display aspect ratio                     : 16:9
Original display aspect ratio            : 5:4
Frame rate                               : 30.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 1.039
Stream size                              : 91.0 MiB (82%)
Writing library                          : XviD 1.1.0 (UTC 2005-11-22)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 50
Duration                                 : 19mn 56s
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 18.3 MiB (16%)
Alignment                                : Split accross interleaves
Interleave, duration                     : 26 ms (0.78 video frame)
Interleave, preload duration             : 522 ms


pavel@nahore:~/Stažené$ mediainfo  chuck-e8.avi 
General
Complete name                            : chuck-e8.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 38.2 MiB
Duration                                 : 10mn 5s
Overall bit rate                         : 530 Kbps
Writing application                      : MEncoder SVN-r33485-4.4.3
Writing library                          : MPlayer

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Simple@L3
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 10mn 5s
Bit rate                                 : 388 Kbps
Width                                    : 160 pixels
Height                                   : 128 pixels
Display aspect ratio                     : 1.664
Original display aspect ratio            : 5:4
Frame rate                               : 30.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.632
Stream size                              : 28.0 MiB (73%)
Writing library                          : XviD 1.2.1 (UTC 2008-12-04)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 50
Duration                                 : 10mn 4s
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 9.22 MiB (24%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 26 ms (0.78 video frame)
Interleave, preload duration             : 522 ms
Po použití příkazu:
mencoder "CHuck-a-přátelé-15.Těžká-volba.divx" -o "chuck-e8.avi" -mc 0 -ofps 30 -vf-add scale=160:128 -vf-add expand=160:128:-1:-1:1 -srate 44100 -ovc xvid -xvidencopts bitrate=550:max_bframes=0:quant_type=h263 -oac lavc -lavcopts acodec=mp2:abitrate=128srate 44100 -ovc xvid -xvidencopts bitrate=550:max_bframes=0:quant_type=h263 -oa
vyleze video, které se seká:
pavel@nahore:~/Stažené$ mediainfo  chuck-e8.avi 
General
Complete name                            : chuck-e8.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 38.2 MiB
Duration                                 : 10mn 5s
Overall bit rate                         : 530 Kbps
Writing application                      : MEncoder SVN-r33485-4.4.3
Writing library                          : MPlayer

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Simple@L3
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 10mn 5s
Bit rate                                 : 388 Kbps
Width                                    : 160 pixels
Height                                   : 128 pixels
Display aspect ratio                     : 1.664
Original display aspect ratio            : 5:4
Frame rate                               : 30.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.632
Stream size                              : 28.0 MiB (73%)
Writing library                          : XviD 1.2.1 (UTC 2008-12-04)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 50
Duration                                 : 10mn 4s
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 9.22 MiB (24%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 26 ms (0.78 video frame)
Interleave, preload duration             : 522 ms
Rozdíl je v display aspect ratio (16:9 vs. 1.664) a v audiu alignment. Jinak na mém videu je i menší datový tok, takže to by snad měl zvládat.

Mohu poprosit místní znalé parametrů mencoderu (příp. asi perspektivnějšího ffmpeg), jaké parametry bych měl použít, aby mi vylezl odpovídající funkční profil v mediainfo? Předem díky moc.
Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

25.6.2012 10:13 dustin | skóre: 63 | blog: dustin
Rozbalit Rozbalit vše Re: Parametry video konverze
Odpovědět | | Sbalit | Link | Blokovat | Admin
Vážně nikdo nemá v malíčku mencoder nebo ffmpeg? Díky moc :)
25.6.2012 11:16 trubicoid
Rozbalit Rozbalit vše Re: Parametry video konverze
nemam emgeton, ale pouzivam volby xvid takto: -xvidencopts bitrate=1500:pass=2:threads=2:vhq=4:bvhq=1:quant_type=h263:chroma_opt

no a seka se ti to i bez zvuku? taky jesem si vsimnul, ze mas -xvidencopts dvakrat, to asi nevadi, ale stejne ...

jinak jeste nerozumim tem filtrum, ja je mam takto: -sws 2 -vf crop=688:560:18:8,hqdn3d,scale=-9:-10,harddup

akurat si oprav crop, mozna neni vubec potreba a scale=160:128

no a aspect ratio je sice v souboru zapsany, ale vetsina prehravacu ho ignoruje, muzes s nim manipulovat pomoci http://www.moitah.net/download/latest/MPEG4ModifierCL.zip, jde pustit pres mono

jeste se podivej tim mpeg4modifier, jestli ty fungujici soubory nemaji packed bitstream, mencoder dela jen bez, ale mpeg4modifier ho umi pridat/oddelat
25.6.2012 11:22 trubicoid
Rozbalit Rozbalit vše Re: Parametry video konverze
nu vlastne muzes pouzit i GUI http://www.moitah.net/download/latest/MPEG4Modifier.zip, ja pouzivam ten CL, protoze ho mam ve skriptu
25.6.2012 13:03 dustin | skóre: 63 | blog: dustin
Rozbalit Rozbalit vše Re: Parametry video konverze
Díky moc, to jsou přesně věci, o kterých nic nevím :) Vyzkouším a dám vědět. Ještě jednou dík.
25.6.2012 13:33 trubicoid
Rozbalit Rozbalit vše Re: Parametry video konverze
jinak se mi zda, ze ty soubory jsou pro mediainfo skoro stejny; nemuzes nekde vystavit dobrej a spatnej soubor? nejlip udelat spatnej z dobryho tim tvym mencoderem

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.