Moderator: moderators
stozher wrote:Post log... Upgrade FFmpeg to latest version.
GJ51 wrote:bdf969 wrote:stozher wrote:MPEG-4 > FLV with AAC Stereo Audio:
Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libfaac -aq 500 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libfaac -ar 44100 -aq 500 -
MPEG-4 > FLV with MP3 Stereo Audio:
Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libmp3lame -aq 0 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libmp3lame -ar 44100 -aq 0 -
first off, thanks stozher for joining the conversation! i really appreciate the help. i tried out these new 2-step transocde instructions.. niether of them worked. i looked into my mp4 files with gspot and all the ones i checked use the codec:
" mp4a: MPEG-4 AAC LC"
stozher's code gave me the same error message that i got originally.
any other suggestions?
thank you.
" mp4a: MPEG-4 AAC LC"
mp4a![]()
I readily admit that I'm no genius at transcoding, but this is the first time I've seen mp4a mentioned in relation to the current problem. Is it a factor?
It appears you are not the only one to have a problem with this format.
http://www.hardwareforums.com/mpeg-4-aa ... dec-17606/
For those of us that aren't experts with ffmpeg I'd recommend using either Arcsoft's Media Converter 7 or AVS Media Converter to do the conversion of the original video to Mp4. The entire AVS suite is only $59 for a lifetime subscription and includes an incredible array of audio, video, and photo editing tools. All the video that plays on my sites have been converted with oone of these tools. The Arcsoft product is a little pricier, but not much, is only for video conversion, but it si easier to use for someone trying to get into video conversion. It also has the ability to monitor and automatically convert new video placed in a specified folder. Admittedly, I'm nowhere near the expert level on this topic that Stozher is, which is why I always defer to him on these questions, but by using the two products above and listening to what assistance Stozher provides, I've got all the video on my sites running properly. Sometimes, rather than trying to solve a problem that your focused on, it's just easier to find an easier solution to achieve the same result.
stozher wrote:http://www.videohelp.com/download/ffmpeg-r25512.7z
http://ffmpeg.arrozcru.org/autobuilds/
Your problem is a FFmpeg...
FFmpeg version SVN-r25838, Copyright (c) 2000-2010 the FFmpeg developers
built on Nov 29 2010 15:39:30 with gcc 4.4.5
configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 50.33. 0 / 50.33. 0
libavcore 0.14. 0 / 0.14. 0
libavcodec 52.97. 2 / 52.97. 2
libavformat 52.87. 1 / 52.87. 1
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.65. 0 / 1.65. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'#!/bin/bash
sudo -u NONROOT cvlc $1 -q :sout="#transcode{venc=x264{profile=baseline,level=3,keyint=50,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=500,vbv-bufsize=512,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=umh,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=500,vfilter=canvas{width=480,height=320,aspect=480:320,padd},aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=96,channels=1,audio-sync,samplerate=22050}:standard{access=file,mux=ts,dst=-}" vlc://quit 2>/dev/null
diego_dambra wrote:I've experienced better CPU performance and quality having VLC doing the first transcoding and then use ffmpeg to convert that stream to FLV.
Sample code below should be added to script file in the Subsonic transcoding folder (e.g. /var/subsonic/transcoding/vlc) - and remember to replace NONROOT with valid username (VLC will not run as root) and give the script execute permission. Then add vlc %s as the 1st transcoding step and then the usual ffmpeg command as the second, but change -i %s to -i -.
- Code: Select all
#!/bin/bash
sudo -u NONROOT cvlc $1 -q :sout="#transcode{venc=x264{profile=baseline,level=3,keyint=50,bframes=0,no-cabac,ref=1,no-interlaced,vbv-maxrate=500,vbv-bufsize=512,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=umh,subme=0,no-mixed-refs,no-8x8dct,trellis=0},vcodec=h264,vb=500,vfilter=canvas{width=480,height=320,aspect=480:320,padd},aenc=ffmpeg{aac-profile=low},acodec=mp4a,ab=96,channels=1,audio-sync,samplerate=22050}:standard{access=file,mux=ts,dst=-}" vlc://quit 2>/dev/null
If this works, you can tweak the VLC script to produce better quality at the expense of more CPU/bandwidth.
[...]
to add vlc to the transcode folder do i just copy and paste the application file or the whole folder?
what script file? is it there already or do i need to create it?
when i change NONROOT to a valid username... you mean one of the usernames that i've listed to have access to my subsonic account? or a an admin level username in windows?
Users browsing this forum: No registered users and 16 guests