View Full Version : Having problems with my transcode :(
maxxon
18th September 2012, 23:04
I've been trying to get ffmpeg to transcode files automatically for me, but I've been having some problems with the playback. It would work for a time (1/2 an hour to an hour) and then crash my dvd player, requiring me to turn it off and on again via the power button.
My command lines look like this (this is a code fragment in batch which is attached):
ffmpeg -i "%infile%" -vtag DIVX -f avi -vcodec mpeg4 -aspect %dar% -s %resolution% -b:v %vbps% \
-acodec libmp3lame -ab 128000 -ar 48000 -ac 2 -pass 1 -passlogfile %passLogFile% -y NUL
ffmpeg -i "%infile%" -vtag DIVX -f avi -vcodec mpeg4 -aspect %dar% -s %resolution% -b:v %vbps% \
-acodec libmp3lame -ab 128000 -ar 48000 -ac 2 -pass 2 -passlogfile %passLogFile% -y "%outfile%.avi"
This is a patchwork of several command lines I've seen on the web. The other code not shown is my attempt in semi-automating the process. Can anyone give me an idea what I'm doing wrong here?
Thanks,
|\/|x
nm
18th September 2012, 23:52
Can anyone give me an idea what I'm doing wrong here?
Asking about MPEG-4 ASP encoding on the MPEG-4 AVC subforum. ;)
Which video formats does your player support besides MPEG-2 and MPEG-4 ASP? It those are the only options, maybe you could try encoding with Xvid instead of libavcodec. Or try a different resolution and framerate.
How big are the AVI files that crash the player? What happens if you encode the movie to fit under 1 or 2 GB?
Blue_MiSfit
19th September 2012, 02:12
Moved to MPEG-4 ASP forum.
Also, you might want to consider using xvid instead of ffmpeg's MPEG-4 Part 2 encoder. This used to be best practice, but I'm not so sure anymore. MPEG-4 Part 10 / AVC / H.264 has totally replaced MPEG-4 Part 2 for me.
maxxon
19th September 2012, 02:56
Asking about MPEG-4 ASP encoding on the MPEG-4 AVC subforum. ;)
Sorry, I'm not sure about all of these formats. That's why I'm asking. What is MPEG-4 ASP?
Which video formats does your player support besides MPEG-2 and MPEG-4 ASP? It those are the only options, maybe you could try encoding with Xvid instead of libavcodec. Or try a different resolution and framerate.
This is from the manual of the DVD player:
Playable DivX file
.avi, .mpg, .mpeg
Playable Subtitle format
SubRip(*.srt/*.txt)
SAMI(*.smi)
SubStation Alpha(*.ssa/*.txt)
MicroDVD(*.sub/*.txt)
SubViewer 2.0(*.sub/*.txt)
TMPlayer(*.txt)
Dvd Subtitle System(*.txt)
VobSub (*.sub) b Sub/idx, stream based format.
Playable Codec format
"DIVX3.xx ", "DIVX4.xx ", "DIVX5.xx ",
"MP43 ", "3IVX ".
Playable Audio format
"Dolby Digital ", "DTS ", "PCM ", "MP3 ", "WMA ".
• Sampling frequency: within 8 - 48 kHz (MP3),
within 22 - 48kHz (WMA)
• Bit rate: within 8 - 320kbps (MP3),
32 - 256kbps (WMA)
How big are the AVI files that crash the player? What happens if you encode the movie to fit under 1 or 2 GB?
I've tried several sizes. 759809KB, 852085KB and 964924KB
Thanks for your help.
|\/|x
maxxon
19th September 2012, 06:41
Moved to MPEG-4 ASP forum.
Also, you might want to consider using xvid instead of ffmpeg's MPEG-4 Part 2 encoder. This used to be best practice, but I'm not so sure anymore. MPEG-4 Part 10 / AVC / H.264 has totally replaced MPEG-4 Part 2 for me.
Thanks, could you point me to a command line to use? There are a lot of options and I'm not totally sure as to how they all interact with each other, except though trial an error. Is there some way that I could do this with a more logical approach?
Thanks again! :D
|\/|x
maxxon
19th September 2012, 16:41
BTW, I've in the past tried to use H.264 without success.
EDIT: Oh, and by that, the DVD player wouldn't play the video.
Guest
19th September 2012, 17:00
BTW, I've in the past tried to use H.264 without success.
EDIT: Oh, and by that, the DVD player wouldn't play the video. DVD players can play only MPEG2 video. BluRay players can play AVC, MPEG2, or VC1. Of course in both cases you need to also use a container that the player supports.
maxxon
20th September 2012, 03:08
DVD players can play only MPEG2 video. BluRay players can play AVC, MPEG2, or VC1. Of course in both cases you need to also use a container that the player supports.
Thanks neuron2, but if I understand the stuff I've been reading correctly, DVD players that can play DivX videos are actually playing a MPEG-4 complaint video. You must be referring to DVD players that play only DVDs. DVDs are MPEG-2 as per their specification, unless you use a data DVD, in which case it can be anything, and must be complaint to what ever codecs the DVD player is said to be compatible with as well as being able to read from data DVDs :).
Does anyone have any idea why my DVD player is crashing? Am I correct that it should be able to take a MPEG-4 AVS file? If so, what command line should I use?
Thanks all.
|\/|x
Guest
20th September 2012, 04:34
From what you posted, your player does not play AVC video (H.264).
Does anyone have any idea why my DVD player is crashing? Because it is crap? Post a sample file that crashes it and we can see if it crashes on our players.
Am I correct that it should be able to take a MPEG-4 AVS file? If so, what command line should I use? There's no such thing as MPEG-4 AVS. If you mean ASP then yes, it should play it. If you mean AVC (H.264) then no.
maxxon
20th September 2012, 06:14
From what you posted, your player does not play AVC video (H.264).
Because it is crap? Post a sample file that crashes it and we can see if it crashes on our players.
Thanks. ;) The DVD player isn't mine, its my dad's. It is a LG LDA-831. The last video that crashed was an episode of Dexter S01E01 from here (magnet:?xt=urn:btih:3ylfwo6e33nt3igwumsefl452epzdpoy&dn=Dexter%20Season%201%20%282006%29&xl=4397084718&fc=13). When I go there next, I'll have to check out the entire system again.
There's no such thing as MPEG-4 AVS. If you mean ASP then yes, it should play it. If you mean AVC (H.264) then no.
Yeah, I was mistaken, I meant to type ASP regarding the MPEG-4 Part 2 standard.
Guest
20th September 2012, 06:16
The last video that crashed was an episode of Dexter S01E01 from here (magnet:?xt=urn:btih:3ylfwo6e33nt3igwumsefl452epzdpoy&dn=Dexter%20Season%201%20%282006%29&xl=4397084718&fc=13). What is that link? It's not working for me.
Groucho2004
20th September 2012, 12:24
What is that link? It's not working for me.
That's a "Magnet" link to a torrent.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.