PDA

View Full Version : flv to mp4 conversion problem using ffmpeg: Stream #0.1: Audio: 0x0000, 0 channels, s16. Error: Unsupported codec (id=0) for input stream #0.1



blobalbob
02-04-2011, 01:32 AM
"Playstation 3 (MP4 H.264; 29.97; 720x480; AAC)" will convert SOME Cam4 streams without any problems and you can watch the converted file on your TV using PS3 media server. BUT for some reason others fail. Here is the code for a failed version, any ideas?


Queued for conversion
Starting conversion with arguments: -y -i "d:\My Documents\My Streaming Media\Free Web Camblahblah.flv" -ss 0.00 -vcodec libx264 -r 29.97 -s 720x480 -b 1200000 -acodec libfaac -ab 128000 -ar 44100 -ac 2 -f psp "d:\My Documents\My Streaming Media\Converted\Free Web Camblahblah.mp4"
Converting - FFmpeg version SVN-r18639, Copyright (c) 2000-2009 Fabrice Bellard, et al.
Converting - configuration: --enable-memalign-hack --enable-postproc --enable-gpl --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --enable-avisynth --enable-pthreads
Converting - libavutil 50. 3. 0 / 50. 3. 0
Converting - libavcodec 52.27. 0 / 52.27. 0
Converting - libavformat 52.32. 0 / 52.32. 0
Converting - libavdevice 52. 2. 0 / 52. 2. 0
Converting - libswscale 0. 7. 1 / 0. 7. 1
Converting - libpostproc 51. 2. 0 / 51. 2. 0
Converting - built on Apr 21 2009 13:44:38, gcc: 4.2.4 (TDM-1 for MinGW)
Converting - [flv @ 0x3c8a0]skipping flv packet: type 18, size 36, flags 0
Converting - Input #0, flv, from 'd:\My Documents\My Streaming Media\Free Web Camblahblah.flv':
Converting - Duration: 00:25:11.26, start: 0.000000, bitrate: N/A
Converting - Stream #0.0: Video: flv, yuv420p, 480x400, 1k tbr, 1k tbn, 1k tbc
Converting - Stream #0.1: Audio: 0x0000, 0 channels, s16
Converting - [libx264 @ 0x1803010]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
Converting - [libx264 @ 0x1803010]profile Baseline, level 3.0
Converting - Output #0, psp, to 'd:\My Documents\My Streaming Media\Converted\Free Web Camblahblah.mp4':
Converting - Stream #0.0: Video: libx264, yuv420p, 720x480, q=2-31, 1200 kb/s, 90k tbn, 29.97 tbc
Converting - Stream #0.1: Audio: libfaac, 44100 Hz, stereo, s16, 128 kb/s
Converting - Stream mapping:
Converting - Stream #0.0 -> #0.0
Converting - Stream #0.1 -> #0.1
Converting - Unsupported codec (id=0) for input stream #0.1
Complete with errors. Double click to view.

Anyone any ideas why some would work yet others fail? I get about 1 in 3 converting?

stream-recorder.com
02-04-2011, 05:08 AM
The problem seems to be here:

Converting - Stream #0.1: Audio: 0x0000, 0 channels, s16
...
Converting - Unsupported codec (id=0) for input stream #0.1

Some cam4 videos doesn't have audio tracks.

I've cloned the "PlayStation 3 High Quality (MP4 DIVX; 29.97 fps; 640x480; AAC)" preset and named a new one "_PlayStation 3 High Quality (MP4 DIVX; 29.97 fps; 640x480; No audio)". Then added the "-an" into the "Other" text box:

http://img545.imageshack.us/img545/1276/ps3noaudio.jpg

Then I was able to convert FLV videos from cam4 that do not have audio tracks.

blobalbob
02-04-2011, 12:24 PM
Hi Stream-recorder
Nice one. I will give that a try. Any ideas how we get it to choose the right one automatically now? I assume the no audio version will remoce streams that have audio if i set it to auto?
Thank for your help though mate, great work

UPDATE: CAN Confirm this now converts no audio FLV's :)

stream-recorder.com
02-04-2011, 02:23 PM
Any ideas how we get it to choose the right one automatically now? I assume the no audio version will remoce streams that have audio if i set it to auto?
If I understand everything correctly RMC has a basic conversion and it won't be changed. And IMHO this is for good... at least I would prefer the developer of RMC to concentrate more on downloading/capturing. As for auto conversion, may be Replay Converter can do it.

blobalbob
02-04-2011, 02:47 PM
You're right. I've now actually given up with RMC for conversions as its too cumbersom. Its easier to set it to no convert and then to batch convert the lot using Replay Converter. I'm using the MPEG-4(.h264)Good Quality (450 kbs) setting as the PS3 media server and PS3 seem to prefer this combo, especially for fast forward and rewind. Strange that Replay Converter doesn't have half the custom presets that RMC does though, you would have thought as they are both from the same stable that they would have the same conversion presets?
Thanks for your help and if you come across any better variants do let me know.

Jeff Lenney
02-04-2011, 06:42 PM
You're right. I've now actually given up with RMC for conversions as its too cumbersom. Its easier to set it to no convert and then to batch convert the lot using Replay Converter. I'm using the MPEG-4(.h264)Good Quality (450 kbs) setting as the PS3 media server and PS3 seem to prefer this combo, especially for fast forward and rewind. Strange that Replay Converter doesn't have half the custom presets that RMC does though, you would have thought as they are both from the same stable that they would have the same conversion presets?
Thanks for your help and if you come across any better variants do let me know.

Thanks for hanging in there, and we'll update you of any progress. :)