mp4 > flv video errors streaming to my android

Need help? Post your questions here.

Moderator: moderators

Postby stozher » Fri Jan 28, 2011 5:56 pm

Post log... Upgrade FFmpeg to latest version.
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby GJ51 » Fri Jan 28, 2011 6:00 pm

We cross-posted. Please read my entry above.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby bdf969 » Fri Jan 28, 2011 6:36 pm

stozher wrote:Post log... Upgrade FFmpeg to latest version.




i tried to update the ffmpeg to the latest version but i don't know how. In the c:\subsonic\transcode directory there is the ffmpeg application. When i download the update from the website it is a bunch of files and folders... am i an idiot?

here is my log from attempting to play the dinner for shmucks movie.
[2011-01-28 12:17:34,817] INFO PlaylistInputStream - admin listening to "Despicable Me\Despicable.Me.2010.720p.avi"
[2011-01-28 12:17:34,821] DEBUG TranscodeInputStream - Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-ss] [0] [-i] [i:\Brads Movies\_newstuff\Despicable Me\Despicable.Me.2010.720p.avi] [-async] [1] [-b] [500k] [-s] [384x240] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-]
[2011-01-28 12:18:02,581] INFO PlaylistInputStream - admin listening to "Dinner For Schmucks 2010 720p\Dinner For Schmucks.mp4"
[2011-01-28 12:18:02,585] DEBUG TranscodeInputStream - Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-v] [0] [-ss] [0] [-async] [1] [-i] [i:\Brads Movies\_newstuff\Dinner For Schmucks 2010 720p\Dinner For Schmucks.mp4] [-f] [flv] [-b] [500k] [-r] [30] [-s] [428x240] [-acodec] [libfaac] [-aq] [500] [-ac] [2] [-]
[2011-01-28 12:18:02,591] DEBUG TranscodeInputStream - Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-v] [0] [-f] [flv] [-i] [-] [-f] [flv] [-vcodec] [copy] [-acodec] [libfaac] [-ar] [44100] [-aq] [500] [-]
[2011-01-28 12:18:02,737] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) FFmpeg version SVN-r21231-Sherpya, Copyright (c) 2000-2010 Fabrice Bellard, et al.
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) built on Jan 16 2010 05:42:31 with gcc 4.2.5 20080919 (prerelease) [Sherpya]
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavutil 50. 7. 0 / 50. 7. 0
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavcodec 52.47. 0 / 52.47. 0
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavformat 52.47. 0 / 52.47. 0
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavdevice 52. 2. 0 / 52. 2. 0
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavfilter 1.15. 0 / 1.15. 0
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libswscale 0. 8. 0 / 0. 8. 0
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Seems stream 0 codec frame rate differs from container frame rate: 47.95 (66893/1395) -> 23.98 (24000/1001)
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'i:\Brads Movies\_newstuff\Dinner For Schmucks 2010 720p\Dinner For Schmucks.mp4':
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Metadata:
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) major_brand : isom
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) minor_version : 1
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) compatible_brands: isom
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Duration: 01:54:03.24, start: 0.000000, bitrate: 3011 kb/s
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Stream #0.0(und): Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 2607 kb/s, 47.95 fps, 23.98 tbr, 66893 tbn, 47.95 tbc
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16, 400 kb/s
[2011-01-28 12:18:02,738] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Unknown encoder 'libfaac'
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) FFmpeg version SVN-r21231-Sherpya, Copyright (c) 2000-2010 Fabrice Bellard, et al.
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) built on Jan 16 2010 05:42:31 with gcc 4.2.5 20080919 (prerelease) [Sherpya]
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavutil 50. 7. 0 / 50. 7. 0
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavcodec 52.47. 0 / 52.47. 0
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavformat 52.47. 0 / 52.47. 0
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavdevice 52. 2. 0 / 52. 2. 0
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libavfilter 1.15. 0 / 1.15. 0
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libswscale 0. 8. 0 / 0. 8. 0
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) [flv @ 02be9400]Broken FLV file, which says no streams present, this might fail
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) [flv @ 02be9400]Could not find codec parameters (Video: 0x0000)
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) [flv @ 02be9400]Could not find codec parameters (Audio: 0x0000, 0 channels)
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) [flv @ 02be9400]Estimating duration from bitrate, this may be inaccurate
[2011-01-28 12:18:02,739] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) pipe:: could not find codec parameters
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby GJ51 » Fri Jan 28, 2011 6:39 pm

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. :wink:



No, but your probably in over your head. The difference between you and me is that I admit it. :wink:

http://www.avs4you.com/

Make life easy on yourself, give the trial version a go.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby stozher » Fri Jan 28, 2011 6:49 pm

http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby bdf969 » Fri Jan 28, 2011 9:33 pm

stozher wrote:http://www.videohelp.com/download/ffmpeg-r25512.7z
http://ffmpeg.arrozcru.org/autobuilds/

Your problem is a FFmpeg...


i agree. i don't think that my build of ffmpeg includes the libfaac or has it enabled. when i run ffmpeg.exe in the cmd prompt i don't see '--enable-libfaac'

i think this is why i receive a "Unknown encoder 'libfaac'" error when i attempt to stream using the 2-step transcoding instructions you gave me.

does the ffmpeg that you have running on your machine support the libfaac?
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby stozher » Sat Jan 29, 2011 12:56 am

Code: Select all
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'
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby diego_dambra » Sat Jan 29, 2011 7:46 am

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.
diego_dambra
 
Posts: 5
Joined: Tue Jan 25, 2011 8:12 pm

Postby bdf969 » Sat Jan 29, 2011 8:58 am

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.


Hi diego. thanks for the input. i must admit that i am a bit of a newbie to stuff like this and i really want to try your suggestions but you may need to break it down a bit more for me...

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?

i'm really new to this. thanks again for helping me.
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby diego_dambra » Sat Jan 29, 2011 10:43 am

[...]
to add vlc to the transcode folder do i just copy and paste the application file or the whole folder?


My sample is for use in Linux (and possible Mac). I'm not familiar with how things works in Windows, but instead of a bash script you should create a Windows .bat script.

what script file? is it there already or do i need to create it?


You will need to create it, using e.g. Notepad - call it vlc.bat (again I don't really know how Windows works)

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?


Sorry, but I really don't know how VLC works in Windows - I think you can just ignore the sudo -u NONROOT (don't include it in your .bat script).
diego_dambra
 
Posts: 5
Joined: Tue Jan 25, 2011 8:12 pm

Postby saskwatch » Mon Mar 07, 2011 6:35 pm

Did anybody ever get to work? *crosses fingers*
saskwatch
 
Posts: 5
Joined: Sat Oct 16, 2010 1:07 pm

Postby bdf969 » Mon Mar 07, 2011 7:04 pm

saskwatch wrote:Did anybody ever get to work? *crosses fingers*



No I got nothin on it...
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests