ffmpeg http protocol question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ffmpeg http protocol question

asmall
Hi all


I'm xianfei. I have some problems to ask for you help.
Thanks.
I encode audio with ffmpeg.
when I exec the command "ffmpeg -i ~/Downloads/1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3 -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48k -f mp3 out_file.mp3", the out_file.mp3 can play.
when i exec the command "ffmpeg -i ~/Downloads/1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3 -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48k -f mp3 http://127.0.0.1:9805/v1/audio\?voice_id\=dddd" , the output file can not play.
I found two output files size is not same. the second of command output file is small. For example, the first command show "frame= 1 fps=0.4 q=-0.0 Lsize= 624kB time=00:00:48.62 bitrate= 105.1kbits/s speed=19.5x", but the second command show "frame= 1 fps=0.5 q=-0.0 Lsize= 623kB time=00:00:48.62 bitrate= 105.0kbits/s speed=21.9x". So the second output file is bad.
But, at present, only this one is bad, other audio is ok. My http server is right, because so much audio files are ok.
I don't know something is wrong. I hope you can help me.
thanks!
 
The source audio file is "1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3" in the mail attachment.
the command exec result picture:
http://ob0mm0nhp.bkt.clouddn.com/ffmpeg-command-http-protocol.png
http://ob0mm0nhp.bkt.clouddn.com/ffmpeg-command-file-protocol.png


the audio file link
http://ob0mm0nhp.bkt.clouddn.com/1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3
--


Thanks!

xianfei|[hidden email]
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg http protocol question

Carl Eugen Hoyos-2
2018-05-13 5:48 GMT+02:00, asmall <[hidden email]>:

> when I exec the command "ffmpeg -i
> ~/Downloads/1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3 -af
> loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48k -f mp3 out_file.mp3", the out_file.mp3
> can play.

Does it also play if you add the output option "-write_xing 0" to the
command line?

> when i exec the command "ffmpeg -i
> ~/Downloads/1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3 -af
> loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48k -f mp3
> http://127.0.0.1:9805/v1/audio\?voice_id\=dddd" , the output file can not
> play.

How did you test?

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg http protocol question

asmall
In reply to this post by asmall
when add the output option ‘-write_xing 0’, the output file can play.

But it cannot play when I use http protocol.
My http server is simple, It can receive data and write data to file. Then I test it, it can not play. Only the mp3 file is bad, others mp3
file is ok when I transfer data with http protocol. And I check tcp transfer data with tcpdump, the transfer data size is the same as the file I receive data to save file.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".